/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── Hero Background ──────────────────────────────────── */
.hero-bg { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-gradient {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(15,43,24,.9) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168,135,46,.15) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(7,21,12,.7) 0%, rgba(3,10,5,.95) 100%);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,10,5,.3) 0%, transparent 30%, transparent 70%, rgba(3,10,5,.6) 100%);
}

/* ── Particles ────────────────────────────────────────── */
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: radial-gradient(circle, rgba(201,168,76,.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: .4; }
    50% { transform: translateY(-30px) scale(1.3); opacity: .8; }
}

/* ── Scroll Reveal ────────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal-state="hidden"] {
    opacity: 0;
    transform: translateY(30px);
}

/* ── Navbar ───────────────────────────────────────────── */
#navbar { background: transparent; }
#navbar.scrolled {
    background: rgba(3,10,5,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201,168,76,.08);
    box-shadow: 0 4px 40px rgba(0,0,0,.3);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ──────────────────────────────────────── */
.menu-line { display: block; }
#menu-btn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
#menu-btn.active .menu-line:nth-child(2) { opacity: 0; }
#menu-btn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); width: 6px; }
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu a { transform: translateY(10px); opacity: 0; transition: all 0.3s ease; }
#mobile-menu.open a { transform: translateY(0); opacity: 1; }
#mobile-menu.open a:nth-child(1) { transition-delay: .1s; }
#mobile-menu.open a:nth-child(2) { transition-delay: .15s; }
#mobile-menu.open a:nth-child(3) { transition-delay: .2s; }
#mobile-menu.open a:nth-child(4) { transition-delay: .25s; }
#mobile-menu.open a:nth-child(5) { transition-delay: .3s; }

/* ── Animations ───────────────────────────────────────── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form Elements ────────────────────────────────────── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}
select option { background: #0f2b18; color: #f9f5e8; }

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

/* ── Selection ────────────────────────────────────────── */
::selection { background: rgba(201,168,76,.25); color: #fdfbf5; }
