:root {
    --team-primary: #ff5722;
    --team-primary-dark: #e64a19;
    --team-primary-light: #fff3ee;

    --team-blue: #193a70;
    --team-blue-dark: #122a52;
    --team-blue-light: #263f70;

    --team-text: #374151;
    --team-muted: #737983;

    --team-light: #f7f8fa;
    --team-border: #e5e7eb;

    --team-shadow-sm:
        0 5px 20px rgba(31, 42, 68, 0.07);

    --team-shadow:
        0 12px 35px rgba(31, 42, 68, 0.10);

    --team-shadow-lg:
        0 22px 55px rgba(31, 42, 68, 0.15);
}


/* =====================================================
           PAGE BASE
        ===================================================== */

.team-page {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}


.team-page *,
.team-page *::before,
.team-page *::after {
    box-sizing: border-box;
}


/* =====================================================
           ANIMATED TEAM PAGE HEADER
        ===================================================== */

.team-page-header {
    position: relative;

    min-height: 330px;

    background-image: url("../img/team.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    display: flex;

    align-items: center;

    overflow: hidden;

    isolation: isolate;

    animation:
        teamHeaderZoom 12s ease-in-out infinite alternate;
}


/*
        Main floating circular bubble
        */

.team-page-header::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    right: -190px;
    top: -235px;

    border: 2px solid rgba(255, 255, 255, 0.28);

    border-radius: 50%;

    z-index: 1;

    pointer-events: none;

    animation:
        teamHeaderBubbleOne 9s ease-in-out infinite;
}


/*
        Second floating bubble
        */

.team-page-header::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    left: -120px;
    bottom: -165px;

    border: 2px solid rgba(255, 87, 34, 0.50);

    border-radius: 50%;

    z-index: 1;

    pointer-events: none;

    animation:
        teamHeaderBubbleTwo 11s ease-in-out infinite;
}


/*
        Extra bubbles
        */

.team-header-bubble {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    z-index: 1;

    animation:
        teamFloatingBubble 8s ease-in-out infinite;
}


.team-header-bubble-1 {
    width: 95px;
    height: 95px;

    right: 22%;
    bottom: 20%;

    border: 2px solid rgba(255, 255, 255, 0.22);

    animation-delay: -2s;
}


.team-header-bubble-2 {
    width: 45px;
    height: 45px;

    right: 34%;
    top: 20%;

    background: rgba(255, 87, 34, 0.14);

    border: 1px solid rgba(255, 87, 34, 0.45);

    animation-delay: -5s;
}


.team-header-bubble-3 {
    width: 65px;
    height: 65px;

    left: 25%;
    top: 18%;

    border: 1px solid rgba(255, 255, 255, 0.20);

    animation-delay: -1s;
}


/*
        Natural image — NO blue color overlay
        */

.team-page-header .container {
    position: relative;

    z-index: 5;
}


.team-header-content {
    position: relative;

    z-index: 5;
}


.team-page-header h1 {
    margin-bottom: 14px;

    font-family: "Rubik", sans-serif;

    font-weight: 700;

    letter-spacing: -1px;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.40);
}


.team-page-header .breadcrumb {
    margin-bottom: 0;

    padding: 0;

    background: transparent;
}


.team-page-header .breadcrumb-item,
.team-page-header .breadcrumb-item.active {
    color: #ffffff;

    font-size: 15px;

    font-weight: 500;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.35);
}


.team-page-header .breadcrumb-item a {
    color: #ffffff;

    text-decoration: none;

    transition: all 0.3s ease;
}


.team-page-header .breadcrumb-item a:hover {
    color: #ff5722;
}


.team-page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.85);
}


/* =====================================================
           HEADER ANIMATIONS
        ===================================================== */

@keyframes teamHeaderZoom {

    0% {
        background-size: 100%;
    }

    100% {
        background-size: 108%;
    }

}


@keyframes teamHeaderBubbleOne {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform:
            translate3d(-28px, 22px, 0) scale(1.08);
    }

}


@keyframes teamHeaderBubbleTwo {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform:
            translate3d(24px, -22px, 0) scale(1.10);
    }

}


@keyframes teamFloatingBubble {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform:
            translate3d(0, -22px, 0) scale(1.08);
    }

}


/* =====================================================
           INTRO SECTION
        ===================================================== */

.team-intro-section {
    position: relative;

    padding: 90px 0 75px;

    background: #ffffff;

    overflow: hidden;
}


.team-intro-section::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -160px;
    top: 30px;

    border-radius: 50%;

    border: 1px solid rgba(255, 87, 34, 0.10);

    pointer-events: none;
}


.team-intro-section::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    left: -100px;
    bottom: -70px;

    border-radius: 50%;

    background: rgba(25, 58, 112, 0.025);

    pointer-events: none;
}


.team-section-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 8px 16px;

    margin-bottom: 15px;

    border-radius: 30px;

    background: var(--team-primary-light);

    color: var(--team-primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


.team-section-label::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--team-primary);

    animation: teamLabelPulse 1.8s ease-in-out infinite;
}


@keyframes teamLabelPulse {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 0 0 0 rgba(255, 87, 34, 0.35);
    }

    50% {
        transform: scale(1.18);

        box-shadow:
            0 0 0 6px rgba(255, 87, 34, 0);
    }

}


.team-intro-title {
    margin-bottom: 18px;

    font-family: "Rubik", sans-serif;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.12;

    font-weight: 700;

    color: var(--team-blue);
}


.team-intro-title span {
    color: var(--team-primary);
}


.team-intro-text {
    max-width: 800px;

    margin: 0 auto;

    color: var(--team-muted);

    font-size: 16px;

    line-height: 1.9;
}


/* =====================================================
           TEAM CARDS
        ===================================================== */

.team-members-section {
    position: relative;

    padding: 20px 0 95px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f7f9fc 100%);

    overflow: hidden;
}


.team-members-section::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -290px;
    top: 100px;

    border-radius: 50%;

    border: 1px solid rgba(25, 58, 112, 0.06);

    pointer-events: none;
}


.team-card {
    position: relative;

    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--team-border);

    border-radius: 16px;

    box-shadow: var(--team-shadow-sm);

    transition:
        transform 0.45s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}


.team-card:hover {
    transform:
        translateY(-12px);

    border-color:
        rgba(255, 87, 34, 0.30);

    box-shadow:
        var(--team-shadow-lg);
}


/*
        Orange top line
        */

.team-card::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 0;

    height: 4px;

    background:
        linear-gradient(90deg,
            var(--team-primary),
            #ff784c);

    transform:
        scaleX(0);

    transform-origin: left;

    transition:
        transform 0.45s ease;

    z-index: 10;
}


.team-card:hover::before {
    transform:
        scaleX(1);
}


/*
        Decorative circle
        */

.team-card::after {
    content: "";

    position: absolute;

    width: 125px;
    height: 125px;

    right: -65px;
    bottom: -65px;

    border-radius: 50%;

    border: 1px solid rgba(25, 58, 112, 0.07);

    transition:
        transform 0.5s ease,
        border-color 0.5s ease;
}


.team-card:hover::after {
    transform:
        scale(1.35);

    border-color:
        rgba(255, 87, 34, 0.14);
}


/* =====================================================
           MEMBER IMAGE
        ===================================================== */

.team-image-wrapper {
    position: relative;

    margin: 18px 18px 0;

    height: 360px;

    overflow: hidden;

    border-radius: 12px;

    background: #edf1f6;
}


.team-image-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    display: block;

    transition:
        transform 0.7s cubic-bezier(.2, .8, .2, 1),
        filter 0.5s ease;
}


.team-card:hover .team-image-wrapper img {
    transform:
        scale(1.07);

    filter:
        saturate(1.06);
}


/*
        Image shine effect
        */

.team-image-wrapper::after {
    content: "";

    position: absolute;

    top: 0;
    left: -130%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.28),
            transparent);

    transform:
        skewX(-18deg);

    transition:
        left 0.75s ease;

    pointer-events: none;
}


.team-card:hover .team-image-wrapper::after {
    left: 150%;
}


/*
        Partner badge
        */

.team-member-badge {
    position: absolute;

    left: 18px;
    bottom: 18px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 13px;

    border-radius: 30px;

    background: var(--team-primary);

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.8px;

    text-transform: uppercase;

    box-shadow:
        0 8px 18px rgba(255, 87, 34, 0.28);

    z-index: 3;
}


.team-member-badge i {
    font-size: 10px;
}


/* =====================================================
           MEMBER CONTENT
        ===================================================== */

.team-card-body {
    position: relative;

    padding: 25px 18px 28px;

    text-align: center;

    z-index: 3;
}


.team-member-name {
    margin: 0 0 7px;

    color: var(--team-blue);

    font-family: "Rubik", sans-serif;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 700;

    min-height: 49px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.team-member-role {
    display: block;

    height: 20px;

    margin-bottom: 12px;

    color: var(--team-primary);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.team-phone {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    min-width: 190px;

    white-space: nowrap;

    padding: 10px 16px;

    border-radius: 7px;

    background: #f6f8fb;

    border: 1px solid #e8ebef;

    color: var(--team-text);

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}


.team-phone i {
    color: var(--team-primary);

    transition:
        transform 0.3s ease;
}


.team-phone:hover {
    color: #ffffff;

    background: var(--team-blue);

    border-color: var(--team-blue);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 18px rgba(25, 58, 112, 0.18);
}


.team-phone:hover i {
    color: var(--team-primary);

    transform:
        rotate(12deg) scale(1.1);
}


/* =====================================================
           BOTTOM INTRO
        ===================================================== */

.team-bottom-section {
    position: relative;

    padding: 90px 0;

    background:
        linear-gradient(135deg,
            var(--team-blue-dark),
            var(--team-blue));

    overflow: hidden;

    isolation: isolate;
}


.team-bottom-section::before {
    content: "";

    position: absolute;

    width: 460px;
    height: 460px;

    right: -200px;
    top: -260px;

    border-radius: 50%;

    border: 1px solid rgba(255, 255, 255, 0.10);

    animation:
        bottomCircleFloat 9s ease-in-out infinite;

    pointer-events: none;
}


.team-bottom-section::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    left: -130px;
    bottom: -140px;

    border-radius: 50%;

    border: 2px solid rgba(255, 87, 34, 0.18);

    animation:
        bottomCircleFloatReverse 11s ease-in-out infinite;

    pointer-events: none;
}


@keyframes bottomCircleFloat {

    0%,
    100% {
        transform:
            translate(0, 0) scale(1);
    }

    50% {
        transform:
            translate(-20px, 20px) scale(1.07);
    }

}


@keyframes bottomCircleFloatReverse {

    0%,
    100% {
        transform:
            translate(0, 0) scale(1);
    }

    50% {
        transform:
            translate(20px, -20px) scale(1.08);
    }

}


.team-bottom-content {
    position: relative;

    z-index: 3;
}


.team-bottom-label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    color: #ffb39b;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


.team-bottom-label::before {
    content: "";

    width: 32px;
    height: 2px;

    background: var(--team-primary);
}


.team-bottom-title {
    margin-bottom: 18px;

    color: #ffffff;

    font-family: "Rubik", sans-serif;

    font-size: clamp(30px, 4vw, 44px);

    font-weight: 700;

    line-height: 1.15;
}


.team-bottom-text {
    max-width: 780px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.78);

    font-size: 16px;

    line-height: 1.9;
}


.team-bottom-line {
    width: 65px;
    height: 3px;

    margin: 25px auto 0;

    background: var(--team-primary);

    border-radius: 5px;
}


/* =====================================================
           SCROLL REVEAL
        ===================================================== */

.team-reveal {
    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.2, .8, .2, 1);
}


.team-reveal.team-visible {
    opacity: 1;

    transform:
        translateY(0);
}


.team-delay-1 {
    transition-delay: 0.10s;
}


.team-delay-2 {
    transition-delay: 0.20s;
}


.team-delay-3 {
    transition-delay: 0.30s;
}


.team-delay-4 {
    transition-delay: 0.40s;
}


/* =====================================================
           BACK TO TOP
        ===================================================== */

.team-page .back-to-top {
    background: var(--team-primary);

    border: none;

    transition:
        all 0.3s ease;

    box-shadow:
        0 8px 22px rgba(255, 87, 34, 0.25);
}


.team-page .back-to-top:hover {
    background: var(--team-primary-dark);

    transform:
        translateY(-4px);

    box-shadow:
        0 12px 28px rgba(255, 87, 34, 0.35);
}


/* =====================================================
           RESPONSIVE
        ===================================================== */

@media (max-width: 991.98px) {

    .team-page-header {
        min-height: 300px;

        animation-duration: 14s;
    }


    .team-image-wrapper {
        height: 330px;
    }


    .team-intro-section {
        padding: 75px 0 60px;
    }


    .team-members-section {
        padding-bottom: 75px;
    }

}


@media (max-width: 767.98px) {

    .team-page-header {
        min-height: 300px;

        background-position: center;
    }


    .team-page-header h1 {
        font-size: 42px;
    }


    .team-intro-section {
        padding: 65px 0 45px;
    }


    .team-intro-title {
        font-size: 34px;
    }


    .team-members-section {
        padding-top: 10px;
    }


    .team-image-wrapper {
        height: 360px;
    }


    .team-card-body {
        padding:
            23px 20px 25px;
    }


    .team-bottom-section {
        padding: 70px 0;
    }


    .team-header-bubble-1 {
        right: 5%;
    }


    .team-header-bubble-2 {
        right: 20%;
    }

}


@media (max-width: 575.98px) {

    .team-page-header {
        min-height: 280px;
    }


    .team-page-header h1 {
        font-size: 36px;

        letter-spacing: -0.5px;
    }


    .team-page-header .breadcrumb-item {
        font-size: 13px;
    }


    .team-intro-section {
        padding:
            55px 0 35px;
    }


    .team-intro-title {
        font-size: 30px;
    }


    .team-intro-text {
        font-size: 14px;

        line-height: 1.8;
    }


    .team-image-wrapper {
        height: 330px;

        margin:
            14px 14px 0;
    }


    .team-member-badge {
        left: 14px;
        bottom: 14px;
    }


    .team-member-name {
        font-size: 18px;
    }


    .team-phone {
        min-width: 190px;
        white-space: nowrap;
        font-size: 13px;
    }



    .team-bottom-title {
        font-size: 30px;
    }


    .team-bottom-text {
        font-size: 14px;
    }

}


/* =====================================================
           REDUCED MOTION
        ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .team-page-header,
    .team-page-header::before,
    .team-page-header::after,
    .team-header-bubble,
    .team-bottom-section::before,
    .team-bottom-section::after,
    .team-section-label::before {
        animation: none !important;
    }


    .team-card,
    .team-card *,
    .team-image-wrapper img,
    .team-phone {
        transition: none !important;
    }


    .team-reveal {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

}