/* Custom Styles for Bad Boy Tattoo */

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

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

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

::-webkit-scrollbar-thumb {
    background: #7c1d36;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #961e3c;
}

/* Selection Color */
::selection {
    background: #d44568;
    color: #ffffff;
}

/* Navbar Transition */
#navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Image Hover Effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Button Hover Effects */
button, a {
    cursor: pointer;
}

/* Input Focus Effects */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 2px rgba(212, 69, 104, 0.3);
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 69, 104, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 69, 104, 0.6);
    }
}

/* Utility Animations */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Print Styles */
@media print {
    #navbar, #mobile-menu, button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Reduced Motion */
@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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-400 {
        color: #9ca3af;
    }
    
    .border-gray-800 {
        border-color: #374151;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid #d44568;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

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