/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
}

/* Selection */
::selection {
    background: #065f46;
    color: #fefdf8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefdf8;
}
::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-6px) rotate(48deg); }
}

@keyframes float-deco {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(15deg); }
}

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

.floating-stat-1 {
    animation: float-medium 5s ease-in-out infinite;
}

.floating-stat-2 {
    animation: float-medium 4.5s ease-in-out infinite reverse;
}

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

.hero-shape-1 {
    animation: float-slow 8s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float-medium 7s ease-in-out infinite reverse;
}

.hero-shape-3 {
    animation: float-slow 6s ease-in-out infinite;
}

.hero-shape-4 {
    animation: float-fast 5s ease-in-out infinite;
}

.hero-shape-5 {
    animation: float-medium 4s ease-in-out infinite reverse;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

/* Mobile menu */
.menu-line {
    display: block;
}

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

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

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

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

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

/* Image loading */
img {
    display: block;
    max-width: 100%;
}
