/* Base & Utilities */
:root {
    --gold-400: #d4af5a;
    --gold-500: #C9A84C;
    --gold-600: #b8943f;
    --forest-800: #0F3D2E;
    --forest-950: #051710;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #051710;
}
::-webkit-scrollbar-thumb {
    background: #1a5c42;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a7a56;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #FAF8F5;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* Hero entrance animations */
#hero .animate-fade-in-up:nth-child(1) { animation-delay: 0s; }
#hero .animate-fade-in-up:nth-child(2) { animation-delay: 0.15s; }
#hero .animate-fade-in-up:nth-child(3) { animation-delay: 0.3s; }
#hero .animate-fade-in-up:nth-child(4) { animation-delay: 0.45s; }
#hero .animate-fade-in-up:nth-child(5) { animation-delay: 0.6s; }

/* Scroll reveal classes */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up {
    transform: translateY(30px);
}

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

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

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

/* Gold glow effect */
.glow-gold {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* Navbar transition */
.navbar-scrolled {
    background: rgba(5, 23, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 61, 46, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-fade-in-up {
        animation: none;
        opacity: 1;
    }
    .animate-scroll-line {
        animation: none;
        opacity: 0.5;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Select dropdown styling */
select option {
    background: #0F3D2E;
    color: #FAF8F5;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0F3D2E 0%, #051710 100%);
}
