/* === Base & Typography === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 169, 97, 0.3);
    color: #1a3a2a;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a3a2a;
}
::-webkit-scrollbar-thumb {
    background: #c8a961;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4ab5c;
}

/* === Navbar === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 20, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(200, 169, 97, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* === Hero Animations === */
.hero-headline {
    animation: heroReveal 1s ease forwards 0.3s;
}

.hero-subtitle {
    animation: heroReveal 1s ease forwards 0.1s;
}

.hero-tagline {
    animation: heroReveal 1s ease forwards 0.5s;
}

.hero-cta {
    animation: heroReveal 1s ease forwards 0.7s;
}

.hero-ornament {
    animation: heroReveal 1s ease forwards 0s;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Reveal Animations === */
.reveal-up,
.reveal-left,
.reveal-right {
    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);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* === Mobile Menu === */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #c8a961;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* === Form Styles === */
select option:first-child {
    color: #d4c4a0;
}

/* === Image Hover === */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Focus Visible === */
*:focus-visible {
    outline: 2px solid #c8a961;
    outline-offset: 2px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}
