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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    overflow-x: hidden;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(61, 43, 31, 0.08);
}

/* MOBILE MENU */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeSlideIn 0.3s ease forwards;
}

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

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-line {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
    width: 1.25rem;
}

/* HERO SHAPES */
.hero-geo {
    animation: float 6s ease-in-out infinite;
}

.hero-geo:nth-child(2) { animation-delay: -2s; animation-duration: 8s; }
.hero-geo:nth-child(3) { animation-delay: -4s; animation-duration: 7s; }
.hero-geo:nth-child(4) { animation-delay: -1s; animation-duration: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-18px) rotate(var(--rotate, 0deg)); }
}

/* SCROLL DOT */
.scroll-dot {
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 12px); }
}

/* CTA SHAPES */
.cta-shape {
    animation: ctaFloat 7s ease-in-out infinite;
}

.cta-shape:nth-child(2) { animation-delay: -2s; animation-duration: 9s; }
.cta-shape:nth-child(3) { animation-delay: -4s; animation-duration: 6s; }
.cta-shape:nth-child(4) { animation-delay: -1s; animation-duration: 8s; }

@keyframes ctaFloat {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-14px) rotate(50deg); }
}

/* 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);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* PRODUCT CARD HOVER */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
    background: #B85D44;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a04e38;
}

/* SELECTION */
::selection {
    background: #B85D44;
    color: white;
}
