/* Custom styles for Majestic Kutz Barber Shop */

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(38, 17, 38, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* 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);
    }
}

/* Mobile link hover effect */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Gallery image hover */
.rounded-xl.overflow-hidden {
    position: relative;
}

.rounded-xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(79, 35, 79, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rounded-xl.overflow-hidden:hover::after {
    opacity: 1;
}

/* Fade in animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: #7a3d7a !important;
    box-shadow: 0 0 0 3px rgba(122, 61, 122, 0.1) !important;
}

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

/* Custom selection color */
::selection {
    background: #d97706;
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #f5f0f7;
}

::-webkit-scrollbar-thumb {
    background: #7a3d7a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #642e64;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}
