:root {
    --primary-color: #cba258;
    --primary-hover: #b8914c;
    --text-dark: #0b1120;
    --text-muted: #5e6675;
    --bg-creamy: #f7f4ed;
    --nav-text: #0a0a0a;
    --nav-text-muted: #3d4454;
    --navbar-blur: blur(18px);
    --navbar-border: rgba(255, 248, 238, 0.75);
    --navbar-surface: rgba(240, 220, 188, 0.94);
    --navbar-gradient: linear-gradient(
        135deg,
        rgba(245, 232, 212, 0.92) 0%,
        rgba(232, 210, 176, 0.9) 45%,
        rgba(218, 190, 148, 0.88) 100%
    );
    --navbar-gradient-hover: linear-gradient(
        135deg,
        rgba(248, 236, 218, 0.95) 0%,
        rgba(228, 205, 168, 0.92) 100%
    );
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s var(--ease-out-expo);
    --transition-smooth: 0.6s var(--ease-out-expo);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-creamy);
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.navbar-container {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--navbar-gradient);
    backdrop-filter: var(--navbar-blur) saturate(160%);
    -webkit-backdrop-filter: var(--navbar-blur) saturate(160%);
    max-width: 1400px;
    width: 100%;
    padding: 10px 20px;
    border-radius: 16px;
    box-shadow:
        0 10px 36px rgba(120, 85, 40, 0.18),
        0 1px 0 rgba(255, 248, 235, 0.85) inset;
    border: 1px solid var(--navbar-border);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    isolation: isolate;
    overflow: hidden;
    will-change: transform, opacity;
    /* Smooth intro */
    animation: smoothNavbarIntro 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes smoothNavbarIntro {
    0% {
        opacity: 0;
        transform: translateY(-16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Shine Effect */
.navbar-shine {
    position: absolute;
    top: 0;
    left: -200px;
    width: 150px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shineLoop 7.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    clip-path: inset(0 0 0 0 round 16px);
}

@keyframes shineLoop {
    0% {
        left: -200px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    25% {
        opacity: 1;
    }
    30%, 100% {
        left: calc(100% + 200px);
        opacity: 0;
    }
}

.navbar-container:hover {
    background: var(--navbar-gradient-hover);
    box-shadow:
        0 14px 40px rgba(120, 85, 40, 0.22),
        0 1px 0 rgba(255, 250, 240, 0.9) inset;
}



.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 4px 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    transition: box-shadow 0.22s, opacity var(--transition-fast);
    position: relative;
    z-index: 10;
}

.navbar-brand:hover {
    opacity: 1;
    box-shadow: 0 6px 22px rgba(0,0,0,0.17);
}

.brand-logo-img {
    height: 36px;
    width: auto;
    display: block;
    flex-shrink: 0;
    mix-blend-mode: normal;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c1839;
    letter-spacing: -0.2px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--nav-text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    gap: 4px;
    border-radius: 14px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.35s var(--ease-out-expo);
}

.nav-link:hover {
    background-color: rgba(196, 155, 95, 0.18);
}

.nav-item:hover .nav-link::after,
.nav-item.active .nav-link::after {
    width: 22px;
}

.nav-icon-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.nav-icon {
    font-size: 1rem;
    color: #fff;
    transition: color var(--transition-fast);
}

.nav-badge-1 { background: linear-gradient(135deg, #4f8ef7, #1a6fdd); box-shadow: 0 3px 10px rgba(79,142,247,0.40); }
.nav-badge-2 { background: linear-gradient(135deg, #a855f7, #7c3aed); box-shadow: 0 3px 10px rgba(168,85,247,0.40); }
.nav-badge-3 { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 3px 10px rgba(249,115,22,0.40); }
.nav-badge-4 { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 3px 10px rgba(16,185,129,0.40); }
.nav-badge-5 { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 3px 10px rgba(239,68,68,0.40); }
.nav-badge-6 { background: linear-gradient(135deg, #facc15, #eab308); box-shadow: 0 3px 10px rgba(234,179,8,0.40); }

.nav-item:hover .nav-icon-badge,
.nav-item.active .nav-icon-badge {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.nav-item.active .nav-icon-badge {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.85), 0 3px 10px rgba(0,0,0,0.25);
}

.nav-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--nav-text);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.chevron {
    font-size: 0.55rem;
    color: var(--nav-text-muted);
    transition: transform var(--transition-smooth), color var(--transition-fast);
}

.nav-item:hover .nav-text,
.nav-item.active .nav-text {
    color: var(--primary-hover);
}

.nav-item:hover .chevron,
.nav-item.active .chevron {
    color: var(--primary-hover);
}

.nav-item.has-dropdown:hover .chevron {
    transform: rotate(180deg);
}

.nav-item.active .nav-link {
    background-color: rgba(196, 155, 95, 0.22);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate3d(-50%, 8px, 0);
    min-width: 220px;
    padding: 10px;
    background: var(--navbar-surface);
    backdrop-filter: var(--navbar-blur) saturate(160%);
    -webkit-backdrop-filter: var(--navbar-blur) saturate(160%);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 20, 35, 0.16);
    border: 1px solid var(--navbar-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast),
        visibility var(--transition-fast);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0);
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--nav-text);
    border-radius: 10px;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-link:hover {
    background-color: rgba(196, 155, 95, 0.12);
    color: var(--primary-hover);
}


.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(196, 155, 95, 0.2);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--nav-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease;
}

/* Hide mobile-only elements on desktop */
.nav-drawer,
.nav-backdrop,
.drawer-header,
.drawer-nav,
.drawer-person-wrap,
.drawer-credit,
.mobile-toggle {
    display: none !important;
}
