/* Custom styles for Erick Lucas Hair */

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Scroll dot animation */
@keyframes scrollDot {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(48px); }
}
.animate-scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

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

/* Navbar scroll behavior */
.nav-scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-text {
    color: #ffffff;
}

.nav-scrolled .nav-subtext {
    color: #5eead4;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.nav-scrolled .nav-link:hover {
    color: #5eead4;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .gallery-item img,
    .animate-scroll-dot {
        animation: none;
        transition: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
}

#mobile-menu.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Custom selection color */
::selection {
    background: #0d9488;
    color: #ffffff;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Fade-in animations for scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}
