/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #080C15; }
::-webkit-scrollbar-thumb { background: #1E3A4F; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C9A84C; }

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
#navbar.scrolled {
    background: rgba(8, 12, 21, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08), 0 4px 32px rgba(0, 0, 0, 0.4);
}

/* ── Nav Links ── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #C9A84C, #E8D5A3);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #C9A84C !important; }

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}
#mobile-menu .mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Hamburger Animation ── */
#menu-btn.active #hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active #hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-btn.active #hamburger span:nth-child(3) {
    width: 100%;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Gold Gradient Text ── */
.gold-gradient {
    background: linear-gradient(135deg, #E8D5A3 0%, #C9A84C 50%, #B8943F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Button Glow ── */
button:hover, a:hover {
    transition: all 0.3s ease;
}

/* ── Input Focus ── */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* ── Image Hover Overlay ── */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ── Section Divider ── */
section::before {
    content: '';
    display: block;
}

/* ── Selection ── */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    #hero .xl\:text-7xl {
        font-size: 2.5rem;
    }
    .reveal {
        transform: translateY(24px);
    }
}

@media (max-width: 640px) {
    #hero {
        padding-top: 80px;
    }
    .font-display.text-4xl {
        font-size: 2.25rem;
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
