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

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

body {
    margin: 0;
}

::selection {
    background: #059669;
    color: #fffef8;
}

/* === FLOATING ANIMATIONS === */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

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

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

.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card-slow {
    animation: float-slow 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* === SCROLL REVEAL === */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

/* === NAVBAR SCROLL STATE === */
nav.scrolled {
    background: rgba(255, 254, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(5, 158, 105, 0.1);
}

nav.scrolled .mobile-link {
    color: #064e3b;
}

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

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

/* === GEOMETRIC SHAPES === */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* === BUTTON HOVER EFFECTS === */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* === FORM FOCUS STYLES === */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .floating-card {
        display: none;
    }
}
