/* Custom Styles for 480 Salon Studio */

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.1);
}

.service-card:hover svg {
    transform: scale(1.1);
}

/* Gallery Item Hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 107, 107, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: fadeIn 0.3s ease;
}

/* Scroll Reveal Animation (Progressive Enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default state - always visible for accessibility */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #FF6B6B, #D4AF37);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #FF8E8E, #E5C158);
}

/* Button Hover Effects */
a[href^="tel:"], 
a[href^="mailto:"] {
    text-decoration: none;
}

/* Focus States for Accessibility */
a:focus-visible, 
button:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

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

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
}

/* Loading State for Images */
img {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Parallax Effect for Hero */
#hero {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
    }
}
