/* === Custom Styles for Tragic Magic Tattooz === */

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

/* Base font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #231323;
}
::-webkit-scrollbar-thumb {
    background: #5c335c;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #724072;
}

/* Selection color */
::selection {
    background: #c48820;
    color: #231323;
}

/* === Service Card Hover Animation === */
.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.5s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* === Gallery Item Hover === */
.gallery-item {
    transition: transform 0.5s ease;
}
.gallery-item:hover {
    transform: scale(1.01);
}

/* === Scroll Reveal Animations (below the fold only) === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for reveal elements — visible for no-JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Animated state — only applied via JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animate {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.animate.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* === Navbar Transition === */
.nav-scrolled {
    background: rgba(35, 19, 35, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(92, 51, 92, 0.3);
}

/* === Mobile Menu Transition === */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}
#mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 400px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 400px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* === Mobile link hover === */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
}

/* === Form Input Focus Ring === */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(196, 136, 32, 0.3);
}

/* === Decorative line animation on hover === */
a {
    text-decoration: none;
}

/* === Print styles === */
@media print {
    nav, #mobile-menu-btn, #contact-form {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
