/* ===== About Page Specific Styles ===== */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* ===== About Hero ===== */
.about-hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.about-gradient {
    position: absolute;
    top: -30%;
    left: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(232, 93, 69, 0.08) 0%, transparent 70%);
}

.about-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

.about-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
    animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.about-hero .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Stats Row */
.about-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    animation: fade-up 0.8s var(--ease-out) 0.3s both;
}

.about-stat-card {
    background: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.about-stat-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(232, 93, 69, 0.1);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.about-stat-card:hover .stat-value {
    color: var(--color-accent);
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===== Story Section ===== */
.story-section {
    background: var(--color-bg-pure);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: start;
}

.story-content .section-label {
    margin-bottom: var(--space-sm);
}

.story-content h2 {
    margin-bottom: var(--space-lg);
}

.story-content p {
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.story-content .lead {
    font-size: 1.1875rem;
    color: var(--color-text);
    font-weight: 500;
}

.story-highlight {
    background: var(--color-accent-soft);
    border-left: 3px solid var(--color-accent);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0 0 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
    color: var(--color-text);
}

/* Timeline Vertical */
.story-visual {
    position: relative;
}

.timeline-vertical {
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-border), var(--color-accent));
}

.timeline-point {
    position: relative;
    padding: var(--space-md) 0;
    padding-left: var(--space-md);
}

.timeline-point::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--color-bg-pure);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out);
}

.timeline-point.active::before {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.timeline-point:hover::before {
    border-color: var(--color-accent);
}

.point-year {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.point-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.timeline-point.active .point-text {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== Leadership Section ===== */
.leadership-section .section-header {
    margin-bottom: var(--space-2xl);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.team-card {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.team-photo {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(232, 93, 69, 0.1) 0%, rgba(232, 93, 69, 0.05) 100%);
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: var(--space-lg);
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.team-info p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== Vibe Advantage Section ===== */
.vibe-advantage-section {
    background: var(--color-bg);
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.advantage-card {
    background: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.advantage-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
}

.advantage-icon svg {
    width: 100%;
    height: 100%;
}

.advantage-card h3 {
    font-size: 1.0625rem;
    margin-bottom: var(--space-xs);
}

.advantage-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== Offices Section ===== */
.offices-section {
    background: var(--color-text);
}

.offices-section .section-header {
    margin-bottom: var(--space-2xl);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.office-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s var(--ease-out);
}

.office-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.office-info h3 {
    color: white;
    font-size: 1.1875rem;
    margin-bottom: var(--space-sm);
}

.office-info address {
    font-style: normal;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.office-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent);
    transition: color 0.2s;
}

.office-phone:hover {
    color: white;
}

/* ===== Trusted Section ===== */
.trusted-section {
    background: var(--color-bg-pure);
}

.trusted-section .clients-logos {
    margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-lg);
    }

    .timeline-vertical {
        display: flex;
        gap: var(--space-sm);
        padding-left: 0;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }

    .timeline-line {
        display: none;
    }

    .timeline-point {
        flex: 0 0 auto;
        padding: var(--space-sm) var(--space-md);
        background: var(--color-bg-subtle);
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
    }

    .timeline-point::before {
        display: none;
    }

    .timeline-point.active {
        border-color: var(--color-accent);
        background: var(--color-accent-soft);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-grid,
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero-subtitle {
        font-size: 1.0625rem;
    }

    .about-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xs);
    }

    .about-stat-card {
        padding: var(--space-sm);
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-desc {
        font-size: 0.75rem;
    }

    .story-section {
        overflow: hidden;
    }

    .story-section .container {
        max-width: 100%;
        box-sizing: border-box;
    }

    .story-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .story-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .story-content p,
    .story-content .lead,
    .story-content h2 {
        max-width: 100%;
        box-sizing: border-box;
    }

    .story-highlight {
        margin-right: 0;
        box-sizing: border-box;
    }

    .timeline-vertical {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .team-grid,
    .advantage-grid,
    .offices-grid {
        grid-template-columns: 1fr;
    }

    .trusted-logos {
        gap: var(--space-md);
    }

    .trusted-logo {
        font-size: 1.125rem;
    }
}
