/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays for grid children */
    .reveal:nth-child(2) { transition-delay: 100ms; }
    .reveal:nth-child(3) { transition-delay: 200ms; }
}

/* Reduced motion — content always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========== HERO ANIMATIONS ========== */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.04); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-14px, 10px) scale(1.03); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -12px) scale(1.05); }
}

.hero-float-1 { animation: float-slow 8s ease-in-out infinite; }
.hero-float-2 { animation: float-medium 6s ease-in-out infinite; }
.hero-float-3 { animation: float-fast 7s ease-in-out infinite; }

/* ========== MOBILE MENU ========== */
.menu-line {
    display: block;
    height: 2px;
    width: 20px;
    background-color: rgb(78, 78, 82);
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuToggle[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 20px;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgb(196, 114, 78);
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: rgb(253, 249, 245);
}

::-webkit-scrollbar-thumb {
    background: rgb(224, 158, 130);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(164, 90, 58);
}

/* ========== SELECTION ========== */
::selection {
    background: rgb(237, 196, 180);
    color: rgb(92, 49, 37);
}
