/* Custom styles for Bella Raine Salon and Spa */

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

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

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

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

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

/* Service Cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.gallery-item:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 107, 0.2);
    transition: background 0.3s ease;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #FF6B6B;
    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;
    }
    
    .gallery-item img,
    .service-card img {
        transition: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: 0.02em;
    }
}

/* Loading state */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #2D2D2D 25%, #3D3D3D 50%, #2D2D2D 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;
}

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