/* ============================================
   ELECTRIC LADY — Advanced Animations
   Motion, parallax, reveals, shimmer
   ============================================ */

/* --- Text Split Reveal --- */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}

.text-reveal-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.visible .text-reveal-inner {
    transform: translateY(0);
}

/* --- Magnetic Button Effect --- */
.btn-magnetic {
    transition: transform 0.2s ease-out;
}

/* --- Parallax --- */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    will-change: transform;
}

/* --- Counter Animation --- */
.counter {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--gold);
    letter-spacing: 0.05em;
}

.counter-label {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1rem;
    color: var(--cream-dark);
    font-weight: 300;
}

/* --- Stats Row --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    padding: var(--space-xl) 0;
}

.stat-item {
    text-align: center;
    min-width: 130px;
}

/* --- Marquee / Infinite Scroll Text --- */
.marquee-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--brown-dark);
    border-bottom: 1px solid var(--brown-dark);
}

.marquee-track {
    display: inline-flex;
    animation: marquee 40s linear infinite;
}

.marquee-track span {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brown-mid);
    padding: 0 var(--space-xl);
}

.marquee-track .gold {
    color: var(--gold-dark);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Hover Image Distort (on artist cards) --- */
.artist-card {
    perspective: 1000px;
}

.artist-card:hover .artist-card-image {
    filter: brightness(0.7) saturate(1.1);
}

/* --- Line Draw Animation --- */
.line-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.line-draw.visible {
    stroke-dashoffset: 0;
}

/* --- Glow Pulse (for CTAs) --- */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
    }

    50% {
        box-shadow: 0 0 40px rgba(201, 168, 76, 0.35);
    }
}

.btn-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* --- Image Tilt on Hover --- */
.tilt-card {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

/* --- Ornamental Corners --- */
.ornate-frame {
    position: relative;
    padding: var(--space-lg);
}

.ornate-frame::before,
.ornate-frame::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--gold-dark);
    opacity: 0.4;
}

.ornate-frame::before {
    top: 0;
    left: 0;
    border-top: 1px solid;
    border-left: 1px solid;
}

.ornate-frame::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

/* --- Video Hero (YouTube iframe) --- */
.video-hero {
    position: relative;
    overflow: hidden;
    background: var(--black-deep);
}

.video-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(11, 9, 7, 0.65) 0%,
            rgba(11, 9, 7, 0.35) 30%,
            rgba(11, 9, 7, 0.4) 60%,
            rgba(11, 9, 7, 0.92) 100%);
}

.video-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* --- Page Transition (Curtain Panels) --- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    display: flex;
}

.page-transition .pt-panel {
    flex: 1;
    background: var(--black-deep);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active .pt-panel {
    transform: scaleY(1);
    transform-origin: top;
}

.page-transition .pt-panel:nth-child(1) {
    transition-delay: 0s;
}

.page-transition .pt-panel:nth-child(2) {
    transition-delay: 0.08s;
}

.page-transition .pt-panel:nth-child(3) {
    transition-delay: 0.16s;
}

.page-transition .pt-panel:nth-child(4) {
    transition-delay: 0.24s;
}

.page-transition.exit .pt-panel {
    transform: scaleY(0);
    transform-origin: top;
    transition-delay: 0s;
}

.page-transition.exit .pt-panel:nth-child(1) {
    transition-delay: 0.24s;
}

.page-transition.exit .pt-panel:nth-child(2) {
    transition-delay: 0.16s;
}

.page-transition.exit .pt-panel:nth-child(3) {
    transition-delay: 0.08s;
}

.page-transition.exit .pt-panel:nth-child(4) {
    transition-delay: 0s;
}

/* --- Scroll-Driven Reveal Variants --- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-rotate {
    opacity: 0;
    transform: translateY(40px) rotate(2deg);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rotate.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Stagger children with scroll reveal */
.stagger-children>* {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children>*.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Noise Shimmer (for gold elements) --- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(90deg,
            var(--gold-dark) 0%,
            var(--gold-bright) 25%,
            var(--gold) 50%,
            var(--gold-bright) 75%,
            var(--gold-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* --- Smooth scroll-linked nav shadow --- */
.nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Loading screen --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    max-width: 200px;
    animation: logo-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes logo-pulse {
    0% {
        opacity: 0.4;
        filter: brightness(0.6);
    }

    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

/* --- Artist card image as actual <img> --- */
.artist-card .artist-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.artist-card:hover .artist-card-image {
    transform: scale(1.08);
    filter: brightness(0.6) saturate(1.2);
}

/* --- Responsive animation adjustments --- */
@media (max-width: 768px) {
    .stats-row {
        gap: var(--space-lg);
    }

    .marquee-track {
        animation-duration: 25s;
    }

    .video-bg-wrapper iframe {
        width: 200vw !important;
        height: 200vh !important;
    }

    .stagger-children>* {
        transition-delay: 0s !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    .shimmer-text {
        animation: none;
        -webkit-text-fill-color: var(--gold);
    }

    .loader-logo {
        animation: none;
    }

    .reveal-up,
    .reveal-scale,
    .reveal-rotate,
    .stagger-children>* {
        opacity: 1 !important;
        transform: none !important;
    }

    .page-transition .pt-panel {
        transition: none;
    }
}