/* Custom styles for New Image Barbershop */

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

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

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

::-webkit-scrollbar-thumb {
    background: #1a4d2e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d6a4f;
}

/* Service card hover effect */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery hover effect */
.gallery-item {
    height: 250px;
}

@media (min-width: 768px) {
    .gallery-item {
        height: 300px;
    }
}

/* Mobile menu animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active menu state */
.nav-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(26, 77, 46, 0.1);
}

.nav-scrolled .font-display {
    color: #1a4d2e !important;
}

.nav-scrolled .menu-line {
    background: #1a4d2e !important;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

/* Back to top button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* Mobile menu link hover */
.mobile-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

/* Button ripple effect */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on images */
img {
    content-visibility: auto;
}

/* Hero text animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: slideUp 1s ease forwards;
}

.hero-text-delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-text-delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-text-delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.float-1 {
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    animation: float 8s ease-in-out infinite;
    animation-delay: 1s;
}

.float-3 {
    animation: float 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .gallery-item::after {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
