/* ================================
   TEAMS PAGE
================================ */

:root {
    --black: #111111;
    --dark-grey: #252525;
    --grey: #666666;
    --light-grey: #f4f4f4;
    --border-grey: #dddddd;
    --white: #ffffff;
}


/* HERO */

.teams-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .9),
            rgba(0, 0, 0, .55),
            rgba(0, 0, 0, .2)
        ),
        url("images/team.avif") center/cover no-repeat;

    color: var(--white);
}

.teams-hero-content {
    position: relative;
    z-index: 2;
    width: min(1100px, 90%);
    margin: auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 15px;
}

.teams-hero .section-tag {
    color: #ccc;
}

.teams-hero h1 {
    max-width: 750px;
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 700;
}

.teams-hero h1 span {
    color: #aaa;
}

.teams-hero p {
    max-width: 650px;
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 17px;
}


/* INTRODUCTION */

.team-intro {
    padding: 100px 0;
    background: var(--white);
}

.team-intro-container {
    width: min(1100px, 90%);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.team-intro-heading h2 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    margin: 0;
    color: var(--black);
}

.team-intro-heading h2 span {
    color: #777;
}

.team-intro-text {
    color: #555;
    line-height: 1.9;
    font-size: 16px;
}


/* TEAM CATEGORY */

.team-category {
    padding: 100px 0;
    background: var(--white);
}

.grey-section {
    background: var(--light-grey);
}

.category-heading {
    width: min(1100px, 90%);
    margin: 0 auto 50px;
}

.category-heading h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 0 0 15px;
    color: var(--black);
}

.category-heading p {
    max-width: 650px;
    color: var(--grey);
    line-height: 1.8;
}


/* TEAM GRID */

.team-grid {
    width: min(1100px, 90%);
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.engineers-grid {
    grid-template-columns: repeat(2, 1fr);
}


/* TEAM CARD */

.team-card {
    background: var(--white);
    border: 1px solid var(--border-grey);

    display: grid;
    grid-template-columns: 220px 1fr;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

        border-radius: 5px;

}

.team-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .08);
}

.grey-section .team-card {
    background: var(--white);
}

.featured-card {
    max-width: 700px;
}


/* MEMBER IMAGE */

.member-image {
    min-height: 300px;
    overflow: hidden;
    background: #ddd;
}

.member-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    /* filter: grayscale(100%); */
    transition: transform .4s ease;
}

.team-card:hover .member-image img {
    transform: scale(1.05);
}


/* MEMBER INFORMATION */

.member-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #777;
    margin-bottom: 10px;
}

.member-info h3 {
    font-size: 25px;
    margin: 0 0 15px;
    color: var(--black);
}

.member-info p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

.member-line {
    width: 40px;
    height: 2px;
    background: var(--black);
    margin: 22px 0;
}

.member-focus {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.member-focus strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-focus span {
    font-size: 13px;
    color: #777;
}


/* PHILOSOPHY */

.team-philosophy {
    padding: 110px 0;
    background: var(--black);
    color: var(--white);
}

.philosophy-container {
    width: min(1100px, 90%);
    margin: auto;

    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 80px;
}

.team-philosophy .section-tag {
    color: #aaa;
}

.philosophy-content h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    margin: 0 0 30px;
}

.philosophy-content h2 span {
    color: #888;
}

.philosophy-content p {
    max-width: 750px;
    color: #bdbdbd;
    line-height: 1.9;
}


/* CTA */

.team-cta {
    padding: 100px 0;
    background: #e9e9e9;
}

.team-cta-content {
    width: min(900px, 90%);
    margin: auto;
    text-align: center;
}

.team-cta-content h2 {
    max-width: 750px;
    margin: 0 auto 20px;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.1;
    color: var(--black);
}

.team-cta-content p {
    max-width: 650px;
    margin: 0 auto 35px;
    color: #666;
    line-height: 1.8;
}

.team-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s ease;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: #444;
}

.btn-outline {
    border: 1px solid var(--black);
    color: var(--black);
    background: transparent;
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}


/* ================================
   FOOTER
================================ */

.white-footer {
    background: #fff;
    color: #222;
    border-top: 1px solid #ddd;
}

.white-footer-container {
    width: min(1150px, 90%);
    margin: auto;
    padding: 70px 0;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand h2 {
    font-size: 25px;
    margin: 0 0 15px;
}

.footer-brand h2 span {
    color: #777;
}

.footer-brand p {
    max-width: 320px;
    color: #777;
    line-height: 1.7;
    font-size: 14px;
}

.white-footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.white-footer-column h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #111;
}

.white-footer-column a,
.white-footer-column p {
    color: #777;
    text-decoration: none;
    font-size: 14px;
    transition: .3s ease;
}

.white-footer-column a:hover {
    color: #111;
    padding-left: 4px;
}

.footer-contact a,
.footer-contact p {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-contact i {
    width: 18px;
    color: #333;
}

.white-footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.white-footer-socials a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ddd;
    color: #333;

    transition: .3s ease;
}

.white-footer-socials a:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.white-footer-bottom {
    border-top: 1px solid #ddd;

    width: min(1150px, 90%);
    margin: auto;
    padding: 22px 0;

    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;

    font-size: 13px;
    color: #777;
}

.white-footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #777;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #111;
}


/* ================================
   REVEAL ANIMATION
================================ */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 900px) {

    .team-intro-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .team-grid,
    .engineers-grid {
        grid-template-columns: 1fr;
    }

    .white-footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


@media (max-width: 650px) {

    .teams-hero {
        min-height: 450px;
    }

    .team-category,
    .team-intro,
    .team-philosophy,
    .team-cta {
        padding: 70px 0;
    }

    .team-card {
        grid-template-columns: 1fr;
    }

    .member-image,
    .member-image img {
        min-height: 320px;
        height: 320px;
    }

    .white-footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .white-footer-bottom {
        flex-direction: column;
    }

    .footer-legal {
        flex-wrap: wrap;
    }
}



/* =========================================
   PAGE PRELOADER
   ========================================= */

.page-preloader {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #050505;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}


/* =========================================
   PRELOADER CONTENT
   ========================================= */

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    animation: preloaderReveal 0.8s ease;
}


/* =========================================
   LOGO
   ========================================= */

.preloader-logo {
    width: 130px;
    max-width: 40vw;
    height: auto;

    object-fit: contain;

    animation: logoPulse 1.5s ease-in-out infinite;
}


/* =========================================
   LOADING LINE
   ========================================= */

.preloader-loader {
    width: 100px;
    height: 2px;

    margin-top: 30px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.15);
}


.preloader-loader span {
    display: block;

    width: 40%;
    height: 100%;

    background: #ffffff;

    animation: loadingLine 1.2s ease-in-out infinite;
}


/* =========================================
   LOADING ANIMATIONS
   ========================================= */

@keyframes logoPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(0.97);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

}


@keyframes loadingLine {

    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(250%);
    }

}


@keyframes preloaderReveal {

    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================
   HIDE PRELOADER
   ========================================= */

.page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .preloader-logo,
    .preloader-loader span,
    .preloader-content {
        animation: none;
    }

}
