/* Custom Styles for Classy Social Club */

/* Base transitions */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 1px 0 rgba(23, 49, 27, 0.08);
}

nav.scrolled .nav-text-color {
    color: #17311b;
}

nav.scrolled .nav-subtext {
    color: #427d4a;
}

nav.scrolled .nav-link {
    color: #17311b;
}

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

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

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

/* Menu lines animation */
.menu-line {
    transform-origin: center;
}

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

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

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

/* Hero animations - content visible by default, enhanced with JS */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
}

.hero-headline {
    animation: slideUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-text {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

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

.hero-image-accent {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

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

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

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@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;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDFCF8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #97c59e;
}

/* Selection color */
::selection {
    background-color: #c5dfca;
    color: #17311b;
}

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
