/* Custom styles for Diehly Boy Tattoo */

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

body {
    overflow-x: hidden;
}

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

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

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

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

/* Navigation scroll effect */
nav.scrolled {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu button animation */
.menu-line:last-child {
    width: 1.5rem;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reveal animations */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-float {
    opacity: 1;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

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

/* Scroll animations - only apply when JS is enabled */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-scale {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-scale {
        transform: scale(0.95);
    }
    
    .reveal-up.visible,
    .reveal-scale.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scroll indicator animation */
@keyframes scroll {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(1.5); }
    100% { opacity: 1; transform: scaleY(1); }
}

.animate-scroll {
    animation: scroll 2s ease-in-out infinite;
    transform-origin: top;
}

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.delay-75 {
    animation-delay: 0.75s;
}

.delay-150 {
    animation-delay: 1.5s;
}

/* Image hover effects */
.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    #contact,
    .overflow-hidden img {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
