/* Custom styles for Wildwood */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdf8;
}
::-webkit-scrollbar-thumb {
    background: #baf3df;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #85e8c4;
}

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

/* Hero animations */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content {
    animation: fadeUp 1s ease forwards;
}

.hero-image-main {
    animation: fadeIn 1.2s ease forwards;
}

.hero-floating-card {
    animation: floatUp 1s ease 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-image-accent {
    animation: scaleIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-stat {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.hero-stat:nth-child(1) { animation-delay: 0.6s; }
.hero-stat:nth-child(2) { animation-delay: 0.7s; }
.hero-stat:nth-child(3) { animation-delay: 0.8s; }

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Collection cards */
.collection-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(240, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06);
}

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

#navbar.scrolled .nav-link {
    color: #132d58;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 6rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 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 {
        opacity: 1;
        transform: none;
    }
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #85e8c4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image aspect ratio utilities */
.aspect-card {
    aspect-ratio: 4 / 5;
}
