/* Custom styles for Witchinghour Studios */

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

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

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

::-webkit-scrollbar-thumb {
    background: #ff5722;
    border-radius: 3px;
}

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

/* Hero scroll animation */
@keyframes scroll-down {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

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

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff5722, transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Testimonial slider */
.testimonial-slide {
    opacity: 1;
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.testimonial-slide.hidden {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* Mobile menu animations */
.mobile-menu-open #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #line2 {
    opacity: 0;
}

.mobile-menu-open #line3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* Navbar background on scroll */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 87, 34, 0.1);
}

/* Selection color */
::selection {
    background: rgba(255, 87, 34, 0.3);
    color: #fff;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-scroll-down {
        animation: none;
    }
    
    .service-card::before {
        display: none;
    }
    
    .testimonial-slide {
        transition: none;
    }
}

/* Mobile menu overlay */
#mobileMenu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Gallery hover overlay */
.aspect-square {
    position: relative;
}

.aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aspect-square:hover::after {
    opacity: 1;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff5722' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Form input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: #fff !important;
}
