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

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

body {
    overflow-x: hidden;
}

/* ─── Navbar ─── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 251, 240, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(131, 20, 77, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* ─── Hero Shapes ─── */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: #fbbf24;
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    bottom: 10%;
    left: -50px;
    animation-delay: -2s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: #f59e0b;
    top: 30%;
    right: 10%;
    animation-delay: -4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: #f9a8d4;
    top: 20%;
    left: 15%;
    animation-delay: -1s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-5 {
    width: 80px;
    height: 80px;
    background: #fde68a;
    bottom: 25%;
    right: 20%;
    animation-delay: -3s;
    border-radius: 20% 80% 30% 70% / 60% 40% 60% 40%;
}

.shape-6 {
    width: 200px;
    height: 200px;
    background: #db2777;
    bottom: -60px;
    right: 30%;
    animation-delay: -5s;
    opacity: 0.08;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-20px) rotate(3deg) scale(1.02); }
    66% { transform: translateY(10px) rotate(-2deg) scale(0.98); }
}

/* ─── Marquee ─── */
.marquee-track {
    width: 200%;
}

.marquee-content {
    animation: marquee 30s linear infinite;
}

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

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ─── Mobile Menu ─── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    display: block;
}

/* ─── Form ─── */
select option {
    background: #831443;
    color: #fbcfe8;
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

.animate-dash {
    animation: dash 1s linear infinite;
}

/* ─── Selection ─── */
::selection {
    background: #fbbf24;
    color: #451a03;
}

/* ─── Focus visible ─── */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ─── Utility ─── */
@media (max-width: 768px) {
    .hero-shape {
        opacity: 0.08;
    }

    .shape-1 { width: 300px; height: 300px; }
    .shape-2 { width: 200px; height: 200px; }
    .shape-3 { width: 120px; height: 120px; }
    .shape-4, .shape-5, .shape-6 { display: none; }
}
