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

/* ── Navbar ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #8a1a3b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(138, 26, 59, 0.08);
}
#navbar.scrolled .nav-logo-text { color: #3a0a17; }

/* ── Mobile Menu ── */
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu .menu-line.active:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
#mobile-menu .menu-line.active:nth-child(2) { opacity: 0; }
#mobile-menu .menu-line.active:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); width: 20px; }

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
#mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

/* ── Hero Reveal ── */
.hero-reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.2s; }
.hero-reveal:nth-child(3) { animation-delay: 0.3s; }
.hero-reveal:nth-child(4) { animation-delay: 0.4s; }
.hero-reveal:nth-child(5) { animation-delay: 0.5s; }

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

/* ── Hero Image ── */
.hero-image-wrap {
    opacity: 0;
    transform: translateX(60px);
    animation: heroImageReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
@keyframes heroImageReveal {
    to { opacity: 1; transform: translateX(0); }
}

/* ── Geometric Shapes ── */
.hero-shape { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.shape-burgundy-circle {
    background: #8a1a3b;
    border-radius: 50%;
}
.shape-blush-circle {
    background: #ff809e;
    border-radius: 50%;
}
.shape-burgundy-triangle {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #8a1a3b;
}
.shape-blush-rect { background: #ff809e; }
.shape-burgundy-ring { border-color: #8a1a3b; }
.shape-blush-dot { background: #ff809e; }
.shape-burgundy-dot { background: #8a1a3b; }

/* ── Scroll Reveal ── */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Menu Item Hover ── */
.group:hover h4 { position: relative; }
.group:hover h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #ff809e, transparent);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fdf2f4; }
::-webkit-scrollbar-thumb { background: #d43f6c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8a1a3b; }

/* ── Selection ── */
::selection { background: #fce7eb; color: #3a0a17; }

/* ── Responsive Tweaks ── */
@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    .shape-burgundy-circle { width: 300px !important; height: 300px !important; }
    .shape-blush-circle { width: 200px !important; height: 200px !important; }
}
