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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f8f6f0;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d2419;
}

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

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

/* ========== HERO ANIMATIONS ========== */
@keyframes heroUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

.hero-tagline {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-headline {
    animation: heroUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtext {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-ctas {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stats {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-img-main img {
    animation: heroFade 1s ease forwards;
}

.hero-img-small {
    animation: heroFade 0.8s ease forwards;
}

.hero-float-card {
    animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(7, 18, 12, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* ========== MOBILE MENU ========== */
.mobile-link {
    font-size: 1.5rem;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: heroUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 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; }

.menu-line {
    display: block;
}

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

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

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

/* ========== REVEAL ANIMATIONS ========== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

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

    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* ========== PRODUCT CARD HOVER ========== */
.reveal-up:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ========== FOCUS STATES ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .hero-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }

    .hero-img-main img {
        height: 400px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}
