/* Custom styles for Emanuel's Barber Shop */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(8, 15, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

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

::-webkit-scrollbar-track {
    background: #0F172A;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5EEAD4;
}

/* Selection color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #F0FDFA;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #34D399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input focus states */
input:focus-visible,
textarea:focus-visible {
    outline: none;
}

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

/* Service card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Image hover zoom */
.group img,
.rounded-2xl img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Counter animation */
.counter {
    display: inline-block;
}

/* Pulse dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Geometric accent shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Map filter for dark theme */
.map-dark {
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}
