/* ==========================================================================
   ILS Collectives About Page CSS 
   ========================================================================== */

:root {
    --electric-blue: #00D4FF;
    --deep-bg: #05070A;
    --text-white: #FFFFFF;
    --text-silver: #A0AAB2;
    --neon-glow: 0 0 25px rgba(0, 212, 255, 0.4);
    --volumetric-glow: 0 0 50px rgba(0, 212, 255, 0.2);
    --metal-gradient: linear-gradient(135deg, #ffffff 0%, #333333 50%, #ffffff 100%);
    --panel-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

/* Sections Base */
.about-hero-section,
.about-mission-section,
.about-vision-section,
.about-stats-section,
.about-corridor-section,
.about-testimonials-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--deep-bg);
}

/* Transitions overlap styling */
.about-hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 1. About Hero Sphere Canvas */
.sphere-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.about-intro-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 850px;
    padding: 0 2rem;
}

.hero-large-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0AAB2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.hero-large-title span {
    color: var(--electric-blue);
    -webkit-text-fill-color: var(--electric-blue);
    text-shadow: var(--neon-glow);
}

.hero-text-desc {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-silver);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. Mission Section */
.about-mission-section {
    min-height: 100vh;
    padding: 8rem 0;
    display: flex;
    align-items: center;
}

.mission-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.mission-pathway-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
}

.mission-reveal-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mission-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 6px;
    margin-bottom: 3.5rem;
    text-shadow: var(--neon-glow);
}

.mission-path-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.path-word {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.15;
    transform: translateZ(0);
    transition: opacity 0.8s ease, text-shadow 0.8s ease;
    will-change: opacity, transform;
}

.path-word.active-reveal {
    opacity: 1;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 40px rgba(0, 212, 255, 0.4);
}

.mission-paragraph {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: var(--text-silver);
    max-width: 750px;
    line-height: 1.7;
    margin-top: 2rem;
    opacity: 0.15;
    transition: opacity 1s ease;
}

.mission-paragraph.active-reveal {
    opacity: 1;
}

/* Floating depths classes for parallax */
.float-depth-1 { transform: translateZ(50px); }
.float-depth-2 { transform: translateZ(-80px); }
.float-depth-3 { transform: translateZ(120px); }
.float-depth-4 { transform: translateZ(-40px); }

/* 3. Vision Section (Observatory) */
.about-vision-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.vision-observatory-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.vision-content-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 800px;
}

.vision-core {
    padding: 3rem;
    border-radius: 30px;
    background: radial-gradient(circle at center, rgba(5, 7, 10, 0.6) 0%, transparent 80%);
}

.vision-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    text-shadow: var(--neon-glow);
}

.vision-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 5px;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

.vision-statement {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--text-silver);
    line-height: 1.6;
    font-weight: 500;
}

/* 4. Stats Command Center */
.about-stats-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.stats-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.stats-dashboard-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
}

.stats-sec-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 5px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 5rem;
}

.stats-holograms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-hologram-node {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.stat-hologram-node:hover {
    transform: scale(1.08) rotateX(10deg) rotateY(10deg);
}

.hologram-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--electric-blue);
    animation: rotateChrome 20s linear infinite;
    opacity: 0.4;
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.2);
}

.hologram-ring-inner {
    position: absolute;
    width: 86%;
    height: 86%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--electric-blue);
    animation: rotateChromeReverse 10s linear infinite;
    opacity: 0.6;
}

.hologram-node-body {
    position: relative;
    z-index: 3;
    text-align: center;
    transform: translateZ(30px);
}

.stat-counter-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-number-val {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: var(--neon-glow);
}

.stat-number-suffix {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--electric-blue);
}

.stat-label-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-silver);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 5. Transformation Corridor */
.about-corridor-section {
    height: 300vh; /* Scroll pinning height */
    position: relative;
}

.corridor-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
}

.corridor-side {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.left-before {
    left: 0;
    z-index: 2;
    background-color: #030406;
}

.right-after {
    left: 0;
    z-index: 3;
    background-color: #05070a;
    /* Clipped screen using clip-path (handled by GSAP) */
    clip-path: inset(0 0 0 100%);
}

.corridor-bg-ambient {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    pointer-events: none;
    opacity: 0.25;
}

.before-ambient {
    background: radial-gradient(circle at 30% 50%, rgba(150, 50, 50, 0.15) 0%, transparent 60%);
}

.after-ambient {
    background: radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.25) 0%, transparent 60%);
}

.corridor-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
}

.corridor-header {
    margin-bottom: 4rem;
}

.corridor-badge {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.8rem;
}

.corridor-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.corridor-visual-elements {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BEFORE elements styling */
.static-wireframe {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 6rem;
    border-radius: 12px;
    letter-spacing: 8px;
    transform: rotateX(20deg) rotateY(-20deg);
}

.broken-node {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background-color: rgba(255, 255, 255, 0.01);
}

.fragment-1 { width: 60px; height: 60px; top: 10%; left: 20%; transform: rotate(15deg); }
.fragment-2 { width: 80px; height: 80px; bottom: 15%; right: 15%; transform: rotate(-35deg); }
.fragment-3 { width: 40px; height: 40px; top: 50%; right: 25%; transform: rotate(45deg); }

.weak-indicator {
    position: absolute;
    bottom: 0;
    font-size: 0.9rem;
    color: rgba(255, 0, 0, 0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* AFTER elements styling */
.dynamic-chart-glowing {
    width: 450px;
    height: 220px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(0, 0, 0, 0.3));
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transform: rotateX(10deg) rotateY(10deg);
}

.growth-chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.glowing-growth-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawPath 3.5s linear infinite;
    filter: drop-shadow(0 0 8px var(--electric-blue));
}

.glowing-growth-pulse {
    animation: flashDot 1.5s infinite alternate;
}

.premium-branding-layer {
    position: absolute;
    bottom: -20px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: #FFFFFF;
    text-shadow: var(--neon-glow);
}

/* Split panel divider handle */
.corridor-3d-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.corridor-divider {
    position: absolute;
    top: 0;
    left: 100%;
    width: 2px;
    height: 100%;
    background-color: var(--electric-blue);
    box-shadow: 0 0 15px var(--electric-blue), 0 0 30px var(--electric-blue);
    z-index: 10;
    transform: translateX(-50%);
    pointer-events: none;
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #000000;
    border: 2px solid var(--electric-blue);
    box-shadow: var(--neon-glow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-pulser {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--electric-blue);
    animation: supportWave 1.5s infinite ease-out;
}

.divider-arrow-left,
.divider-arrow-right {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    position: absolute;
}

.divider-arrow-left {
    border-right: 6px solid var(--electric-blue);
    left: 10px;
}

.divider-arrow-right {
    border-left: 6px solid var(--electric-blue);
    right: 10px;
}

/* 6. Testimonials Floating Memory Space */
.about-testimonials-section {
    min-height: 100vh;
    padding: 8rem 0;
    display: flex;
    align-items: center;
}

.testimonials-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.testimonials-ui-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
}

.testimonials-sec-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 5px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 5rem;
}

.holographic-panels-container {
    position: relative;
    width: 100%;
    height: 580px;
    perspective: 1200px;
}

.holo-memory-panel {
    position: absolute;
    width: 330px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 212, 255, 0.01);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.6s ease,
                box-shadow 0.6s ease,
                opacity 0.6s ease;
    will-change: transform, opacity;
}

.holo-memory-panel:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.25), inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.panel-holo-visualizer {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 12px;
    background-color: #030508;
    border: 1px solid rgba(0, 212, 255, 0.15);
    margin-bottom: 1.2rem;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.2);
}

.panel-holo-visualizer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%;
    z-index: 5;
    pointer-events: none;
}

.panel-visualizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.panel-video-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen;
}

/* Specific Panel Placement (will drift via JS, set start positions) */
#holo-panel-1 { top: 5%; left: 5%; }
#holo-panel-2 { top: 35%; left: 58%; }
#holo-panel-3 { top: 15%; left: 32%; }

.holo-memory-panel .stars {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.holo-memory-panel .panel-excerpt {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.holo-memory-panel .panel-full-text {
    display: none;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-silver);
    margin-bottom: 1.5rem;
}

.holo-memory-panel .panel-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--electric-blue);
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Active panel zoom state */
.holo-memory-panel.active-panel {
    z-index: 100;
    width: 580px;
    max-width: 90%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
    cursor: default;
    border-color: var(--electric-blue);
    background: rgba(4, 6, 9, 0.96);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5), inset 0 0 30px rgba(0, 212, 255, 0.15);
    padding: 2.2rem;
}

.holo-memory-panel.active-panel .panel-holo-visualizer {
    height: 220px;
    border-color: var(--electric-blue);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.2);
}

.holo-memory-panel.active-panel .panel-excerpt {
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.holo-memory-panel.active-panel .panel-full-text {
    display: block;
}

.holo-memory-panel.active-panel .panel-author {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

/* Dim siblings */
.holographic-panels-container.panel-opened .holo-memory-panel:not(.active-panel) {
    opacity: 0.1;
    pointer-events: none;
}

/* Overlay backdrop */
.holo-panel-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(2, 3, 5, 0.85);
    backdrop-filter: blur(12px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.testimonials-ui-wrapper.overlay-active .holo-panel-overlay {
    opacity: 1;
    visibility: visible;
}

/* Testimonial HUD Controls Styling */
.testimonials-hud-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 10;
}

.hud-btn {
    background: rgba(3, 5, 8, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 30px;
    color: var(--text-silver);
    padding: 0.8rem 1.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.hud-btn:hover {
    color: var(--text-white);
    border-color: var(--electric-blue);
    box-shadow: var(--neon-glow), inset 0 0 10px rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.hud-btn i {
    color: var(--electric-blue);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.hud-btn:hover i {
    transform: scale(1.2);
}

/* Chatbot Overlay Fixes (chatbot will always sit on top and never get hidden by Three.js overlays) */
.chatbot-container {
    z-index: 999999 !important;
}

.chatbot-toggle {
    z-index: 1000000 !important;
}

.chatbot-window {
    z-index: 1000000 !important;
}

/* CSS Keyframes */
@keyframes rotateChrome {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateChromeReverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    #holo-panel-1 { top: 5%; left: 5%; }
    #holo-panel-2 { top: 52%; left: 48%; }
    #holo-panel-3 { top: 22%; left: 20%; }
}

@media (max-width: 768px) {
    .corridor-content {
        padding: 0 1.5rem;
    }
    
    .dynamic-chart-glowing {
        width: 100%;
        max-width: 320px;
        height: 180px;
    }
    
    .static-wireframe {
        padding: 2rem 3rem;
        letter-spacing: 4px;
        font-size: 1.5rem;
    }
    
    .holographic-panels-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        perspective: none;
    }
    
    .holo-memory-panel {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 auto;
        transform: none !important;
    }
    
    .holo-memory-panel.active-panel {
        position: fixed;
        width: 92% !important;
    }
    
    .testimonials-hud-controls {
        gap: 1rem;
        flex-direction: row;
        margin-top: 2rem;
    }
    
    .hud-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.75rem;
    }
}
