/* ================================================
   css/about.css - FINAL CLEAN VERSION
================================================= */

.about-section {
    position: relative;
    min-height: 100vh;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 5% 100px 5%;
    overflow: hidden;
    perspective: 1200px;
    z-index: 2;
}

.about-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 50px 50px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 150px 250px, rgba(255,255,255,0.1), transparent);
    background-size: 400px 400px;
    opacity: 0.3;
    z-index: 1;
}

.about-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* --- CEO WRAPPER (holds canvas + sphere) --- */
.ceo-wrapper {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
    position: relative;
}

/* --- THE CANVAS (now lives in ceo-wrapper) --- */
.neural-links {
    position: absolute;
    width: 700px;
    height: 700px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    opacity: 0.55;
}

/* --- THE SPHERE (photo + geo layers) --- */
.neural-sphere {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    z-index: 10;
}

/* --- PHOTO --- */
.ceo-photo-core {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: 50;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    overflow: hidden;
    box-shadow: 
    0 0 60px 30px rgba(0, 0, 0, 0.9),      /* dark halo (separates from web) */
    0 0 120px 60px rgba(0, 0, 0, 0.6);     /* soft outer fade */
}

.ceo-photo-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s ease;
}

.neural-sphere:hover .ceo-photo-core img {
    filter: grayscale(0%) contrast(1);
}

/* --- GEO LAYERS --- */
.geo-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 20;
}

.gl-1 { width: 500px; height: 500px; animation: spinDiamond 60s linear infinite; }
.gl-2 { width: 520px; height: 520px; border-color: rgba(255,255,255,0.05); animation: spinTiltX 50s linear infinite; }
.gl-3 { width: 520px; height: 520px; border-color: rgba(255,255,255,0.05); animation: spinTiltY 55s linear infinite reverse; }
.gl-4 { width: 380px; height: 380px; border: 1px dashed rgba(236,246,116,0.15); animation: spinDiamond 40s linear infinite reverse; }

.gl-1::after, .gl-2::after, .gl-3::after {
    content: '';
    position: absolute;
    width: 4px; height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}
.gl-1::after { top: -2px; left: -2px; }
.gl-2::after { bottom: -2px; right: -2px; }
.gl-3::after { top: -2px; right: -2px; }

/* --- TEXT SIDE --- */
.about-content {
    flex: 0.8;
    padding-left: 1rem;
    color: #fff;
    margin-top: -20px;
}

.deco-line {
    width: 2px;
    height: 50px;
    background: var(--primary);
    margin-bottom: 2rem;
}

.about-headline {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.about-headline span {
    color: var(--primary);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 30px rgba(236, 246, 116, 0.3);
}

.about-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 500px;
    font-weight: 300;
}

.signature-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-left: 2px solid var(--primary);
    padding-left: 15px;
}

.sig-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.sig-role {
    font-family: monospace;
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

/* ANIMATIONS */
@keyframes spinDiamond {
    from { transform: translate(-50%, -50%) rotate(45deg); }
    to { transform: translate(-50%, -50%) rotate(405deg); }
}
@keyframes spinTiltX {
    from { transform: translate(-50%, -50%) rotateX(60deg) rotate(45deg); }
    to { transform: translate(-50%, -50%) rotateX(60deg) rotate(405deg); }
}
@keyframes spinTiltY {
    from { transform: translate(-50%, -50%) rotateY(60deg) rotate(45deg); }
    to { transform: translate(-50%, -50%) rotateY(60deg) rotate(405deg); }
}

/* MOBILE */
@media (max-width: 900px) {
    .about-section { padding: 50px 5%; }
    .about-container { flex-direction: column-reverse; text-align: center; gap: 2rem; }
    .about-content { padding-left: 0; align-items: center; display: flex; flex-direction: column; }
    .deco-line { display: none; }
    .neural-sphere { width: 350px; height: 350px; }
    .neural-links { width: 500px; height: 500px; }
    .ceo-photo-core { width: 220px; height: 220px; }
    .gl-1, .gl-2, .gl-3, .gl-4 { width: 100%; height: 100%; }
    .signature-block { border-left: none; border-top: 2px solid var(--primary); padding-left: 0; padding-top: 15px; }
}

/* css/about.css - MOBILE FINAL POLISH (The "Un-Boxed" Fix) */

@media (max-width: 900px) {
    
    .about-section { 
        padding: 60px 5% 80px 5%; /* Balanced padding */
        min-height: auto;
        overflow: hidden; /* Keep it contained */
    }

    .about-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 1rem; 
        position: relative;
        z-index: 5;
    }

    /* 1. THE CEO WRAPPER (Top) */
    .ceo-wrapper {
        order: 1;
        height: 300px; /* Fixed height to reserve space */
        width: 100%;
        margin-bottom: 1rem; /* Push text away */
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    /* 2. THE NEURAL CANVAS (Un-boxed via Mask) */
    .neural-links {
        width: 320px !important; /* Smaller, mobile friendly */
        height: 320px !important;
        
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        
        opacity: 0.5;
        pointer-events: none;
        
        /* THE MAGIC FIX: Fade the edges so it looks like a sphere, not a box */
        -webkit-mask-image: radial-gradient(circle, black 40%, transparent 70%);
        mask-image: radial-gradient(circle, black 40%, transparent 70%);
        
        z-index: 1; /* Sit behind the photo */
    }

    /* 3. THE SPHERE & PHOTO */
    .neural-sphere { 
        width: 240px; 
        height: 240px;
        position: relative;
        z-index: 20; /* Sit above the canvas */
    }
    
    .ceo-photo-core { 
        width: 160px; 
        height: 160px; 
        box-shadow: 0 0 30px rgba(0,0,0,0.8);
        background: #000;
        z-index: 25;
    }
    
    /* 4. GEO LAYERS (Subtle Rotation) */
    .geo-layer {
        width: 100%;
        height: 100%;
        border-width: 1px;
        opacity: 0.6;
    }
    
    .gl-1 { transform: translate(-50%, -50%) scale(0.85) rotate(45deg); animation: spinDiamondMobile 60s linear infinite; }
    .gl-2 { transform: translate(-50%, -50%) scale(0.95); animation: none; border-color: rgba(255,255,255,0.1); }
    .gl-3 { display: none; } /* Simplify for mobile */
    .gl-4 { display: none; }

    /* 5. CONTENT TYPOGRAPHY (Bottom) */
    .about-content { 
        order: 2; 
        padding-left: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center;
        position: relative;
        z-index: 30; /* ALWAYS ON TOP OF GRAPHICS */
    }

    .deco-line { display: none; }

    .about-headline {
        font-size: 2rem; 
        line-height: 1;
        margin-bottom: 1.5rem;
        /* Ensure text glows to separate from background */
        text-shadow: 0 0 20px rgba(0,0,0,0.8); 
    }
    
    .about-desc {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
        color: rgba(255, 255, 255, 0.9);
    }

    .signature-block { 
        border-left: none; 
        border-top: 1px solid var(--primary);
        padding-top: 20px; 
        margin-top: 2rem;
        width: fit-content;
    }
}

/* Optimized Mobile Animation */
@keyframes spinDiamondMobile {
    from { transform: translate(-50%, -50%) scale(0.85) rotate(45deg); }
    to { transform: translate(-50%, -50%) scale(0.85) rotate(405deg); }
}