/* About Section - Pinned Scroll Architecture */
.about-section {
    position: relative;
    background-color: transparent;
    overflow: visible; /* Allow GSAP to reach panels */
}

.pinned-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

/* ── Left Column Headers ──────────────────── */
.section-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-muted);
}

.text-glow h2 { text-shadow: 0 0 60px rgba(255, 79, 0, 0.18); }

/* ── Scroll Panels (right column) ─────────── */
.about-content-panels {
    position: relative;
    height: 440px; /* Tall enough for panel 3 with stats */
    display: flex;
    align-items: center; /* Vertically center the whole column */
}

.scroll-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    will-change: opacity, transform;
    backface-visibility: hidden;
    /* No centering transform — all panels anchor to the same top:0 */
}

/* First panel starts visible */
.scroll-panel.panel-1 { opacity: 1; }

.panel-inner {
    background: rgba(12, 12, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

.panel-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.45;
}

.about-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.85;
}

.about-text.p-large {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 500;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 992px) {
    /* Remove the full-viewport height — was creating a massive empty gap on mobile */
    .pinned-container {
        min-height: auto;
        padding: 0;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-header { text-align: center; }

    /* Restore absolute panel layout so GSAP pin animation works on mobile too */
    .about-content-panels {
        height: 420px; /* Increased from 300px to avoid overlap with Services section header */
        display: block; /* Not flex — GSAP needs panels to overlap via absolute positioning */
    }

    .scroll-panel {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(25px);
        opacity: 0;
    }

    /* Panel 1 starts visible */
    .scroll-panel.panel-1 { opacity: 1; transform: translateY(0); }

    .panel-inner { padding: 1.75rem 1.5rem; }
}

@media (max-width: 480px) {
    .about-content-panels { height: 500px; } /* Extra absolute height for panel 4 text & stat wrapping */
    .about-text { font-size: 1rem; }
    .about-text.p-large { font-size: 1.05rem; }
    .panel-number { font-size: 2rem; }
}
