/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

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

#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}
#navbar.scrolled .nav-logo-text { color: #7B2D3B; }

/* ===== MOBILE MENU ===== */
.mobile-link { transition: all 0.3s ease; }
.mobile-menu-open #menuBtn .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open #menuBtn .menu-line:nth-child(2) { opacity: 0; }
.mobile-menu-open #menuBtn .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* ===== HERO ANIMATIONS ===== */
.hero-reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.8s ease forwards;
}
.hero-reveal:nth-child(2) { animation-delay: 0.15s; }
.hero-reveal:nth-child(3) { animation-delay: 0.3s; }
.hero-reveal:nth-child(4) { animation-delay: 0.45s; }

@keyframes heroReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.floating { animation: float 4s ease-in-out infinite; }

/* ===== DECORATIVE SHAPES ===== */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 20s linear infinite; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF8F5; }
::-webkit-scrollbar-thumb { background: #F28A9A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7B2D3B; }

/* ===== SELECTION ===== */
::selection { background: #F28A9A; color: #7B2D3B; }

/* ===== FORM FOCUS ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-display { line-height: 1.1; }
}
