/* Custom styles for Nyc Barbershop */

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

/* Prevent flash of hidden content - all content visible by default */
body {
    opacity: 1;
}

/* Hero shapes animation */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.shape-circle-1 {
    animation-delay: 0s;
}

.shape-circle-2 {
    animation-delay: -2s;
}

.shape-rect-1 {
    animation-delay: -4s;
}

.shape-triangle {
    animation-delay: -1s;
}

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

/* Service card hover effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(217, 64, 35, 0.2);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

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

.gallery-item:hover img {
    filter: brightness(1.05);
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu animation */
.mobile-link {
    opacity: 1;
    transform: none;
}

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal.animated {
        animation: fadeInUp 0.8s ease forwards;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* Selection color */
::selection {
    background: #f8c4b4;
    color: #76231b;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #e85433;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu */
#mobileMenu {
    backdrop-filter: blur(20px);
}

/* Contact form */
.contact-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-input:focus {
    border-color: #d94023;
    box-shadow: 0 0 0 3px rgba(217, 64, 35, 0.1);
}

/* Success message */
.success-message {
    animation: slideIn 0.4s ease;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-shape {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}
