/* =========================================
   3D Banner & Service Variants
   ========================================= */

/* 3D Hero Banner */
.hero-banner-3d {
    position: relative;
    width: 100%;
    min-height: 600px;
    /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    /* Fallback */
    perspective: 1000px;
}

.hero-banner-3d canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    color: #fff;
    pointer-events: none;
    /* Let clicks pass through to canvas if needed, but usually we want text selectable */
}

.hero-content * {
    pointer-events: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    background: linear-gradient(90deg, #fff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ccc;
    max-width: 600px;
}

/* Service Banner Variants */
.service-banner {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.service-banner-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.service-banner-image {
    position: relative;
    z-index: 2;
    max-width: 45%;
    display: flex;
    justify-content: center;
}

.service-banner-image img {
    max-height: 400px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Variant 1: Image Right, Text Left */
.service-banner-variant-1 {
    flex-direction: row;
}

/* Variant 2: Image Left, Text Right */
.service-banner-variant-2 {
    flex-direction: row-reverse;
}

.service-banner-variant-2 .service-banner::before {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Variant 3: Centered */
.service-banner-variant-3 {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.service-banner-variant-3 .service-banner-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.service-banner-variant-3 .service-banner-image {
    max-width: 100%;
}

.service-banner-variant-3 .service-banner::before {
    background: rgba(0, 0, 0, 0.7);
}

/* Conversion CTA */
.conversion-cta {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.conversion-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.7);
    color: #fff;
}

.conversion-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}


/* =========================================
   Theme Specific Styles (A/B Testing)
   ========================================= */

#theme-background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Celestial Theme (Blue/Cyan) */
.theme-celestial {
    --primary-color: #00ffff;
    --secondary-color: #0088ff;
    --text-color: #ffffff;
    --bg-overlay: rgba(0, 0, 20, 0.8);
}

.theme-celestial .hero-title {
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.theme-celestial .conversion-cta {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Neural Theme (Pink/Magenta) */
.theme-neural {
    --primary-color: #ff00ff;
    --secondary-color: #8800ff;
    --text-color: #ffffff;
    --bg-overlay: rgba(20, 0, 20, 0.8);
}

.theme-neural .hero-title {
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.theme-neural .conversion-cta {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

/* Glassmorphism 2.0 for Cards */
.theme-celestial .service-banner,
.theme-neural .service-banner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

}

/* Service Banner Variants */
.service-banner {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.service-banner-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.service-banner-image {
    position: relative;
    z-index: 2;
    max-width: 45%;
    display: flex;
    justify-content: center;
}

.service-banner-image img {
    max-height: 400px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Variant 1: Image Right, Text Left */
.service-banner-variant-1 {
    flex-direction: row;
}

/* Variant 2: Image Left, Text Right */
.service-banner-variant-2 {
    flex-direction: row-reverse;
}

.service-banner-variant-2 .service-banner::before {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Variant 3: Centered */
.service-banner-variant-3 {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.service-banner-variant-3 .service-banner-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.service-banner-variant-3 .service-banner-image {
    max-width: 100%;
}

.service-banner-variant-3 .service-banner::before {
    background: rgba(0, 0, 0, 0.7);
}

/* Conversion CTA */
.conversion-cta {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.conversion-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.7);
    color: #fff;
}

.conversion-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}


/* =========================================
   Theme Specific Styles (A/B Testing)
   ========================================= */

#theme-background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Celestial Theme (Blue/Cyan) */
.theme-celestial {
    --primary-color: #00ffff;
    --secondary-color: #0088ff;
    --text-color: #ffffff;
    --bg-overlay: rgba(0, 0, 20, 0.8);
}

.theme-celestial .hero-title {
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.theme-celestial .conversion-cta {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

/* Neural Theme (Pink/Magenta) */
.theme-neural {
    --primary-color: #ff00ff;
    --secondary-color: #8800ff;
    --text-color: #ffffff;
    --bg-overlay: rgba(20, 0, 20, 0.8);
}

.theme-neural .hero-title {
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

.theme-neural .conversion-cta {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

/* Glassmorphism 2.0 for Cards */
.theme-celestial .service-banner,
.theme-neural .service-banner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-celestial .service-banner:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.theme-neural .service-banner:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
}


/* =========================================
   Video Archive & Single Page Styles
   ========================================= */

/* Archive Hero */
.archive-hero {
    position: relative;
    overflow: hidden;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-glow 10s infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Video Grid */
.video-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color, #00ffff);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.play-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.video-card:hover .play-overlay i {
    transform: scale(1.2);
    color: var(--primary-color, #00ffff);
}

/* Single Video Page */
.single-video-page .video-player-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timestamps-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.timestamp-list li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.timestamp-list li a:hover .time-badge {
    background: var(--primary-color, #00ffff);
    color: #000;
}

/* Newsletter Widget */
.newsletter-widget {
    position: relative;
    overflow: hidden;
}

.newsletter-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shine 5s infinite;
    pointer-events: none;
}