/* ===== 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-color: #b9d4ab;
    color: #1c3a19;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(28, 58, 25, 0.1);
}

/* ===== HERO DECORATIONS ===== */
.hero-deco {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(185, 212, 171, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(185, 212, 171, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(250, 242, 212, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: 30%;
    left: 15%;
    animation: float-slow 6s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(95, 160, 83, 0.08);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: -50px;
    right: 20%;
    animation: morph 12s ease-in-out infinite;
}

.blob-2 {
    width: 200px;
    height: 200px;
    background: rgba(250, 242, 212, 0.06);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    top: 20%;
    left: 10%;
    animation: morph 10s ease-in-out infinite reverse;
}

.sparkle-1 {
    top: 15%;
    right: 30%;
    animation: twinkle 3s ease-in-out infinite;
}

.sparkle-2 {
    top: 60%;
    left: 8%;
    animation: twinkle 4s ease-in-out infinite 1s;
}

.sparkle-3 {
    bottom: 25%;
    right: 10%;
    animation: twinkle 3.5s ease-in-out infinite 0.5s;
}

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

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1) rotate(0deg); }
    25% { border-radius: 58% 42% 65% 35% / 45% 55% 45% 55%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; transform: scale(1.05) rotate(5deg); }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.2) rotate(180deg); }
}

/* ===== HERO FLOATING CARDS ===== */
.hero-card {
    animation: float-card 4s ease-in-out infinite;
}

.main-card {
    animation-delay: 0s;
    width: 280px;
    height: 360px;
}

.stat-card-1 {
    animation-delay: 0.5s;
}

.stat-card-2 {
    animation-delay: 1s;
}

.stat-card-3 {
    animation-delay: 1.5s;
}

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

/* ===== HERO BADGE ===== */
.hero-badge {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

    .menu-card {
        opacity: 0;
        transform: translateY(40px);
    }

    .menu-card.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #8dbc7e;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5fa053;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== PRINT ===== */
@media print {
    #navbar, #back-to-top, .hero-deco {
        display: none !important;
    }
    body {
        color: #1c3a19;
        background: white;
    }
}
