html {
  scroll-padding-top: 70px; /* Adjust to your navbar height */
  scroll-behavior: smooth;  /* Smooth scrolling */
}

    

body {
scroll-behavior: smooth;
transition: background-color 0.3s, color 0.3s;
}
section {
  scroll-margin-top: 70px; /* Adjust according to navbar height */
}



/* 🌐 Navbar 2025 Modern Glass Design */
.navbar {
  background: rgba(10, 20, 30, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 5px 25px rgba(0, 198, 255, 0.15);
  transition: all 0.4s ease;
  padding: 10px 0;
  z-index: 1000;
}

/* 🔹 Scroll Effect */
.navbar.scrolled {
  background: rgba(10, 20, 30, 0.9);
  box-shadow: 0 3px 20px rgba(0, 198, 255, 0.25);
}

/* 🌀 Brand Logo */
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00c6ff !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.navbar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,198,255,0.4);
  transition: 0.4s;
}

.navbar-brand:hover img {
  transform: rotate(10deg) scale(1.1);
}

/* 🔸 Nav Links */
.nav-link {
  color: #e4e4e4 !important;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link i {
  font-size: 1.1rem;
  color: #00c6ff;
  margin-right: 6px;
}

/* Hover Glow Line */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00c6ff, #00ffd5);
  transition: 0.4s;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  color: #00ffd5 !important;
  transform: translateY(-2px);
}

/* 🔘 Navbar Toggler */
.navbar-toggler {
  border: none;
  outline: none;
  background: rgba(0,198,255,0.2);
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.3s;
}

.navbar-toggler:hover {
  background: rgba(0,198,255,0.4);
}

.navbar-toggler-icon {
  filter: drop-shadow(0 0 5px rgba(0,198,255,0.8));
}

/* 📱 Responsive Styles */
@media (max-width: 992px) {
  .navbar {
    backdrop-filter: blur(15px);
  }

  .navbar-collapse {
    background: rgba(0, 10, 20, 0.9);
    border-radius: 15px;
    padding: 15px 0;
    margin-top: 10px;
  }

  .nav-link {
    display: block;
    text-align: center;
    margin: 12px 0;
    font-size: 1.1rem;
  }

  .nav-link::after {
    display: none;
  }

  .navbar-brand img {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .nav-link {
    font-size: 1rem;
  }
}








.navbar.scrolled {
background-color: rgba(0, 0, 255, 0.69);
}

/* Dark mode styles */
body.dark-mode {
background-color: #121212;
/* color: #ddd; */
}
body.dark-mode .bg-light {
background-color: #1e1e1e !important;
}
body.dark-mode .card {
background-color: #2c2c2c;
color: #ddd;
}

body.dark-mode .navbar {
background-color: #1a1a1a !important;
}

/* Navbar sticky & custom */
.navbar {
position: sticky;
top: 0;
z-index: 1030;
}

/* Navbar brand logo */
.navbar-brand img {
height: 40px;
margin-right: 8px;
}

/* Dark mode styles */
body.dark-mode {
background-color: #121212;
/* color: #ddd; */
}
body.dark-mode .bg-light {
background-color: #1e1e1e !important;
}
body.dark-mode .card {
background-color: #2c2c2c;
color: #ddd;
}
body.dark-mode footer {
background-color: #111;
color: #999;
}
body.dark-mode .navbar {
background-color: #1a1a1a !important;
}

/* Navbar sticky & custom */
.navbar {
position: sticky;
top: 0;
z-index: 1030;
}

/* Navbar brand logo */
.navbar-brand img {
height: 40px;
margin-right: 8px;
}


    /* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* <!-- ============== HERO STYLES ============== --> */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

#hero {
  min-height: 100vh;
}





/* Buttons */
.btn-primary {
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: scale(1.05);
}
.btn-outline-light:hover {
  background-color: #0d6efd;
  color: white;
}

/* Fade Animations */
@keyframes fadeInDown {
  0% {opacity: 0; transform: translateY(-20px);}
  100% {opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}

    /* Services icons */
    .service-icon {
      font-size: 3rem;
      color: #0d6efd;
      margin-bottom: 15px;
    }
    .col-md-4 .border {
      transition: all 0.4s ease;
    }
    .col-md-4 .border:hover {
      transform: translateY(-8px) scale(1.02);
      background: linear-gradient(145deg, #ffffff, #f0f0f0);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
      border-color: transparent;
    }



    /* Project Section */
    .card-img-top img {
      transition: transform 0.5s ease;
    }
    .card .carousel-item img {
      width: 100%;
      height: 230px;       
      object-fit: cover;  
      border-radius: 8px; 
    }

    .card:hover .carousel-item img {
      transform: scale(1.05);
    }



    /* Team Member Section */






  .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
  }



    /* Dark mode toggle button */
    #darkModeToggle {
      cursor: pointer;
      color: white;
      font-size: 1.3rem;
    }

    /* Contact success message */
    #successMessage {
      display: none;
      margin-top: 15px;
    }






/* Responsive Section */
@media (max-width: 768px) {
  .hero-content h1, .hero-content h2 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}




  /*  Popup  Design */

  /* Lock background scroll when popup is active */
  body.popup-active {
    overflow: hidden;
  }

  /* Popup Background */
  .popup {
    display: flex; /* Center with flexbox */
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.75); /* dark transparent background */
    backdrop-filter: blur(4px);
    z-index: 9999;
  }

  /* Popup Content Box */
  .popup-content {
    background-color: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: popupIn 0.4s ease;
  }

  /* Entry animation */
  @keyframes popupIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  .popup-content h2 {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
  }

  .popup-content p {
    margin-bottom: 25px;
    color: #555;
    font-size: 16px;
  }

  .popup-content button {
    padding: 10px 24px;
    font-size: 16px;
    background: linear-gradient(90deg, #00c6ff, #007bff);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .popup-content button:hover {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transform: scale(1.05);
  }