/* Custom styles for Good Vibes Only Barbershop */

:root {
    --teal-50: #f0fdfa;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --slate-50: #f8fafc;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.nav-text {
    color: #1e293b;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-text {
    color: #1e293b;
}

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

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 148, 136, 0.0) 0%, rgba(13, 148, 136, 0.0) 100%);
    border-radius: inherit;
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: linear-gradient(to top, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0.0) 50%);
}

/* Testimonial cards */
.testimonial-card {
    transform: translateY(0);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations — below the fold only */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Smooth focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #134e4a;
}
