/* Custom styles for Tommy Slater Hairstylist */

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

/* Selection color */
::selection {
    background-color: #34d399;
    color: #020617;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service item hover */
.service-item {
    transition: background-color 0.3s ease;
}

.service-item:hover {
    background-color: rgba(16, 185, 129, 0.03);
}

/* Mobile menu animations */
#mobile-menu.open {
    transform: translateX(0);
}

/* Hamburger animation */
#menu-btn.active #line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active #line2 {
    opacity: 0;
}

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

/* Navbar background on scroll */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Image hover effects */
.aspect-square img,
.aspect-\[3\/4\] img,
.aspect-\[4\/3\] img {
    transition: transform 0.7s ease;
}

.aspect-square:hover img,
.aspect-\[3\/4\] img:hover,
.aspect-\[4\/3\] img:hover {
    transform: scale(1.03);
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #10b981 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #10b981;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}
