/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

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

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

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

#navbar.scrolled .nav-link {
    color: #fefdf8;
}

#navbar.scrolled .nav-link::after {
    background: #fefdf8;
}

/* Hero Animations */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-anim:nth-child(1) { transition-delay: 0.1s; }
.hero-anim:nth-child(2) { transition-delay: 0.2s; }
.hero-anim:nth-child(3) { transition-delay: 0.3s; }
.hero-anim:nth-child(4) { transition-delay: 0.4s; }
.hero-anim:nth-child(5) { transition-delay: 0.5s; }

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-8px) translateX(-50%);
    }
    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

/* Mobile Menu */
.mobile-menu-link {
    position: relative;
    display: block;
    padding: 8px 0;
}

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

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

/* Form Focus States */
input:focus,
textarea:focus {
    border-bottom-color: #166534 !important;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Image Hover Zoom */
.group:hover img {
    transform: scale(1.05);
}

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

/* Print Styles */
@media print {
    nav, .scroll-indicator, #mobile-menu {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
