/* ========================================
   Tattoos Of Edin — Custom Styles
   Classic & Elegant | Burgundy + Blush
======================================== */

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #b93a3a;
    color: #fefdfb;
}

/* ========================================
   Navbar
======================================== */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 40, 40, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(254, 253, 251, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #f4c0b0;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #f4c0b0;
}

#navbar:not(.scrolled) .nav-link-text {
    color: rgba(254, 253, 251, 0.85);
}

/* ========================================
   Mobile Menu
======================================== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

#bar1.open {
    transform: rotate(45deg) translate(5px, 5px);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* ========================================
   Service Cards
======================================== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(61, 16, 16, 0);
    transition: background 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(61, 16, 16, 0.3);
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement: content is
   visible by default, JS adds animation
======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   Form Styles
======================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: #b93a3a !important;
    box-shadow: 0 0 0 3px rgba(185, 58, 58, 0.1);
    outline: none;
}

/* ========================================
   Back to Top
======================================== */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

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

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 1023px) {
    #hero .lg\:absolute {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        margin-top: 3rem;
    }
}

@media (min-width: 1024px) {
    .lg\:absolute {
        position: absolute;
    }
}
