*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body { margin: 0; }

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes floatDelay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-up-delay {
    animation: fadeInUp 0.8s ease-out 0.15s forwards;
    opacity: 0;
}

.animate-fade-up-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-up-delay-3 {
    animation: fadeInUp 0.8s ease-out 0.45s forwards;
    opacity: 0;
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: floatDelay 7s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 5s ease-in-out infinite; }

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

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* Navbar scroll state */
nav.scrolled {
    background: rgba(255, 254, 249, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

nav.scrolled .font-serif { color: #064E3B; }

/* Smooth section transitions */
section { position: relative; }

/* Selection color */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #064E3B;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image aspect ratio fallbacks */
img { max-width: 100%; height: auto; }
