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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-delay {
    animation-delay: -2s;
}

.floating-delay-2 {
    animation-delay: -4s;
}

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

/* Scroll reveal — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .floating-delay,
    .floating-delay-2 {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9cc28a;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #528540;
    outline-offset: 2px;
    border-radius: 4px;
}

/* No underline for internal links */
a.no-underline {
    text-decoration: none;
}
