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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ─── Scroll Reveal ─── */
@media (prefers-reduced-motion: no-preference) {
    .scroll-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);
    }

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

    .scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ─── Geometric Hero Shapes ─── */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .geo-shape {
        animation: float 8s ease-in-out infinite;
    }
}

.shape-circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 244, 240, 0.6) 0%, transparent 70%);
    top: -80px;
    right: -100px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(253, 249, 237, 0.5);
    bottom: 15%;
    left: 5%;
    animation-delay: -2s;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(245, 224, 142, 0.5);
    top: 30%;
    left: 12%;
    animation-delay: -4s;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: rgba(253, 244, 240, 0.4);
    border-radius: 20px;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: -1s;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    background: rgba(245, 224, 142, 0.5);
    border-radius: 12px;
    bottom: 25%;
    right: 20%;
    transform: rotate(20deg);
    animation-delay: -3s;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(253, 249, 237, 0.35);
    top: 60%;
    left: 8%;
    animation-delay: -5s;
}

.shape-dots {
    background-image: radial-gradient(rgba(253, 249, 237, 0.5) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.4;
}

.shape-circle-4 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 249, 237, 0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: -3s;
}

.shape-square-3 {
    width: 80px;
    height: 80px;
    background: rgba(253, 249, 237, 0.08);
    border-radius: 16px;
    top: 10%;
    left: 5%;
    transform: rotate(30deg);
    animation-delay: -2s;
}

.shape-circle-5 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 92, 48, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -80px;
    animation-delay: -1s;
}

.shape-dots-dark {
    background-image: radial-gradient(rgba(253, 249, 237, 0.06) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.6;
}

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

/* ─── Scroll Indicator ─── */
.scroll-line {
    width: 100%;
    height: 40%;
    background: rgba(255, 255, 255, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: 0; opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-blur-md;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ─── Product Card Hover ─── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ─── Selection ─── */
::selection {
    background: rgba(224, 92, 48, 0.2);
    color: #401109;
}

/* ─── Focus ─── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #e05c30;
    outline-offset: 3px;
    border-radius: 4px;
}
