/* Additional custom styles for FreshKuts Barber Shop */

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

/* Custom selection color */
::selection {
    background-color: #4ade80;
    color: #0f1d4a;
}

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

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images */
img {
    object-fit: cover;
}

/* Custom focus styles for interactive elements */
button:focus,
a:focus {
    outline: none;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade-in animation to hero content */
.hero-gradient .text-center {
    animation: fadeInUp 0.8s ease-out;
}

/* Subtle hover effect for service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Gallery image hover effect */
.group:hover img {
    transform: scale(1.1);
}

/* Smooth transitions for all interactive elements */
a,
button,
.service-card,
.group img {
    transition: all 0.3s ease;
}

/* Mobile menu open state */
.mobile-menu.open {
    animation: slideDown 0.3s ease;
}

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .float-card,
    .float-card-delayed,
    .blob {
        display: none;
    }
    
    .hero-gradient {
        background: #1e3a8a !important;
        color: #fff !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card,
    .rounded-3xl {
        border: 2px solid CanvasText;
    }
}

/* Ensure touch targets are large enough on mobile */
@media (pointer: coarse) {
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}
