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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #fff;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion: disable transitions */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-marquee {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ========== NAVBAR SCROLL STATE ========== */
#site-header.scrolled {
    background: rgba(6, 15, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 164, 94, 0.1);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #C8A45E !important;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-nav-link {
    position: relative;
}

/* ========== SCROLL INDICATOR ========== */
@keyframes scroll-indicator {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* ========== MARQUEE ========== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
    display: flex;
    gap: 16px;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* ========== HERO PARALLAX SUBTLE ========== */
#hero img {
    will-change: transform;
}

/* ========== CARD HOVER SHINE ========== */
.rounded-2xl::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 94, 0.05), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.rounded-2xl:hover::before {
    left: 100%;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #C8A45E;
    outline-offset: 2px;
}

/* ========== FORM INPUTS ========== */
input:focus,
textarea:focus {
    background: rgba(6, 15, 30, 0.6);
}

/* ========== MOBILE MENU LINKS ========== */
.mobile-nav-link {
    font-size: 1.75rem;
    font-family: 'Lora', Georgia, serif;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .reveal {
        transform: none !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ========== UTILITY ========== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
