/* Custom styles for Pat The Barber Barbershop */

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

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

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

::-webkit-scrollbar-thumb {
    background: #5a1d2f;
    border-radius: 6px;
}

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

/* Geometric decorative elements */
.geo-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

.float-1 {
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    animation: float-reverse 7s ease-in-out infinite;
}

/* Hover effects for cards */
.service-card:hover .card-icon {
    transform: rotate(12deg) scale(1.1);
}

.card-icon {
    transition: transform 0.3s ease;
}

/* Image hover zoom */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Button shadow animation */
.btn-shadow {
    transition: all 0.3s ease;
}

.btn-shadow:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px 0px rgba(130, 39, 64, 1);
}

.btn-shadow:active {
    transform: translate(0, 0);
    box-shadow: 6px 6px 0px 0px rgba(130, 39, 64, 1);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(194, 74, 104, 0.2);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Reduced motion preference */
@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;
    }
}
