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

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

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

/* ─── HERO GRADIENT ─── */
.hero-gradient {
    background: linear-gradient(135deg, #1C1C24 0%, #2C2C35 25%, #3F3F46 50%, #52525B 75%, #1C1C24 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(249, 117, 131, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(249, 117, 131, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 80%, rgba(249, 117, 131, 0.1) 0%, transparent 50%);
}

/* ─── HERO BLOBS ─── */
.hero-blob-1 {
    background: radial-gradient(circle, rgba(249, 117, 131, 0.5) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-2 {
    background: radial-gradient(circle, rgba(249, 117, 131, 0.4) 0%, transparent 70%);
    bottom: -5%;
    right: -5%;
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.hero-blob-3 {
    background: radial-gradient(circle, rgba(249, 173, 181, 0.3) 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: blobFloat 12s ease-in-out infinite;
}

@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); }
}

/* ─── HERO PATTERN ─── */
.hero-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ─── NAV ─── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F97583;
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

#nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

/* ─── MOBILE MENU ─── */
#mobileMenu { animation: slideDown 0.3s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-line { transition: all 0.3s ease; }
#menuBtn.active .menu-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#menuBtn.active .menu-line:nth-child(2) { opacity: 0; }
#menuBtn.active .menu-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 6px; }

/* ─── CARD HOVER ─── */
.card-hover { transform: translateY(0); }
.card-hover:hover { transform: translateY(-6px); }

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

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

/* Default state for reduced motion — always visible */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ─── TESTIMONIAL PATTERN ─── */
.testimonial-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ─── CTA PATTERN ─── */
.cta-pattern {
    background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ─── FOCUS STYLES ─── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #F97583;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ─── SELECTION ─── */
::selection {
    background: rgba(249, 117, 131, 0.2);
    color: #1C1C24;
}
