/* ===== Base / Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #b91d4c;
    color: #fff;
}

/* ===== Geometric Background Shapes ===== */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd8df 0%, transparent 70%);
    top: 20%;
    right: -80px;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #f9cdd7 0%, transparent 70%);
    bottom: 30%;
    left: -60px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(244, 163, 184, 0.15);
    top: 45%;
    left: 5%;
    transform: rotate(15deg);
}

.shape-squircle {
    width: 120px;
    height: 120px;
    background: rgba(249, 205, 215, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 60%;
    right: 8%;
    animation: morphSquircle 8s ease-in-out infinite;
}

.shape-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.12) 2px, transparent 2px);
    background-size: 12px 12px;
    top: 15%;
    left: 10%;
}

@keyframes morphSquircle {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* ===== Hero Geometric Shapes ===== */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.hero-geo-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
}

.hero-geo-3 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 255, 255, 0.05);
    top: 20%;
    left: 8%;
    transform: rotate(-15deg);
}

.hero-geo-4 {
    width: 120px;
    height: 120px;
    background: rgba(255, 183, 196, 0.08);
    border-radius: 20px;
    top: 40%;
    right: 10%;
    transform: rotate(45deg);
}

.hero-geo-5 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: 25%;
    right: 25%;
}

.hero-geo-6 {
    width: 160px;
    height: 160px;
    border: 2px solid rgba(255, 183, 196, 0.1);
    border-radius: 50%;
    bottom: -40px;
    left: 30%;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    display: block;
}

/* ===== Product Cards ===== */
.product-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.product-card:not(.reveal-active) {
    opacity: 0;
    transform: translateY(40px);
}

/* ===== Scroll Reveal (below fold only) ===== */
.reveal {
    /* Default visible — JS adds the hidden state as progressive enhancement */
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .reveal.reveal-active {
        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; }
}

/* ===== Back to Top ===== */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
