/* Custom styles for Picasso's BARBER SHOP */

:root {
    --plum-950: #1a0a2e;
    --plum-900: #231145;
    --plum-800: #2d1660;
    --plum-700: #3d1f7e;
    --plum-600: #581c87;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--plum-950);
    color: #e9d5ff;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(26, 10, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 41, 174, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--amber-400), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gallery hover effects */
.gallery-item {
    aspect-ratio: 4/5;
    cursor: pointer;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 500px;
    padding-top: 0;
}

/* Scroll reveal base - content always visible */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .gallery-item img {
        transition: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--plum-950);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-600);
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

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

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Ensure hero text is readable */
#hero h1,
#hero p,
#hero .text-center > * {
    position: relative;
    z-index: 10;
}

/* Mobile menu active states */
.mobile-link:hover {
    color: #fbbf24;
    padding-left: 0.5rem;
    transition: all 0.2s ease;
}
