/* ===== PARTNER LOGO ===== */
.partner-logo-dark, .partner-logo-light { height: 130px !important; width: auto !important; }
@media (max-width: 600px) { .partner-logo-dark, .partner-logo-light { height: 100px !important; } }
.partner-logo-dark { display: inline; }
.partner-logo-light { display: none !important; }
[data-theme="light"] .partner-logo-dark { display: none !important; }
[data-theme="light"] .partner-logo-light { display: inline !important; }
body.light-mode .partner-logo-dark { display: none !important; }
body.light-mode .partner-logo-light { display: inline !important; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 60px;
    transition: all 0.4s;
}

.navbar.scrolled {
    padding: 16px 60px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(60,179,113,0.08);
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 85px;
    width: auto;
}

.nav-logo .logo-light { display: none; }
.nav-logo .logo-dark { display: block; }

/* Non-landing pages light mode: show light logo */
[data-theme="light"] .navbar-light .nav-logo .logo-dark { display: none !important; }
[data-theme="light"] .navbar-light .nav-logo .logo-light { display: block !important; }
body.light-mode .navbar-light .nav-logo .logo-dark { display: none !important; }
body.light-mode .navbar-light .nav-logo .logo-light { display: block !important; }

.nav-center {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-center a {
    text-decoration: none;
    color: #8A857D;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3CB371;
    transition: width 0.4s;
}

.nav-center a:hover { color: #3CB371; }
.nav-center a:hover::after { width: 100%; }

.nav-cta {
    padding: 12px 32px;
    border: 1px solid #3CB371;
    color: #3CB371;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s;
}

.nav-cta:hover {
    background: #3CB371;
    color: #0A0A0A;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    z-index: 10002;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 1px;
    background: #FAF7F2;
    transition: all 0.4s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== NAV DROPDOWN ===== */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 4px; }

.dropdown-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.3s;
}

.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: 100%;
    left: -16px;
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s;
    z-index: 100;
}

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

.dropdown-inner {
    background: #141414;
    border: 1px solid rgba(60,179,113,0.1);
    padding: 12px 0;
    min-width: 200px;
}

.dropdown a {
    display: block;
    padding: 10px 24px;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    color: #8A857D !important;
    white-space: nowrap;
    transition: all 0.3s;
}

.dropdown a::after { display: none !important; }

.dropdown a:hover {
    color: #3CB371 !important;
    background: rgba(60,179,113,0.05);
    padding-left: 30px;
}

/* ===== MOBILE OVERLAY ===== */
.mob-overlay {
    display: none;
}

.mob-overlay.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: none;
    border: 1px solid rgba(60,179,113,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3CB371;
    transition: all 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: #3CB371;
    color: #0A0A0A;
    border-color: #3CB371;
}

.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.3s; }
.theme-toggle:hover svg { transform: rotate(30deg); }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ===== LIGHT MODE NAV ===== */
[data-theme="light"] .navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .nav-center a { color: rgba(255, 255, 255, 0.7) !important; }
[data-theme="light"] .nav-center a:hover { color: #fff !important; }
[data-theme="light"] .hamburger span { background: #fff !important; }
[data-theme="light"] .nav-cta { border-color: rgba(255,255,255,0.5); color: #fff; }
[data-theme="light"] .nav-cta:hover { background: #fff; color: #0A0A0A; }
[data-theme="light"] .theme-toggle { border-color: rgba(255,255,255,0.3); color: #fff; }
[data-theme="light"] .theme-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.5); }

[data-theme="light"] .dropdown-inner { background: #1A1A1A !important; border-color: rgba(60,179,113,0.1) !important; }
[data-theme="light"] .dropdown a { color: rgba(255,255,255,0.6) !important; }
[data-theme="light"] .dropdown a:hover { color: #3CB371 !important; background: rgba(60,179,113,0.08) !important; }

/* ===== LIGHT MODE NAV — NON-LANDING PAGES (dark text on light bg) ===== */
[data-theme="light"] .navbar-light {
    background: transparent;
}
[data-theme="light"] .navbar-light.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .navbar-light .nav-center a { color: #1A1A1A !important; }
[data-theme="light"] .navbar-light .nav-center a:hover { color: #3CB371 !important; }
[data-theme="light"] .navbar-light .hamburger span { background: #1A1A1A !important; }
[data-theme="light"] .navbar-light .nav-cta { border-color: #173518; color: #173518; }
[data-theme="light"] .navbar-light .nav-cta:hover { background: #173518; color: #fff; }
[data-theme="light"] .navbar-light .theme-toggle { border-color: rgba(23,53,24,0.3); color: #173518; }
[data-theme="light"] .navbar-light .theme-toggle:hover { background: #173518; color: #fff; border-color: #173518; }
[data-theme="light"] .navbar-light .dropdown-inner { background: #fff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
[data-theme="light"] .navbar-light .dropdown a { color: #1A1A1A !important; }
[data-theme="light"] .navbar-light .dropdown a:hover { color: #3CB371 !important; background: rgba(60,179,113,0.05) !important; }

body.light-mode .navbar-light { background: transparent; }
body.light-mode .navbar-light.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .navbar-light .nav-center a { color: #1A1A1A !important; }
body.light-mode .navbar-light .nav-center a:hover { color: #3CB371 !important; }
body.light-mode .navbar-light .hamburger span { background: #1A1A1A !important; }
body.light-mode .navbar-light .nav-cta { border-color: #173518; color: #173518; }
body.light-mode .navbar-light .nav-cta:hover { background: #173518; color: #fff; }
body.light-mode .navbar-light .theme-toggle { border-color: rgba(23,53,24,0.3); color: #173518; }
body.light-mode .navbar-light .theme-toggle:hover { background: #173518; color: #fff; border-color: #173518; }
body.light-mode .navbar-light .dropdown-inner { background: #fff !important; border-color: rgba(0,0,0,0.08) !important; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
body.light-mode .navbar-light .dropdown a { color: #1A1A1A !important; }
body.light-mode .navbar-light .dropdown a:hover { color: #3CB371 !important; background: rgba(60,179,113,0.05) !important; }

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 1024px) {
    .navbar { padding: 20px 40px; }
    .navbar.scrolled { padding: 16px 40px; }
}

@media (max-width: 860px) {
    .navbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .navbar.scrolled { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #0A0A0A; }
    .nav-center { display: none !important; }
    .nav-center.open { display: flex !important; }
    .hamburger { display: flex; }
    .nav-cta { font-size: 9px; padding: 8px 16px; letter-spacing: 1px; }

    .nav-center.open {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 300px;
        max-width: 85vw;
        background: #141414;
        border-left: 1px solid rgba(60,179,113,0.1);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 36px 40px;
        gap: 0;
        z-index: 10001;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        animation: slideIn 0.3s ease;
    }

    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }

    .nav-center.open > li {
        width: 100%;
        border-bottom: 1px solid rgba(60,179,113,0.06);
    }

    .nav-center.open > li > a {
        display: block;
        padding: 18px 0;
        font-size: 14px;
        letter-spacing: 3px;
        color: #FAF7F2 !important;
    }

    .nav-center.open > li > a::after { display: none; }

    .nav-center.open .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 12px;
        display: none;
    }

    .nav-center.open .dropdown.mob-open {
        display: block;
    }

    .nav-center.open .dropdown-inner {
        background: transparent !important;
        border: none !important;
        padding: 0;
        min-width: 0;
    }

    .nav-center.open .dropdown a {
        font-size: 12px !important;
        letter-spacing: 2px !important;
        padding: 10px 0 10px 16px;
        text-align: left;
        border-left: 1px solid rgba(60,179,113,0.2);
        color: #8A857D !important;
    }

    .nav-center.open .dropdown a:hover {
        padding-left: 20px;
        color: #3CB371 !important;
        border-left-color: #3CB371;
    }
}

@media (max-width: 600px) {
    .navbar { padding: 16px 20px; }
    .navbar.scrolled { padding: 12px 20px; }
    .nav-logo img { height: 50px; }
}

/* ===== LIGHT MODE MOBILE NAV BG ===== */
@media (max-width: 860px) {
    [data-theme="light"] .navbar,
    body.light-mode .navbar {
        background: transparent;
    }
    [data-theme="light"] .navbar.scrolled,
    body.light-mode .navbar.scrolled {
        background: rgba(10, 10, 10, 0.95) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }
}

/* ===== LIGHT MODE DRAWER (always dark) ===== */
[data-theme="light"] .nav-center.open,
body.light-mode .nav-center.open {
    background: #111111 !important;
    border-left-color: rgba(60,179,113,0.15);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .nav-center.open > li > a,
body.light-mode .nav-center.open > li > a { color: #FAF7F2 !important; }

[data-theme="light"] .nav-center.open > li,
body.light-mode .nav-center.open > li { border-bottom-color: rgba(255,255,255,0.06) !important; }

[data-theme="light"] .nav-center.open .dropdown a,
body.light-mode .nav-center.open .dropdown a { color: #8A857D !important; }

[data-theme="light"] .nav-center.open .dropdown a:hover,
body.light-mode .nav-center.open .dropdown a:hover { color: #3CB371 !important; }

[data-theme="light"] .mob-overlay.active,
body.light-mode .mob-overlay.active { background: rgba(0, 0, 0, 0.5) !important; }
