*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* NAV */
.nav-text {
    transition: color 0.3s ease;
}

nav.scrolled .nav-text {
    color: #2a2a2a;
}

nav.scrolled {
    background: rgba(255, 253, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

nav.scrolled a.nav-text {
    color: #4a4a4a;
}

/* MOBILE MENU */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobileMenu.open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#mobileMenu.open .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 20px;
    margin: 0;
}

.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #FF6B6B;
}

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

/* HERO HEADLINE */
h1 {
    animation: fadeUp 0.8s ease 0.15s both;
}

/* HERO PARAGRAPH */
h1 ~ p {
    animation: fadeUp 0.8s ease 0.3s both;
}

/* HERO CTA */
h1 ~ p ~ div {
    animation: fadeUp 0.8s ease 0.45s both;
}

/* HERO SCROLL */
h1 ~ p ~ div ~ div {
    animation: fadeUp 0.8s ease 0.6s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes float-delay {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

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

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

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite 1s;
}

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

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

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

/* SCROLL GALLERY */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* MENU CARD HOVER */
.bg-white.rounded-3xl {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bg-white.rounded-3xl:hover {
    transform: translateY(-2px);
}

/* BUTTONS */
a {
    text-decoration: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A8A8A8;
}

/* 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-scroll {
        animation: none;
        overflow-x: auto;
    }
}

/* FOCUS VISIBLE */
a:focus-visible, button:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* IMAGE LOADING */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
