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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #0a1628;
    color: #ffffff;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 3px;
}

/* Selection */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Hero animations */
.hero-title {
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(60px);
    opacity: 0;
}

.hero-subtitle {
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    transform: translateY(40px);
    opacity: 0;
}

.hero-desc {
    animation: heroSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    transform: translateY(40px);
    opacity: 0;
}

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

/* Scroll dot animation */
@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Scroll reveal animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

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

/* Stagger children */
.wine-card:nth-child(1) { transition-delay: 0s; }
.wine-card:nth-child(2) { transition-delay: 0.1s; }
.wine-card:nth-child(3) { transition-delay: 0.2s; }
.wine-card:nth-child(4) { transition-delay: 0.3s; }
.wine-card:nth-child(5) { transition-delay: 0.4s; }
.wine-card:nth-child(6) { transition-delay: 0.5s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line:nth-child(3) {
    width: 1.5rem;
}

/* Active menu state */
.menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

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

/* Wine card hover */
.wine-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wine-card:hover {
    transform: translateY(-8px);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Reduced motion */
@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-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
}
