/* Custom styles for Red Rose Tattoo */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0f14;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #14b8a6, #0d9488);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5eead4, #14b8a6);
}

/* Selection */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #fff;
}

/* Hero animations */
@keyframes scrollLine {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200%); opacity: 0; }
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered scroll reveals */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-anim.animated {
    opacity: 1;
    transform: translateY(0);
}
.hero-anim:nth-child(1) { transition-delay: 0.2s; }
.hero-anim:nth-child(2) { transition-delay: 0.4s; }
.hero-anim:nth-child(3) { transition-delay: 0.6s; }
.hero-anim:nth-child(4) { transition-delay: 0.8s; }
.hero-anim:nth-child(5) { transition-delay: 1.0s; }

/* Gallery hover effects */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.gallery-item:hover::before {
    opacity: 1;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(13, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ toggle animations */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}
.faq-content.open {
    max-height: 200px;
}

/* Focus styles for accessibility */
input:focus, textarea:focus, select:focus {
    border-color: rgba(20, 184, 166, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1) !important;
}

/* Smooth image loading */
img {
    image-rendering: auto;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0c040, #d4a017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Teal gradient text utility */
.text-teal-gradient {
    background: linear-gradient(135deg, #14b8a6, #5eead4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle glow on cards */
.card-glow:hover {
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.1), 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Loading shimmer for images */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal, .hero-anim {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .gallery-item img {
        transition: none;
    }
}
