/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --charcoal-900: #0D0D0D;
    --charcoal-800: #141414;
    --charcoal-700: #1C1C1C;
    --charcoal-600: #252525;
    --charcoal-500: #2E2E2E;
    --coral-500: #E8734A;
    --coral-600: #D15A30;
    --gold-400: #C9A84C;
    --gold-300: #D4BA6E;
    --stone-100: #F5F5F0;
    --stone-200: #E8E8E0;
    --stone-300: #C8C8C0;
    --stone-400: #989890;
    --stone-500: #686860;
    --stone-600: #484840;
    --stone-700: #303028;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--charcoal-900);
    color: var(--stone-200);
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    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;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--charcoal-900);
}
::-webkit-scrollbar-thumb {
    background: var(--charcoal-500);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-400);
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}

/* ===== MOBILE MENU ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ===== GOLD LINE ACCENT ===== */
.gold-line {
    position: relative;
}
.gold-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-400), transparent);
}

/* ===== BUTTON EFFECTS ===== */
a, button {
    position: relative;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--stone-100);
}

/* ===== INPUT FOCUS ===== */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold-400) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

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