/* =========================================
   MEET OUR TEAM STYLES
========================================= */

/* --- 1. Kinetic Hero --- */
.teamHero {
    width: 100%;
    height: auto;
    min-height: 1000px;
    max-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #0a0080 0%, #010008 80%);
    margin-top: -120px;
    padding-top: 120px;
    color: #fff;
}

.kinetic-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 120%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.kinetic-text {
    font-size: 8rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.1;
    animation: kineticScroll 20s linear infinite;
}

.kinetic-text:nth-child(2) {
    animation-direction: reverse;
}

@keyframes kineticScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.teamHeroContainer {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.teamHeroContainer h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    color: #fff;
}

.teamHeroContainer p {
    font-size: 1.25rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

.grad-text-cyan {
    background: linear-gradient(135deg, #fff 30%, #00F0FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.grad-text-violet {
    background: linear-gradient(135deg, #000 30%, #7000FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    z-index: 5;
    /* animation: scrollBounce 2s infinite; */
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scrollLineAnim 1s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollLineAnim {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- 2. The Architects (Leadership Revamp) --- */
.architectsSection {
    padding: 120px 0;
    background: #fff;
}

.arch-Header {
    text-align: center;
    margin-bottom: 60px;
}

.arch-Header h2 {
    font-size: 3.5rem;
    color: #010008;
    margin-bottom: 10px;
}

.arch-Header p {
    font-size: 1.2rem;
    color: #555;
}

.arch-Container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px;
    display: flex;
    gap: 20px;
}

.arch-Card {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

.arch-Card:hover {
    flex: 2;
}

.arch-Bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.arch-Bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(100%);
}

.arch-Card:hover .arch-Bg img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.arch-Overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #010008 0%, transparent 60%);
    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.arch-Card:hover .arch-Overlay {
    opacity: 0.7;
}

.arch-Content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
    color: #fff;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.arch-Role {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #00F0FF;
}

.arch-Card.creative .arch-Role {
    color: #7000FF;
}

.arch-Content h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.1;
}

.arch-Bio {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 90%;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.arch-Stats {
    display: flex;
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    height: 0;
    overflow: hidden;
}

.arch-Card:hover .arch-Stats {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 20px;
}

.arch-Stats div {
    display: flex;
    flex-direction: column;
}

.arch-Stats span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.arch-Stats small {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

/* --- 3. Core Team Grid --- */
.coreTeamSection {
    padding: 100px 0;
    background: #f8f9ff;
}

.coreTeamContainer {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.team-Header {
    text-align: center;
    margin-bottom: 50px;
}

.team-Header h2 {
    font-size: 3rem;
    color: #010008;
}

.team-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    color: #555;
}

.filter-btn.active,
.filter-btn:hover {
    background: #010008;
    color: #fff;
    border-color: #010008;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.team-card:hover .card-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.card-hover-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(69, 63, 255, 0.85) 0%, rgba(1, 0, 8, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: 0.4s;
}

.team-card:hover .card-hover-content {
    opacity: 1;
}

.card-quote {
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    font-style: italic;
}

.card-info {
    padding: 20px;
    text-align: center;
}

.card-info h4 {
    font-size: 1.4rem;
    color: #010008;
    margin-bottom: 5px;
}

.card-info p {
    color: #666;
    font-size: 0.95rem;
}

/* --- 4. Culture Stream (Parallax) --- */
.cultureStreamSection {
    padding: 120px 0;
    background: #010008;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.stream-Header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.stream-Header h2 {
    font-size: 3rem;
    color: #fff;
}

.stream-Header p {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 150px;
}

.stream-Grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    height: 800px;
    /* Constrained height for the window */
    /* overflow: hidden; */
    /* Optional: hide overflow if you want a clean cut */
}

.stream-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 33%;
}

.stream-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stream-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: 0.5s ease;
}

.stream-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.text-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.text-item h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.text-item h3 i {
    color: #00F0FF;
    margin-right: 10px;
    vertical-align: middle;
}

.text-item p {
    color: #aaa;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 6. Join The Residency (Careers CTA) --- */
.residencySection {
    width: 100%;
    padding: 140px 0;
    background-color: #f8faff;
    color: #010008;
    background-image: radial-gradient(rgba(69, 63, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.residencySection::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(69, 63, 255, 0.08) 0%, rgba(248, 250, 255, 0) 60%);
    pointer-events: none;
}

.res-Container {
    width: 90%;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.res-Tag {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #453fff;
    margin-bottom: 20px;
    border: 1px solid rgba(69, 63, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(69, 63, 255, 0.05);
    background-color: #fff;
}

.res-Content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #010008;
    font-weight: 800;
}

.res-Content p {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.res-Btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: #010008;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.res-Btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: #453fff;
    gap: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .teamHeroContainer h1 {
        font-size: 3.5rem;
    }

    .arch-Container {
        flex-direction: column;
        height: auto;
    }

    .arch-Card {
        height: 450px;
        flex: none;
        width: 100%;
    }

    .arch-Card:hover {
        flex: none;
    }

    .arch-Stats {
        opacity: 1;
        transform: translateY(0);
        height: auto;
        margin-top: 20px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stream-Grid {
        flex-direction: column;
        height: auto;
    }

    .stream-col {
        width: 100%;
        gap: 20px;
    }

    /* Disable parallax layout on mobile for simplicity */
    .col-fast,
    .col-slow {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .teamHeroContainer h1 {
        font-size: 2.8rem;
    }

    .teamHero {
        min-height: 85vh;
        height: auto;
        padding: 180px 0 100px 0;
    }

    .leadershipSection,
    .coreTeamSection,
    .cultureStreamSection,
    .residencySection {
        padding: 60px 0;
    }

    .team-filters {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 8px 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .kinetic-text {
        font-size: 4rem;
    }

    .arch-Card {
        height: 600px;
    }
    .stream-Header p{
        margin-bottom: 0px;
    }
    .residencySection {
        padding: 80px 0;
    }
    .res-Content h2 {
        font-size: 2.5rem;
    }
    .res-Content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .teamHeroContainer h1 {
        font-size: 2.5rem;
    }

    .leader-content h3 {
        font-size: 2rem;
    }

    .stream-Header h2,
    .team-Header h2,
    .arch-Header h2 {
        font-size: 2rem;
    }

    .res-Content h2 {
        font-size: 2rem;
    }
    .res-Btn {
        width: 100%;
        justify-content: center;
    }

    .leader-img {
        height: 300px;
    }
}