:root {
  /* GLOBAL COLORS */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-dim: #64748b;
  --accent: #2563eb;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  
  /* NAV BAR LOGIC - LIGHT THEME (Nav becomes Dark) */
  --nav-bg: #0f172a; 
  --nav-text: #ffffff;
  
  /* FOOTER LINKS */
  --footer-link: #2563eb;
  --scale: 1;
}

body {
    -webkit-user-select: none; /* Safari browser ke liye */
    -moz-user-select: none;    /* Firefox ke liye */
    -ms-user-select: none;     /* Internet Explorer/Edge ke liye */
    user-select: none;         /* Standard syntax (Chrome, Opera, aur baki modern browsers) */
}

[data-theme="dark"] {
  /* GLOBAL COLORS */
  --bg: #020617;
  --bg-alt: #070b1d;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --card-bg: #0f172a;
  --border: #1e293b;
  
  /* NAV BAR LOGIC - DARK THEME (Nav becomes White) */
  --nav-bg: #ffffff; 
  --nav-text: #0f172a;
  
  /* FOOTER LINKS */
  --footer-link: #60a5fa;
}

/* BASIC SETUP */
body { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; transition: background-color 0.3s, color 0.3s; zoom: var(--scale); }
.container { width: 90%; max-width: 1100px; margin: auto; }
ul { list-style: none; padding: 0; }
a { text-decoration: none; }

/* NAV BAR */
.nav { 
  padding: 15px 0; 
  background: var(--nav-bg); 
  border-bottom: 1px solid var(--border); 
  position: sticky; top: 0; z-index: 1000; 
  transition: background-color 0.4s ease;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 22px; font-weight: 800; color: var(--nav-text); transition: color 0.4s ease; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--nav-text); font-weight: 600; font-size: 14px; opacity: 0.9; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }

/* THE AVERON APPROACH (FIXED GRID & HOVER) */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.p-card {
  background: var(--card-bg); padding: 40px; border-radius: 20px; border: 1px solid var(--border);
  position: relative; overflow: hidden; transition: all 0.4s ease;
}
.p-num { font-size: 3rem; font-weight: 800; opacity: 0.1; margin-bottom: 10px; transition: 0.4s; color: var(--text); }
.p-card h3 { font-size: 1.5rem; margin-bottom: 15px; position: relative; z-index: 2; }
.p-card p { color: var(--text-dim); position: relative; z-index: 2; line-height: 1.6; }
.p-glow {
  position: absolute; width: 150px; height: 150px; background: var(--accent);
  filter: blur(80px); bottom: -75px; right: -75px; opacity: 0; transition: 0.5s; border-radius: 50%;
}
.p-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.p-card:hover .p-num { opacity: 0.3; transform: scale(1.1); color: var(--accent); }
.p-card:hover .p-glow { opacity: 0.15; }

/* FOOTER QUICK LINKS (FIXED) */
.quick-links li { margin-bottom: 15px; }
.quick-links a {
  color: var(--text-dim); font-weight: 500;
  display: inline-flex; align-items: center; transition: all 0.3s ease;
}
.quick-links a::before {
  content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  margin-right: 0; opacity: 0; transition: 0.3s; color: var(--footer-link);
  font-size: 12px; width: 0; overflow: hidden;
}
.quick-links a:hover { color: var(--footer-link); transform: translateX(5px); }
.quick-links a:hover::before { opacity: 1; margin-right: 8px; width: auto; overflow: visible; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 12px; font-weight: 700; transition: 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(83, 209, 255, 0.3); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.nav-cta { padding: 10px 20px; border-radius: 8px; font-size: 14px; }

/* MISC SECTIONS */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.hero { padding: 80px 0; }
.hero-flex { display: flex; align-items: center; gap: 50px; }
.badge { display: inline-block; padding: 8px 16px; background: rgba(37, 99, 235, 0.1); color: var(--accent); border-radius: 50px; font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.floating { animation: float 6s ease-in-out infinite; width: 100%; max-width: 500px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { padding: 40px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; transition: 0.3s; }
.card i { font-size: 2rem; color: var(--accent); margin-bottom: 20px; }
.cta-card { background: #0f172a; border-radius: 30px; padding: 60px; color: white; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.btn-premium { background: white; color: #0f172a; padding: 16px 32px; border-radius: 12px; font-weight: 700; }
.footer { background: #010409; color: #94a3b8; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.social-icons a { color: white; margin-right: 15px; font-size: 1.2rem; }
/* Service Card Base */
.grid .card {
  padding: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  cursor: pointer;
}

/* Hover Effect: Lift and Deep Shadow */
.grid .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #2563eb; /* Subtle blue border on hover */
}

/* Icon Animation */
.grid .card i {
  font-size: 2.2rem;
  color: #2563eb;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.4s ease;
}

.grid .card:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Text Transitions */
.grid .card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 700;
}

.grid .card p {
  color: #64748b;
  line-height: 1.6;
}

/* --- Modal Overlay Fix --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.9); /* Matching your dark theme bg */
  backdrop-filter: blur(8px);
  display: none; /* Initially Hidden */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* --- Polished Input Box --- */
.modal-box {
  background: #0f172a; /* Matching --bg-alt */
  padding: 40px;
  border-radius: 24px;
  width: 95%;
  max-width: 500px;
  border: 1px solid #1e293b; /* Matching --border */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  color: #f1f5f9;
}

.modal-box h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #fff;
  font-weight: 700;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 24px;
  cursor: pointer;
  color: #94a3b8;
  transition: 0.3s;
}

.close-btn:hover { color: #fff; }

/* --- Input Fields Styling --- */
#ctaForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

#ctaForm input, #ctaForm textarea {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: 0.3s;
}

#ctaForm input:focus, #ctaForm textarea:focus {
  outline: none;
  border-color: #3b82f6; /* Matching --accent */
  background: #1e293b;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-send {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

.btn-send:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* --- CTA CARD BASE (Your File Reference) --- */
.cta-card {
  background: #0f172a;
  border-radius: 30px;
  padding: 60px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Card Hover: Subtle Lift */
.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* --- ROCKET ANIMATION LOGIC --- */
.cta-visual {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rocket-main {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(-45deg); /* Default angle */
  transition: 0.3s ease;
  z-index: 2;
}

/* Hover Effect: Rocket Launch */
.cta-card:hover .rocket-main {
  animation: rocketLaunch 1.5s forwards cubic-bezier(0.42, 0, 0.58, 1);
}

@keyframes rocketLaunch {
  0% { transform: rotate(-45deg) translate(0, 0); }
  15% { transform: rotate(-43deg) translate(2px, -2px); } /* Initial Rumble/Shake */
  30% { transform: rotate(-47deg) translate(-2px, 2px); } /* Initial Rumble/Shake */
  100% { transform: rotate(-45deg) translate(600px, -600px) scale(1.5); opacity: 0; }
}

/* --- BUTTON HOVER EFFECT --- */
.btn-premium {
  background: white;
  color: #0f172a;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 3;
}

.btn-premium i {
  transition: transform 0.3s ease;
}

.btn-premium:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  background: var(--accent); /* Change to blue on hover */
  color: white;
}

.btn-premium:hover i {
  transform: rotate(15deg) scale(1.2);
}

/* --- EXHAUST FUMES (Optional Visual) --- */
.cta-card:hover .exhaust-fumes {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(15px);
  animation: fumeFade 1s infinite;
}

@keyframes fumeFade {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(5); opacity: 0; }
}


/* THEME SWITCH BUTTON (UPGRADED) */
.theme-switch {
  width: 64px; 
  height: 32px; 
  background: #e2e8f0; 
  border-radius: 50px; 
  border: none;
  cursor: pointer; 
  position: relative; 
  padding: 4px; 
  transition: background-color 0.4s ease; /* Background change transition */
  display: flex; 
  align-items: center;
}

.switch-handle {
  width: 24px; 
  height: 24px; 
  background: white; 
  border-radius: 50%;
  position: absolute; 
  left: 4px; 
  top: 4px; 
  /* Cubic-bezier for bouncy/smooth movement */
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Jab switch dabaya jaye (Active State) */
.theme-switch:active .switch-handle {
  width: 30px; /* Thoda stretch hoga click par */
}

.sun-icon { 
  color: #f59e0b; 
  display: block; 
  transition: transform 0.4s ease;
}

.moon-icon { 
  color: #1e293b; 
  display: none; 
  transition: transform 0.4s ease;
}

/* DARK MODE STATE */
[data-theme="dark"] .theme-switch { 
  background: #334155; 
}

[data-theme="dark"] .switch-handle { 
  left: 36px; /* Moves to Right */
  background: #0f172a; 
}

[data-theme="dark"] .sun-icon { 
  display: none; 
}

[data-theme="dark"] .moon-icon { 
  display: block; 
  color: #60a5fa; 
  transform: rotate(-15deg); /* Moon thoda tilt hokar aayega */
}

/* Hover lift effect */
.theme-switch:hover {
  filter: brightness(1.05);
}

.cta-section {
    padding-bottom: 15px;
}

/* --- HERO BUTTONS BASE --- */
.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
  position: relative;
  overflow: hidden;
}

/* Primary Button (Blue) */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i {
  transform: translateX(5px); /* Arrow moves right */
}

/* Outline Button (Border) */
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-5px);
}

/* Click Ripple Effect */
.btn:active {
  transform: scale(0.95);
}

/* 1. Sabse pehle variables define karo (Forcefully) */
:root {
  --card-bg: #ffffff !important;
  --text-main: #1e293b !important;
  --text-muted: #64748b !important;
}

/* 2. Dark mode variables override */
[data-theme="dark"] {
  --card-bg: #1e293b !important;
  --text-main: #f8fafc !important;
  --text-muted: #94a3b8 !important;
}

/* 3. Cards par variables apply karo */
.card {
  background-color: var(--card-bg) !important;
  padding: 30px;
  border-radius: 20px;
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card h3 {
  color: var(--text-main) !important;
}

.card p {
  color: var(--text-muted) !important;
}

/* Brand text ko force karna ki wo humesha white rahe */
#brandFooter {
  color: #ffffff !important; /*Hardcoded white */
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Span (LABS) ka color agar tumne blue rakha hai toh use bhi yahan set kar sakte ho */
.brand span {
  color: var(--accent); /* Accent blue humesha dikhta hai dono themes par */
}

/* By default desktop par hamburger hide rakhein */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 19px;
    color: var(--nav-text);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
      box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.16);
}

.menu-toggle:active { transform: translateY(0) scale(0.92); }

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.menu-toggle i {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s ease;
}

.menu-toggle i.fa-times { transform: rotate(180deg); color: var(--accent); }

/* Button glows once the menu is actually open (works with the existing
   navLinks.active toggle in script.js — no JS changes needed) */
body:has(.nav-links.active) .menu-toggle {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.16);
}

/* Blocker Overlay - Full Screen */
#desktop-enforcer {
    display: none; /* Desktop par hidden */
    position: fixed;
    inset: 0;
    background: #0b0f19; /* Solid dark background */
    z-index: 10000; /* Sabse upar */
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: white;
}

.enforcer-content i {
    font-size: 60px;
    color: #2563eb;
    margin-bottom: 20px;
}

.enforcer-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.enforcer-content p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.5;
}

/* Loader Animation */
.loader {
    margin-top: 30px;
    border: 3px solid #1e293b;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* MEDIA QUERY: Sirf Mobile par ye overlay dikhega */
@media (max-width: 768px) {
    #desktop-enforcer {
        display: flex; /* Mobile screen detect hote hi block kar dega */
    }
    
    /* Mobile par baaki content hide karne ke liye safety */
    body {
        overflow: hidden;
    }
}

/* Jab user Desktop Mode on karega, toh width 1024px+ ho jayegi aur ye automatic hide ho jayega */
@media (min-width: 1024px) {
    #desktop-enforcer {
        display: none !important;
    }
    body {
        overflow: auto;
    }
}

/* Brand consistency - ensures brand name/logo stays white regardless of theme */
#brandFooter {
    color: #ffffff !important;
}

/* --- Updated Contact List with Exact Blue Shade --- */
:root {
    --primary-blue: #2563eb; /* Image se match kiya gaya exact blue code */
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.contact-list li {
    margin-bottom: 15px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover Effect: Text aur Icon transition */
.contact-list a:hover {
    color: var(--footer-link);
    transform: translateX(5px);
}

/* Icon specific animation */
.contact-list a i {
    width: 20px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 0px var(--primary-blue));
}

.contact-list a:hover i {
    transform: scale(1.3) rotate(-10deg); /* Zoom aur subtle tilt effect */
    /* Neon Blue Glow: Image se matching shadow */
    filter: drop-shadow(0 0 8px var(--primary-blue)); 
}

/* Social Icons Container */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.1); /* Light blue tint background */
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

/* Best Hover Effect: Glow + Lift + Color Change */
.social-icons a:hover {
    background: var(--bg-color);
    color: #2563eb; /* Image wala exact blue */
    transform: translateY(-5px); /* Upar ki taraf lift */
    border-color: #2563eb;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3), 
                0 0 12px rgba(37, 99, 235, 0.5); /* Neon blue glow */
}

/* Icon rotation on hover */
.social-icons a:hover i {
    transform: scale(1.1);
}


/* Content area ke aakhir mein space add karein */
.content-area {
    flex: 1;
    padding-bottom: 50vh; /* Ye page ke niche 50% screen ki jagah khali chhod dega */
}

/* --- Logo Theme Switching Logic --- */

/* Jab theme light ho (data-theme="light") */
html[data-theme="light"] .hero-image .logo-dark {
    display: none;
}
html[data-theme="light"] .hero-image .logo-light {
    display: block;
}

/* Jab theme dark ho (data-theme="dark") */
html[data-theme="dark"] .hero-image .logo-light {
    display: none;
}
html[data-theme="dark"] .hero-image .logo-dark {
    display: block;
}

#desktop-enforcer { display: none !important; }
body { overflow-x: hidden !important; overflow-y: auto !important; }

/* Padding/border ab width ke andar hi count honge - narrow screens par overflow rokta hai */
*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   Tablets & small laptops (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav-inner { position: relative; }

  /* Dimmed, blurred backdrop behind the open panel — pure CSS,
     driven by the same .active class script.js already toggles */
  body:has(.nav-links.active)::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 997;
    animation: navOverlayIn 0.4s ease forwards;
  }
  @keyframes navOverlayIn { from { opacity: 0; } to { opacity: 1; } }

  body:has(.nav-links.active) { overflow: hidden; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    width: min(80vw, 340px);
    margin: 0;
    padding: 104px 30px 40px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    border-top: none;
    border-bottom: none;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-height: none;
    overflow-y: auto;
    opacity: 1;
    transform: translateX(100%);
    z-index: 999;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
  }
  .nav-links.active {
    transform: translateX(0);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  }

  .nav-links a:not(.nav-cta) {
    width: 100%;
    padding: 14px 4px;
    box-sizing: border-box;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease, padding-left 0.25s ease;
  }
  .nav-links a:not(.nav-cta):hover { padding-left: 8px; }
  .nav-links.active a:not(.nav-cta) { opacity: 1; transform: translateX(0); }
  .nav-links.active a:not(.nav-cta):nth-of-type(1) { transition-delay: 0.08s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(2) { transition-delay: 0.14s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(3) { transition-delay: 0.20s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(4) { transition-delay: 0.26s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(5) { transition-delay: 0.32s; }

  .nav-links .theme-switch {
    margin: 18px 0 12px;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease 0.36s, transform 0.4s ease 0.36s;
  }
  .nav-links.active .theme-switch { opacity: 1; transform: translateX(0); }

  .nav-links .nav-cta {
    justify-content: center;
    margin: 8px 0 0;
    width: 100%;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease 0.42s, transform 0.4s ease 0.42s;
  }
  .nav-links.active .nav-cta { opacity: 1; transform: translateX(0); }

  .menu-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle, .menu-toggle i, .nav-links, .nav-links a,
  .nav-links .theme-switch, .nav-links .nav-cta {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   Mobile phones (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 50px 0 30px; }
  .section { padding: 50px 0; }

  .hero-flex { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content { order: 1; }
  .hero-image { order: 2; }
  .hero-btns { justify-content: center; }
  .hero-image img { max-width: 280px; width: 100%; height: auto; }

  .p-card, .modal-box { padding: 28px; }

  .cta-card { flex-direction: column; text-align: center; padding: 40px 28px; gap: 30px; }
  .cta-visual { width: 110px; height: 110px; }
  .rocket-main { font-size: 3rem; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 35px; }
  .footer-brand { grid-column: auto; }
  .social-icons { justify-content: center; }
  .contact-list a { justify-content: center; }
}

/* ============================================================
   Small phones (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .grid, .process-grid { grid-template-columns: 1fr; }

  .modal-box { padding: 24px; width: 92%; }
  .input-row { grid-template-columns: 1fr; }
}
/* ============================================================
   NEW HOME SECTIONS — Why Averon Labs / Industries / Tech / FAQs
   ============================================================ */

/* ---------- Horizontal auto-scrolling marquee cards ---------- */
.marquee-wrap {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 10px 0 20px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 24px;
  padding: 0 24px;
  animation: marqueeScroll 38s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mq-card {
  flex: 0 0 300px;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.mq-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), #60a5fa 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.mq-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
  border-color: transparent;
}
.mq-card:hover::after { opacity: 1; }

.mq-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 21px;
  margin-bottom: 20px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    background 0.35s ease, color 0.35s ease;
}
.mq-card:hover .mq-icon { transform: scale(1.14) rotate(-8deg); background: var(--accent); color: #fff; }
.mq-card h3 { font-size: 1.12rem; margin: 0 0 10px; }
.mq-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }

/* ---------- Technologies: horizontally scrollable tab strip ---------- */
.tech-tabs-shell {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
}

.tech-tab-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tech-tab-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}
.tech-tab-arrow:active { transform: translateY(0) scale(0.94); }
.tech-tab-arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; transform: none; background: var(--card-bg); color: var(--text-dim); border-color: var(--border); }

.tech-tabs-wrap {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--card-bg);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}
.tech-tabs-wrap::-webkit-scrollbar { display: none; }

.tech-tabs { display: flex; gap: 8px; width: max-content; }
.tech-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 12px 22px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.tech-tab:hover { color: var(--accent); }
.tech-tab.active {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.tech-panel { display: none; }
.tech-panel.active { display: block; animation: techPanelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes techPanelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tech-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.tech-approach {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
  padding: 28px 30px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
}
.tech-approach i { font-size: 22px; color: var(--accent); margin-top: 3px; }
.tech-approach p { margin: 0; color: var(--text-dim); line-height: 1.7; }
.tech-approach strong { color: var(--text, inherit); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.faq-item.active { border-color: var(--accent); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.14); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}
.faq-q i {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.faq-item.active .faq-q i { transform: rotate(45deg); }

.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.active .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 22px; color: var(--text-dim); line-height: 1.7; }

@media (max-width: 640px) {
  .mq-card { flex: 0 0 260px; padding: 26px 22px; }
  .tech-approach { flex-direction: column; padding: 24px; }
  .faq-q { padding: 18px 20px; font-size: 0.95rem; }
  .tech-tab-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .mq-card, .mq-icon, .tech-tab, .tech-panel, .tech-chip, .faq-q i, .faq-a {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Footer services sitemap (separate row, not a column) ---------- */
.footer-sitemap {
  padding: 34px 0 42px;
  border-top: 1px solid #1e293b;
}
.footer-sitemap > h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 26px;
}
.footer-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 26px;
}
.footer-sitemap-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--footer-link);
  margin: 0 0 14px;
}
.footer-sitemap-col .quick-links li { margin-bottom: 10px; }
.footer-sitemap-col .quick-links a { font-size: 0.86rem; }

@media (max-width: 1024px) {
  .footer-sitemap-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .footer-sitemap-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
}
@media (max-width: 480px) {
  .footer-sitemap-grid { grid-template-columns: 1fr; }
}
/* --- FOOTER SPACING FIX (FORCED) --- */
.footer-col h4 {
    margin-bottom: 12px !important;
}
ul.quick-links {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- THEME TOGGLE ALIGNMENT FIX (FORCED) --- */
button.theme-switch {
    padding: 0 !important; 
    display: flex !important; 
    align-items: center !important;
}

button.theme-switch .switch-handle {
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
}

button.theme-switch .switch-handle i {
    font-size: 13px !important;
}