/* ====================================================================
   MOTIFLUX CINEMATIC INTRO - COMPLETE FINAL v5.5
   Date: December 31, 2025

   Changes in v5.5:
   - Frame 2 moved up (top: 50% → 40%)
   - Frame 3 moved down (bottom: 200px → 180px)  
   - Taglines margin reduced (30px → 15px)
   - No overlap between frames
   - Perfect spacing all devices
   ==================================================================== */

/* ========== CSS VARIABLES ========== */
:root {
    --spark-text-size: 40px;
    --brand-name-size: 80px;
    --tagline-size: 18px;
    --mantra-burn-size: 72px;
    --button-size: 14px;
}

/* ========== CURSOR HIDE ========== */
/*body.intro-active,
body.intro-active * {
    cursor: none !important;
}*/

/* ========== MAIN OVERLAY CONTAINER ========== */
#motiflux-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 999999;
    overflow: hidden;
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#motiflux-intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ========== BODY ACTIVE STATE ========== */
body.intro-active {
    overflow: hidden !important;
}

body.intro-active .elementor-location-header,
body.intro-active .elementor-section,
body.intro-active main,
body.intro-active header,
body.intro-active footer {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ========== ENTER THE VOID BUTTON ========== */
#enter-void-btn {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.4);
    color: rgba(255, 0, 51, 0.7);
    font-family: 'Anton', sans-serif;
    font-size: var(--button-size);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    z-index: 1000001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border-radius: 2px;
}

#enter-void-btn.show {
    opacity: 1;
}

#enter-void-btn:hover {
    background: rgba(255, 0, 51, 0.3);
    border-color: rgba(255, 0, 51, 0.8);
    color: #FF0033;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.4);
    text-shadow: 0 0 15px rgba(255, 0, 51, 0.5);
}

#enter-void-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 16px;
}

/* ========== FLAME CANVAS ========== */
#flame-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ========== HEAT DISTORTION EFFECT ========== */
.heat-distortion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: 
        radial-gradient(circle at 30% 50%, transparent 40%, rgba(255, 0, 51, 0.03) 60%),
        radial-gradient(circle at 70% 60%, transparent 40%, rgba(255, 0, 51, 0.03) 60%);
    animation: heatWave 4s ease-in-out infinite;
    filter: blur(50px);
    opacity: 0;
}

.heat-distortion.active {
    opacity: 1;
}

@keyframes heatWave {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-25px) scale(1.08); 
    }
}

/* ========== SMOKE LAYER ========== */
.smoke-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.smoke {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    animation: smokeFloat 28s infinite ease-in-out;
}

.smoke-1 { 
    top: -180px; 
    left: 12%; 
    animation-delay: 0s; 
}

.smoke-2 { 
    top: 35%; 
    right: 3%; 
    animation-delay: 9s; 
}

.smoke-3 { 
    bottom: -180px; 
    left: 58%; 
    animation-delay: 18s; 
}

@keyframes smokeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translate(70px, -90px) scale(1.2) rotate(90deg);
        opacity: 0.35;
    }
    50% {
        transform: translate(-50px, -140px) scale(1.3) rotate(180deg);
        opacity: 0.45;
    }
    75% {
        transform: translate(90px, -70px) scale(1.15) rotate(270deg);
        opacity: 0.25;
    }
}

/* ========== VIGNETTE EFFECT ========== */
.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 15%, rgba(0, 0, 0, 0.6) 75%, #000 100%);
    z-index: 4;
    pointer-events: none;
}

/* ========== CONTENT CONTAINER ========== */
.intro-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 40px;
}

/* ========== FRAME 1: IT JUST TAKES A SPARK ========== */
.frame-1 {
    position: fixed;
    width: 100%;
    text-align: center;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    padding: 0 20px;
    z-index: 10;
}

.reveal-text {
    overflow: visible;
}

.spark-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--spark-text-size);
    font-weight: 300;
    font-style: italic;
    color: #FFFFFF;
    letter-spacing: 6px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 0, 51, 0.4),
        0 5px 25px rgba(0, 0, 0, 0.9);
    will-change: transform, opacity;
}

.frame-1.fade-out {
    animation: fadeOutFrame 1s ease forwards;
}

@keyframes fadeOutFrame {
    to { 
        opacity: 0; 
    }
}

/* ========== FRAME 2: LOGO + BRAND + TAGLINES ========== */
.frame-2 {
    position: fixed;
    width: 100%;
    text-align: center;
    top: 40%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 8;
}

/* Logo Glow Effect */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.25) 0%, transparent 65%);
    filter: blur(70px);
    opacity: 0;
    z-index: -1;
}

.frame-2.active .logo-glow {
    animation: glowPulse 4s ease-in-out infinite, fadeIn 2s ease forwards;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.7;
    }
}

@keyframes fadeIn {
    to { 
        opacity: 1; 
    }
}

/* Logo Icon Wrapper */
.logo-icon-wrapper {
    margin: 0 auto 20px;
    padding: 30px;
    filter: none !important;
    box-shadow: none !important;
    -webkit-filter: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Logo Icon - No Shadow */
.logo-icon {
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    text-shadow: none !important;
    drop-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    will-change: transform, opacity;
}

/* Force remove shadows from images */
.frame-2 img,
.frame-2 .logo-icon,
#motiflux-intro-overlay img {
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Brand Name */
.brand-name {
    font-family: 'Anton', sans-serif;
    font-size: var(--brand-name-size);
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 8px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    text-shadow: 
        0 0 50px rgba(255, 0, 51, 0.8),
        0 0 100px rgba(255, 0, 51, 0.4),
        0 8px 30px rgba(0, 0, 0, 0.9);
    will-change: transform, opacity;
    padding: 20px 0;
}

/* Taglines Container */
.taglines {
    opacity: 0;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Individual Taglines */
.tagline-1,
.tagline-2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--tagline-size);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 3px;
    margin: 10px 0;
    text-transform: none;
    will-change: transform, opacity;
}

.tagline-1 {
    color: #AAAAAA;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.tagline-2 {
    color: #AAAAAA;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ========== FRAME 3: BURN THE RULES ========== */
.frame-3 {
    position: fixed;
    width: 100%;
    text-align: center;
    bottom: 180px;
    left: 0;
    opacity: 0;
    padding: 0 20px;
    z-index: 7;
}

.reveal-mantra {
    overflow: visible;
    padding: 15px 20px;
}

.mantra-burn {
    font-family: 'Anton', sans-serif;
    font-size: var(--mantra-burn-size);
    font-weight: 400;
    color: #FF0033;
    letter-spacing: 6px;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 
        0 0 40px rgba(255, 0, 51, 1),
        0 0 80px rgba(255, 0, 51, 0.9),
        0 0 120px rgba(255, 0, 51, 0.6),
        0 10px 40px rgba(0, 0, 0, 0.9);
    will-change: transform, opacity;
}

/* ========== RESPONSIVE: LARGE TABLETS ========== */
@media (max-width: 1200px) {
    :root {
        --spark-text-size: 34px;
        --brand-name-size: 70px;
        --tagline-size: 16px;
        --mantra-burn-size: 60px;
        --button-size: 13px;
    }

    .frame-2 {
        top: 40%;
    }

    .logo-icon {
        width: 160px;
        height: 160px;
    }

    .taglines {
        margin-bottom: 12px;
    }

    .frame-3 {
        bottom: 165px;
    }

    .reveal-mantra {
        padding: 15px 20px;
    }
}

/* ========== RESPONSIVE: TABLETS ========== */
@media (max-width: 768px) {
    :root {
        --spark-text-size: 28px;
        --brand-name-size: 54px;
        --tagline-size: 14px;
        --mantra-burn-size: 46px;
        --button-size: 12px;
    }

    .frame-2 {
        top: 38%;
        gap: 10px;
    }

    .logo-icon {
        width: 130px;
        height: 130px;
    }

    .intro-content {
        padding: 0 30px;
    }

    .taglines {
        margin-bottom: 10px;
    }

    .frame-3 {
        bottom: 250px;
    }

    #enter-void-btn {
        bottom: 35px;
        padding: 10px 24px;
        letter-spacing: 2px;
    }

    .brand-name {
        margin: 0 0 15px 0;
        padding: 15px 0;
    }

    .reveal-mantra {
        padding: 12px 20px;
    }
}

/* ========== RESPONSIVE: MOBILE ========== */
@media (max-width: 480px) {
    :root {
        --spark-text-size: 22px;
        --brand-name-size: 42px;
        --tagline-size: 12px;
        --mantra-burn-size: 36px;
        --button-size: 11px;
    }

    .frame-2 {
        top: 35%;
        gap: 8px;
    }

    .logo-icon {
        width: 100px;
        height: 100px;
    }

    .intro-content {
        padding: 0 20px;
    }

    .taglines {
        margin-bottom: 8px;
    }

    .frame-3 {
        bottom: 120px;
    }

    #enter-void-btn {
        bottom: 25px;
        padding: 8px 20px;
    }

    .brand-name {
        letter-spacing: 4px;
        margin: 0 0 10px 0;
    }

    .mantra-burn {
        letter-spacing: 3px;
    }

    .logo-icon-wrapper {
        padding: 20px;
    }

    .reveal-mantra {
        padding: 10px 15px;
    }
}

/* ========== RESPONSIVE: SMALL MOBILE ========== */
@media (max-width: 360px) {
    :root {
        --spark-text-size: 18px;
        --brand-name-size: 34px;
        --tagline-size: 10px;
        --mantra-burn-size: 28px;
    }

    .frame-2 {
        top: 33%;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
    }

    .taglines {
        margin-bottom: 6px;
    }

    .frame-3 {
        bottom: 100px;
    }

    .logo-icon-wrapper {
        padding: 15px;
        margin: 0 auto 15px;
    }

    .brand-name {
        letter-spacing: 3px;
    }

    .reveal-mantra {
        padding: 8px 10px;
    }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
.frame-1,
.frame-2,
.frame-3 {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* ========== GPU ACCELERATION ========== */
#flame-canvas,
.heat-distortion,
.smoke-layer,
.vignette {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ========== PRINT STYLES ========== */
@media print {
    #motiflux-intro-overlay {
        display: none !important;
    }
}

/* ========== END OF CSS v5.5 ========== */