/* Custom styles for Robert's Hairstyling & Boutique */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #C9A962, #C2704E);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Gallery hover effects */
.gallery-item {
    position: relative;
}

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

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

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #C9A962, #D4B87A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

::-webkit-scrollbar-track {
    background: #12100E;
}

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

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

/* Selection color */
::selection {
    background: rgba(201, 169, 98, 0.3);
    color: #D4C5B0;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #1A1815 inset !important;
    -webkit-text-fill-color: #D4C5B0 !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card::before,
    .gallery-item::after,
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item img {
        transform: none !important;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.3);
}

/* Button hover glow */
button:hover,
a:hover {
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.2);
}

button:active,
a:active {
    box-shadow: 0 0 15px rgba(201, 169, 98, 0.3);
}
