/* Base & Utilities */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric Shape Animations */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: 15%;
    left: 5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(165, 214, 167, 0.2);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    top: 40%;
    left: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float-slow 12s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 20%;
    left: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(165, 214, 167, 0.15);
    animation: rotate-slow 25s ease-in-out infinite;
    transform-origin: center;
}

.shape-square-1 {
    bottom: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    animation: rotate-slow 20s ease-in-out infinite;
    transform-origin: center;
}

.shape-ring-1 {
    top: 60%;
    right: 20%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: float-slow 18s ease-in-out infinite reverse;
}

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

@keyframes rotate-slow {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

/* Scroll Reveal */
.scroll-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);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .geo-shape {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.open {
    max-height: 400px;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(13, 59, 16, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #1b5e20;
}

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

/* Selection */
::selection {
    background: #2e7d32;
    color: #fdfbf7;
}
