/* ==============================
   Professional Hero - 3D Vertical Waterfall Gallery
   ============================== */
.pro-hero {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 65px;
    perspective: 1200px;
}

.pro-hero-gallery {
    position: absolute;
    top: -80px;
    left: -80px;
    right: -80px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.1);
    filter: grayscale(0.75) brightness(0.5);
    transition: filter 1s ease;
}

.pro-hero:hover .pro-hero-gallery {
    filter: grayscale(0.35) brightness(0.6);
}

/* Each column is a vertical strip of images - overflows for infinite loop */
.gallery-col {
    display: flex;
    flex-direction: column;
    width: calc(20% - 8px);
    flex-shrink: 0;
    will-change: transform;
}

.gallery-col img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
    margin-bottom: 10px;
}

/* Alternating scroll directions - down and up (30% slower) */
.gallery-col-1 {
    animation: colScrollDown 77s linear infinite;
}

.gallery-col-2 {
    animation: colScrollUp 85s linear infinite;
}

.gallery-col-3 {
    animation: colScrollDown 68s linear infinite;
}

.gallery-col-4 {
    animation: colScrollUp 94s linear infinite;
}

.gallery-col-5 {
    animation: colScrollDown 81s linear infinite;
}

@keyframes colScrollDown {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

@keyframes colScrollUp {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

/* Deep cinematic overlay - heavy vignette for depth */
.pro-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at center, rgba(var(--bg-primary-rgb), 0.15) 0%, rgba(var(--bg-primary-rgb), 0.92) 100%),
        linear-gradient(to bottom, rgba(var(--bg-primary-rgb), 0.85) 0%, transparent 15%, transparent 85%, rgba(var(--bg-primary-rgb), 0.95) 100%),
        linear-gradient(to right, rgba(var(--bg-primary-rgb), 0.7) 0%, transparent 15%, transparent 85%, rgba(var(--bg-primary-rgb), 0.7) 100%);
    z-index: 2;
}

/* Spotlight follow effect - larger and softer */
.pro-hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle 400px at var(--mx, 50%) var(--my, 50%),
            rgba(var(--text-primary-rgb), 0.1) 0%,
            rgba(var(--text-primary-rgb), 0.03) 40%,
            transparent 100%);
    transition: opacity 0.6s ease;
}

.pro-hero:hover .pro-hero-spotlight {
    opacity: 1;
}

/* Film grain texture */
.pro-hero-grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: grainShift 0.3s steps(6) infinite;
}

/* Title content on top - with glass backdrop */
.pro-hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    width: 100%;
    padding: 0 var(--spacing-md);
}



/* Hero text sizing moved to hero-standardization.css for consistency across all pages */

/* Horizontal accent line removed per user request */

/* Scroll hint */
.pro-hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 1s ease-out 1.5s backwards;
}

.pro-hero-scroll-hint span {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(var(--text-primary-rgb), 0.2);
}



/* ==============================
   AI GALLERY — Infinite Marquee
   ============================== */

.ai-gallery {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-top: -80px;
    background: transparent;
    overflow: hidden;
}

.ai-gallery>.section-header,
.yt-showcase>.section-header {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

/* Left/right edge fade masks */
.ai-gallery::before,
.ai-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(60px, 10vw, 180px);
    pointer-events: none;
    z-index: 10;
}

.ai-gallery::before {
    left: 0;
    background: linear-gradient(to right, rgb(var(--bg-primary-rgb)) 0%, transparent 100%);
}

.ai-gallery::after {
    right: 0;
    background: linear-gradient(to left, rgb(var(--bg-primary-rgb)) 0%, transparent 100%);
}

/* ---- Gallery Header ---- */
.gallery-header {
    position: relative;
    z-index: 15;
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    padding: 0 clamp(1rem, 4vw, 3rem);
    text-align: center;
}

.gallery-header-sub {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: rgba(var(--text-primary-rgb), 0.3);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: block;
}

.gallery-header .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 40px rgba(var(--text-primary-rgb), 0.15),
        0 0 80px rgba(var(--text-primary-rgb), 0.04);
}

.gallery-header .section-title::after {
    content: '';
    display: block;
    margin-top: 0.6rem;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(var(--text-primary-rgb), 0.7) 30%,
            rgba(var(--text-primary-rgb), 1) 50%,
            rgba(var(--text-primary-rgb), 0.7) 70%,
            transparent 100%);
    animation: underline-sweep 3s ease-in-out infinite alternate;
}

@keyframes underline-sweep {
    from {
        opacity: 0.3;
        transform: scaleX(0.6);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ---- Marquee Rows ---- */
.marquee-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.4rem 0;
}

.marquee-row:hover {
    overflow: visible;
    z-index: 5;
}

.marquee-row+.marquee-row {
    margin-top: 0.4rem;
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Scroll direction via CSS animation */
.marquee-row[data-direction="left"] .marquee-track {
    animation: marquee-scroll-left var(--marquee-duration, 40s) linear infinite;
}

.marquee-row[data-direction="right"] .marquee-track {
    animation: marquee-scroll-right var(--marquee-duration, 40s) linear infinite;
}

@keyframes marquee-scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause on hover */
.marquee-row:hover .marquee-track {
    animation-play-state: paused;
}

/* ---- Image Cards ---- */
.marquee-track img {
    display: block;
    height: clamp(240px, 30vw, 420px);
    width: auto;
    border-radius: 8px;
    border: 1px solid rgba(var(--text-primary-rgb), 0.06);
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        filter 0.4s ease;
}

/* Dim non-hovered images when row is hovered */
.marquee-row:hover .marquee-track img {
    filter: brightness(0.4);
}

.marquee-row:hover .marquee-track img:hover {
    filter: brightness(1);
    transform: scale(1.1) translateZ(0);
    border-color: rgba(var(--text-primary-rgb), 0.3);
    box-shadow:
        0 0 20px rgba(var(--text-primary-rgb), 0.08),
        0 0 60px rgba(var(--text-primary-rgb), 0.04),
        0 20px 60px rgba(var(--bg-primary-rgb), 0.8);
    z-index: 5;
    position: relative;
}

/* ---- Fullscreen Lightbox Preview ---- */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bg-primary-rgb), 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: zoom-out;
}

.gallery-lightbox.is-open {
    background: rgba(var(--bg-primary-rgb), 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 1;
    visibility: visible;
}

/* Aura glow ring behind the image */
.gallery-lightbox::before {
    content: '';
    position: absolute;
    width: 70vh;
    height: 70vh;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(var(--text-primary-rgb), 0.04) 0%,
            rgba(var(--text-primary-rgb), 0.02) 30%,
            transparent 65%);
    pointer-events: none;
    animation: aura-breathe 4s ease-in-out infinite;
}

@keyframes aura-breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.gallery-lightbox-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(var(--text-primary-rgb), 0.1);
    box-shadow:
        0 0 40px rgba(var(--text-primary-rgb), 0.06),
        0 0 100px rgba(var(--text-primary-rgb), 0.03),
        0 30px 80px rgba(var(--bg-primary-rgb), 0.6);
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.4s ease;
    position: relative;
    z-index: 1;
}

.gallery-lightbox.is-open .gallery-lightbox-img {
    transform: scale(1);
    opacity: 1;
}

/* Aura +points floating text */
.gallery-lightbox-aura {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: rgba(var(--text-primary-rgb), 0.5);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(var(--text-primary-rgb), 0.3);
}

.gallery-lightbox.is-open .gallery-lightbox-aura {
    animation: aura-float-up 1.2s 0.3s ease-out forwards;
}

@keyframes aura-float-up {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    40% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
}

/* Close hint */
.gallery-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(var(--text-primary-rgb), 0.3);
    pointer-events: none;
    text-transform: uppercase;
    z-index: 2;
}

/* Alt text label */
.gallery-lightbox-label {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(var(--text-primary-rgb), 0.4);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease 0.3s;
    white-space: nowrap;
}

.gallery-lightbox.is-open .gallery-lightbox-label {
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ai-gallery {
        /* Padding removed - spacing handled by .about-section class */
    }

    .gallery-header {
        margin-bottom: 2rem;
    }

    .marquee-track {
        gap: 0.75rem;
    }

    .gallery-lightbox-img {
        max-width: 92vw;
        max-height: 80vh;
    }

    .gallery-lightbox-close {
        top: 1rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ai-gallery {
        /* Padding removed - spacing handled by .about-section class */
    }

    .gallery-header {
        margin-bottom: 1.5rem;
    }

    .marquee-track {
        gap: 0.5rem;
    }
}


/* ==============================
   YOUTUBE SHOWCASE - Horizontal Row
   ============================== */

.yt-showcase {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    background: transparent;
    overflow: hidden;
}

.yt-showcase-header {
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    padding: 0 clamp(1rem, 4vw, 3rem);
    text-align: center;
}

.yt-showcase-header .section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
    text-shadow: 0 0 40px rgba(var(--text-primary-rgb), 0.12);
}

.yt-showcase-header .section-title::after {
    content: '';
    display: block;
    margin-top: 0.5rem;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, transparent, rgba(var(--text-primary-rgb), 0.6), transparent);
    animation: underline-sweep 3s ease-in-out infinite alternate;
}

/* ---- Scroll Row ---- */
.yt-bento {
    display: flex;
    gap: 10px;
    padding: 0 clamp(1rem, 4vw, 3rem);
    max-width: 100%;
    margin: 0 auto;
    align-items: stretch;
}



/* ---- Video Card ---- */
.yt-card {
    position: relative;
    flex: 1.778;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(var(--text-primary-rgb), 0.06);
    background: #0a0a0a;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        border-color 0.4s ease, box-shadow 0.4s ease;
}

.yt-card--short {
    flex: 0.5625;
    aspect-ratio: 9 / 16;
}

.yt-card:hover {
    transform: scale(1.03);
    border-color: rgba(var(--text-primary-rgb), 0.18);
    box-shadow: 0 0 30px rgba(var(--text-primary-rgb), 0.06), 0 16px 48px rgba(var(--bg-primary-rgb), 0.7);
    z-index: 2;
}

/* ---- Thumbnail ---- */
.yt-card-thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.yt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), filter 0.6s ease;
    filter: brightness(0.75) saturate(0.15);
}

.yt-card:hover .yt-card-thumb img {
    transform: scale(1.06);
    filter: brightness(0.95) saturate(1);
}

/* Bottom gradient */
.yt-card-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(var(--bg-primary-rgb), 0.9) 0%, rgba(var(--bg-primary-rgb), 0.4) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* ---- Play Button ---- */
.yt-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(var(--text-primary-rgb), 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--text-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.yt-card-play::after {
    content: '';
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent rgba(var(--text-primary-rgb), 0.9);
    margin-left: 3px;
}

.yt-card:hover .yt-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ---- Card Title ---- */
.yt-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.2rem;
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.yt-card:hover .yt-card-info {
    opacity: 1;
}

.yt-card-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(var(--text-primary-rgb), 0.9);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(var(--bg-primary-rgb), 0.5);
}

/* ==============================
   YOUTUBE LIGHTBOX
   ============================== */

.yt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.yt-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.yt-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--bg-primary-rgb), 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.yt-lightbox-content {
    position: relative;
    z-index: 1;
    width: 85vw;
    max-width: 1000px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(var(--text-primary-rgb), 0.6);
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.yt-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(var(--text-primary-rgb), 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.yt-lightbox-close:hover {
    color: rgba(var(--text-primary-rgb), 1);
}

.yt-lightbox-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(var(--text-primary-rgb), 0.08);
    box-shadow: 0 40px 100px rgba(var(--bg-primary-rgb), 0.7);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
}

.yt-lightbox.is-open .yt-lightbox-player {
    transform: scale(1);
    opacity: 1;
}

.yt-lightbox-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.yt-lightbox-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(var(--text-primary-rgb), 0.4);
    text-align: center;
    margin-top: 1.2rem;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.yt-lightbox.is-open .yt-lightbox-title {
    opacity: 1;
    transform: translateY(0);
}

/* ---- YouTube Responsive ---- */
@media (max-width: 768px) {
    .yt-showcase {
        /* Padding removed - spacing handled by .about-section class */
    }

    .yt-bento {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .yt-bento::-webkit-scrollbar {
        display: none;
    }

    .yt-card {
        flex: 0 0 auto;
        height: 240px;
    }

    .yt-card-play {
        width: 44px;
        height: 44px;
    }

    .yt-card-play::after {
        border-width: 6px 0 6px 11px;
    }

    .yt-lightbox-content {
        width: 94vw;
    }
}

@media (max-width: 480px) {
    .yt-showcase {
        /* Padding removed - spacing handled by .about-section class */
    }

    .yt-card {
        height: 200px;
    }

    .yt-card-title {
        font-size: 0.7rem;
    }

    .yt-card-info {
        padding: 0.7rem 0.9rem;
    }

    .yt-lightbox-content {
        width: 96vw;
    }

    .yt-lightbox-close {
        top: -2rem;
    }
}