/* Custom styles for Temple Tattoo Studio */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Selection color */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #fefdf8;
}

/* Scroll animation for service cards */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gallery hover effects */
.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Scroll indicator animation */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.animate-scroll {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* Mobile menu transitions */
.mobile-link {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-scroll {
        animation: none;
    }
    
    .service-card,
    .gallery-item {
        transition: none;
    }
    
    .service-card:hover,
    .gallery-item:hover {
        transform: none;
    }
}

/* Mobile menu animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 15, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect */
.glow-emerald {
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.3);
}

.glow-emerald:hover {
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.5);
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #111a15 25%, #162019 50%, #111a15 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Form input focus animations */
input:focus,
select:focus,
textarea:focus {
    animation: inputFocus 0.3s ease forwards;
}

@keyframes inputFocus {
    from {
        border-color: rgba(212, 180, 67, 0.2);
    }
    to {
        border-color: rgba(34, 197, 94, 0.5);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    }
}

/* Success message animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#successMessage {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    nav,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-luxury-900,
    .bg-luxury-800 {
        background: white !important;
    }
    
    .text-cream-50,
    .text-cream-300 {
        color: black !important;
    }
}
