/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Navbar ── */
#navbar {
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(51, 22, 44, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.nav-logo-text {
    transition: color 0.4s ease;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5C518;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: #F5C518 !important;
}

/* ── Scroll Reveal ── */
.scroll-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);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }

/* ── Mobile Menu ── */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #F5C518;
    transition: width 0.3s ease;
}
.mobile-nav-link:hover::before {
    width: 16px;
}

/* ── Menu hover row highlight ── */
#menu .group:hover h4 {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #171717; }
::-webkit-scrollbar-thumb { background: #6B2F5B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5a274d; }

/* ── Selection ── */
::selection {
    background: #F5C518;
    color: #33162c;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #F5C518;
    outline-offset: 2px;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    html { scroll-padding-top: 70px; }
    #hero h1 { font-size: 2.5rem; }
    #hero .text-3xl { font-size: 1.75rem; }
}

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