/* =====================================================
   ABOUT.CSS
   Full Page Styles & Strict Mobile Responsiveness
   ===================================================== */

/* =====================================================
   1. BASE & CONTAINERS (Overflow Lock)
   ===================================================== */
#about-page {
    color: #fff;
    width: 100%;
    overflow-x: hidden; /* CRITICAL: Prevents GSAP from breaking horizontal scrolling */
    position: relative;
}

/* FLOW BACKGROUND */
.flow {
    position: absolute; /* Using absolute here is fine as long as parent has overflow-x: hidden */
    inset: 0;
    background:
        radial-gradient(circle at 60% 40%, rgba(156, 255, 0, .9), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(156, 255, 0, .6), transparent 50%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* =====================================================
   2. HERO VISUALS & BRAND TEXT
   ===================================================== */
.brand-wrap {
    position: absolute;
    top: 8rem;
    height: 100vh;
    left: 35.5rem;
    z-index: 20;
    pointer-events: none;
}

.brand-text {
    font-family: 'Anton', sans-serif;
    font-size: 93px;
    margin-top: 6.5rem;
    letter-spacing: 3px;
    color: transparent;
    -webkit-text-stroke: 2px #ccff00;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 401px;
    margin-left: 13.5rem;
    perspective: 1000px;
}

.graph-img {
    width: 100%;
    height: auto;
    max-height: 28rem;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    filter: drop-shadow(0 30px 60px rgba(156, 255, 0, .25));
}

.glow-ring {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(157, 255, 0, 0.59), transparent 65%);
    filter: blur(40px);
    z-index: 1;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) }
    50% { transform: scale(1.15) }
}

/* =====================================================
   3. SECTIONS & LAYOUTS
   ===================================================== */
.about-hero {
    min-height: 100vh;
    padding: 140px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 8%;
    position: relative;
    background:
        radial-gradient(circle at 80% 20%, rgba(94, 255, 0, 0.37), transparent 45%),
        linear-gradient(180deg, rgba(27, 24, 24, 1), rgba(0, 0, 0, 0.9));
}

.about-section > * {
    max-width: 1200px;
}

/* Split Grid for Mission/Vision */
.about-section.split {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 60px;
}

/* ABOUT SECTION 1 (Who We Are) */
.about-section1 {
    min-height: 100vh;
    padding: 100px 8%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(94, 255, 0, .35), rgba(94, 255, 0, .18) 30%, transparent 60%),
        linear-gradient(180deg, rgba(27, 24, 24, 1), rgba(0, 0, 0, .9));
}

/* Variant Backgrounds */
.about-section.what {
    background: radial-gradient(circle at 20% 50%, rgba(156, 255, 0, .25), transparent 45%), linear-gradient(180deg, #050605, #000);
}
.about-section.expertise {
    background: radial-gradient(circle at 50% 35%, rgba(156, 255, 0, .35), transparent 55%), linear-gradient(180deg, #000, #050605);
    text-align: center;
}
.about-section.trust {
    background: radial-gradient(circle at 50% 80%, rgba(156, 255, 0, .3), transparent 55%), linear-gradient(180deg, #000, #000);
}

/* =====================================================
   4. TYPOGRAPHY
   ===================================================== */
.about-hero h1 {
    font-size: 64px;
    font-family: 'Anton', sans-serif;
}
.about-hero h1 span { color: var(--green); }

/* Fixed .who class - Removed absolute positioning so it stays in its section */
.who {
    font-family: 'Anton', sans-serif;
    font-size: 72px; /* Adjusted from 93px for better desktop flow */
    letter-spacing: 3px;
    color: transparent;
    -webkit-text-stroke: 2px #ccff00;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
}

.neon-title {
    font-size: 52px;
    margin-bottom: 24px;
    position: relative;
    color: #ccff00;
}
.neon-title::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 4px;
    background: var(--green);
    left: 0;
    bottom: -14px;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(156, 255, 0, .9);
}

.about-section h2, .about-cta h2 {
    font-size: 52px;
    margin-bottom: 24px;
    position: relative;
    color: #ccff00;
}

.about-section.expertise h2 {
    font-family: 'BBH Bartle', 'Anton', sans-serif;
    font-size: 64px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Paragraphs */
.about-section p, .about-hero p {
    font-size: 18px;
    line-height: 1.95;
    max-width: 820px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .92);
    position: relative;
    padding-left: 18px;
    text-shadow: 0 0 14px rgba(156, 255, 0, .08);
}
.about-section p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, rgba(156, 255, 0, .9), rgba(156, 255, 0, .15));
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(156, 255, 0, .45);
}
.about-section.expertise p { margin-left: auto; margin-right: auto; }
.about-section p:hover { color: #fff; transform: translateX(6px); transition: .35s ease; }
.about-cta p { padding-left: 0; }
.about-cta p::before { display: none; }
.about-section.trust p { font-size: 19px; font-weight: 500; }

/* =====================================================
   5. LISTS & PROCESS COMPONENTS
   ===================================================== */
.about-list { list-style: none; padding: 0; margin-top: 30px; }
.about-list li {
    padding: 14px 18px;
    margin-bottom: 14px;
    border-left: 3px solid var(--green);
    background: rgba(255, 255, 255, .03);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: .3s;
    font-size: 16px;
}
.about-section.what .about-list li { background: rgba(0, 0, 0, .6); border-left: 4px solid var(--green); }
.about-list li:hover { transform: translateX(8px); box-shadow: 0 0 20px rgba(156, 255, 0, .25); }

/* Process Section */
.about-section.process { align-items: center; text-align: center; }
.process-list {
    list-style: none;
    padding-left: 0;
    margin: 40px auto 0;
    max-width: 520px;
    counter-reset: step;
}
.process-list li {
    counter-increment: step;
    margin-bottom: 18px;
    padding: 18px 22px 18px 60px;
    position: relative;
    background: rgba(255, 255, 255, .04);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 0 30px rgba(156, 255, 0, .08);
    transition: transform .35s ease, box-shadow .35s ease;
    text-align: left;
}
.process-list li::before {
    content: counter(step);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green);
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.process-list li:hover { transform: scale(1.05) translateY(-6px); box-shadow: 0 0 40px rgba(156, 255, 0, .35); }

/* LAMP IMAGE */
.section-lamp {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    margin-bottom: 30px;
}
.section-lamp img {
    width: 143px;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(156, 255, 0, .6)) drop-shadow(0 0 40px rgba(156, 255, 0, .35));
    animation: lampGlow 4s ease-in-out infinite;
}
@keyframes lampGlow {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1) }
    50%       { opacity: .85; transform: translateX(-50%) scale(1.05) }
}

/* =====================================================
   6. RESPONSIVE BREAKPOINTS
   ===================================================== */

/* LARGE TABLET (max 1024px) */
@media (max-width: 1024px) {
    .brand-wrap { left: 20rem; }
    .brand-text { font-size: 72px; }
    .hero-visual { width: 100%; max-width: 500px; height: auto; margin-left: 4rem; }
    
    .about-hero h1 { font-size: 52px; }
    .who { font-size: 60px; }
    .about-section h2, .about-cta h2, .neon-title { font-size: 42px; }
    .about-section.expertise h2 { font-size: 52px; }
    .about-section.split { gap: 40px; }
}

@media (max-width: 768px) {
    /* --- HERO ADJUSTMENTS --- */
    .about-hero { 
        min-height: auto; 
        padding: 140px 6% 60px; /* Increased top padding to clear nav */
        text-align: center; 
    }
    .about-hero h1 { font-size: 38px; }
    .about-hero p { font-size: 15px; padding-left: 0; margin-left: auto; margin-right: auto; }
    .about-hero p::before { display: none; }

    /* --- FIX 1: HIDE BREAKING DESKTOP DECORATIONS --- */
    /* Hides the floating laptop and "DIGITALTACTSOLUTIONS" outline text */
    .brand-wrap {
        display: none !important;
    }

    /* --- FIX 2: STOP OVERLAPPING IN "WHO WE ARE" --- */
    .about-section1 { 
        min-height: auto; 
        padding: 80px 6%; 
        display: flex;
        flex-direction: column;
    }

    /* Make lamp relative so it stacks cleanly above the text instead of overlapping */
    .section-lamp {
        position: relative;
        left: 0;
        transform: none;
        margin: 0 auto 20px auto;
        display: block;
    }
    .section-lamp img { 
        width: 100px; 
        animation: lampGlowMobile 4s ease-in-out infinite; /* New animation without translateX */
    }

    .who {
        font-size: 40px;
        white-space: normal;
        word-break: break-word; 
        -webkit-text-stroke: 1.5px #ccff00;
        margin-top: 0;
        line-height: 1.2;
        position: relative;
    }

    /* --- SECTION SPACING FIXES --- */
    .about-section { min-height: auto; padding: 80px 6%; }
    .about-section h2, .about-cta h2 { font-size: 32px; }
    .about-section.expertise h2 { font-size: 36px; letter-spacing: 1px; }
    .neon-title { font-size: 30px; }

    /* --- PARAGRAPH FIXES --- */
    .about-section p, .about-hero p { font-size: 15px; padding-left: 12px; margin-top: 16px; }
    .about-section.trust p { font-size: 16px; }

    /* --- GRID & LIST FIXES --- */
    .about-section.split { grid-template-columns: 1fr; gap: 30px; }
    .about-list li { font-size: 14px; padding: 12px 14px; }
    .about-list li:hover { transform: translateX(4px); }
    
    .about-section.process .process-list { max-width: 100%; width: 100%; margin-top: 30px; }
    .about-section.process .process-list li { padding: 14px 16px 14px 52px; font-size: 14px; }
    .process-list li::before { width: 30px; height: 30px; font-size: 13px; left: 10px; }
    .glow-ring { inset: -20px; }
}

/* Mobile-specific lamp animation so it doesn't jump to the left */
@keyframes lampGlowMobile {
    0%, 100% { opacity: 1; transform: scale(1) }
    50%      { opacity: .85; transform: scale(1.05) }
}

/* SMALL MOBILE (max 480px) */
@media (max-width: 480px) {
    .about-hero h1 { font-size: 30px; }
    .brand-text, .who { font-size: 28px; -webkit-text-stroke: 1px #ccff00; }
    
    .about-section h2, .about-cta h2 { font-size: 26px; }
    .about-section.expertise h2 { font-size: 28px; }
    .neon-title { font-size: 24px; }
    .neon-title::after { width: 60px; }
    
    .about-section p, .about-hero p { font-size: 14px; line-height: 1.75; }
    .about-section, .about-section1 { padding: 60px 5%; }
    
    /* Disable translate on hover for touch devices */
    .about-section.process .process-list li:hover { transform: none; box-shadow: 0 0 30px rgba(156, 255, 0, .08); }
    .about-list li:hover { transform: none; box-shadow: none; }
}