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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Content Animation */
.hero-content {
    animation: heroFadeIn 1s ease-out forwards;
}

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

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(20, 83, 45, 0.08) !important;
}

.navbar-scrolled .nav-link {
    color: rgba(20, 83, 45, 0.7) !important;
}

.navbar-scrolled .nav-link:hover {
    color: #15803d !important;
}

/* Mobile Menu */
.mobile-menu-open {
    translate: 0 !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(20, 83, 45, 0.08);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
    color: #15803d;
    padding-left: 0.5rem;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Menu Button Animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Sparkle Animation */
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Button Hover Effects */
a {
    text-decoration: none;
}

/* Smooth focus outlines */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection Color */
::selection {
    background: rgba(22, 163, 74, 0.2);
    color: #14532d;
}
