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

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

body {
    margin: 0;
    background-color: #FDFBF7;
    color: #3D2216;
    font-family: 'DM Sans', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== DECORATIVE BLOBS ========== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 20s ease-in-out infinite;
}

.blob--terra {
    background: #C0603A;
}

.blob--sand {
    background: #D4BC78;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========== GEOMETRIC SHAPES ========== */
.geo {
    position: absolute;
    pointer-events: none;
}

.geo--circle-terra {
    background: #C0603A;
    border-radius: 50%;
}

.geo--circle-sand {
    background: #D4BC78;
    border-radius: 50%;
}

.geo--square-sand {
    background: #E8D49A;
    border-radius: 12px;
}

.geo--dot-grid {
    background-image: radial-gradient(circle, #C0603A 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    width: 200px;
    height: 200px;
}

/* ========== NAVIGATION ========== */
.nav {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 188, 120, 0.2);
}

.nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 1px 20px rgba(61, 34, 22, 0.06);
}

.nav-link {
    transition: color 0.2s, background 0.2s;
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.25s ease-out;
}

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

.mobile-nav-link {
    display: block;
}

/* ========== MARQUEE ========== */
.marquee-track {
    animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-block;
    padding: 0 4px;
}

/* ========== FLOATING CARDS ========== */
.floating-card {
    animation: floatY 4s ease-in-out infinite;
}

.card--top {
    animation-delay: 0s;
}

.card--mid {
    animation-delay: 1.3s;
    animation-duration: 5s;
}

.card--bot {
    animation-delay: 2.6s;
    animation-duration: 4.5s;
}

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

/* ========== SCROLL REVEAL ========== */
.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(24px);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ========== CARD TILT ========== */
.card-tilt {
    perspective: 800px;
}

.card-tilt > div {
    transition: transform 0.4s ease-out;
    transform-style: preserve-3d;
}

/* ========== BUTTONS ========== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ========== FOCUS ========== */
:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== SELECTION ========== */
::selection {
    background: #FAC5B0;
    color: #3D2216;
}

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

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

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

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