/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #101828;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Outfit", sans-serif;
}

a {
    text-decoration: none;
}


/* =========================================================
   LOADER
========================================================= */

#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
    animation: loaderAutoHide 0.5s ease 0.9s forwards;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-center {
    text-align: center;
    position: relative;
    z-index: 3;
}

.loader-logo {
    font-family: "Outfit";
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0D47A1;
}

.loader-logo span {
    color: #4CAF50;
    margin-left: 7px;
}

.loader-line {
    width: 150px;
    height: 3px;
    margin: 18px auto;
    background: linear-gradient(
        90deg,
        #16a765,
        #2563eb,
        #16a765
    );

    animation: loaderLine 1.5s infinite;
}

.loader-center p {
    font-size: 12px;
    color: #667085;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(22, 167, 101, 0.15);
}

.orbit-one {
    width: 300px;
    height: 300px;
    animation: orbit 8s linear infinite;
}

.orbit-two {
    width: 450px;
    height: 450px;
    border-color: rgba(37, 99, 235, 0.1);
    animation: orbit 12s linear infinite reverse;
}

@keyframes loaderLine {

    0% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

@keyframes orbit {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/* =========================================================
   HEADER
========================================================= */

.header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.navbar {
    min-height: 82px;
}

.brand-text {
    font-family: "Outfit";
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-marfex {
    color: #0D47A1;
}

.brand-solution {
    color: #4CAF50;
    margin-left: 6px;
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    color: #475467 !important;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px !important;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #16a765 !important;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #16a765;
    border-radius: 10px;
}

.navbar-toggler {
    border: 0 !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 28px;
    height: 20px;
    position: relative;
    display: inline-block;
}

.navbar-toggler-icon span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #101828;
    border-radius: 3px;
}

.navbar-toggler-icon span:nth-child(1) { top: 0; }
.navbar-toggler-icon span:nth-child(2) { top: 8.5px; }
.navbar-toggler-icon span:nth-child(3) { top: 17px; }



/* =========================================================
   HERO
========================================================= */

.team-hero {
    min-height: 500px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding-top: 50px;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(22, 167, 101, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(37, 99, 235, 0.10),
            transparent 30%
        ),
        #ffffff;
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 9px 16px;

    border: 1px solid rgba(22, 167, 101, 0.18);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.75);

    box-shadow:
        0 10px 35px rgba(16, 24, 40, 0.06);

    color: #16a765;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-dot {
    width: 7px;
    height: 7px;

    background: #16a765;

    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(22, 167, 101, 0.10);

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.hero-content h1 {
    margin-top: 10px;

    font-size: clamp(58px, 8vw, 105px);

    line-height: 0.92;

    font-weight: 800;

    letter-spacing: -5px;

    color: #101828;
}

.hero-content h1 span {
    color: #344054;
}

.hero-content h1 strong {
    background:
        linear-gradient(
            100deg,
            #16a765,
            #2563eb
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-content > p {
    max-width: 650px;

    margin-top: 35px;

    font-size: 18px;

    line-height: 1.8;

    color: #667085;
}

.hero-scroll {
    margin-top: 55px;

    display: flex;
    align-items: center;
    gap: 15px;

    color: #475467;

    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.hero-scroll i {
    color: #16a765;
}

.scroll-line {
    width: 45px;
    height: 1px;

    background: #16a765;
}



/* =========================================================
   3D FLOATING SHAPES
========================================================= */

.floating-shape {
    position: absolute;

    border-radius: 30px;

    filter: blur(0);

    opacity: 0.5;

    animation:
        floatingShape 7s ease-in-out infinite;
}

.shape-one {
    width: 180px;
    height: 180px;

    right: 8%;
    top: 22%;

    background:
        linear-gradient(
            135deg,
            rgba(22, 167, 101, 0.12),
            rgba(37, 99, 235, 0.05)
        );

    transform:
        rotate(25deg)
        perspective(500px)
        rotateX(35deg);
}

.shape-two {
    width: 90px;
    height: 90px;

    right: 27%;
    bottom: 17%;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.15),
            rgba(22, 167, 101, 0.08)
        );

    animation-delay: -2s;
}

.shape-three {
    width: 45px;
    height: 45px;

    right: 13%;
    top: 60%;

    border-radius: 12px;

    background: rgba(22, 167, 101, 0.18);

    transform: rotate(45deg);

    animation-delay: -4s;
}

@keyframes floatingShape {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(25deg);
    }

    50% {
        transform:
            translateY(-30px)
            rotate(40deg);
    }
}

.hero-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.12;
}

.glow-one {
    right: 0;
    top: 10%;
    background: #16a765;
}

.glow-two {
    right: 30%;
    bottom: 0;
    background: #2563eb;
}



/* =========================================================
   TEAM SECTION
========================================================= */

.team-section {
    padding: 130px 0;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    position: relative;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 75px;
}

.small-label {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #16a765;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.small-label span {
    width: 30px;
    height: 1px;
    background: #16a765;
}

.section-heading h2 {
    margin-top: 22px;

    font-size: clamp(42px, 6vw, 70px);

    line-height: 1;

    letter-spacing: -3px;

    font-weight: 800;
}

.section-heading h2 span {
    color: #667085;
}

.section-heading p {
    margin-top: 25px;

    color: #667085;

    line-height: 1.8;
}



/* =========================================================
   TEAM GRID
========================================================= */

.team-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}



/* =========================================================
   TEAM CARD
========================================================= */

.team-card {
    position: relative;

    min-height: 610px;

    padding: 25px;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.98),
            rgba(247,250,252,0.90)
        );

    border: 1px solid rgba(16, 24, 40, 0.08);

    box-shadow:
        0 25px 70px rgba(16, 24, 40, 0.07);

    overflow: hidden;

    cursor: pointer;

    transform-style: preserve-3d;

    transition:
        transform 0.5s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.5s ease,
        border-color 0.5s ease;
}

.team-card:hover {
    transform:
        translateY(-14px)
        rotateX(2deg)
        rotateY(-2deg);

    box-shadow:
        0 40px 100px rgba(16, 24, 40, 0.14);

    border-color:
        rgba(22, 167, 101, 0.25);
}

.card-number {
    position: absolute;

    top: 22px;
    right: 25px;

    font-family: "Outfit";

    font-size: 14px;

    font-weight: 700;

    color: #98a2b3;

    z-index: 4;
}

.card-glow {
    position: absolute;

    width: 220px;
    height: 220px;

    right: -80px;
    top: -80px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(22, 167, 101, 0.18),
            rgba(37, 99, 235, 0.12)
        );

    filter: blur(20px);

    transition: 0.5s;
}

.team-card:hover .card-glow {
    transform: scale(1.4);
}



/* =========================================================
   MEMBER IMAGE
========================================================= */

.member-image-wrapper {
    position: relative;

    width: 100%;
    height: 390px;

    margin-top: 15px;

    border-radius: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #edfdf5,
            #eef4ff
        );

    transform: translateZ(30px);
}

.image-ring {
    position: absolute;

    inset: 15px;

    border-radius: 20px;

    border: 1px solid
        rgba(255, 255, 255, 0.8);

    z-index: 2;

    pointer-events: none;
}

.member-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.8s cubic-bezier(.2,.8,.2,1),
        filter 0.5s ease;
}

.team-card:hover .member-image {
    transform: scale(1.06);

    filter:
        saturate(1.08)
        contrast(1.03);
}



/* =========================================================
   MEMBER INFO
========================================================= */

.member-info {
    margin-top: 25px;

    transform: translateZ(25px);
}

.member-role {
    color: #16a765;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.member-info h3 {
    margin-top: 8px;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -1px;
}

.member-info p {
    margin-top: 3px;

    color: #667085;

    font-size: 13px;
}



/* =========================================================
   VIEW PROFILE
========================================================= */

.view-member {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 23px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    color: #344054;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.arrow-circle {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #101828;

    color: #ffffff;

    transition: 0.4s;
}

.team-card:hover .arrow-circle {
    background:
        linear-gradient(
            135deg,
            #16a765,
            #2563eb
        );

    transform:
        rotate(45deg)
        scale(1.1);
}



/* =========================================================
   PHILOSOPHY
========================================================= */

.philosophy-section {
    padding: 100px 0 130px;

    background: #ffffff;
}

.philosophy-card {
    position: relative;

    overflow: hidden;

    border-radius: 40px;

    min-height: 420px;

    padding: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        linear-gradient(
            125deg,
            #0b1728,
            #102d3d 55%,
            #0b3151
        );

    box-shadow:
        0 40px 100px rgba(16, 24, 40, 0.18);

    color: #ffffff;
}

.philosophy-content {
    position: relative;
    z-index: 4;

    max-width: 650px;
}

.small-label.light {
    justify-content: flex-start;
    color: #62e6aa;
}

.philosophy-content h2 {
    margin-top: 22px;

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1;

    letter-spacing: -3px;
}

.philosophy-content h2 span {
    color: #62e6aa;
}

.philosophy-content p {
    margin-top: 25px;

    max-width: 580px;

    color: rgba(255,255,255,0.68);

    line-height: 1.8;
}

.philosophy-stats {
    position: relative;
    z-index: 4;

    display: flex;
    flex-direction: column;

    gap: 20px;

    min-width: 220px;
}

.stat {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 17px 20px;

    border-radius: 16px;

    background:
        rgba(255,255,255,0.07);

    border:
        1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(10px);
}

.stat strong {
    font-family: "Outfit";

    font-size: 22px;

    color: #62e6aa;
}

.stat span {
    font-size: 12px;

    color: rgba(255,255,255,0.7);
}

.philosophy-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(3px);

    opacity: 0.3;
}

.orb-one {
    width: 400px;
    height: 400px;

    right: -150px;
    top: -180px;

    background: #16a765;
}

.orb-two {
    width: 300px;
    height: 300px;

    left: 45%;
    bottom: -220px;

    background: #2563eb;
}



/* =========================================================
   PROFILE MODAL
========================================================= */

.profile-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;
}

.profile-modal.active {
    display: flex;

    animation:
        modalFade 0.35s ease;
}

.modal-backdrop-custom {
    position: absolute;

    inset: 0;

    background:
        rgba(4, 12, 24, 0.65);

    backdrop-filter: blur(18px);
}

@keyframes modalFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.profile-window {
    position: relative;

    z-index: 5;

    width: min(950px, 100%);

    max-height: 90vh;

    overflow: hidden;

    display: grid;

    grid-template-columns: 42% 58%;

    background: #ffffff;

    border-radius: 35px;

    box-shadow:
        0 50px 150px rgba(0,0,0,0.3);

    animation:
        profileOpen 0.55s cubic-bezier(.2,.8,.2,1);
}

@keyframes profileOpen {

    from {
        transform:
            translateY(50px)
            scale(0.94);

        opacity: 0;
    }

    to {
        transform:
            translateY(0)
            scale(1);

        opacity: 1;
    }
}

.close-profile {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 10;

    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.9);

    color: #101828;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.08);

    cursor: pointer;

    transition: 0.3s;
}

.close-profile:hover {
    transform: rotate(90deg);

    background: #101828;

    color: #ffffff;
}

.profile-image-section {
    min-height: 600px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #eafff4,
            #edf3ff
        );
}

.profile-image-section img {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.modal-image-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #16a765,
            #2563eb
        );

    filter: blur(100px);

    opacity: 0.2;

    top: -100px;
    left: -100px;
}

.profile-details {
    padding: 65px 55px;

    align-self: center;
}

.modal-role {
    color: #16a765;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.profile-details h2 {
    margin-top: 12px;

    font-size: 55px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -2px;
}

.profile-details h4 {
    margin-top: 10px;

    color: #667085;

    font-size: 16px;

    font-weight: 500;
}

.profile-details > p {
    margin-top: 25px;

    color: #667085;

    line-height: 1.8;

    font-size: 14px;
}

.profile-skills {
    margin-top: 30px;
}

.skill-title {
    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #344054;
}

.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
}

.skill-list span {
    padding: 8px 12px;

    border-radius: 30px;

    background: #f2f4f7;

    color: #475467;

    font-size: 11px;

    font-weight: 600;
}

.profile-social {
    display: flex;

    gap: 10px;

    margin-top: 35px;
}

.profile-social a {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #16a765,
            #2563eb
        );

    transition: 0.3s;
}

.profile-social a:hover {
    transform:
        translateY(-5px)
        rotate(5deg);

    box-shadow:
        0 10px 25px rgba(22,167,101,0.25);
}



/* =========================================================
   FOOTER
========================================================= */

.footer-section {
    padding: 70px 0 25px;

    background: #f8fafc;

    border-top:
        1px solid #eaecf0;
}

.footer-content {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;
}

.footer-logo {
    font-family: "Outfit";

    font-size: 25px;

    font-weight: 800;
}

.footer-logo span {
    color: #16a765;

    margin-left: 5px;
}

.footer-content p {
    margin-top: 10px;

    max-width: 350px;

    color: #667085;

    font-size: 13px;

    line-height: 1.7;
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a {
    color: #667085;

    font-size: 13px;

    transition: 0.3s;
}

.footer-links a:hover {
    color: #16a765;
}

.footer-bottom {
    margin-top: 50px;

    padding-top: 20px;

    border-top:
        1px solid #eaecf0;

    display: flex;

    justify-content: space-between;

    color: #98a2b3;

    font-size: 11px;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .team-hero {
        min-height: 680px;
    }

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

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

    .team-card:last-child {
        grid-column: span 2;

        max-width: 500px;

        width: 100%;

        margin: 0 auto;
    }

    .philosophy-card {
        flex-direction: column;

        align-items: flex-start;

        gap: 50px;
    }

    .philosophy-stats {
        width: 100%;

        flex-direction: row;

        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
    }

    .profile-window {
        grid-template-columns: 40% 60%;
    }

    .profile-image-section {
        min-height: 500px;
    }

    .profile-details {
        padding: 45px 35px;
    }

    .profile-details h2 {
        font-size: 42px;
    }
}


@media (max-width: 767px) {

    .navbar {
        min-height: 70px;
    }

    .team-hero {
        min-height: 650px;

        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 57px;

        letter-spacing: -3px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .shape-one {
        right: -70px;
    }

    .team-section {
        padding: 90px 0;
    }

    .section-heading h2 {
        font-size: 45px;
    }

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

    .team-card {
        min-height: 600px;
    }

    .team-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .philosophy-card {
        padding: 40px 25px;

        border-radius: 30px;
    }

    .philosophy-content h2 {
        font-size: 45px;
    }

    .philosophy-stats {
        flex-direction: column;
    }

    .profile-modal {
        padding: 12px;
    }

    .profile-window {
        display: block;

        max-height: 94vh;

        overflow-y: auto;

        border-radius: 25px;
    }

    .profile-image-section {
        height: 330px;
        min-height: 330px;
    }

    .profile-details {
        padding: 35px 25px 40px;
    }

    .profile-details h2 {
        font-size: 40px;
    }

    .footer-content {
        flex-direction: column;

        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 10px;
    }
}


@media (max-width: 480px) {

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

    .team-card {
        padding: 18px;

        min-height: 560px;
    }

    .member-image-wrapper {
        height: 350px;
    }

    .view-member {
        left: 18px;
        right: 18px;
    }
}

@keyframes loaderAutoHide {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}