/* Custom styles for Teresa Razor Fades */

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Service card hover */
.service-card {
    will-change: transform;
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
}

/* Testimonial card */
.testimonial-card {
    position: relative;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-text {
    color: #3f2445;
}

#navbar.scrolled .nav-link {
    color: #5e3466;
}

#navbar.scrolled .nav-link:hover {
    color: #885490;
}

#navbar.scrolled .mobile-link {
    color: #5e3466;
}

/* Mobile menu animation */
#mobile-menu.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Back to top */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

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

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

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

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

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

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #885490;
    outline-offset: 2px;
}

/* Reduced motion */
@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;
    }
    
    .animate-scroll-indicator {
        animation: none;
    }
}
