 /* ===== CORE VARIABLES & ANIMATION CONFIG ===== */
    :root {
      --bg-primary: #0A192F;
      --bg-secondary: #112240;
      --bg-tertiary: #1a3a5c;
      --accent-cyan: #00D4FF;
      --accent-cyan-glow: rgba(0, 212, 255, 0.6);
      --accent-green: #39FF14;
      --accent-green-glow: rgba(57, 255, 20, 0.4);
      --text-primary: #FFFFFF;
      --text-secondary: #E5E7EB;
      --text-muted: #8892B0;
      --font-heading: 'Orbitron', sans-serif;
      --font-sub: 'Montserrat', sans-serif;
      --font-body: 'Poppins', sans-serif;
      --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      --transition-smooth: all 0.3s ease;
      --radius: 16px;
      --radius-lg: 24px;
      --shadow-glow: 0 0 12px var(--accent-cyan-glow);
      --shadow-glow-green: 0 0 10px var(--accent-green-glow);
      --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.5);
      --gradient-primary: linear-gradient(135deg, var(--accent-cyan), #0099cc);
      --gradient-glow: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
      --particle-color: rgba(0, 212, 255, 0.4);
    }
  .hero-desc {
  max-width: 680px;
    }
    body {
  letter-spacing: 0.2px;
    }
    .nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-title .title-main {
  font-size: 1.3em; /* Makes NKRAN 30% larger */
  color: var(--accent-cyan);
  display: inline-block;
  letter-spacing: 4px;
  text-shadow: 0 0 20px var(--accent-cyan-glow), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}
.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loader-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.loader-logo h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;          /* Unified size */
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 15px var(--accent-cyan-glow);
  margin-top: 10px;
  animation: logoLoad 1.5s ease-in-out infinite alternate;
}

@keyframes logoLoad {
  from { letter-spacing: 2px; opacity: 0.8; }
  to { letter-spacing: 8px; opacity: 1; }
}
/* ===== NAV LOGO (MATCHES YOUR EXACT HTML) ===== */
.nav-logo {
  display: flex;
  flex-direction: row;        /* Forces image & text side-by-side */
  align-items: center;        /* Vertically centers them */
  gap: 12px;                  /* Space between logo & text */
  text-decoration: none;
}

.nav-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;     /* Stacks NKRAN over DIGITAL HUB */
  line-height: 1.15;
}

.logo-text span {
  font-family: var(--font-heading);
  font-weight: 800;
  display: block;
}

.logo-nkran {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-digital {
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 1.5px;
  margin-top: 2px;
}

@keyframes logoGlow {
  from { text-shadow: 0 0 5px var(--accent-cyan-glow); }
  to { text-shadow: 0 0 15px var(--accent-cyan-glow), 0 0 25px var(--accent-cyan); }
}

/* Hover effect */
.nav-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px var(--accent-cyan-glow)) brightness(1.1);
}









    /* ===== RESET & BASE ===== */
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; scroll-padding-top: 80px; }
    body {
      background: var(--bg-primary);
      color: var(--text-primary);
      font-family: var(--font-body);
      line-height: 1.6;
      overflow-x: hidden;
      position: relative;
    }
    body::before {
      content: '';
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background:
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(57, 255, 20, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(100, 100, 255, 0.04) 0%, transparent 40%);
      z-index: -3;
      animation: bgPulse 20s ease-in-out infinite alternate;
    }
    @keyframes bgPulse {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 1; }
    }
    a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
    ul { list-style: none; }
    img, svg { max-width: 100%; display: block; }

    /* Prevent FOUC - show content immediately */
    .animate-on-scroll {
      opacity: 1 !important;
      transform: none !important;
      animation: none !important;
    }

    /* ===== PARTICLE BACKGROUND ===== */
    #particles-canvas {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: -2;
      pointer-events: none;
    }

    /* ===== NAVIGATION WITH GLASSMORPHISM & HOVER EFFECTS ===== */
    .navbar {
      position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
      padding: 1.2rem 5%;
      background: rgba(10, 25, 47, 0.85);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(0, 212, 255, 0.25);
      display: flex; align-items: center; justify-content: space-between;
      transition: var(--transition);
      animation: slideDown 0.6s ease-out;
    }
    @keyframes slideDown {
      from { transform: translateY(-100%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    .navbar.scrolled {
      padding: 0.8rem 5%;
      background: rgba(10, 25, 47, 0.95);
      box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
      border-bottom-color: var(--accent-cyan);
    }
  /* ===== NAVIGATION LOGO & MENU ===== */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
}

.nav-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-cyan-glow));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text span {
  font-family: var(--font-heading);
  font-weight: 800;
  display: block;
}

.logo-nkran {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-digital {
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 1.5px;
}

.logo-hub {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  letter-spacing: 3px;
  margin-top: 2px;
}

@keyframes logoGlow {
  from { text-shadow: 0 0 5px var(--accent-cyan-glow); }
  to { text-shadow: 0 0 15px var(--accent-cyan-glow), 0 0 25px var(--accent-cyan); }
}

/* Hover effect on logo image */
.nav-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px var(--accent-cyan-glow)) brightness(1.1);
}

/* ===== NAV MENU & LINKS (Preserved & Optimized) ===== */
.nav-menu { display: flex; gap: 2.2rem; }

.nav-link {
  font-family: var(--font-sub);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 50%; left: -5px;
  width: 3px; height: 0;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: var(--transition);
  transform: translateY(-50%);
  opacity: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  transform: translateX(3px);
}

.nav-link:hover::before, .nav-link.active::before {
  height: 70%;
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

    /* Mobile Menu */
    .menu-toggle {
      display: none;
      flex-direction: column;
      gap: 6px;
      cursor: pointer;
      padding: 5px;
      z-index: 1001;
      position: relative;
    }
    .menu-toggle span {
      width: 28px;
      height: 3px;
      background: var(--text-primary);
      border-radius: 3px;
      transition: var(--transition);
      position: relative;
      box-shadow: 0 0 5px var(--accent-cyan-glow);
    }
    .menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(6px, 6px);
      background: var(--accent-cyan);
    }
    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
      transform: translateX(-10px);
    }
    .menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
      background: var(--accent-cyan);
    }
    @media (max-width: 900px) {
      .menu-toggle { display: flex; }
      .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
        flex-direction: column;
        padding: 6rem 2.5rem 2rem;
        transition: var(--transition);
        border-left: 1px solid var(--accent-cyan);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        z-index: 999;
      }
      .nav-menu.active { right: 0; }
      .nav-link {
        font-size: 1.3rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
      }
    }

    /* ===== BUTTONS WITH ADVANCED HOVER EFFECTS ===== */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 1rem 2.2rem;
      border-radius: var(--radius);
      font-family: var(--font-sub);
      font-weight: 700;
      letter-spacing: 0.8px;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      cursor: pointer;
      z-index: 1;
      border: none;
      text-transform: uppercase;
      font-size: 0.9rem;
    }
    .btn::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 100%; height: 100%;
      background: var(--gradient-primary);
      transition: var(--transition);
      z-index: -1;
      opacity: 0;
    }
    .btn::after {
      content: '';
      position: absolute;
      top: 50%; left: 50%;
      width: 0; height: 0;
      background: rgba(255,255,255,0.3);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s ease, height 0.6s ease;
      z-index: -1;
    }
    .btn:hover::after {
      width: 300px; height: 300px;
    }
    .btn-primary {
      background: transparent;
      border: 2px solid var(--accent-cyan);
      color: var(--accent-cyan);
      box-shadow: 0 0 15px var(--accent-cyan-glow);
    }
    .btn-primary:hover {
      color: var(--bg-primary);
      transform: translateY(-4px) scale(1.05);
      box-shadow: var(--shadow-glow), 0 10px 30px rgba(0, 212, 255, 0.4);
    }
    .btn-primary:hover::before {
      left: 0;
      opacity: 1;
    }
    .btn-secondary {
      background: var(--bg-secondary);
      color: var(--text-primary);
      border: 2px solid var(--text-muted);
      position: relative;
      overflow: hidden;
    }
    .btn-secondary::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: var(--gradient-primary);
      opacity: 0;
      transition: var(--transition);
      z-index: -1;
    }
    .btn-secondary:hover {
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    .btn-secondary:hover::before {
      opacity: 0.2;
    }

    /* ===== HERO SECTION WITH MULTI-LAYER ANIMATIONS ===== */
    .hero {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 10rem 5% 6rem;
      position: relative;
      text-align: center;
      overflow: hidden;
    }
    .hero-grid {
      position: absolute;
      inset: 0;
      z-index: -1;
      background-image:
        linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
      background-size: 50px 50px;
      mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 70%);
      animation: gridMove 20s linear infinite;
      opacity: 0.6;
    }
    @keyframes gridMove {
      0% { background-position: 0 0, 0 0; }
      100% { background-position: 50px 50px, 50px 50px; }
    }
    .hero-content {
      max-width: 1000px;
      position: relative;
      z-index: 2;
      animation: fadeInUp 1s ease-out;
    }
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .hero-title {
      font-family: var(--font-heading);
      font-size: clamp(2.5rem, 8vw, 5.5rem);
      font-weight: 900;
      margin-bottom: 1.2rem;
      letter-spacing: 3px;
      line-height: 1.1;
      position: relative;
      animation: titleReveal 1.2s ease-out forwards;
      text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    @keyframes titleReveal {
      0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
      }
      50% {
        opacity: 1;
        transform: translateY(0) scale(1.02);
        filter: blur(0);
      }
      100% {
        transform: translateY(0) scale(1);
      }
    }
    .hero-title::before {
      content: 'NKRAN DIGITAL HUB';
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      color: transparent;
      background: var(--gradient-primary);
      -webkit-background-clip: text;
      background-clip: text;
      animation: textShine 3s ease-in-out infinite;
      opacity: 0;
      z-index: -1;
    }
    @keyframes textShine {
      0%, 100% { opacity: 0; transform: translateX(-100%); }
      50% { opacity: 1; transform: translateX(100%); }
    }
    .hero-slogan {
      font-family: var(--font-sub);
      font-size: clamp(1.3rem, 3vw, 2rem);
      color: var(--accent-green);
      margin-bottom: 1.8rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      animation: sloganGlow 2.5s ease-in-out infinite alternate;
      text-shadow: 0 0 10px var(--accent-green-glow);
    }
    @keyframes sloganGlow {
      from {
        text-shadow: 0 0 5px var(--accent-green-glow);
        transform: scale(1);
      }
      to {
        text-shadow: 0 0 10px var(--accent-green-glow), 0 0 30px var(--accent-green);
        transform: scale(1.03);
      }
    }
    .hero-desc {
      color: var(--text-secondary);
      max-width: 750px;
      margin: 0 auto 2.5rem;
      font-size: clamp(1.05rem, 2vw, 1.25rem);
      line-height: 1.7;
      animation: fadeIn 1.4s ease-out 0.3s forwards;
      opacity: 0;
    }
    @keyframes fadeIn {
      to { opacity: 1; }
    }
    .hero-buttons {
      display: flex;
      gap: 1.2rem;
      justify-content: center;
      flex-wrap: wrap;
      animation: fadeIn 1.4s ease-out 0.6s forwards;
      opacity: 0;
    }
    .hero-buttons .btn {
      animation: buttonFloat 5s ease-in-out infinite;
      animation-delay: calc(var(--i, 0) * 0.3s);
    }
    @keyframes buttonFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    /* Glitch effect on hover for title */

    @keyframes glitch {
      0% { transform: translate(0); }
      20% { transform: translate(-3px, 3px); }
      40% { transform: translate(-3px, -3px); }
      60% { transform: translate(3px, 3px); }
      80% { transform: translate(3px, -3px); }
      100% { transform: translate(0); }
    }

    /* ===== SECTIONS WITH STAGGERED ENTRANCE ANIMATIONS ===== */
    section {
      padding: 6rem 5%;
      max-width: 1400px;
      margin: 0 auto;
      position: relative;
    }
    section::before {
      content: '';
      position: absolute;
      top: -2px; left: 50%;
      transform: translateX(-50%);
      width: 80%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
      opacity: 0.4;
      animation: lineGlow 3s ease-in-out infinite;
    }
    @keyframes lineGlow {
      0%, 100% { opacity: 0.2; }
      50% { opacity: 0.6; }
    }
    .section-header {
      text-align: center;
      margin-bottom: 4.5rem;
      position: relative;
      animation: fadeInUp 0.8s ease-out;
    }
    .section-title {
      font-family: var(--font-heading);
      font-size: clamp(1.8rem, 4.5vw, 3rem);
      margin-bottom: 1.2rem;
      position: relative;
      display: inline-block;
    }
    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px; left: 50%;
      transform: translateX(-50%);
      width: 60%;
      height: 3px;
      background: var(--gradient-primary);
      border-radius: 3px;
      box-shadow: 0 0 10px var(--accent-cyan-glow);
      animation: pulseLine 2s ease-in-out infinite;
    }
    @keyframes pulseLine {
      0%, 100% { width: 60%; opacity: 0.7; }
      50% { width: 80%; opacity: 1; }
    }
    .section-title span {
      color: var(--accent-cyan);
      position: relative;
      display: inline-block;
    }
    .section-title span::after {
      content: '';
      position: absolute;
      bottom: -5px; left: 0;
      width: 100%; height: 2px;
      background: var(--accent-green);
      border-radius: 2px;
      animation: underlineGlow 2s ease-in-out infinite;
    }
    @keyframes underlineGlow {
      0%, 100% { opacity: 0.5; transform: scaleX(0.9); }
      50% { opacity: 1; transform: scaleX(1.1); }
    }
    .section-subtitle {
      color: var(--text-muted);
      max-width: 650px;
      margin: 1.5rem auto 0;
      font-size: 1.1rem;
      animation: fadeIn 1s ease-out 0.3s forwards;
      opacity: 0;
    }

    /* ===== CARDS WITH 3D HOVER & GLOW EFFECTS ===== */
    .card-grid {
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
      perspective: 1000px;
    }
    .card {
      background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
      border: 1px solid rgba(0, 212, 255, 0.25);
      border-radius: var(--radius-lg);
      padding: 2.2rem;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      transform-style: preserve-3d;
      animation: cardEntrance 0.7s ease-out forwards;
      opacity: 0;
      transform: translateY(30px) rotateX(5deg);
    }
    @keyframes cardEntrance {
      to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
      }
    }
    .card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent 40%);
      opacity: 0;
      transition: var(--transition);
      z-index: 0;
      transform: translateZ(-1px);
    }
    .card::after {
      content: '';
      position: absolute;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
      opacity: 0;
      transition: var(--transition);
      z-index: 0;
      pointer-events: none;
    }
    .card:hover {
      transform: translateY(-8px) scale(1.02);
      border-color: var(--accent-cyan);
      box-shadow: var(--shadow-glow), var(--shadow-hover);
      z-index: 10;
    }
    .card:hover::before {
      opacity: 1;
    }
    .card:hover::after {
      opacity: 1;
      animation: ripple 1s ease-out;
    }
    @keyframes ripple {
      0% { transform: scale(0); opacity: 0.8; }
      100% { transform: scale(1); opacity: 0; }
    }
    .card-content {
      position: relative;
      z-index: 2;
      transform: translateZ(20px);
    }
    .card-icon {
      width: 65px; height: 65px;
      background: rgba(0, 212, 255, 0.15);
      border-radius: 16px;
      display: grid; place-items: center;
      margin-bottom: 1.8rem;
      color: var(--accent-cyan);
      font-size: 1.8rem;
      border: 1px solid rgba(0, 212, 255, 0.3);
      box-shadow: 0 0 15px var(--accent-cyan-glow);
      transition: var(--transition);
      position: relative;
      animation: iconPulse 3s ease-in-out infinite;
    }
    @keyframes iconPulse {
      0%, 100% { box-shadow: 0 0 15px var(--accent-cyan-glow); }
      50% { box-shadow: 0 0 25px var(--accent-cyan-glow), 0 0 35px var(--accent-cyan); }
    }
    .card:hover .card-icon {
      transform: scale(1.15) rotate(5deg);
      background: rgba(0, 212, 255, 0.25);
      box-shadow: 0 0 25px var(--accent-cyan-glow), 0 0 40px var(--accent-cyan);
    }
    .card h3 {
      font-family: var(--font-sub);
      font-size: 1.4rem;
      margin-bottom: 1rem;
      color: var(--text-primary);
      position: relative;
      display: inline-block;
    }
    .card h3::after {
      content: '';
      position: absolute;
      bottom: -5px; left: 0;
      width: 0; height: 2px;
      background: var(--accent-cyan);
      transition: var(--transition);
      border-radius: 2px;
    }
    .card:hover h3::after {
      width: 100%;
    }
    .card p {
      color: var(--text-secondary);
      font-size: 1rem;
      line-height: 1.7;
      transition: var(--transition-smooth);
    }
    .card:hover p {
      color: var(--text-primary);
    }

    /* Staggered card animations */
    .card:nth-child(1) { animation-delay: 0.1s; }
    .card:nth-child(2) { animation-delay: 0.2s; }
    .card:nth-child(3) { animation-delay: 0.3s; }
    .card:nth-child(4) { animation-delay: 0.4s; }
    .card:nth-child(5) { animation-delay: 0.5s; }
    .card:nth-child(6) { animation-delay: 0.6s; }

    /* ===== FEATURES SECTION WITH ICON ANIMATIONS ===== */
    .features {
      display: grid;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      margin-top: 2.5rem;
    }
    .feature {
      display: flex;
      align-items: flex-start;
      gap: 1.2rem;
      padding: 1.5rem;
      border-radius: var(--radius);
      background: rgba(0, 212, 255, 0.05);
      border-left: 3px solid var(--accent-cyan);
      transition: var(--transition);
      animation: featureEntrance 0.6s ease-out forwards;
      opacity: 0;
      transform: translateX(-20px);
    }
    @keyframes featureEntrance {
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }
    .feature:hover {
      background: rgba(0, 212, 255, 0.12);
      transform: translateX(5px);
      border-left-color: var(--accent-green);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    .feature-icon {
      color: var(--accent-green);
      font-weight: bold;
      min-width: 24px;
      font-size: 1.3rem;
      animation: iconBounce 2s ease-in-out infinite;
    }
    @keyframes iconBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
    .feature:nth-child(1) { animation-delay: 0.1s; }
    .feature:nth-child(2) { animation-delay: 0.2s; }
    .feature:nth-child(3) { animation-delay: 0.3s; }
    .feature:nth-child(4) { animation-delay: 0.4s; }

    /* ===== PROJECTS SECTION WITH HOVER REVEAL ===== */
    #projects .card {
      background: linear-gradient(145deg, rgba(17, 34, 64, 0.9), rgba(26, 58, 92, 0.95));
      border: 1px solid rgba(57, 255, 20, 0.2);
    }
    #projects .card:hover {
      border-color: var(--accent-green);
      box-shadow: var(--shadow-glow-green), var(--shadow-hover);
    }
    #projects .card h3 {
      color: var(--accent-green);
    }
    #projects .card h3::after {
      background: var(--accent-green);
    }

    /* ===== TRUST SECTION WITH FLOATING BADGES ===== */
    #trust {
      text-align: center;
      position: relative;
    }
    #trust > div {
      display: flex;
      justify-content: center;
      gap: 2rem;
      flex-wrap: wrap;
      margin-top: 3rem;
    }
    #trust > div > div {
      padding: 1.5rem 2.2rem;
      background: rgba(255,255,255,0.06);
      border-radius: 12px;
      border: 1px solid rgba(0, 212, 255, 0.2);
      transition: var(--transition);
      animation: badgeFloat 4s ease-in-out infinite;
      opacity: 0.85;
    }
    @keyframes badgeFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    #trust > div > div:nth-child(2) { animation-delay: 0.5s; }
    #trust > div > div:nth-child(3) { animation-delay: 1s; }
    #trust > div > div:hover {
      opacity: 1;
      transform: translateY(-8px) scale(1.05);
      background: rgba(0, 212, 255, 0.15);
      border-color: var(--accent-cyan);
      box-shadow: var(--shadow-glow);
    }

    /* ===== CTA SECTION WITH PULSE BACKGROUND ===== */
    #cta {
      background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(57,255,20,0.08), transparent);
      border-radius: var(--radius-lg);
      text-align: center;
      padding: 4.5rem 2.5rem;
      margin: 5rem auto;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(0, 212, 255, 0.3);
      animation: ctaPulse 8s ease-in-out infinite;
    }
    @keyframes ctaPulse {
      0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
      50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(57, 255, 20, 0.4); }
    }
    #cta::before {
      content: '';
      position: absolute;
      top: -50%; left: -50%;
      width: 200%; height: 200%;
      background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
      animation: rotateGradient 15s linear infinite;
      z-index: -1;
    }
    @keyframes rotateGradient {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    #cta h2 {
      font-family: var(--font-heading);
      margin-bottom: 1.2rem;
      font-size: clamp(1.8rem, 4vw, 2.5rem);
      animation: textPop 1.5s ease-out;
    }
    @keyframes textPop {
      0% { transform: scale(0.95); opacity: 0; }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); opacity: 1; }
    }
    #cta p {
      color: var(--text-secondary);
      margin-bottom: 2.2rem;
      font-size: 1.15rem;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    /* ===== FOOTER WITH ANIMATED LINKS ===== */
    .footer {
      background: linear-gradient(to bottom, var(--bg-primary), #050B14);
      padding: 4rem 5% 2rem;
      border-top: 1px solid rgba(0, 212, 255, 0.2);
      position: relative;
    }
    .footer::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 1px;
      background: var(--gradient-glow);
      animation: glowLine 3s ease-in-out infinite;
    }
    .footer-grid {
      display: grid;
      gap: 2.5rem;
      max-width: 1200px;
      margin: 0 auto;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .footer-col h4 {
      font-family: var(--font-sub);
      color: var(--accent-cyan);
      margin-bottom: 1.5rem;
      font-size: 1.3rem;
      position: relative;
      display: inline-block;
    }
    .footer-col h4::after {
      content: '';
      position: absolute;
      bottom: -8px; left: 0;
      width: 40px; height: 2px;
      background: var(--accent-green);
      border-radius: 2px;
      animation: pulseLine 2s ease-in-out infinite;
    }
    .footer-col p {
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 1.5rem;
    }
    .footer-col ul li {
      margin-bottom: 0.9rem;
      position: relative;
      padding-left: 18px;
    }
    .footer-col ul li::before {
      content: '▹';
      position: absolute;
      left: 0;
      color: var(--accent-cyan);
      font-weight: bold;
      animation: arrowBounce 1.5s ease-in-out infinite;
    }
    @keyframes arrowBounce {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(3px); }
    }
    .footer-col ul li a {
      transition: var(--transition-smooth);
      position: relative;
      display: inline-block;
    }
    .footer-col ul li a:hover {
      color: var(--accent-cyan);
      transform: translateX(4px);
    }
    .footer-col ul li a::after {
      content: '';
      position: absolute;
      bottom: -2px; left: 0;
      width: 0; height: 1px;
      background: var(--accent-cyan);
      transition: var(--transition-smooth);
    }
    .footer-col ul li a:hover::after {
      width: 100%;
    }
    .social-links {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }
    .social-links a {
      width: 42px; height: 42px;
      border: 1px solid var(--text-muted);
      border-radius: 50%;
      display: grid;
      place-items: center;
      transition: var(--transition);
      font-size: 1.1rem;
      position: relative;
      overflow: hidden;
    }
    .social-links a::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--gradient-primary);
      opacity: 0;
      transition: var(--transition);
      z-index: -1;
    }
    .social-links a:hover {
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      transform: translateY(-5px) scale(1.1);
      box-shadow: var(--shadow-glow);
    }
    .social-links a:hover::before {
      opacity: 0.2;
    }
    .copyright {
      text-align: center;
      padding-top: 3rem;
      margin-top: 3rem;
      border-top: 1px solid rgba(255,255,255,0.08);
      color: var(--text-muted);
      font-size: 0.9rem;
      position: relative;
    }
    .copyright::after {
      content: '';
      position: absolute;
      bottom: -1px; left: 50%;
      transform: translateX(-50%);
      width: 100px; height: 1px;
      background: var(--gradient-glow);
      animation: glowLine 2.5s ease-in-out infinite;
    }

/* ===== WHATSAPP FLOAT - SPINNING RING ON HOVER ONLY ===== */
.whatsapp-float {
  position: fixed; /* Keeps the button pinned to the corner */
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: whatsappPulse 3s ease-in-out infinite;
}

.whatsapp-float img,
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
  fill: white;
}

.whatsapp-float span {
  display: none;
}

/* Spinning ring — HIDDEN by default, animation paused */
.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-cyan, #00D4FF);
  border-bottom-color: var(--accent-green, #39FF14);
  opacity: 0;                                      /* Hidden at rest */
  animation: spin 2.5s linear infinite paused;     /* Paused until hover */
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth, lightweight pulse */
@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
    transform: translateY(-4px);
  }
}

/* Hover: pauses pulse, lifts button, reveals & speeds up the spinning ring */
.whatsapp-float:hover {
  animation: none;
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-float:hover::after {
  opacity: 1;
  animation-play-state: running;  /* Start spinning on hover */
  animation-duration: 1.2s;       /* Faster spin for a dynamic feel */
}
    /* ===== LOADING ANIMATION (Shown briefly on load) ===== */
    .loader {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: var(--bg-primary);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    .loader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .loader-content {
      text-align: center;
    }

    .loader-bar {
      width: 200px;
      height: 4px;
      background: rgba(255,255,255,0.1);
      border-radius: 2px;
      overflow: hidden;
      position: relative;
    }
    .loader-bar::after {
      content: '';
      position: absolute;
      top: 0; left: 0;
      height: 100%;
      width: 0;
      background: var(--gradient-primary);
      animation: loadProgress 1.8s ease-in-out forwards;
      box-shadow: 0 0 10px var(--accent-cyan-glow);
    }
    @keyframes loadProgress {
      0% { width: 0; }
      30% { width: 30%; }
      70% { width: 85%; }
      100% { width: 100%; }
    }



    @keyframes cursorPulse {
      0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
      50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    }


    /* ===== RESPONSIVE ANIMATIONS ===== */
    @media (max-width: 768px) {
      .hero-title { font-size: clamp(2.2rem, 8vw, 4rem); }
      .hero-buttons { flex-direction: column; align-items: center; }
      .btn { width: 100%; max-width: 300px; }
      .card-grid { grid-template-columns: 1fr; }
      .features { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; text-align: center; }
      .social-links { justify-content: center; }
      .cursor-follower { display: none !important; } /* Disable on touch devices */
    }

    /* ===== REDUCED MOTION PREFERENCE ===== */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }

    }

    /* ===== UTILITY CLASSES FOR JS ANIMATIONS ===== */
    .animate-in { animation: fadeInUp 0.8s ease-out forwards; }
    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.2s; }
    .delay-3 { animation-delay: 0.3s; }
    .delay-4 { animation-delay: 0.4s; }
    .delay-5 { animation-delay: 0.5s; }

    /* Scroll progress indicator */
    .scroll-progress {
      position: fixed;
      top: 0; left: 0;
      height: 3px;
      background: var(--gradient-primary);
      z-index: 1001;
      width: 0%;
      transition: width 0.1s ease;
      box-shadow: 0 0 10px var(--accent-cyan-glow);
    }
/* ===== HERO SECTION (FULL-SCREEN BACKGROUND SLIDER) ===== */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center; /* Centers everything */
  padding: 10rem 5% 6rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Full-Screen Image Slider Background */
/* ===== HERO SECTION - FULLY RESPONSIVE ===== */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 10rem 5% 6rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Full-Screen Image Slider Background */
.hero-image-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-image-slider img.active {
  opacity: 0.6;
  z-index: 2;
}

/* Grid Overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black 20%, transparent 70%);
  animation: gridMove 20s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px; }
}

/* ===== TABLET RESPONSIVENESS ===== */
@media (max-width: 900px) {
  .hero {
    padding: 9rem 5% 5rem;
  }

  .hero-image-slider img {
    object-position: center 40%;
  }
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 8rem 4% 4rem;
  }

  /* Optimize images for mobile - focus on center-top area */
  .hero-image-slider img {
    object-fit: cover;
    object-position: center 30%;
    width: 100%;
    height: 100%;
  }

  /* Reduce grid density for better mobile performance */
  .hero-grid {
    background-size: 40px 40px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 70% 70% at center, black 30%, transparent 70%);
  }

  /* Slightly darken overlay on mobile for better text contrast */
  .hero-image-slider img.active {
    opacity: 0.5;
  }
}

/* ===== SMALL MOBILE DEVICES ===== */
@media (max-width: 480px) {
  .hero {
    padding: 7rem 4% 3rem;
    min-height: 100vh;
  }

  /* Further optimize image positioning for small screens */
  .hero-image-slider img {
    object-position: center 25%;
  }

  /* Reduce grid even more for performance */
  .hero-grid {
    background-size: 30px 30px;
    opacity: 0.4;
  }

  /* Disable complex animations on low-end devices */
  @media (prefers-reduced-motion: reduce) {
    .hero-grid {
      animation: none;
    }

    .hero-image-slider img {
      transition: opacity 0.8s ease-in-out;
    }
  }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 6rem 5% 2rem;
  }

  .hero-image-slider img {
    object-position: center center;
  }

  .hero-grid {
    mask-image: radial-gradient(ellipse 60% 80% at center, black 40%, transparent 70%);
  }
}

/* ===== LARGE DESKTOP ===== */
@media (min-width: 1920px) {
  .hero-grid {
    background-size: 60px 60px;
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
  /* Reduce animation complexity on mobile */
  .hero-image-slider img.active {
    animation: none; /* Remove Ken Burns on mobile if you have it */
  }
}

/* Ensure smooth rendering on all devices */
.hero,
.hero-image-slider,
.hero-image-slider img,
.hero-grid {
  will-change: auto;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Text Content - Centered on Top */
.hero-content {
  max-width: 1000px;
  position: relative;
  z-index: 4; /* Top layer - above grid and images */
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: 3px;
  line-height: 1.1;
  position: relative;
  animation: titleReveal 1.2s ease-out forwards;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@keyframes titleReveal {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); filter: blur(10px); }
  50% { opacity: 1; transform: translateY(0) scale(1.02); filter: blur(0); }
  100% { transform: translateY(0) scale(1); }
}

.hero-title .title-main {
  color: var(--accent-cyan);
  display: inline-block;
  letter-spacing: 4px;
  text-shadow: 0 0 20px var(--accent-cyan-glow), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
  font-family: var(--font-sub);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--accent-green);
  margin-bottom: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: sloganGlow 2.5s ease-in-out infinite alternate;
  text-shadow: 0 0 10px var(--accent-green-glow), 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes sloganGlow {
  from { text-shadow: 0 0 5px var(--accent-green-glow), 0 2px 10px rgba(0, 0, 0, 0.5); transform: scale(1); }
  to { text-shadow: 0 0 10px var(--accent-green-glow), 0 0 30px var(--accent-green), 0 2px 15px rgba(0, 0, 0, 0.5); transform: scale(1.03); }
}

.hero-desc {
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  animation: fadeIn 1.4s ease-out 0.3s forwards;
  opacity: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Helps readability */
}

@keyframes fadeIn { to { opacity: 1; } }

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1.4s ease-out 0.6s forwards;
  opacity: 0;
}

/* ===== PROJECT CARDS ===== */
.card-image-wrapper {
  width: calc(100% + 4.4rem);
  margin: -2.2rem -2.2rem 1.5rem -2.2rem;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  transition: var(--transition);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan-glow);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.85) contrast(1.1);
}

.card:hover .card-image-wrapper img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2);
}

/* ===== CLIENT LOGOS ===== */
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.client-logos img {
  height: 60px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.client-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-5px);
}

.trust-text-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    padding: 8rem 5% 4rem;
  }

  .card-image-wrapper {
    height: 160px;
  }
}