/* Till Death Tattoo Collective — Custom Styles */

/* Base reset & typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    line-height: 1.6;
}

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

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotation, 0deg));
    }
}

/* Pulse animation for CTA buttons */
@keyframes pulse-terracotta {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(232, 80, 42, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(232, 80, 42, 0);
    }
}

/* Mobile menu transitions */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile nav link hover */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8502a;
    transition: width 0.3s ease;
}

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

/* Mobile menu close button */
#mobile-menu-close:hover {
    background: #f9c4b0 !important;
}

/* Hamburger menu animation */
.menu-line {
    transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover effects */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(232, 80, 42, 0.15);
}

/* Gallery hover effects */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Form input focus states */
.form-input:focus {
    outline: none;
    border-color: #e8502a !important;
    box-shadow: 0 0 0 3px rgba(232, 80, 42, 0.1) !important;
}

/* Button transitions */
button, a {
    transition: all 0.3s ease;
}

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

/* Print styles */
@media print {
    nav, .mobile-menu, #mobile-menu-overlay {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .service-card, .testimonial-card {
        break-inside: avoid;
    }
}
