/* ====================================
   AI-SOLUTIONS - INTRO SCREEN V4
   ULTIMATE CINEMATIC EXPERIENCE
   100% MOBILE OPTIMIZED - WORLD CLASS
   ==================================== */

/* ====================================
   CSS VARIABLES
   ==================================== */
:root {
    --intro-cyan: #00E5FF;
    --intro-cyan-mid: #00BCD4;
    --intro-teal: #00897B;
    --intro-blue: #448AFF;
    --intro-purple: #B388FF;
    --intro-magenta: #E040FB;
    --intro-gold: #FFD740;
    --intro-dark: #030712;
    --intro-darker: #010409;
    --glow-cyan: 0 0 15px rgba(0, 229, 255, 0.6), 0 0 30px rgba(0, 229, 255, 0.3), 0 0 60px rgba(0, 229, 255, 0.15);
    --glow-strong: 0 0 20px rgba(0, 229, 255, 0.8), 0 0 40px rgba(0, 229, 255, 0.4), 0 0 80px rgba(0, 229, 255, 0.2);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', 'Poppins', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

/* ====================================
   CANVAS BACKGROUND
   ==================================== */
.webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ====================================
   INTRO SCREEN CONTAINER
   ==================================== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--intro-dark);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 1.8s,
                transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.8s ease;
    overflow: hidden;
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.2);
    filter: blur(30px) brightness(4);
    pointer-events: none;
}

/* ====================================
   LAYERED BACKGROUNDS
   ==================================== */
.intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Nebula Layer - Deep Space */
.intro-nebula {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(179, 136, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 137, 123, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(68, 138, 255, 0.05) 0%, transparent 40%);
    animation: nebulaShift 20s ease-in-out infinite alternate;
}

@keyframes nebulaShift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-3%, 2%) scale(1.05) rotate(2deg); }
    100% { transform: translate(2%, -2%) scale(1.02) rotate(-1deg); }
}

/* Aurora Borealis Layer - Enhanced */
.aurora-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        conic-gradient(from 0deg at 30% 40%,
            transparent 0deg,
            rgba(0, 229, 255, 0.06) 60deg,
            transparent 120deg,
            rgba(179, 136, 255, 0.04) 180deg,
            transparent 240deg,
            rgba(0, 137, 123, 0.06) 300deg,
            transparent 360deg
        );
    animation: auroraRotate 40s linear infinite;
    filter: blur(50px);
}

@keyframes auroraRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Holographic Grid Floor */
.grid-perspective {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 55%;
    background:
        repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.03) 0px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(0, 229, 255, 0.03) 0px, transparent 1px, transparent 80px);
    transform: perspective(500px) rotateX(65deg);
    transform-origin: bottom center;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 70%);
    animation: gridFlow 8s linear infinite;
}

@keyframes gridFlow {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

/* Cinematic Scan Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 229, 255, 0.2) 10%,
        rgba(0, 229, 255, 0.8) 50%,
        rgba(0, 229, 255, 0.2) 90%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 60px rgba(0, 229, 255, 0.2);
    animation: scanDown 6s linear infinite;
    z-index: 5;
}

@keyframes scanDown {
    0% { top: -3px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Vignette */
.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(3, 7, 18, 0.8) 100%);
    z-index: 3;
    pointer-events: none;
}

/* ====================================
   INTRO PARTICLES
   ==================================== */
.intro-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* ====================================
   INTRO CONTENT - CINEMATIC LAYOUT
   ==================================== */
.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: env(safe-area-inset-top, 20px);
    padding-bottom: 90px;
}

.intro-content::-webkit-scrollbar { display: none; }

/* ====================================
   LOGO SECTION - HOLOGRAPHIC PORTAL
   ==================================== */
.intro-logo-section {
    position: relative;
    width: 190px;
    height: 190px;
    margin-bottom: 28px;
    flex-shrink: 0;
    opacity: 0;
    animation: logoRevealV4 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

@keyframes logoRevealV4 {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
        filter: blur(30px) brightness(3);
    }
    50% {
        filter: blur(5px) brightness(1.5);
    }
    80% {
        transform: scale(1.08) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px) brightness(1);
    }
}

.intro-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
}

.intro-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    animation: logoBreath 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.8))
            drop-shadow(0 0 60px rgba(0, 229, 255, 0.4))
            drop-shadow(0 0 90px rgba(179, 136, 255, 0.2));
    position: relative;
    z-index: 2;
}

@keyframes logoBreath {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.8)) drop-shadow(0 0 60px rgba(0, 229, 255, 0.4)); }
    50% { transform: translateY(-8px) scale(1.04); filter: drop-shadow(0 0 40px rgba(0, 229, 255, 1)) drop-shadow(0 0 80px rgba(0, 229, 255, 0.6)); }
}

.logo-hologram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, transparent 50%, rgba(179, 136, 255, 0.15) 100%);
    animation: hologramSpin 5s linear infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes hologramSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Orbital System - Enhanced */
.logo-orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid;
    border-radius: 50%;
    animation: orbitSpin linear infinite;
}

.orbit-1 {
    width: 150px; height: 150px;
    margin-top: -75px; margin-left: -75px;
    border-color: rgba(0, 229, 255, 0.3);
    animation-duration: 7s;
    border-style: dashed;
}

.orbit-2 {
    width: 175px; height: 175px;
    margin-top: -87.5px; margin-left: -87.5px;
    border-color: rgba(179, 136, 255, 0.2);
    animation-duration: 11s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 190px; height: 190px;
    margin-top: -95px; margin-left: -95px;
    border-color: rgba(0, 137, 123, 0.2);
    animation-duration: 15s;
    border-style: dotted;
}

@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: var(--intro-cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 229, 255, 1), 0 0 30px rgba(0, 229, 255, 0.6);
}

.orbit-2 .orbit-dot {
    background: var(--intro-purple);
    box-shadow: 0 0 15px rgba(179, 136, 255, 1), 0 0 30px rgba(179, 136, 255, 0.6);
}

.orbit-3 .orbit-dot {
    background: var(--intro-teal);
    box-shadow: 0 0 15px rgba(0, 137, 123, 1), 0 0 30px rgba(0, 137, 123, 0.6);
    top: auto; bottom: -5px;
}

/* Pulse Rings - Sonar Effect */
.logo-pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 120px; height: 120px;
    margin-top: -60px; margin-left: -60px;
    border: 2px solid rgba(0, 229, 255, 0.6);
    border-radius: 50%;
    animation: sonarPulse 3s ease-out infinite;
}

.logo-pulse-ring.delay-1 {
    animation-delay: 1s;
    border-color: rgba(179, 136, 255, 0.5);
}

.logo-pulse-ring.delay-2 {
    animation-delay: 2s;
    border-color: rgba(0, 137, 123, 0.5);
}

@keyframes sonarPulse {
    0% { transform: scale(1); opacity: 0.8; border-width: 2px; }
    50% { opacity: 0.4; }
    100% { transform: scale(2.5); opacity: 0; border-width: 0.5px; }
}

/* ====================================
   TITLE SECTION - CINEMATIC REVEAL
   ==================================== */
.intro-title-section {
    margin-bottom: 28px;
    flex-shrink: 0;
    opacity: 0;
    animation: titleSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.2s;
}

@keyframes titleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8);
        filter: blur(20px);
    }
    60% {
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.intro-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7.5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.1;
}

.title-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #00E5FF 0%, #ffffff 30%, #00E5FF 50%, #B388FF 70%, #00E5FF 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradientFlow 5s ease infinite;
    text-shadow: none;
}

/* Glitch layers */
.title-text::before,
.title-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #00E5FF 0%, #ffffff 30%, #00E5FF 50%, #B388FF 70%, #00E5FF 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGradientFlow 5s ease infinite;
}

.title-text::before {
    animation: titleGradientFlow 5s ease infinite, glitchCyber1 5s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.title-text::after {
    animation: titleGradientFlow 5s ease infinite, glitchCyber2 5s ease-in-out infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes titleGradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glitchCyber1 {
    0%, 80%, 100% { transform: translate(0); opacity: 1; }
    81% { transform: translate(4px, -2px) skewX(2deg); opacity: 0.8; }
    82% { transform: translate(-3px, 1px) skewX(-1deg); }
    83% { transform: translate(2px, 0); }
    84% { transform: translate(0); opacity: 1; }
}

@keyframes glitchCyber2 {
    0%, 88%, 100% { transform: translate(0); opacity: 1; }
    89% { transform: translate(-3px, 2px) skewX(-2deg); opacity: 0.8; }
    90% { transform: translate(4px, -1px) skewX(1deg); }
    91% { transform: translate(-2px, 0); }
    92% { transform: translate(0); opacity: 1; }
}

/* Subtitle Bar */
.intro-subtitle-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    opacity: 0;
    animation: subtitleFade 0.8s ease forwards 1.8s;
}

@keyframes subtitleFade {
    0% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}

.bar-line {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--intro-cyan));
    flex-shrink: 0;
}

.bar-line:last-child {
    background: linear-gradient(90deg, var(--intro-cyan), transparent);
}

.subtitle-text {
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    color: var(--intro-cyan);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
}

/* ====================================
   MESSAGE BOX - CINEMATIC GLASS
   ==================================== */
.intro-message-box {
    width: 100%;
    max-width: 540px;
    margin-bottom: 32px;
    position: relative;
    flex-shrink: 0;
    opacity: 0;
    animation: messageRevealV4 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 2s;
}

@keyframes messageRevealV4 {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* Animated Glow Border - Plasma Effect */
.message-glow-border {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 24px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        var(--intro-cyan),
        transparent,
        var(--intro-purple),
        transparent,
        var(--intro-teal),
        transparent,
        var(--intro-cyan)
    );
    z-index: 0;
    opacity: 0.7;
    animation: plasmaRotate 4s linear infinite;
    filter: blur(1px);
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes plasmaRotate {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

/* Fallback */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .message-glow-border {
        background: linear-gradient(135deg, var(--intro-cyan), var(--intro-purple), var(--intro-teal));
        animation: borderHueRotate 4s linear infinite;
    }
    @keyframes borderHueRotate {
        0% { filter: hue-rotate(0deg) blur(1px); }
        100% { filter: hue-rotate(360deg) blur(1px); }
    }
}

.message-glow-border::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(3, 7, 18, 0.94);
    border-radius: 22px;
}

.message-inner {
    position: relative;
    z-index: 1;
    padding: 32px 28px;
    background: linear-gradient(145deg, rgba(3, 7, 18, 0.92), rgba(10, 20, 40, 0.88));
    border-radius: 24px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
}

/* Hero Text - VERY LARGE */
.message-hero {
    margin-bottom: 22px;
    opacity: 0;
    animation: heroTextCinematic 1.2s ease forwards 2.5s;
}

@keyframes heroTextCinematic {
    0% { opacity: 0; transform: translateY(20px); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-text {
    font-family: var(--font-poppins);
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.5;
    text-align: center;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.brand-highlight {
    display: inline;
    background: linear-gradient(135deg, var(--intro-cyan) 0%, #00FFFF 30%, #B388FF 60%, var(--intro-cyan) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    position: relative;
    animation: brandShimmer 4s ease infinite;
}

@keyframes brandShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand-highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--intro-cyan), var(--intro-purple), var(--intro-cyan));
    background-size: 200% 100%;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.8), 0 0 24px rgba(0, 229, 255, 0.4);
    animation: underlineFlow 3s ease infinite;
}

@keyframes underlineFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Accent text */
.hero-accent {
    display: block;
    margin-top: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(0, 229, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Message Divider - Pulsing Energy */
.message-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    opacity: 0;
    animation: dividerPulseIn 0.8s ease forwards 3s;
}

@keyframes dividerPulseIn {
    0% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}

.divider-dot {
    width: 7px;
    height: 7px;
    background: var(--intro-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--intro-cyan), 0 0 20px rgba(0, 229, 255, 0.4);
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--intro-cyan); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px var(--intro-cyan), 0 0 40px rgba(0, 229, 255, 0.3); }
}

.divider-line {
    flex: 1;
    max-width: 140px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
}

/* Body Text - NORMAL readable */
.message-body {
    opacity: 0;
    animation: bodyTextFadeUp 1s ease forwards 3.2s;
}

@keyframes bodyTextFadeUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.body-text {
    font-family: var(--font-poppins);
    font-size: clamp(0.95rem, 3.8vw, 1.12rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    text-align: center;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ====================================
   ENTER BUTTON - PLASMA PORTAL
   ==================================== */
.intro-btn-wrapper {
    position: relative;
    margin-bottom: 24px;
    flex-shrink: 0;
    opacity: 0;
    animation: btnRevealV4 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 3.6s;
}

@keyframes btnRevealV4 {
    0% { opacity: 0; transform: translateY(40px) scale(0.7); }
    60% { transform: translateY(-5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.intro-enter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 52px;
    background: transparent;
    border: none;
    border-radius: 60px;
    color: white;
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

/* Animated border */
.btn-border-anim {
    position: absolute;
    inset: 0;
    border-radius: 60px;
    padding: 2px;
    background: conic-gradient(from var(--btn-angle, 0deg), var(--intro-cyan), var(--intro-purple), var(--intro-teal), var(--intro-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: btnBorderSpin 2.5s linear infinite;
}

@property --btn-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes btnBorderSpin {
    0% { --btn-angle: 0deg; }
    100% { --btn-angle: 360deg; }
}

@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .btn-border-anim {
        background: linear-gradient(135deg, var(--intro-cyan), var(--intro-purple));
    }
}

.intro-enter-btn::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 58px;
    background: linear-gradient(145deg, rgba(3, 7, 18, 0.95), rgba(10, 20, 40, 0.85));
    z-index: -1;
    transition: background 0.4s ease;
}

.intro-enter-btn:hover::before {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(179, 136, 255, 0.15), rgba(0, 137, 123, 0.1));
}

.intro-enter-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 40px rgba(0, 229, 255, 0.5),
        0 0 80px rgba(0, 229, 255, 0.2),
        0 25px 50px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.25em;
}

.intro-enter-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.intro-enter-btn .btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 50%;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}

.intro-enter-btn:hover .btn-icon-wrap {
    transform: translateX(6px);
    background: rgba(0, 229, 255, 0.3);
    border-color: rgba(0, 229, 255, 0.6);
}

/* Button outer pulse */
.intro-enter-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 68px;
    opacity: 0;
    animation: btnOuterPulse 2.5s ease-out infinite 4s;
}

@keyframes btnOuterPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Button Reflection */
.btn-reflection {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 24px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
    filter: blur(6px);
    pointer-events: none;
}

/* ====================================
   PROGRESS BAR - CINEMATIC
   ==================================== */
.intro-progress {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    z-index: 20;
    text-align: center;
    opacity: 0;
    animation: progressFadeIn 0.6s ease forwards 0.3s;
}

@keyframes progressFadeIn {
    0% { opacity: 0; transform: translateX(-50%) translateY(15px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.progress-track {
    width: 100%;
    height: 3px;
    background: rgba(0, 229, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--intro-cyan), var(--intro-purple), var(--intro-cyan));
    background-size: 200% 100%;
    border-radius: 3px;
    animation:
        progressLoad 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        progressShimmer 1s linear infinite;
    box-shadow: 0 0 12px var(--intro-cyan), 0 0 25px rgba(0, 229, 255, 0.5);
}

.progress-glow {
    position: absolute;
    top: -5px;
    right: 0;
    width: 24px;
    height: 13px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.9), transparent);
    border-radius: 50%;
    filter: blur(3px);
    animation: progressLoad 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes progressLoad {
    0% { width: 0%; }
    15% { width: 15%; }
    30% { width: 30%; }
    50% { width: 58%; }
    70% { width: 78%; }
    90% { width: 94%; }
    100% { width: 100%; }
}

@keyframes progressShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.progress-label {
    font-family: var(--font-display);
    font-size: 0.58rem;
    color: rgba(0, 229, 255, 0.6);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transition: opacity 0.2s ease, color 0.3s ease;
}

/* ====================================
   MAIN APP STATES
   ==================================== */
.main-app {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease 0.5s, visibility 1s ease 0.5s;
}

.main-app.visible {
    opacity: 1;
    visibility: visible;
}

/* ====================================
   RESPONSIVE - MOBILE FIRST
   100% OPTIMIZED FOR ALL DEVICES
   ==================================== */

/* Tablets */
@media (max-width: 768px) {
    .intro-logo-section { width: 170px; height: 170px; margin-bottom: 24px; }
    .intro-logo-container { width: 110px; height: 110px; }
    .orbit-1 { width: 135px; height: 135px; margin-top: -67.5px; margin-left: -67.5px; }
    .orbit-2 { width: 155px; height: 155px; margin-top: -77.5px; margin-left: -77.5px; }
    .orbit-3 { width: 170px; height: 170px; margin-top: -85px; margin-left: -85px; }
    .logo-pulse-ring { width: 110px; height: 110px; margin-top: -55px; margin-left: -55px; }
    .message-inner { padding: 28px 22px; }
}

/* Large phones */
@media (max-width: 480px) {
    .intro-content {
        padding: 16px;
        padding-bottom: 80px;
    }
    .intro-logo-section { width: 155px; height: 155px; margin-bottom: 20px; }
    .intro-logo-container { width: 100px; height: 100px; }
    .orbit-1 { width: 120px; height: 120px; margin-top: -60px; margin-left: -60px; }
    .orbit-2 { width: 140px; height: 140px; margin-top: -70px; margin-left: -70px; }
    .orbit-3 { width: 155px; height: 155px; margin-top: -77.5px; margin-left: -77.5px; }
    .logo-pulse-ring { width: 100px; height: 100px; margin-top: -50px; margin-left: -50px; }
    .intro-title { letter-spacing: 0.08em; }
    .intro-title-section { margin-bottom: 20px; }
    .message-inner { padding: 24px 18px; }
    .intro-enter-btn { padding: 18px 40px; gap: 14px; }
    .intro-progress { width: 180px; bottom: 22px; }
}

/* Small phones */
@media (max-width: 375px) {
    .intro-content { padding: 14px; padding-bottom: 70px; }
    .intro-logo-section { width: 135px; height: 135px; margin-bottom: 16px; }
    .intro-logo-container { width: 88px; height: 88px; }
    .orbit-1 { width: 105px; height: 105px; margin-top: -52.5px; margin-left: -52.5px; }
    .orbit-2 { width: 122px; height: 122px; margin-top: -61px; margin-left: -61px; }
    .orbit-3 { width: 135px; height: 135px; margin-top: -67.5px; margin-left: -67.5px; }
    .logo-pulse-ring { width: 88px; height: 88px; margin-top: -44px; margin-left: -44px; }
    .message-inner { padding: 20px 16px; }
    .hero-text { line-height: 1.45; }
    .intro-enter-btn { padding: 16px 34px; font-size: 0.78rem; }
    .btn-icon-wrap { width: 30px; height: 30px; font-size: 0.75rem; }
    .intro-progress { width: 160px; bottom: 18px; }
}

/* Extra small phones */
@media (max-width: 320px) {
    .intro-logo-section { width: 115px; height: 115px; margin-bottom: 12px; }
    .intro-logo-container { width: 74px; height: 74px; }
    .orbit-1 { width: 90px; height: 90px; margin-top: -45px; margin-left: -45px; }
    .orbit-2 { width: 105px; height: 105px; margin-top: -52.5px; margin-left: -52.5px; }
    .orbit-3 { width: 115px; height: 115px; margin-top: -57.5px; margin-left: -57.5px; }
    .logo-pulse-ring { width: 74px; height: 74px; margin-top: -37px; margin-left: -37px; }
    .message-inner { padding: 16px 14px; }
    .message-divider { margin: 14px 0; }
    .intro-enter-btn { padding: 14px 28px; font-size: 0.72rem; letter-spacing: 0.1em; }
}

/* Landscape mode */
@media (max-height: 650px) and (orientation: landscape) {
    .intro-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 24px;
        max-width: 900px;
        gap: 0;
        padding-bottom: 55px;
    }
    .intro-logo-section { width: 95px; height: 95px; margin-bottom: 0; margin-right: 20px; }
    .intro-logo-container { width: 65px; height: 65px; }
    .orbit-1 { width: 75px; height: 75px; margin-top: -37.5px; margin-left: -37.5px; }
    .orbit-2 { width: 88px; height: 88px; margin-top: -44px; margin-left: -44px; }
    .orbit-3 { width: 95px; height: 95px; margin-top: -47.5px; margin-left: -47.5px; }
    .logo-pulse-ring { width: 65px; height: 65px; margin-top: -32.5px; margin-left: -32.5px; }
    .intro-title-section { margin-bottom: 10px; flex: 1; min-width: 200px; }
    .intro-title { font-size: 1.5rem; }
    .intro-message-box { width: 100%; margin-bottom: 12px; }
    .message-inner { padding: 14px 18px; }
    .hero-text { font-size: 1rem !important; }
    .body-text { font-size: 0.85rem !important; }
    .message-divider { margin: 8px 0; }
    .intro-btn-wrapper { margin-bottom: 0; }
    .intro-enter-btn { padding: 12px 30px; font-size: 0.72rem; }
    .intro-progress { bottom: 8px; width: 150px; }
}

/* Short portrait screens */
@media (max-height: 700px) and (orientation: portrait) {
    .intro-logo-section { margin-bottom: 14px; }
    .intro-title-section { margin-bottom: 16px; }
    .intro-message-box { margin-bottom: 22px; }
}

@media (max-height: 600px) and (orientation: portrait) {
    .intro-logo-section { width: 115px; height: 115px; margin-bottom: 10px; }
    .intro-logo-container { width: 76px; height: 76px; }
    .orbit-1 { width: 90px; height: 90px; margin-top: -45px; margin-left: -45px; }
    .orbit-2 { width: 105px; height: 105px; margin-top: -52.5px; margin-left: -52.5px; }
    .orbit-3 { width: 115px; height: 115px; margin-top: -57.5px; margin-left: -57.5px; }
    .logo-pulse-ring { width: 76px; height: 76px; margin-top: -38px; margin-left: -38px; }
    .intro-title-section { margin-bottom: 10px; }
    .intro-title { margin-bottom: 8px; }
    .message-inner { padding: 16px 14px; }
    .hero-text { font-size: 1.1rem !important; line-height: 1.4; }
    .body-text { font-size: 0.88rem !important; line-height: 1.6; }
    .message-divider { margin: 10px 0; }
    .intro-btn-wrapper { margin-bottom: 16px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .intro-screen, .title-text, .title-text::before, .title-text::after,
    .orbit, .logo-pulse-ring, .intro-logo, .scan-line, .aurora-layer,
    .grid-perspective, .message-glow-border, .btn-border-anim, .progress-fill,
    .intro-nebula, .brand-highlight, .divider-dot, .btn-icon-wrap {
        animation: none !important;
    }
    .intro-logo-section, .intro-title-section, .intro-message-box,
    .intro-btn-wrapper, .intro-progress, .intro-subtitle-bar,
    .message-hero, .message-divider, .message-body {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}
