:root {
        --brand-navy: #022e47;
        --brand-orange: #f68f1d;
        --brand-pink: #ea3b60;
        
        --text-main: var(--brand-navy);
        --nav-bg-scrolled: rgba(250, 248, 241, 0.95);
        --nav-mobile-bg: #FAF8F1;
        --nav-mobile-shadow: rgba(0,0,0,0.1);
        
        --vf-grad: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange) 65%, var(--brand-pink) 100%);
        --font-body: 'Work Sans', sans-serif;
    }

    /* DARK THEME OVERRIDES */
    [data-theme="dark"] {
        --text-main: #e6e6e6;
        --nav-bg-scrolled: rgba(1, 26, 42, 0.95);
        --nav-mobile-bg: #022e47;
        --nav-mobile-shadow: rgba(0,0,0,0.4);
    }

    /* --- 2. NAVBAR STYLING --- */
    .navbar-prestige {
        background: transparent; 
        padding: 1.5rem 0;
        transition: all 0.4s ease-in-out;
    }

    .navbar-prestige.scrolled {
        padding: 15px 0;
        background: var(--nav-bg-scrolled);
        backdrop-filter: blur(12px);
        box-shadow: 0 4px 20px rgba(0,0,0, 0.1);
    }

    [data-theme="dark"] .navbar-brand .logo-text {
        background: linear-gradient(120deg, #f68f1d 40%, #ffffff 50%, #ea3b60 75%, #f68f1d 65%);
        background-size: 200% auto;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-link {
    font-family: var(--font-body); 
    font-weight: 700; 
    color: var(--text-main) !important;
    margin: 0 10px; 
    position: relative; 
    transition: color 0.3s ease-in-out;
    padding-bottom: 5px; 
    white-space: nowrap; /* ADD THIS LINE */
}

.btn-nav-contact {
    background: var(--vf-grad); 
    color: white !important; 
    padding: 8px 22px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-family: var(--font-body);
    font-weight: 700; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    text-transform: uppercase; 
    display: inline-flex; 
    align-items: center; 
    border: none; 
    position: relative; 
    z-index: 1; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(246, 143, 29, 0.2);
    margin-right: 15px; 
    white-space: nowrap; /* ADD THIS LINE */
}

    .nav-link:hover, .nav-link.active { 
        color: #f68f1d !important; 
    }

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0; 
        height: 3px; 
        bottom: 0;
        left: 0;
        background: var(--vf-grad);
        transition: width 0.3s ease-in-out;
        border-radius: 2px; 
    }

    .nav-link:hover::after, 
    .nav-link.active::after {
        width: 100%;
    }

    /* --- 3. NAVBAR CONTACT BUTTON --- */
    .btn-nav-contact {
        background: var(--vf-grad); 
        color: white !important; 
        padding: 8px 22px; 
        border-radius: 50px; 
        text-decoration: none; 
        font-family: var(--font-body);
        font-weight: 700; 
        font-size: 0.8rem; 
        letter-spacing: 1px;
        text-transform: uppercase; 
        display: inline-flex; 
        align-items: center; 
        border: none; 
        position: relative; 
        z-index: 1; 
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 4px 10px rgba(246, 143, 29, 0.2);
        margin-right: 15px; 
    }

    .btn-nav-contact:hover { 
        transform: translateY(-2px); 
        color: white; 
        box-shadow: 0 8px 20px rgba(246, 143, 29, 0.4); 
    }

    /* --- 4. CAPSULE TOGGLE (Ball holds Icon) --- */
    .theme-switch-wrapper {
        display: flex; align-items: center; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .theme-switch-track {
        width: 70px; height: 36px;
        background-color: #dbe4eb; 
        border-radius: 50px;
        position: relative;
        box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
        transition: background-color 0.4s;
    }

    [data-theme="dark"] .theme-switch-track {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .theme-switch-ball {
        position: absolute;
        top: 3px; left: 3px;
        width: 30px; height: 30px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        display: flex; align-items: center; justify-content: center;
    }

    [data-theme="dark"] .theme-switch-ball {
        transform: translateX(34px); 
        background-color: #022e47; 
    }

    .ball-icon {
        font-size: 14px;
        position: absolute;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .icon-sun { color: #f68f1d; opacity: 1; transform: scale(1); }
    .icon-moon { color: #fff; opacity: 0; transform: scale(0.5) rotate(-90deg); }

    [data-theme="dark"] .icon-sun { opacity: 0; transform: scale(0.5) rotate(90deg); }
    [data-theme="dark"] .icon-moon { opacity: 1; transform: scale(1) rotate(0); }

    /* --- 5. BRAND LOGO THEME ADAPTATION --- */
    .brand-logo {
        height: 70px; 
        width: auto;
        object-fit: contain;
    }

    .logo-light { display: block; }
    .logo-dark { display: none; }

    html[data-theme="dark"] .logo-light { display: none; }
    html[data-theme="dark"] .logo-dark { display: block; }

    /* --- 6. MOBILE RESPONSIVENESS --- */
    .navbar-toggler { border: none; padding: 0; }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(2, 46, 71, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    [data-theme="dark"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    @media (max-width: 991px) {
        .navbar-collapse {
            background: var(--nav-mobile-bg);
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 10px 40px var(--nav-mobile-shadow);
            margin-top: 15px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .nav-item { border-bottom: 1px solid rgba(128,128,128,0.1); padding: 8px 0; }
        .nav-item:last-child { border-bottom: none; }
        .navbar-nav { align-items: center !important; }
        .theme-switch-wrapper { margin-top: 10px; }
    }

    /* --- ARROW FIX & ALIGNMENT --- */
    .genz-nav-link {
        display: inline-flex !important;
        align-items: center;
        gap: 6px; /* Space between text and arrow */
    }

    /* Kill Bootstrap's default broken caret */
    .genz-nav-link::after {
        display: none !important; 
    }

    /* Arrow animation */
    .nav-arrow {
        font-size: 0.7rem;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy spring */
    }

    /* Rotate arrow when dropdown is open */
    .nav-link.show .nav-arrow,
    .dropdown:hover .nav-arrow { /* Optional: add hover support if your dropdown opens on hover */
        transform: rotate(180deg);
    }

    /* --- GEN Z AESTHETIC DROPDOWN --- */
    .genz-dropdown {
        background: rgba(255, 255, 255, 0.65); /* High transparency for glass effect */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.8);
        border-radius: 24px; /* Extreme pill shape */
        padding: 12px;
        min-width: 220px;
        box-shadow: 0 15px 35px rgba(246, 143, 29, 0.15); /* Soft brand-colored glow */
        margin-top: 15px !important;
        
        /* Bouncy Entrance Animation */
        animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        transform-origin: top center;
    }

    @keyframes popIn {
        0% { opacity: 0; transform: scale(0.9) translateY(-10px); }
        100% { opacity: 1; transform: scale(1) translateY(0); }
    }

    /* Dark Mode Glassmorphism */
    [data-theme="dark"] .genz-dropdown {
        background: rgba(2, 46, 71, 0.65); /* Navy glass */
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    }

    /* --- HOVER PHYSICS & COLORS --- */
    .genz-drop-item {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--text-main) !important;
        padding: 12px 20px;
        border-radius: 16px; /* Inner pill shapes */
        margin-bottom: 4px;
        transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1); /* Snappy feel */
        background: transparent;
    }

    .genz-drop-item:last-child {
        margin-bottom: 0;
    }

    /* The 'Squish' and Gradient Hover */
    .genz-drop-item:hover, 
    .genz-drop-item.active {
        background: var(--vf-grad);
        color: white !important;
        transform: scale(0.96); /* Very Gen Z satisfying squish effect */
        box-shadow: 0 6px 15px rgba(246, 143, 29, 0.3);
    }

    /* --- MOBILE RESPONSIVENESS --- */
    @media (max-width: 991px) {
        .genz-dropdown {
            background: transparent;
            backdrop-filter: none;
            border: none;
            box-shadow: none;
            padding: 5px 15px;
            margin-top: 0 !important;
            animation: none;
        }
        
        .genz-drop-item {
            padding: 10px 15px;
        }
        
        /* Keep it clean on mobile, avoid intense scaling */
        .genz-drop-item:hover, 
        .genz-drop-item.active {
            transform: scale(1);
            background: rgba(246, 143, 29, 0.1);
            color: var(--brand-orange) !important;
            box-shadow: none;
        }
        
        [data-theme="dark"] .genz-drop-item:hover, 
        [data-theme="dark"] .genz-drop-item.active {
            background: rgba(255, 255, 255, 0.1);
        }
    }