/* Regular weight */
@font-face {
  font-family: "AppetitePro";
  src: url("./assets/Fonts/appetite-pro-font-family/AppetitePro-Regular.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Medium weight */
@font-face {
  font-family: "AppetitePro";
  src: url("./assets/Fonts/appetite-pro-font-family/AppetitePro-Medium.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
}

/* Light weight */
@font-face {
  font-family: "AppetitePro";
  src: url("./assets/Fonts/appetite-pro-font-family/AppetitePro-Light.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Ashtak";
  src: url("../Fonts/ashtak.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 65px;
  scroll-behavior: smooth;
}

/* Disable tap highlight on mobile devices */
div,
a,
button,
img,
span {
  -webkit-tap-highlight-color: transparent;
}

/* Customize the width of the scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

/* Thumb of the scrollbar */
::-webkit-scrollbar-thumb {
  background-color: rgb(18, 24, 62);
  border: 2px solid #f1f1f1;
}

/* Hover state for the thumb */
::-webkit-scrollbar-thumb:hover {
  background-color: #ff0000;
}

body {
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: #333;
  background-color: #f4f4f4;
  font-family: "Poppins", sans-serif;
}

nav {
  /* position: fixed;
    top: 0; */
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgb(18, 24, 62);
  z-index: 1000; /* Ensure nav is on top */
  height: 65px;
  border-bottom: 1px solid #ffffff;
  position: relative;
  transition: top 0.3s ease-in-out;
}

/* Sticky Class */
.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.placeholder {
  height: 65px; /* Same as the height of the nav */
  display: none; /* Hide initially */
}

/* .navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* position: relative; */
/* padding: 0.5rem 5%; */
/* z-index: 10; */
/* } */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 5%;
  z-index: 1000;
  position: sticky;
  top: 0;
  width: 100%;
}
.logo {
  width: 300px;
  display: flex;
  justify-content: center;
  cursor: pointer;
}
.logo img {
  height: 30px;
}

.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 2.5rem;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  padding: 0.5rem;
}

.nav-links a:hover {
  color: #ff0000;
  transform: scale(1.1);
}

header {
  background-image: url("../img/bg/header-bg1.jpeg"); /* Initial background image */
  background-size: contain;
  background-position: center;
  height: calc(
    100vh - 65px
  ); /* Make header fill the screen except for the nav height */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.header-content {
  max-width: 600px;
  color:#12183e;
}

.header-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-family: "Ashtak";
  font-weight: 500;
}

.header-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

section {
  padding: 50px 20px;
}
.about {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}




.projects,
.contact {
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.project-card p {
  color: #666;
}

.contact-section {
  background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
  /* background-image: linear-gradient(to top, #09203f 0%, #537895 100%);     */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .logo {
    display: flex;
    justify-content: left;
    cursor: pointer;
  }
  .logo img {
    max-height: 20px;
  }
  .nav {
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 0;
    background-color: rgb(18, 24, 62);
    width: 100%;
    border-top: 1px solid #ffffff;
    padding: 1rem 0;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li {
    margin: 0;
    padding: 0.8rem 1.5rem;
    text-align: center;
    transition: background-color 0.3s ease;
  }

  .nav-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 5px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  header {
    background-size: cover;
  }
  .header-content h1 {
    font-size: 1.8rem;
  }
  .about-card {
    padding: 30px;
  }

  .about-card h2 {
    font-size: 1.6rem;
  }

  .about-card p {
    font-size: 1.2rem;
  }

  .about-list li {
    font-size: 1.2rem;
  }
}
