/* Custom styles for The Ink Shop */

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

/* Prevent flash of hidden content - all content is visible by default */
/* JS adds .revealed class for scroll animations */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9b1530, #ff7a8e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(155, 21, 48, 0.08);
}

.nav-logo-text {
    color: #9b1530;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: white;
}

.nav-link {
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

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

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

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Back to top button */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Geometric accent shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

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

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 32, 64, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #FDF8F5;
}

::-webkit-scrollbar-thumb {
    background: #c42040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9b1530;
}

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

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h1 span {
        font-size: 1.75rem;
    }
}
