:root{ --slide-gap: 32px; }

.info-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 50px;
    padding-left: 200px;
    padding-bottom: 50px;
    background-color: white;
    color: black;
}

.info-text {
    flex: 1 1 50%;
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.info-section.visible .info-text h2 {
    opacity: 1;
    transform: translateY(0px);
}

.info-text p, .expertise-content p {
    font-size: 1.2rem;
    margin-top: 30px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.info-section.visible .info-text p, .expertise-section.visible .expertise-content p {
    opacity: 1;
    transform: translateY(0px);
}

.gif-container {
    flex: 1 1 30%;
    margin-right: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.info-section.visible .gif-container {
    opacity: 1;
    transform: scale(1.1);
}

.expertise-section {
    background: linear-gradient(to right, #b396c9, #d5a0e4, #9fcbdd, #89bde3);
    color: black;
    padding: 50px 200px;
}

.expertise-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expertise-content h2 {
    font-size: 2rem;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.expertise-section.visible .expertise-content h2{
  opacity: 1;
  transform: none;
}

.expertise-content p {
    font-weight: 500;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin: 40px auto;
    max-width: 100%;
    opacity: 0; 
    transform: scale(0.95) translateY(15px); 
    transition:opacity 1.2s ease, transform 1.2s ease; 
}

.expertise-section.visible .expertise-grid{
  opacity: 1;
  transform: none;
}

.expertise-card {
    background: #f3e6f7;
    border-radius: 20px;
    padding: 20px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.expertise-card .icon-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.expertise-card .icon {
    width: 50px;
    height: 50px;
    background-color: #409bbb;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: black;
    word-break: break-word;
    flex: 1;
}

.expertise-card p {
    font-size: 1.2rem;
    color: black;
}

.team-section{
    background: #f5f5f5;     
    padding: 50px 80px;
    color: black;
}

.team-wrapper{
    max-width: 90%;
    margin: 0 auto;
    
}

.team-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: black; 
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.team-section.visible .team-title{
    opacity: 1;
    transform: none;
}

.team-carousel {
    position: relative;
    margin-top: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.team-section.visible .team-carousel{
    opacity: 1;
    transform: none;
}

.team-viewport{
    position: relative;
    overflow: hidden;                     
    padding: 16px clamp(24px, 8vw, 140px);
    padding-bottom: 50px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.team-track {
    position: relative;
    height: var(--stage-h, 420px);
}

.member-card{
    background: white;
    border-radius: 12px;
    padding: 16px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    opacity: 0;
    pointer-events: none;
    transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s ease, box-shadow .3s ease;
    width: clamp(360px, 40vw, 700px);
}

.member-card.is-active{
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    box-shadow:
        0 20px 40px rgba(167,124,244,.25),
        0 0 0 2px rgba(167,124,244,.65) inset;
}

.member-card.is-prev{
    transform: translateX(calc(-50% - 100% - var(--slide-gap))) scale(.9);
    opacity: 1; z-index: 2; pointer-events: auto;
}
.member-card.is-next{
    transform: translateX(calc(-50% + 100% + var(--slide-gap))) scale(.9);
    opacity: 1; z-index: 2; pointer-events: auto;
}

.member-top {
    display: flex;
    align-items: center;
}

.member-photo{
    width: 15%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 12px;
    margin-right: 30px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.member-name{
    font-size: 1.2rem;
    font-weight: 700;
    color: black;
    margin: 2px 0 4px;
}

.member-role{
    font-size: 1.1rem;
    color: black;
    margin-bottom: 20px;
}

.member-bio{
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: black;
    min-height: 3lh;
}

.team-controls{
    position: static;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 18px;
    pointer-events: auto;
}

.team-btn{
    pointer-events: auto;
    width: 44px; 
    height: 44px;
    border-radius: 999px;
    border: none;
    display: grid; 
    place-items: center;
    cursor: pointer;
    background: #9ac7d7;           
    color: #102027;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    transition: transform .15s ease, filter .15s ease;
}
.team-btn:hover{ 
    transform: translateY(-1px); 
    filter: brightness(1.05); 
}

@media (max-width: 1780px) {

    .expertise-section {
        padding: 50px 50px;
    }

    .card-header {
        display: flex;
        flex-direction: column;
    }

    .expertise-card h3 {
        text-align: center;
        min-height: 2lh;
    }
}

@media (max-width: 1000px) {

    .info-section {
        padding-left: 100px;
        padding-right: 100px;
    }

    .info-text h2, .expertise-content h2, .team-title{
        font-size: 1.6rem;
    }

    .info-text p, .expertise-content p {
        font-size: 0.8rem;
    }

    .gif-container {
        margin-right: 0px;
    }

    .expertise-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }

    .expertise-card .icon {
        width: 50px;
        height: 50px;
        margin-right: 0px;
        margin-bottom: 10px;
    }

    .expertise-card .icon-image {
        margin-right: 0px;
        margin-bottom: 10px;
    }

    .expertise-card h3, .step strong {
        font-size: 0.75rem;
        max-width: 100%;
    }

    .expertise-card p, .step p {
        font-size: 0.70rem;
        color: white;
    }

    .member-name{
        font-size: 1rem;
    }

    .member-role{
        font-size: 0.9rem;
    }

    .member-bio{
        font-size: 0.8rem;
        min-height: 5lh;
    }
}