/* Custom Styles for H and Q Studio */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #e8554a;
}

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
}

.hero-anim:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-anim:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-anim:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-anim:nth-child(4) {
    animation-delay: 0.8s;
}

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

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

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

/* Scroll indicator animation */
@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(8px);
    }
}

.animate-scroll {
    animation: scrollPulse 2s ease-in-out infinite;
}

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

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

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

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

/* Image hover effects */
.aspect-square img {
    transition: transform 0.7s ease;
}

/* 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;
    }
}
