/* ===================================================================
   OUR TEAM — Dreamvion Team Page Styles
   =================================================================== */

/* -------- TEAM HERO -------- */
.team-hero {
    padding: 140px 0 90px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.team-hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.team-hero::after {
    content: "";
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.team-hero-content {
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.team-hero-content .eyebrow {
    margin-bottom: 16px;
}

.team-hero-content h1 {
    font-size: clamp(32px, 4.8vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
}

.team-hero-content h1 .accent-word {
    color: var(--accent);
}

.team-hero-sub {
    font-size: 17.5px;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* -------- TEAM MEMBERS -------- */
.team-members-section {
    background: var(--bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
}

.team-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    padding: 0;
}

.team-card.featured .team-image {
    border-radius: 0;
    aspect-ratio: 1/1.2;
    min-height: 300px;
}

.team-card.featured .team-info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-image {
    position: relative;
    aspect-ratio: 1/1.1;
    overflow: hidden;
    background: var(--bg-elevated-2);
    border-radius: var(--radius) var(--radius) 0 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.03);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(6, 10, 16, 0.8));
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.team-social a:hover {
    background: var(--accent);
    color: #03131c;
}

.team-info {
    padding: 24px 20px 28px;
}

.team-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-role {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.team-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.team-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-expertise span {
    padding: 4px 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* -------- WHY OUR TEAM -------- */
.why-team-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.why-team-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin: 0 auto 16px;
}

.why-team-card h4 {
    font-size: 16.5px;
    margin-bottom: 10px;
}

.why-team-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -------- VALUES -------- */
.values-section {
    background: var(--bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.value-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.value-number {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
}

.value-content h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.value-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* -------- JOIN OUR TEAM -------- */
.join-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.join-box {
    background: linear-gradient(155deg, var(--bg), var(--bg-elevated-2));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 64px;
    text-align: center;
}

.join-box .eyebrow {
    justify-content: center;
    margin-bottom: 12px;
}

.join-box h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.join-box h2 .accent-word {
    color: var(--accent);
}

.join-box p {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.join-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.join-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text);
}

.join-feature i {
    color: var(--accent);
    font-size: 18px;
}

.join-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------- FAQ -------- */
.faq-team-section {
    background: var(--bg);
}

.team-faq {
    max-width: 820px;
    margin: 0 auto;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1080px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card.featured {
        grid-template-columns: 1fr 1.2fr;
    }

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

    .values-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 991px) {
    .team-hero {
        padding: 120px 0 64px;
    }

    .team-card.featured {
        grid-template-columns: 1fr;
    }

    .team-card.featured .team-image {
        aspect-ratio: 4/3;
        min-height: 200px;
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .team-card.featured .team-info {
        padding: 30px 24px;
    }

    .join-box {
        padding: 40px 32px;
    }
}

@media (max-width: 760px) {
    .team-hero-content h1 {
        font-size: 28px;
    }

    .team-hero-sub {
        font-size: 16px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card.featured {
        grid-template-columns: 1fr;
    }

    .team-card.featured .team-image {
        aspect-ratio: 4/3;
        min-height: 180px;
    }

    .team-card.featured .team-info {
        padding: 24px 20px;
    }

    .team-image {
        aspect-ratio: 4/3;
    }

    .why-team-grid {
        grid-template-columns: 1fr;
    }

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

    .value-card {
        padding: 24px 20px;
    }

    .value-number {
        font-size: 28px;
        min-width: 40px;
    }

    .join-box {
        padding: 32px 20px;
        border-radius: 14px;
    }

    .join-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .join-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .join-buttons .btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .team-hero {
        padding: 100px 0 48px;
    }

    .team-hero-content h1 {
        font-size: 24px;
    }

    .team-hero-sub {
        font-size: 14.5px;
    }

    .team-card.featured .team-info h4 {
        font-size: 17px;
    }

    .team-info h4 {
        font-size: 16px;
    }

    .team-expertise span {
        font-size: 10.5px;
        padding: 3px 12px;
    }

    .join-box h2 {
        font-size: 24px;
    }

    .join-box p {
        font-size: 15px;
    }

    .join-feature {
        font-size: 13.5px;
    }
}
