/* =========================================
   3D INTRO VIDEO SIMULATION (REFINED & COMPACT)
   ========================================= */

/* 1. Compact Container */
.intro-video-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 5rem auto;
    /* Increased spacing */
    border-radius: 25px;
    /* Subtle radius */
    position: relative;
    /* Clean Neumorphic Base */
    background: var(--bg-light);
    box-shadow:
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
    /* Subtle Border */
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    /* Keep it contained */
    z-index: 1;
}

/* "Little Bit" RGB Border - Top Accent Only or Thin Border */
.intro-video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    /* Just a top accent line, distinct but subtle */
    background: linear-gradient(90deg, #4466ff, #ff3366, #00ccff);
    background-size: 200%;
    animation: rgbFlowBar 4s linear infinite;
    z-index: 2;
}

@keyframes rgbFlowBar {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* 2. Compact Stage - No Background */
.intro-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    /* Reduced gap */
    padding: 2rem 2.5rem;
    /* Reduced padding */
    position: relative;
    background: transparent;
}

@media (max-width: 768px) {
    .intro-stage {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
}

/* 3. 3D Character (Transparent PNG) */
.intro-character-container {
    position: relative;
    width: 140px;
    /* Smaller */
    height: 140px;
    flex-shrink: 0;
    perspective: 800px;
}

.intro-robot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    border: none;
    /* Clean image, blend mode removed */
    mix-blend-mode: screen;
    filter: drop-shadow(0 15px 25px rgba(68, 102, 255, 0.3));
    animation: talkFloat 4s ease-in-out infinite;
}

/* Animation looks like "presenting" */
@keyframes talkFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

.intro-glow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(68, 102, 255, 0.3) 0%, transparent 70%);
    filter: blur(5px);
    animation: shadowPulse 4s infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.6;
    }
}

/* 4. Content - Short & Visible */
.intro-content {
    flex: 1;
    max-width: 450px;
}

.intro-heading {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Justify center on mobile handled by flex-direction/text-align above */
}

@media (max-width: 768px) {
    .intro-heading {
        justify-content: center;
    }
}

.intro-heading::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    /* Green dot */
    box-shadow: 0 0 5px var(--secondary);
}

/* Cycler Text - Visible & readable */
.service-cycler {
    height: 3rem;
    /* Compact */
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-cycler span {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    /* Gradient Text */
    background: linear-gradient(135deg, #4466ff 0%, #ff3366 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    white-space: nowrap;
    /* Prevent wrap issues */
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .service-cycler span {
        font-size: 1.8rem;
        white-space: normal;
        /* Allow wrap on mobile if needed */
        line-height: 1.1;
    }

    .service-cycler {
        height: 4rem;
        /* More height for wrapping lines */
    }
}

/* Smooth Cycle Animation */
.service-cycler span {
    animation: cyclePop 10s linear infinite;
}

.service-cycler span:nth-child(1) {
    animation-delay: 0s;
}

.service-cycler span:nth-child(2) {
    animation-delay: 2s;
}

.service-cycler span:nth-child(3) {
    animation-delay: 4s;
}

.service-cycler span:nth-child(4) {
    animation-delay: 6s;
}

.service-cycler span:nth-child(5) {
    animation-delay: 8s;
}

@keyframes cyclePop {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }

    5% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    20% {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(4px);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.intro-subtext {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 400;
    opacity: 0.9;
}