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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: #0A1628;
    background-color: #F0FFF4;
    overflow-x: hidden;
}

::selection {
    background-color: #48BB78;
    color: #0A1628;
}

/* ===== NAVBAR ===== */
.nav-logo-text {
    transition: color 0.5s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #48BB78;
    transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-logo-text {
    color: #0A1628;
}

/* ===== MOBILE MENU ===== */
.menu-line {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu.open {
    translate: 0;
}

.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

#mobile-menu.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

/* ===== MARQUEE ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

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

/* ===== PRODUCT CARDS ===== */
.product-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.3s; }

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

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

/* ===== HERO ANIMATION ===== */
.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-title-delay-1 { animation-delay: 0.2s; }
.hero-title-delay-2 { animation-delay: 0.4s; }
.hero-title-delay-3 { animation-delay: 0.6s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-cta {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-image {
    opacity: 0;
    animation: heroImageIn 1s ease forwards;
    animation-delay: 0.4s;
}

@keyframes heroImageIn {
    to {
        opacity: 1;
    }
}

/* ===== BUTTONS ===== */
a, button {
    cursor: pointer;
}

/* ===== FORM ===== */
input:focus, textarea:focus {
    border-color: #68D391 !important;
    box-shadow: 0 0 0 4px rgba(104, 211, 145, 0.15) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-serif.text-6xl {
        font-size: 3.5rem;
    }

    .font-serif.text-5xl {
        font-size: 2.75rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .product-card,
    .reveal {
        will-change: opacity, transform;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .product-card,
    .reveal {
        opacity: 1;
        transform: none;
    }
}
