/* ===== NAVBAR STYLES (dari tema asli cryptara) ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    width: 100%;
}

/* Light theme navbar background + mobile menu surface */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-links a {
    color: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .nav-links a:hover {
    color: rgba(0, 0, 0, 0.9);
    text-shadow: none;
}

[data-theme="light"] .nav-links a::after {
    box-shadow: none;
}

[data-theme="light"] .theme-toggle {
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .hamburger {
    color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .hamburger:hover {
    text-shadow: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text span {
    color: var(--accent-orange);
    text-shadow: 0 0 8px rgba(255,94,0,0.5);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.6rem 0;
    font-size: 1.0rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-light));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-orange);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255,94,0,0.5);
}

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

.nav-links a.active {
    color: var(--accent-orange);
}

.nav-links a.active::after {
    width: 100%;
    box-shadow: 0 0 12px var(--accent-orange);
}

/* Clear hover/focus state (helps hamburger menu usability) */
.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--surface-hover);
    border-radius: 12px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s;
    margin-right: 1rem;
    position: relative;
    z-index: 9999;
}

.theme-toggle:hover {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.lang-btn {
    margin-left: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    background: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    z-index: 9999;
}

.lang-btn:hover {
    background: var(--accent-orange);
    color: #000;
    box-shadow: 0 0 15px rgba(255,94,0,0.5);
    transform: scale(1.02);
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    position: relative;
    z-index: 9999;
}

.hamburger:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 8px rgba(255,94,0,0.5);
}

/* Mobile styles */
@media (max-width: 1100px) {
    .navbar {
        flex-wrap: wrap;
    }
    .nav-links {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        padding: 1rem;
        border-radius: 16px;
        margin-top: 0.5rem;
        border: 1px solid rgba(255, 94, 0, 0.3);
        position: relative;
        z-index: 9999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        text-align: center;
        padding: 0.7rem;
    }
    .nav-links a::after {
        display: none;
    }

    /* Mobile hamburger menu highlight (dark & light) */
    .nav-links a:hover,
    .nav-links a:focus-visible {
        background: rgba(255, 94, 0, 0.12);
        border: 1px solid rgba(255, 94, 0, 0.35);
        box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.12);
        color: var(--text-primary);
    }

    [data-theme="light"] .nav-links a:hover,
    [data-theme="light"] .nav-links a:focus-visible {
        background: rgba(255, 94, 0, 0.10);
        border: 1px solid rgba(255, 94, 0, 0.22);
        box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.10);
        color: rgba(0, 0, 0, 0.95);
    }
    .lang-btn {
        margin-left: auto;
        margin-right: 1rem;
    }
    .hamburger {
        display: block;
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    .lang-btn {
        padding: 0.2rem 0.7rem;
        font-size: 0.7rem;
    }
}