/* =========================================================================
   ABOUT PAGE — EvoSphere Premium Styles
   File: assets/css/about.css
   ========================================================================= */

/* ── Reveal Animations ──────────────────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ── Gradient Text ──────────────────────────────────────────────────── */
.ab-gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================================================
   ABOUT HERO
   ========================================================================= */
.about-hero {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: var(--color-bg-dark);
}

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

.ab-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}
.ab-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #2563eb 0%, transparent 70%);
    top: -200px; left: -150px;
    animation: orbFloat 8s ease-in-out infinite alternate;
}
.ab-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    bottom: -200px; right: -100px;
    animation: orbFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    from { transform: translateY(0px) scale(1); }
    to   { transform: translateY(30px) scale(1.05); }
}

.ab-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.about-hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.about-hero-title {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.about-hero-desc {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--color-text-silver);
    max-width: 620px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* Stats Row */
.about-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border-glass);
    border-radius: 20px;
    padding: 32px 16px;
    backdrop-filter: blur(16px);
}

.ab-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 40px;
}
.ab-stat-num {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--color-text-pure);
    letter-spacing: -0.02em;
    line-height: 1;
}
.ab-stat-plus {
    font-size: 0.6em;
    color: var(--color-primary);
    vertical-align: super;
}
.ab-stat-label {
    font-size: 12px;
    color: var(--color-text-silver);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}
.ab-stat-divider {
    width: 1px;
    height: 50px;
    background: var(--color-border-glass);
}

/* =========================================================================
   MISSION SECTION
   ========================================================================= */
.about-mission-section {
    padding: 80px 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mission-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.3s;
}
.mission-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
}
.mission-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37,99,235,0.3);
}
.mission-card:hover::before { opacity: 1; }

.mission-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(37,99,235,0.12);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary);
    margin-bottom: 24px;
}
.mission-icon-wrap.accent-green {
    background: rgba(16,185,129,0.12);
    color: #10b981;
}
.mission-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.mission-card p {
    font-size: 15px;
    color: var(--color-text-silver);
    line-height: 1.7;
}

/* =========================================================================
   TEAM SECTION
   ========================================================================= */
.team-section {
    padding: 40px 0 100px;
}

/* ── Featured Large Card (CEO / Manager) ─────────────────────────────── */
.team-featured-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 40px;
    transition: box-shadow 0.4s, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
.team-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,235,0.15);
}

.team-featured-reverse {
    grid-template-columns: 1fr 420px;
}
.team-featured-reverse .tfc-image-side {
    order: 2;
}
.team-featured-reverse .tfc-content-side {
    order: 1;
}

/* Image Side */
.tfc-image-side {
    position: relative;
    background: #0d0d14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 32px;
    min-height: 500px;
    overflow: hidden;
}

.tfc-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.tfc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(0.85) contrast(1.05);
    transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.5s;
}
.team-featured-card:hover .tfc-img-wrap img {
    transform: scale(1.04);
    filter: brightness(0.95) contrast(1.05);
}

/* Gradient overlay on image */
.tfc-img-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20,20,27,0.95) 0%,
        rgba(20,20,27,0.3) 40%,
        transparent 70%
    );
    z-index: 1;
}
.tfc-img-glow.glow-purple {
    background: linear-gradient(
        to top,
        rgba(20,20,27,0.95) 0%,
        rgba(20,20,27,0.3) 40%,
        transparent 70%
    ),
    linear-gradient(
        to bottom-left,
        rgba(124,58,237,0.12) 0%,
        transparent 60%
    );
}

/* Social links over image */
.tfc-social-links {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
}
.tfc-social {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-silver);
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.tfc-social:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Content Side */
.tfc-content-side {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.tfc-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-silver);
    margin-bottom: 16px;
}
.role-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.role-ceo    { background: #2563eb; box-shadow: 0 0 8px #2563eb; }
.role-manager { background: #7c3aed; box-shadow: 0 0 8px #7c3aed; }

.tfc-name {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.tfc-bio {
    font-size: 15px;
    color: var(--color-text-silver);
    line-height: 1.75;
    margin-bottom: 16px;
}
.tfc-bio em { color: #a78bfa; font-style: italic; }

/* Skills tags */
.tfc-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 32px;
}
.skill-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(37,99,235,0.08);
    border: 1px solid rgba(37,99,235,0.18);
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.3px;
    transition: all 0.25s;
}
.skill-tag:hover {
    background: rgba(37,99,235,0.18);
    transform: translateY(-1px);
}

/* Metrics row */
.tfc-metrics {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border-glass);
}
.tfc-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tfc-metric-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-pure);
    letter-spacing: -0.02em;
}
.tfc-metric-label {
    font-size: 11px;
    color: var(--color-text-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Team Leads Header ───────────────────────────────────────────────── */
.team-leads-header {
    text-align: center;
    margin: 80px 0 48px;
}
.team-leads-title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 12px;
}

/* ── Team Lead Cards Grid ────────────────────────────────────────────── */
.team-leads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Make 4th & 5th cards span to center them */
.team-lead-card:nth-child(4),
.team-lead-card:nth-child(5) {
    /* will be centered via grid placement */
}
.team-leads-grid {
    grid-template-columns: repeat(6, 1fr);
}
.team-lead-card:nth-child(1) { grid-column: 1 / 3; }
.team-lead-card:nth-child(2) { grid-column: 3 / 5; }
.team-lead-card:nth-child(3) { grid-column: 5 / 7; }
.team-lead-card:nth-child(4) { grid-column: 1 / 4; }
.team-lead-card:nth-child(5) { grid-column: 4 / 7; }

.team-lead-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.45s,
                border-color 0.3s;
    transition-delay: var(--delay, 0s);
    opacity: 0;
    transform: translateY(30px);
}
.team-lead-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.team-lead-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}

/* Card image area */
.tlc-image-wrap {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.tlc-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.team-lead-card:hover .tlc-image-wrap img {
    transform: scale(1.06);
}

.tlc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(20,20,27,0.9) 0%,
        rgba(20,20,27,0.2) 50%,
        transparent 100%
    );
}
.overlay-blue   { background: linear-gradient(to top, rgba(20,20,27,0.92) 0%, rgba(37,99,235,0.15) 100%); }
.overlay-amber  { background: linear-gradient(to top, rgba(20,20,27,0.92) 0%, rgba(245,158,11,0.15) 100%); }
.overlay-emerald{ background: linear-gradient(to top, rgba(20,20,27,0.92) 0%, rgba(16,185,129,0.15) 100%); }
.overlay-rose   { background: linear-gradient(to top, rgba(20,20,27,0.92) 0%, rgba(244,63,94,0.15) 100%); }

/* Role chip on image */
.tlc-role-chip {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    z-index: 2;
}
.chip-blue    { background: rgba(37,99,235,0.25); border-color: rgba(37,99,235,0.4); color: #93c5fd; }
.chip-amber   { background: rgba(245,158,11,0.2); border-color: rgba(245,158,11,0.35); color: #fcd34d; }
.chip-emerald { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.35); color: #6ee7b7; }
.chip-rose    { background: rgba(244,63,94,0.2); border-color: rgba(244,63,94,0.35); color: #fda4af; }

/* Card content */
.tlc-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tlc-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.tlc-desc {
    font-size: 13.5px;
    color: var(--color-text-silver);
    line-height: 1.65;
}

.tlc-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.skill-tag-sm {
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 3px 10px;
    border-radius: 100px;
    transition: all 0.25s;
}
.skill-tag-sm:hover {
    background: rgba(37,99,235,0.1);
    color: var(--color-primary);
    border-color: rgba(37,99,235,0.2);
}

/* Card footer */
.tlc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-glass);
    margin-top: 4px;
}
.tlc-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tlc-stat span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tlc-stat small {
    font-size: 10px;
    color: var(--color-text-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tlc-social-row {
    display: flex;
    gap: 8px;
}
.tfc-social-sm {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-silver);
    text-decoration: none;
    transition: all 0.25s;
}
.tfc-social-sm:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* =========================================================================
   ABOUT CTA SECTION
   ========================================================================= */
.about-cta-section {
    padding: 60px 0 120px;
}
.about-cta-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-glass);
    border-radius: 28px;
    padding: 80px 48px;
    text-align: center;
    overflow: hidden;
}
.about-cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(37,99,235,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.about-cta-card h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 16px 0 16px;
}
.about-cta-card p {
    font-size: 17px;
    color: var(--color-text-silver);
    margin-bottom: 40px;
}
.about-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
    .team-featured-card,
    .team-featured-reverse {
        grid-template-columns: 1fr;
    }
    .team-featured-reverse .tfc-image-side { order: 1; }
    .team-featured-reverse .tfc-content-side { order: 2; }

    .tfc-image-side {
        min-height: 340px;
    }

    .team-leads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-lead-card:nth-child(1),
    .team-lead-card:nth-child(2),
    .team-lead-card:nth-child(3),
    .team-lead-card:nth-child(4),
    .team-lead-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 100px 0 70px;
    }
    .about-stats-row {
        gap: 0;
        padding: 24px 8px;
    }
    .ab-stat {
        padding: 16px 20px;
    }
    .ab-stat-divider {
        display: none;
    }
    .about-stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .tfc-content-side {
        padding: 36px 28px;
    }
    .tfc-metrics {
        gap: 20px;
        flex-wrap: wrap;
    }

    .team-leads-grid {
        grid-template-columns: 1fr;
    }
    .team-lead-card:nth-child(n) {
        grid-column: span 1;
    }

    .about-cta-card {
        padding: 52px 28px;
    }
}

@media (max-width: 480px) {
    .ab-stat-divider { display: none; }
    .about-stats-row {
        gap: 4px;
        padding: 20px 12px;
    }
    .ab-stat-num {
        font-size: 28px;
    }
    .tfc-name {
        font-size: 28px;
    }
    .tfc-skills {
        gap: 6px;
    }
    .tfc-metrics {
        gap: 16px;
    }
    .about-cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
