/* Custom styles for K Signature Barbershops */

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

/* Scroll reveal base - content is visible by default (progressive enhancement) */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply animation when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Mobile menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Navbar scrolled state */
#navbar.scrolled {
    background: rgba(255, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero decorative shapes animation */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

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

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

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

.hero-shape-2 {
    animation: float-reverse 8s ease-in-out infinite;
}

.hero-dot {
    animation: pulse-dot 3s ease-in-out infinite;
}

/* Button hover glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(130, 27, 52, 0.3);
}

/* Service card hover image zoom */
.service-card-img {
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

/* Gallery hover */
.gallery-item img {
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Map styling */
#map {
    background: #e5e7eb;
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    border-color: #e9728e;
    box-shadow: 0 0 0 3px rgba(233, 114, 142, 0.15);
}

/* Selection color */
::selection {
    background: rgba(130, 27, 52, 0.15);
    color: #821b34;
}

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

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

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

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