/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-slow-zoom {
    animation: slowZoom 20s ease-out forwards;
}

.animate-scroll-down {
    animation: scrollDown 2s ease-in-out infinite;
}

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

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

/* 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;
    }
}

/* Hero Image Scale Fix */
@media (prefers-reduced-motion: no-preference) {
    .animate-slow-zoom {
        animation: slowZoom 20s ease-out forwards;
    }
}

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

/* Form Focus States */
input:focus,
textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #0f1a11;
}

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

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

/* Selection Color */
::selection {
    background: #4f8152;
    color: #fdfcf8;
}
