/* Custom styles for Darkness Tattoos */

:root {
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Hero animations - no JS required for visibility */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover */
.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-teal-600), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gallery hover */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(15, 23, 42, 0.1);
}

/* Process card hover */
.process-card {
    position: relative;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(241, 245, 249, 0.5);
}

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

::-webkit-scrollbar-track {
    background: var(--color-slate-900);
}

::-webkit-scrollbar-thumb {
    background: var(--color-teal-700);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-teal-600);
}

/* Selection */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: var(--color-slate-900);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial card */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(13, 148, 136, 0.08);
    line-height: 1;
    pointer-events: none;
}

/* Input focus styles */
input:focus,
textarea:focus {
    border-color: var(--color-teal-600) !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;
    }
}

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