@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========== BASE STYLES ========== */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-top: 90px; /* matches navbar height */
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* Global section padding */
section {
  padding: 80px 0;
  position: relative;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  body {
    padding-top: 80px; /* smaller navbar height for mobile */
  }
  section {
    padding: 60px 0;
  }
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}


.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.nav-logo img {
  height: 80px;
  width: 80px;
  object-fit: contain;
}

.nav-logo span {
  font-size: 2rem;
  font-weight: 600;
  color: rgb(25, 54, 88);
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: rgb(25, 54, 88);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #003366;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #00aaff;
}

/* ========== MOBILE NAVBAR ========== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 81px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    width: 200px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-logo img {
    height: 60px;
    width: 60px;
  }

  .nav-logo span {
    font-size: 1.4rem;
  }
}

/* ========== ANIMATIONS & MISC ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Buttons */
.btn-primary, .btn-secondary {
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 76, 153, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Form focus */
.form-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 76, 153, 0.2);
  border-color: #004C99;
}

/* WhatsApp Floating Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 100;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Lightbox (for gallery) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
@keyframes zoomSlow {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.animate-zoom-slow img {
  animation: zoomSlow 20s ease-in-out infinite alternate;
}
body {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

body.loaded {
  opacity: 1;
}
/* Base button transition */
.hero-btn-primary,
.hero-btn-secondary {
  transition: all 0.4s ease;
  transform: translateY(0);
}

/* Lift up and glow effect */
.hero-btn-primary:hover,
.hero-btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 76, 153, 0.3);
}

/* Glow pulse for the primary button */
.hero-btn-primary:hover {
  background: linear-gradient(90deg, #004C99, #007BFF);
}

/* Subtle border animation for secondary button */
.hero-btn-secondary {
  position: relative;
  overflow: hidden;
}

.hero-btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #004C99;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.hero-btn-secondary:hover::after {
  transform: scaleX(1);
}
[data-aos="fade-right"] img {
  transition: transform 0.6s ease;
}

[data-aos="fade-right"] img:hover {
  transform: scale(1.03);
}
/* Base style for the Learn More button */
.learn-btn {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.4s ease;
}

/* Lift slightly + glow on hover */
.learn-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 76, 153, 0.3);
}

/* Animated underline effect */
.learn-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #004C99, #007BFF);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.learn-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Optional subtle gradient on hover */
.learn-btn:hover {
  background: linear-gradient(90deg, #004C99, #0066cc);
}
/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-effect 600ms linear;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
/* Service Card Hover Effect */
.service-card {
  transition: all 0.4s ease;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 76, 153, 0.2);
}

/* Optional subtle glow on hover icon */
.service-card i {
  transition: transform 0.4s ease, color 0.4s ease;
}

.service-card:hover i {
  transform: scale(1.1);
  color: #007BFF;
}
/* View All Services Button */
.view-btn {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.4s ease;
}

/* Lift + glow effect */
.view-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 76, 153, 0.3);
  background: linear-gradient(90deg, #004C99, #0066cc);
}

/* Underline animation */
.view-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #004C99, #007BFF);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.view-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Optional glowing border pulse */
@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 76, 153, 0);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 76, 153, 0.4);
  }
}

.view-btn:hover {
  animation: buttonPulse 1.5s infinite;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main, section, header, footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

img, video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
#sidebar {
  backdrop-filter: blur(10px);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
  will-change: transform;
}

#sidebar ul a {
  letter-spacing: 0.5px;
}

#sidebar ul a:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease, color 0.3s ease;
}
#sidebar {
  max-width: 38vw;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#overlay {
  backdrop-filter: blur(3px);
  transition: opacity 0.3s ease;
}

body.overflow-hidden {
  height: 100vh;
  overflow: hidden;
}
/* === NAVBAR ANIMATION EFFECT === */
/* Holographic engineering overlay for navbar */
.nav-holo-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

#navParticles {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.6;
  filter: blur(0.5px);
}

/* Optional: Glass effect background */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/* ---- navbar holographic overlay (minimal) ---- */
.navbar { position: relative; overflow: visible; z-index: 100; }
.nav-holo-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .7; }
#navParticles { width:100%; height:100%; display:block; }

/* reduce on small screens for perf */
@media (max-width:768px){ .nav-holo-overlay{ opacity:.45 } }
#navParticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}

.navbar {
  position: fixed;
  overflow: hidden;
}
/* === Navbar Scroll Shrink (Clean + Mobile Responsive Fix) === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.4s ease-in-out;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.navbar-shrink {
  height: 65px;
  padding: 0.4rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

/* Logo positioning */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.navbar-shrink .nav-logo {
  transform: translateY(-2px);
}

.navbar-shrink .nav-logo img {
  height: 55px !important;
  width: auto !important;
  transition: all 0.3s ease;
}

.nav-logo span {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hidden-text {
  opacity: 0;
  visibility: hidden;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: all 0.3s ease;
}

.navbar-shrink .nav-links {
  gap: 1.2rem;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  .nav-container {
    max-width: 100%;
    padding: 0 1rem;
    justify-content: space-between;
  }

  .navbar {
    padding: 0.6rem 0.8rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-logo img {
    height: 60px;
  }
}

.nav-links a {
  color: rgb(25, 54, 88);
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.nav-links a:hover {
  color: #007bff;
  transform: translateY(-2px);
}

/* ===== Scroll Progress Glow Line ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.navbar-shrink {
  height: 60px; /* Adjust as you like */
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* The glowing progress bar inside navbar */
.navbar-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00136520, #031979c2);
  box-shadow: 0 0 8px rgb(156, 153, 153);
  transition: width 0.1s ease-out;
}
@media (max-width: 768px) {
  .navbar {
    height: 60px;
    padding: 0.5rem 1rem;
  }

  .navbar-shrink {
    height: 40px !important;
    padding: 0.3rem 0.8rem !important;
  }

  .navbar .nav-logo img {
    height: 55px !important;
    width: 55px !important;
  }

  .navbar-shrink .nav-logo img {
    height: 45px !important;
    width: 45px !important;
  }

  .navbar .nav-links a {
    font-size: 0.9rem;
  }
}
/* === Fix Mobile Top Gap Under Navbar === */
@media (max-width: 768px) {
  body {
    padding-top: 60px !important; /* reduce space below navbar */
  }

  main,
  section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero,
  .banner,
  .page-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
