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

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

body {
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 24px;
    bottom: 20%;
    left: 5%;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-2 {
    width: 80px;
    height: 80px;
    background: rgba(254, 243, 199, 0.3);
    border-radius: 50%;
    top: 40%;
    left: 15%;
    animation: float 5s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(16, 185, 129, 0.08);
    top: 60%;
    right: 10%;
    transform: rotate(-20deg);
    animation: spin 12s linear infinite;
}

.shape-ring-1 {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(254, 243, 199, 0.2);
    border-radius: 50%;
    bottom: 10%;
    right: 20%;
    animation: float 7s ease-in-out infinite reverse;
}

.shape-dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.2) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 30%;
    right: 5%;
}

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

@keyframes spin {
    from { transform: rotate(-20deg); }
    to { transform: rotate(340deg); }
}

/* Marquee */
.marquee-track {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Navbar Scrolled State */
.nav-scrolled {
    background: rgba(254, 251, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08), 0 4px 20px rgba(6, 95, 70, 0.06);
}

/* 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .geo-shape {
        animation: none;
    }
    
    .shape-triangle-1 {
        animation: none;
    }
}

/* Focus Styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

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