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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
}

/* ========== NAVBAR ========== */
#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled #nav-logo-text {
    color: #1c1917;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #d4522b;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

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

#mobile-menu.open .mobile-link {
    animation: slideIn 0.4s ease forwards;
    opacity: 0;
}

#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; }
#mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.25s; }

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

/* Hamburger animation */
#menu-btn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menu-btn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
}

/* ========== HERO BADGE ========== */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

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

/* ========== HERO CTA ========== */
#hero a[href="#products"],
#hero a[href="tel:+17734340310"] {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

#hero a[href="#products"] { animation-delay: 0.4s; }
#hero a[href="tel:+17734340310"] { animation-delay: 0.5s; }

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

/* ========== GEOMETRIC SHAPES ========== */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

.circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #f5e09a;
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f8c4b0;
    bottom: 20%;
    left: 8%;
    animation: float 6s ease-in-out infinite reverse;
}

.circle-3 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e0ad42;
    top: 40%;
    left: 15%;
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #fce4d9;
    top: 25%;
    left: 5%;
    transform: rotate(15deg);
    animation: spin 12s linear infinite;
    opacity: 0.1;
}

.square-1 {
    width: 100px;
    height: 100px;
    background: #f29a7e;
    top: 60%;
    right: 10%;
    transform: rotate(30deg);
    border-radius: 12px;
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

.line-pattern {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 40%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(245, 224, 154, 0.3) 10px,
        rgba(245, 224, 154, 0.3) 12px
    );
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    opacity: 0.08;
}

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== REVEAL ANIMATIONS (below fold only) ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@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;
        transform: none;
    }
}

/* ========== SCROLL REVEAL JS-APPLIED ========== */
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .geo-shape.circle-1 {
        width: 200px;
        height: 200px;
    }
}
