*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f5f5;
    overflow-x:hidden;
}

/* SECTION */
.section1 {
    /* text-align: center;
    padding: 60px 20px; */
    /* padding: 10px 20px; */
    text-align: center;
    margin-top: 150px;
    /* padding: 40px 20px 20px; */
}

/* TOP BADGE */
.top-badge1 {
    display: inline-block;
    background: #e9d5ff;
    color: #6b21a8;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 15px;
}

/* HEADING */
.section1 h1 {
    font-size: 42px;
    color: #1e3a8a;
}

.section1 p {
    color: #6b7280;
    /* margin: 10px 0 40px; */
}


/* Main Section */

.creative-team{
    width:100%;
    min-height:100vh;

    background-image:url("image/background.jpg");
    background-size:100% auto;
    background-repeat:no-repeat;
    background-position:top center;

    padding-top:60px;
    padding-bottom:80px;

    animation:bgMove 15s linear infinite alternate;
}

@keyframes bgMove{
    from{
        background-position:center top;
    }
    to{
        background-position:center bottom;
    }
}

/* Team Grid */

.team-members{
    width:1200px;
    max-width:95%;
    margin:40px auto 0;

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px 20px;

    justify-items:center;
    align-items:start;
}

/* Cards */

.member{
    width:250px;
    min-height:560px;

    border-radius:100px;

    position:relative;
    text-align:center;

    padding:125px 25px 40px;

    color:#fff;

    opacity:0;
    transform:translateY(60px);

    animation:fadeUp 0.8s ease forwards;
    transition:all 0.4s ease;
}

.member:hover{
    transform:translateY(-15px) scale(1.04);
    box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

.member:nth-child(1){animation-delay:0.2s;}
.member:nth-child(2){animation-delay:0.4s;}
.member:nth-child(3){animation-delay:0.6s;}
.member:nth-child(4){animation-delay:0.8s;}
.member:nth-child(5){animation-delay:1s;}
.member:nth-child(6){animation-delay:1.2s;}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(60px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.teal{
    background:#11a9b5;
}

.yellow{
    background:#eb5a41;
}

/* White Circle */

.member::before{
    content:'';
    position:absolute;

    width:150px;
    height:150px;

    background:#fff;
    border-radius:50%;

    top:-45px;
    left:50%;

    transform:translateX(-50%);
    z-index:1;
}

/* Profile Image */

.member img{
    width:140px;
    height:140px;

    border-radius:50%;
    object-fit:cover;

    position:absolute;
    top:-40px;
    left:50%;

    transform:translateX(-50%);

    border:4px solid #fff;
    z-index:2;

    animation:float 3s ease-in-out infinite;
}

@keyframes float{
    0%{
        transform:translateX(-50%) translateY(0);
    }
    50%{
        transform:translateX(-50%) translateY(-10px);
    }
    100%{
        transform:translateX(-50%) translateY(0);
    }
}

/* Text */

.member h3{
    font-size:18px;
    font-weight:700;
    margin-bottom:10px;
    line-height:1.3;
}

.member span{
    display:block;
    font-size:15px;
    margin-bottom:20px;
}

.member p{
    font-size:14px;
    line-height:1.9;
}

/* Center Last 2 Cards */
/* 
.member:nth-child(5){
    grid-column:2;
    margin-top:20px;
}

.member:nth-child(6){
    grid-column:3;
    margin-top:20px;
} */

.member:nth-child(5){
    grid-column:1;
    margin-top:20px;
}

.member:nth-child(6){
    grid-column:2;
    margin-top:20px;
}

.member:nth-child(7){
    grid-column:3;
    margin-top:20px;
}

/* Heading Animation */

.section h1{
    animation:zoomIn 1s ease;
}

.section p{
    animation:fadeText 1.5s ease;
}

@keyframes zoomIn{
    from{
        opacity:0;
        transform:scale(0.7);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

@keyframes fadeText{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Badge Animation */

.top-badge{
    animation:pulse 2s infinite;
}

@keyframes pulse{
    0%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.08);
    }
    100%{
        transform:scale(1);
    }
}

/* Text Fade */

.member h3,
.member span,
.member p{
    animation:textFade 1.5s ease;
}

@keyframes textFade{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

/* Tablet */

@media(max-width:1100px){

    .team-members{
        grid-template-columns:repeat(2,1fr);
        gap:80px 40px;
    }

    .member:nth-child(5),
    .member:nth-child(6),
    .member:nth-child(7){
        grid-column:auto;
        margin-top:0;
    }

    .member{
        min-height:520px;
        width:100%;
        max-width:300px;
    }
}

/* Mobile */

@media(max-width:768px){

    .section1{
        margin-top:100px;
        padding:0 16px;
    }

    .section1 h1{
        font-size:26px;
    }

    .section1 p{
        font-size:13px;
        line-height:1.7;
    }

    .creative-team{
        background-size:cover;
        padding-top:100px;
        padding-bottom:60px;
    }

    .team-members{
        grid-template-columns:1fr;
        gap:100px;
        margin-top:60px;
    }

    .member{
        width:290px;
        max-width:90vw;
        min-height:auto;
        padding:110px 22px 36px;
        border-radius:80px;
    }

    .member:nth-child(5),
    .member:nth-child(6),
    .member:nth-child(7){
        grid-column:auto;
        margin-top:0;
    }

    .member img{
        width:130px;
        height:130px;
        top:-35px;
    }

    .member::before{
        width:145px;
        height:145px;
        top:-40px;
    }

    .member h3{
        font-size:17px;
    }

    .member span{
        font-size:14px;
    }

    .member p{
        font-size:13px;
        line-height:1.8;
    }
}

/* Small Mobile */

@media(max-width:480px){

    .section1 h1{
        font-size:22px;
    }

    .member{
        width:270px;
        max-width:88vw;
        padding:105px 18px 32px;
    }

    .member img{
        width:120px;
        height:120px;
    }

    .member::before{
        width:135px;
        height:135px;
    }
}

/* Extra Small Mobile */

@media(max-width:360px){

    .member{
        width:250px;
        max-width:86vw;
    }
}