/* Custom styles for Inkfusion Tattoo Studio */

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

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #c4623a;
    color: #e8d5c4;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

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

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

/* Navbar styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #c9a96e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu styles */
.mobile-link {
    position: relative;
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #c9a96e !important;
    box-shadow: 0 0 0 1px #c9a96e;
}

/* Gallery hover effects */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Reveal animations - progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        animation: fadeInUp 0.8s ease forwards;
    }
    
    .reveal-left {
        animation: fadeInLeft 0.8s ease forwards;
    }
    
    .reveal-right {
        animation: fadeInRight 0.8s ease forwards;
    }
}

/* Stagger animation delays */
.reveal-up:nth-child(1) { animation-delay: 0.1s; }
.reveal-up:nth-child(2) { animation-delay: 0.2s; }
.reveal-up:nth-child(3) { animation-delay: 0.3s; }
.reveal-up:nth-child(4) { animation-delay: 0.4s; }
.reveal-up:nth-child(5) { animation-delay: 0.5s; }
.reveal-up:nth-child(6) { animation-delay: 0.6s; }

/* Mobile menu button animation */
#mobile-menu-btn span:nth-child(1) {
    transform-origin: left;
}

#mobile-menu-btn span:nth-child(2) {
    transform-origin: left;
}

#mobile-menu-btn span:nth-child(3) {
    transform-origin: left;
}

/* Active menu state */
#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px);
    width: 1.5rem;
}

/* Button hover effects */
button:hover,
a:hover {
    transform: translateY(-2px);
}

button:active,
a:active {
    transform: translateY(0);
}

/* Image loading placeholder */
img {
    background-color: #1a1a1a;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
