/* ============================================
   TEAM PAGE — Card Grid Layout
   ============================================ */

/* ---------- Team Hero ---------- */
.team-hero {
    position: relative;
    padding: 10rem 0 5rem;
    background: var(--bg-darkest);
    overflow: hidden;
    text-align: center;
}

.team-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.team-hero__bg-logo {
    position: absolute;
    right: -8%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 500px;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.team-hero__content {
    position: relative;
    z-index: 1;
}

.team-hero__title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
}

.team-hero__title span {
    color: var(--color-orange);
}

.team-hero__subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.team-hero__accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-yellow));
    border-radius: 2px;
    margin: 0 auto;
}

/* ---------- Team Section ---------- */
.team-section {
    background: var(--bg-dark);
    padding: var(--space-4xl) 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Design Team — reduced top padding, tighter spacing */
.team-section--design {
    padding-top: var(--space-xl);
}

.team-section--design .investors-section__header {
    margin-bottom: var(--space-lg);
}

/* Design Team grid — same column size as core team */
.team-grid--design {
    grid-template-columns: repeat(6, 1fr);
}

/* Face-crop for Arya in design team */
#team-card-design-2 .team-card__photo img {
    object-position: center 45%;
}

/* Face-crop for Rhea — shift photo upward */
#team-card-rhea .team-card__photo img {
    object-position: center 10%;
}

/* Ambient glow behind the section */
.team-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 123, 66, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.team-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 31, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

/* ---------- Card Grid ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

/* ---------- Team Card ---------- */
.team-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 123, 66, 0.06) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.team-card:hover {
    border-color: rgba(255, 123, 66, 0.25);
    transform: translateY(-6px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 123, 66, 0.08);
}

.team-card:hover::before {
    opacity: 1;
}

/* ---------- Card Photo ---------- */
.team-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Face-crop overrides — Satvik, Arya, Dhvanit have faces lower in photo */
#team-card-1 .team-card__photo img,
#team-card-2 .team-card__photo img,
#team-card-5 .team-card__photo img {
    object-position: center 45%;
}

.team-card:hover .team-card__photo img {
    transform: scale(1.06);
}

/* Gradient overlay on photo bottom for text readability */
.team-card__photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 31, 0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Number badge on photo */
.team-card__number {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    line-height: 1;
}

/* ---------- Card Info ---------- */
.team-card__info {
    position: relative;
    padding: 0.5rem 0.6rem 0.6rem;
    z-index: 2;
}

.team-card__name {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.team-card__name::after {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-yellow));
    border-radius: 2px;
    margin-top: 0.25rem;
    transition: width 0.3s ease;
}

.team-card:hover .team-card__name::after {
    width: 32px;
}

.team-card__position {
    font-family: var(--font-primary);
    font-size: 0.52rem;
    font-weight: 500;
    color: var(--color-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.team-card__bio {
    display: none;
}

/* ---------- LinkedIn Button ---------- */
.team-card__linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    background: rgba(10, 102, 194, 0.12);
    color: #0a66c2;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card__linkedin:hover {
    background: #0a66c2;
    color: var(--color-white);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.35);
}

.team-card__linkedin svg {
    display: block;
    width: 14px;
    height: 14px;
}

/* ============================================
   RESPONSIVE — Mobile (≤767px)
   ============================================ */
@media (max-width: 767px) {
    .team-hero {
        padding: 8rem 0 3.5rem;
    }

    .team-hero__title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .team-hero__subtitle {
        font-size: 0.9rem;
    }

    .team-hero__accent {
        width: 60px;
        height: 3px;
    }

    .team-section {
        padding: var(--space-3xl) 0 3rem;
    }

    .team-section--design {
        padding-top: var(--space-lg);
    }



    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .team-card__photo {
        aspect-ratio: 1 / 1;
    }

    .team-card__info {
        padding: 0.5rem 0.6rem 0.55rem;
    }

    .team-card__name {
        font-size: 0.75rem;
        letter-spacing: 0.8px;
    }

    .team-card__position {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .team-card__bio {
        font-size: 0.7rem;
    }
}

/* ============================================
   RESPONSIVE — Tablet (≥768px, ≤1023px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .team-hero__title {
        font-size: 4.5rem;
    }

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

    .team-card__name {
        font-size: 0.7rem;
    }

    .team-card__bio {
        font-size: 0.65rem;
    }
}

/* ============================================
   RESPONSIVE — Desktop (≥1024px)
   ============================================ */
@media (min-width: 1024px) {
    .team-hero {
        padding: 12rem 0 6rem;
    }

    .team-hero__title {
        font-size: 5.5rem;
        letter-spacing: 8px;
    }

    .team-hero__subtitle {
        font-size: 1.1rem;
    }

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

    .team-card__info {
        padding: 0.5rem 0.6rem 0.6rem;
    }

    .team-card__name {
        font-size: 0.72rem;
    }
}

/* ============================================
   RESPONSIVE — Large Desktop (≥1440px)
   ============================================ */
@media (min-width: 1440px) {
    .team-grid {
        gap: 1.25rem;
    }

    .team-card__name {
        font-size: 0.8rem;
    }

    .team-card__info {
        padding: 0.55rem 0.7rem 0.65rem;
    }
}