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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #1a3a2a;
}

/* ========== NAVBAR ========== */
.nav-link {
    position: relative;
}

/* ========== HERO ANIMATIONS ========== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== STAT CARDS ========== */
.stat-card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFloat 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.6s; }
.stat-card:nth-child(3) { animation-delay: 0.9s; }

@keyframes cardFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-anim,
    .stat-card,
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}

/* ========== MOBILE NAV ========== */
.mobile-nav-link {
    position: relative;
}

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

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

/* ========== CARD HOVER EFFECTS ========== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ========== BUTTON FOCUS ========== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
}

/* ========== CUSTOM SELECT ========== */
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='%234a7c4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1a3a2a;
}

/* ========== LOADING STATE ========== */
.page-loaded .hero-anim,
.page-loaded .stat-card {
    animation-play-state: running;
}
