/* ===== Base & Reset ===== */
*, *::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;
}

::selection {
    background: #4ade80;
    color: #05170c;
}

/* ===== Navigation ===== */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #166534;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-toggle.active .hamburger-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
}

/* ===== Hero ===== */
.animate-spin-slow {
    animation: spin 25s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

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

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

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

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 6s ease-in-out infinite;
}

/* ===== Geometric Decorations ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

.circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #166534;
    border-radius: 50%;
    top: 15%;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: #166534;
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #166534;
    top: 45%;
    left: 5%;
    transform: rotate(15deg);
}

.rect-1 {
    width: 120px;
    height: 120px;
    border: 3px solid #166534;
    border-radius: 20px;
    top: 70%;
    right: 8%;
    transform: rotate(45deg);
}

.dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #166534 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 30%;
    left: 3%;
    opacity: 0.03;
}

/* ===== Menu Cards ===== */
.menu-card {
    background: white;
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(22, 101, 52, 0.06);
    border: 1px solid rgba(22, 101, 52, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(22, 101, 52, 0.12);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ===== 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;
    }
    
    .animate-float,
    .animate-float-slow,
    .animate-float-medium {
        animation: none;
    }
    
    .animate-spin-slow {
        animation: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .menu-card {
        padding: 1.25rem;
    }
    
    .geo-shape {
        display: none;
    }
}
