/* ── Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Navbar ── */
#navbar {
    background: rgba(253, 248, 239, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
}

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

/* ── Hero Decorations ── */
.hero-decor {
    position: absolute;
    pointer-events: none;
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
}

.hero-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(212, 160, 23, 0.1);
    top: 20%;
    left: 15%;
    border-radius: 50%;
}

.hero-rect-1 {
    width: 80px;
    height: 80px;
    background: rgba(212, 160, 23, 0.07);
    border-radius: 20px;
    top: 35%;
    right: 8%;
    transform: rotate(45deg);
}

.hero-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(212, 160, 23, 0.06);
    bottom: 15%;
    right: 25%;
}

/* ── Reveal Animations (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible without JS */
.no-js .reveal,
.js-enabled .reveal {
    opacity: 1;
    transform: none;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf6ee;
}

::-webkit-scrollbar-thumb {
    background: #d4a017;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e2b832;
}

/* ── Selection ── */
::selection {
    background: rgba(212, 160, 23, 0.25);
    color: #0a1628;
}
