/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}


/* Image Loading Optimization */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lazy Loading Styles */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy.loaded {
  opacity: 1;
}

/* Image loading placeholder */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* WebP support detection */
.webp .no-webp-fallback { display: none; }
.no-webp .webp-image { display: none; }

/* Preloader */
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* Logo */
.logo img {
  height: 65px !important;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Desktop Menu */
.desktop-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.desktop-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.desktop-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #009990;
  transition: width 0.3s ease;
}

.desktop-menu li a:hover {
  color: #009990;
}

.desktop-menu li a:hover::after {
  width: 100%;
}

/* Modern Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1200;
  transition: all 0.3s ease;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger Animation */
.menu-toggle.active {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  pointer-events: none;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
}

/* Modern Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.mobile-menu.active {
  right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.mobile-logo img {
  height: 60px;
}

/* Modern Close Button */
.close-btn {
  width: 35px;
  height: 35px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: scale(1.1);
}

.close-btn span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: all 0.3s ease;
  display: block;
}

.close-btn span:first-child {
  transform: rotate(45deg);
}

.close-btn span:last-child {
  transform: rotate(-45deg);
}

/* Mobile Navigation Links */
.mobile-nav-links {
  list-style: none;
  padding: 2rem 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 0 25px 25px 0;
  margin-right: 1rem;
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 153, 144, 0.1), rgba(0, 153, 144, 0.05));
  transition: left 0.3s ease;
}

.nav-item:hover::before {
  left: 0;
}

.nav-item:hover {
  color: #009990;
  transform: translateX(5px);
}

.nav-text {
  font-size: 16px;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.mobile-menu-footer p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

body.menu-open {
  overflow: hidden;
}




/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }

  /* Smaller mobile adjustments */
  @media (max-width: 480px) {
    .navbar {
      padding: 1rem;
    }

    .logo img {
      height: 55px !important;
    }

    .mobile-menu {
      width: 280px;
      max-width: 90vw;
    }

    .mobile-menu-header {
      padding: 1.2rem 1.2rem 0.8rem;
    }

    .mobile-logo img {
      height: 30px;
    }

    .close-btn {
      width: 30px;
      height: 30px;
    }

    .close-btn span {
      width: 15px;
    }

    .nav-item {
      padding: 0.8rem 1.2rem;
      font-size: 15px;
    }

    .nav-text {
      font-size: 15px;
    }
  }

  /* Extra small mobile */
  @media (max-width: 375px) {
    .mobile-menu {
      width: 260px;
      max-width: 95vw;
    }

    .nav-item {
      padding: 0.7rem 1rem;
      font-size: 14px;
    }

    .nav-text {
      font-size: 14px;
    }
  }
}





/* ===========================
  KGR EXPORTS Modern Preloader
=========================== */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--lightgreen), var(--teal));
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.preloader-content {
  text-align: center;
  animation: fadeIn 0.6s ease-in;
  backdrop-filter: blur(6px);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,26,110,0.12);
  background: rgba(255,255,255,0.7);
}

.loader-logo {
  width: 90px;
  margin-bottom: 1.5rem;
  animation: pulseGlow 1.5s infinite;
  filter: drop-shadow(0 6px 16px rgba(0, 26, 110, 0.18));
}

.loader-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border: 6px solid #fff;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.12);
}

#preloader p {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.7px;
  animation: fadeInUp 1.4s ease infinite alternate;
  text-shadow: 0 2px 8px #e1ffbb88;
}

/* === Animations === */
@keyframes spin {
  to {
   transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
   transform: scale(1);
   opacity: 0.85;
   filter: drop-shadow(0 0 14px var(--teal));
  }
  50% {
   transform: scale(1.12);
   opacity: 1;
   filter: drop-shadow(0 0 22px var(--teal));
  }
}

@keyframes fadeInUp {
  from {
   opacity: 0.5;
   transform: translateY(10px);
  }
  to {
   opacity: 1;
   transform: translateY(0);
  }
}
