: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;
}

[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; }
.container { width: 90%; max-width: 1200px; 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(37, 99, 235, 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: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #1e293b; }
.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 {
  padding: 16px 32px;
  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;
    background: none;
    border: none;
    font-size: 24px;
    color: inherit;
    cursor: pointer;
}

/* 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;
    /* Theme ke hisaab se text color adjust hoga */
    color: var(--text-color); 
    font-size: 0.95rem;
    opacity: 0.8;
    /* Professional bouncy feel ke liye cubic-bezier */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Hover Effect: Text aur Icon transition */
.contact-list a:hover {
    opacity: 1;
    /* Hover par wahi blue color jo image mein tha */
    color: var(--primary-blue); 
    transform: translateX(10px); /* Smooth right slide */
}

/* Icon specific animation */
.contact-list a i {
    width: 20px;
    /* Default icon color wahi professional blue */
    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 */
}