/* === Custom Styles for Forston's Barber Shop === */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* === Floating Animation for Hero Cards === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

/* === Scroll Reveal (Progressive Enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .gallery-item,
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .service-card.revealed,
    .gallery-item.revealed,
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card:nth-child(1).revealed,
    .gallery-item:nth-child(1).revealed { transition-delay: 0.05s; }
    .service-card:nth-child(2).revealed,
    .gallery-item:nth-child(2).revealed { transition-delay: 0.1s; }
    .service-card:nth-child(3).revealed,
    .gallery-item:nth-child(3).revealed { transition-delay: 0.15s; }
    .service-card:nth-child(4).revealed,
    .gallery-item:nth-child(4).revealed { transition-delay: 0.2s; }
    .service-card:nth-child(5).revealed,
    .gallery-item:nth-child(5).revealed { transition-delay: 0.25s; }
    .service-card:nth-child(6).revealed,
    .gallery-item:nth-child(6).revealed { transition-delay: 0.3s; }
}

/* Default visible state (no JS) */
.service-card,
.gallery-item,
.reveal {
    opacity: 1;
    transform: none;
}

/* === Navbar Scroll State === */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(10, 20, 40, 0.08);
}

#navbar.scrolled .font-display {
    color: #0f1f3f !important;
}

/* === Mobile Menu === */
.mobile-link {
    display: block;
    transition: color 0.2s;
}

.mobile-link:hover {
    color: #d4a84b;
}

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

/* === Button Focus States === */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4a84b;
    outline-offset: 2px;
}

/* === Selection === */
::selection {
    background: #d4a84b;
    color: #0f1f3f;
}
