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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #0d1d2b;
    background-color: #fef9f0;
}

::selection {
    background-color: #86efac;
    color: #0d1d2b;
}

/* === Navbar === */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 249, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(13, 29, 43, 0.08);
}

#navbar.scrolled .font-display {
    color: #0d1d2b !important;
}

#navbar.scrolled .text-\[10px\] {
    color: #507098 !important;
}

#navbar.scrolled .menu-line {
    background: #0d1d2b !important;
}

/* === Mobile Menu === */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 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; }

/* === Hero Geometric Shapes === */
.hero-shape {
    position: absolute;
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(134, 239, 172, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
    animation-delay: -3s;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(34, 197, 94, 0.25);
    border-radius: 50%;
    top: 30%;
    right: 35%;
    animation-delay: -5s;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 30px;
    top: 15%;
    left: 40%;
    transform: rotate(45deg);
    animation-delay: -2s;
}

.shape-rect-2 {
    width: 100px;
    height: 100px;
    background: rgba(134, 239, 172, 0.15);
    border-radius: 20px;
    bottom: 20%;
    right: 10%;
    transform: rotate(20deg);
    animation-delay: -4s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(34, 197, 94, 0.12);
    top: 60%;
    left: 15%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

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

/* === Menu Cards === */
.menu-card {
    transform: translateY(0);
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* === Gallery Items === */
.gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }

    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }

    .shape-rect-1 {
        width: 100px;
        height: 100px;
    }

    .shape-triangle {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(34, 197, 94, 0.12);
    }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7c94b2;
}
