/* Custom styles for Made Market */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F2ED;
}
::-webkit-scrollbar-thumb {
    background: #C05A4A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A34839;
}

/* Selection color */
::selection {
    background: #C05A4A;
    color: white;
}

/* Hero animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}
.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
}
.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}
.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}
.hero-stats {
    animation: slideUp 0.8s ease forwards 1s;
}
.hero-image-wrapper {
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}
.hero-accent-card {
    animation: float 3s ease-in-out infinite;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(245, 242, 237, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(42, 42, 42, 0.1);
}
.navbar-scrolled .nav-logo-text {
    color: #2A2A2A;
}

/* Mobile menu transitions */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.5s; }

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form select styling */
select option {
    background: #2A2A2A;
    color: white;
}

/* Image hover effects */
img {
    will-change: transform;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
