:root {
    --primary: #05070A;
    --secondary: #1A2333;
    --accent: #00D2FF;
    --accent-glow: rgba(0, 210, 255, 0.3);
    --cta: #FF6B6B;
    --cta-hover: #FF4757;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

body.light-mode {
    --primary: #F8FAFC;
    --secondary: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #475569;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(15, 23, 42, 0.1);
}

body.light-mode {
    background-color: var(--primary) !important;
    color: var(--text-main);
}

body.light-mode header .container {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode h2,
body.light-mode h3,
body.light-mode h4:not(footer h4) {
    color: var(--text-main) !important;
}

body.light-mode .hero {
    background: radial-gradient(circle at 10% 10%, rgba(0, 210, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
}

body.light-mode .about-watermark {
    color: rgba(0, 0, 0, 0.02);
}

body.light-mode .service-card,
body.light-mode .step-card,
body.light-mode .stat-card,
body.light-mode .about-card {
    background: #FFFFFF;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode #services,
body.light-mode #about,
body.light-mode #process {
    background: var(--primary) !important;
}

body.light-mode .btn-secondary {
    background: rgba(15, 23, 42, 0.05);
    color: #0F172A !important;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

body.light-mode .btn-secondary i {
    color: var(--accent);
}

/* Footer light mode overrides removed to keep footer dark always */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Accounts for fixed header height */
}

body {
    background-color: var(--primary);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: clip;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-muted);
}

/* Reusable Components */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

section {
    padding: 120px 0;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, #00D2FF 0%, #3A7BD5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cta), #FF8E53);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent) !important;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-top: 2rem;
    transition: var(--transition);
}

.btn-card i {
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-card:hover {
    opacity: 0.8;
}

body.light-mode .btn-card {
    color: var(--accent) !important; /* Ensure visibility in light mode */
}

/* Header */
header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    top: 1rem;
    width: 90%;
    max-width: 1300px;
}

header .container {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 2.2rem;
    border-radius: 100px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

header.scrolled .container {
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 210, 255, 0.15);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent), var(--cta));
    width: 0%;
    z-index: 1001;
    transition: width 0.2s ease;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(15deg);
    box-shadow: 0 0 15px var(--accent-glow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none !important;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-links li {
    list-style: none !important;
    display: inline-block;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-main);
    background: var(--glass);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.menu-toggle:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .menu-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 0;
    margin-top: 0;
    /* Removed margin-top to prevent cursor tracking break */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Invisible bridge so mouse doesn't drop hover when traveling */
.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown .dropdown-menu li {
    display: block;
    width: 100%;
    margin-bottom: 0px !important;
}

.nav-dropdown .dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.nav-dropdown .dropdown-menu a::after {
    display: none;
    /* Disable the global underline hover for dropdown */
}

.nav-dropdown .dropdown-menu a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

body.light-mode .nav-dropdown .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.1);
}

body.light-mode .nav-dropdown .dropdown-menu a {
    color: var(--text-main);
}

body.light-mode .nav-dropdown .dropdown-menu a:hover {
    background: rgba(15, 23, 42, 0.03);
}

/* Hero Section */
.hero {
    min-height: 100dvh;
    height: auto;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 10%, rgba(0, 210, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    padding: 120px 0 80px;
    overflow: hidden;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -4px;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 650px;
    line-height: 1.6;
}

.hero-visual {
    position: relative;
    height: 600px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 0;
    border-radius: 50%;
}

/* About Section */
#about {
    position: relative;
    overflow: hidden;
}

.about-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-visual-box {
    position: relative;
    border-radius: 40px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), transparent);
}

.about-visual-box img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0rem;
}

.stat-card {
    background: var(--glass);
    padding: 5px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0rem;
}

/* Services */
.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-header h2 {
    font-size: 3.5rem;
}

.services-container {
    padding: 0 50px;
    position: relative;
    overflow: hidden;
}

.services-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card {
    min-width: calc(33.333% - 1.35rem);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card ul {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Carousel Control */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .service-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .service-card {
        min-width: 100%;
    }
}

/* Process Section */
#process {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 100% 50%, rgba(255, 107, 107, 0.05), transparent 40%);
}

.process-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), var(--cta), transparent);
    box-shadow: 0 0 20px var(--accent);
}

.process-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
    cursor: default;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-main);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-main);
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.step-card {
    background: var(--glass);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.step-card h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 1rem;
    color: var(--text-muted);
}

.process-visual-box {
    position: sticky;
    top: 150px;
}

.process-visual-box img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
}

@media (max-width: 992px) {
    .process-container {
        grid-template-columns: 1fr;
    }

    .process-visual-box {
        position: static;
        order: -1;
    }
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.why-card {
    background: var(--glass);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
}

/* Footer */
footer {
    background: radial-gradient(circle at top right, #0F172A 0%, #05070A 100%);
    padding: 0px 0 60px;
    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--accent), transparent) 1;
    /* Ensure dark mode colors even when rest of site is light */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

footer h4 {
    color: white !important;
}

footer .logo {
    color: white !important;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 80px;
}

.footer-info p {
    margin-bottom: 2rem;
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: white;
}

.footer-links ul {
    list-style: none !important;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
/* Responsive Breakpoints & Mobile Optimization */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-grid,
    .about-grid,
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3rem !important;
    }

    .service-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    /* Global Overrides for User-Friendliness */
    .container {
        padding: 0 1.5rem !important;
    }

    section {
        padding: 30px 0 !important;
    }

    /* Typography Scaling */
    h1, 
    main h1[style*="font-size: 4rem"], 
    main h1[style*="font-size: 3.5rem"] { 
        font-size: 2.2rem !important; 
        line-height: 1.2 !important;
        letter-spacing: -1px !important; 
    }

    h2, 
    main h2[style*="font-size: 4rem"], 
    main h2[style*="font-size: 3.5rem"] { 
        font-size: 2.5rem !important; 
        line-height: 1.2 !important;
        letter-spacing: -1px !important; 
    }

    h3,
    main h3[style*="font-size: 2.2rem"] { 
        font-size: 1.8rem !important; 
    }

    p, .dynamic-opacity {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* Reduce large inline margins */
    h2[style*="margin-bottom"], 
    h1[style*="margin-bottom"],
    section div[style*="margin-bottom"] {
        margin-bottom: 2rem !important;
    }

    p[style*="margin-bottom"] {
        margin-bottom: 1.5rem !important;
    }

    /* Layout Stacking Overrides for Inline Grids */
    .hero-grid, 
    .about-grid, 
    .process-container, 
    .why-grid, 
    .footer-top,
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important; /* Extremely tight for layout clarity */
    }

    .hero-grid {
        gap: 0 !important; /* Let margins handle spacing for hero */
    }

    .hero-content p {
        margin-bottom: 1rem !important;
    }

    /* Homepage Services Grid Override */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(450px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Hero & Visuals */
    .hero {
        padding-top: 90px !important;
        padding-bottom: 10px !important;
        min-height: auto !important;
        text-align: center;
    }

    .hero-visual {
        display: none !important;
    }

    .about-visual-box {
        margin-top: 0.5rem !important;
        order: 2;
    }

    /* Card Spacing & Stunning Card Overrides */
    .stunning-card {
        padding: 2rem !important;
        border-radius: 20px !important;
    }

    .stunning-card h3 {
        font-size: 1.6rem !important;
    }

    /* Service Rows stacking for inner pages */
    .service-row, .service-row.reverse {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }

    .service-row-icon {
        padding: 2rem !important;
        order: -1 !important;
    }

    .service-row-icon i {
        font-size: 4.5rem !important;
    }

    /* Timeline / How We Work Overrides */
    .process-timeline::before {
        display: none !important;
    }

    .process-step {
        padding-left: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .step-icon {
        margin-bottom: 1.5rem !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .timeline-line {
        display: none !important;
    }

    /* Badges / Pills Wrap */
    div[style*="display: flex; gap: 2rem; flex-wrap: wrap"] {
        gap: 1rem !important;
        justify-content: center !important;
    }

    .pill-animate {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Contact & CTA Buttons */
    .nav-cta .btn, 
    .nav-cta .theme-toggle {
        display: none !important;
    }

    #contact .btn, .cta-box .btn {
        width: 100% !important;
        padding: 1.1rem 1.5rem !important;
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Header & Mobile Toggle */
    header {
        top: 1rem;
        width: 95%;
    }

    header.scrolled {
        width: 95%;
    }

    .menu-toggle {
        display: flex;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
        z-index: 1001; /* Ensure toggle stays above overlay */
    }

    .menu-toggle i {
        font-size: 1.8rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: radial-gradient(circle at top right, #0F172A 0%, #05070A 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        gap: 2rem;
        text-align: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        display: flex;
        z-index: 1000;
        box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links > li {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        transition-delay: calc(var(--i) * 0.1s);
    }

    .nav-links.active > li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.6rem;
        font-weight: 800;
        color: white !important;
        display: block;
        padding: 1rem;
    }

    /* Mobile Dropdown Fix */
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        width: 100%;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
        margin-top: 1rem;
    }

    .nav-dropdown .dropdown-menu a {
        font-size: 1.1rem;
        font-weight: 500;
        opacity: 0.7;
    }

    /* Light mode navigation specific fixes */
    body.light-mode .nav-links {
        background: radial-gradient(circle at top right, #FFFFFF 0%, #F1F5F9 100%);
    }

    body.light-mode .nav-links a {
        color: #0F172A !important;
    }

    body.light-mode .nav-dropdown .dropdown-menu a {
        color: #64748B !important;
    }

    body.light-mode .nav-links.active > li {
        border-color: rgba(0,0,0,0.05);
    }

    /* Carousel Refinements */
    .services-container {
        padding: 0 1rem !important; /* Smaller side gaps for mobile */
    }

    .services-carousel {
        gap: 1.5rem !important;
    }

    .service-card {
        min-width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* Target specific About Page Service Cards outside carousel */
    #mission-vision .service-card,
    #about-page .stunning-card {
        padding: 2rem !important;
    }

    /* Utility */
    .orb, 
    .hero-glow,
    .floating-card {
        display: none !important; /* Hide for mobile performance/clarity */
    }
}