/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ========== HERO BLOB ANIMATIONS ========== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #c44752 0%, transparent 70%);
    top: -10%; left: -5%;
    animation-delay: 0s;
}
.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #ff9678 0%, transparent 70%);
    bottom: -5%; right: -5%;
    animation-delay: -3s;
    animation-duration: 10s;
}
.blob-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #e89aaa 0%, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: -5s;
    animation-duration: 12s;
}
@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -30px) scale(1.05); }
    66%  { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ========== REVEAL ANIMATIONS (progressive enhancement) ========== */
/* Default state: all content visible — no hidden elements above the fold */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Only apply scroll-reveal when JS is enabled AND user prefers motion */
.js-enabled .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.js-enabled .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-enabled .reveal:nth-child(4) { transition-delay: 0.3s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========== CARD HOVER ========== */
.card { will-change: transform; }

/* ========== MOBILE MENU TRANSITION ========== */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== NAVBAR SCROLLED STATE ========== */
#navbar.scrolled {
    background: rgba(255, 248, 247, 0.95);
    box-shadow: 0 4px 20px rgba(116, 37, 43, 0.08);
}

/* ========== MOBILE MENU LINKS ========== */
.mobile-link { border-radius: 0.75rem; }

/* ========== FOCUS STYLES ========== */
a:focus-visible, button:focus-visible {
    outline: 3px solid #ff9678;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fff8f7; }
::-webkit-scrollbar-thumb { background: #d4656f; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c44752; }
