/* Custom styles for Sandy Keane's School of Dance */

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

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

/* Scroll reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-track {
    background: #2a1125;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #8a3f74;
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #faf0f5;
}

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

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

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

/* Nav link hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4A017, #eab820);
    transition: width 0.3s ease, left 0.3s ease;
}

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

/* Form select styling */
select option {
    background: #3a1832;
    color: #f3dcee;
}

/* Image aspect ratio helpers */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* Print styles */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
