/* Custom styles for Drip Fadez Barbershop */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #fdf4f8;
}
::-webkit-scrollbar-thumb {
    background: #be185d;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* Navigation transitions */
.nav-logo-text {
    transition: color 0.3s ease;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(253, 244, 248, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(128, 20, 77, 0.1);
}
.navbar-scrolled .nav-logo-text {
    color: #500724;
}
.navbar-scrolled .nav-link {
    color: #500724;
}

/* Service card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.03) 0%, rgba(251, 191, 36, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1.5rem;
}
.service-card:hover::before {
    opacity: 1;
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(80, 7, 36, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0.75rem;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(128, 20, 77, 0.15);
}

/* Mobile menu */
.mobile-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}
.mobile-link:hover {
    padding-left: 12px;
}
.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}
.mobile-link:hover::before {
    width: 6px;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Animation for scroll reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal.hidden-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    nav, .cta-banner, #contact {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
