@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Barlow Semi Condensed", sans-serif;
}
body {
    user-select: none;
}
nav{   
    width: 100%;
    top: 0;
    padding: 2rem 0;
    margin-bottom: -2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: bolder;
    color: #fff;
    z-index: 10;
}
nav li img {
    width: 4rem;
}
a {
    text-decoration: none;
    color: #232123;
}
ul{
    list-style: none;
}
li{
    display: inline;
    margin-right: 20px;
    margin-left: 20px;
    cursor: pointer;
    z-index: 999;
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}
.container .back {
    position: fixed;
    top: 0rem;
    width: 100%;
    height: 100%;
    z-index: -10;
}
.flex-2 {    
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px auto 0;
    padding: 20px 5%;
}


/* ****CARDS****** */

.card{
    position: relative;
    width: 60%;
    height: fit-content;
    margin: 0 30px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, .5);
    border-radius: 15px;
    background: rgba(255, 255, 255, .1);    
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .5);
    border-left: 1px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(5px);    
}

.card .content {    
    text-align: center; 
    width: 100%; 
    display: flex;  
    flex-direction: column;
    align-items: center;     
}


.card .content h1 { 
    position: relative;
    font-size: 4rem;
    color: rgba(255, 255, 255, .5);
    pointer-events: none;
    color: #f5a425;   
    letter-spacing: 15px;
    margin-top: 3rem;
    font-weight: 100;
    align-self: center;    
}
.card .content p {
    font-size: 1rem;
    padding: 1.5rem 3rem;
    color: #e4e4e4;
    margin-top: 2rem;
    line-height: 1.5;
    font-weight: 300;
    text-align: justify;
}
.content h1::after {
    content: '';
    position: absolute;
    width: 40%;
    left: 30%;
    bottom: -1rem;
    height: 2px;
    background-color: #fff;
}



.image {
    width: 40%;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, .5);
    position: relative;
}
.image img {
    width: 100%;
    height: auto;
    /* position: absolute; */
    top: 0;
    left: 0;
}


.sign {
    display: flex;
    justify-content: center;
    width: 60%;
    margin-top: 3rem;
    gap: 5rem;
}
.sign-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;    
}
.sign-name p {
    margin-top: 0;
}
.sign-name img {
    width: 10rem;
}

/* ********Members Timeline***** */

.meet {
    display: flex;
    justify-content: center;
    margin-top: 8rem;
    font-size: 2rem;
    position: relative;
}
.meet h1{
    color: #fff;
}
.meet::after {
    content: '';
    position: absolute;
    width: 20%;
    left: 40%;
    bottom: -10px;
    height: 1px;
    background-color: #f5a425;
}
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}
.contain {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    animation: down 1s linear forwards;
    opacity: 0;
}
@keyframes down {
    0% {
        opacity: 1;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.contain:nth-child(1) {
    animation-delay: 0s;
}
.contain:nth-child(2) {
    animation-delay: 1s;
}
.contain:nth-child(3) {
    animation-delay: 2s;
}
.contain:nth-child(4) {
    animation-delay: 3s;
}
.contain:nth-child(5) {
    animation-delay: 4s;
}
.contain:nth-child(6) {
    animation-delay: 5s;
}


.text-box {
    padding: 20px 30px;
    background: #cdc5c5;
    position: relative;
    border-radius: 6px;
    font-size: 15px;
}
.text-box h2 {
    font-weight: 600;
}
.text-box small {
    display: inline-block;
    margin-bottom: 15px;
}

.left-container {
    left: 0;
}
.right-container {
    left: 50%;
}
.contain img {
    position: absolute;
    width: 50px;
    border-radius: 50%;
    right: -25px;
    top: 32px;
    z-index: 10;
}
.right-container img {
    left: -25px;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: #cdc5c5;;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    animation: line 6s linear forwards infinite;
}
@keyframes line {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}

.left-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #cdc5c5;;
    right: -15px;
}
.right-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #cdc5c5;;
    left: -15px;
}





@media screen and (max-width: 1125px) {
    .flex-2 {
        width: 100%;
        flex-direction: column-reverse;
        padding: 45px 0;
    }
    .content {
        width: 80%;        
        margin: auto;
    }
    .content h1 {
        font-size: 40px;
    }    

    .image {
        width: 60%;
        margin: 40px auto;
        display: block;
    }
}

@media screen and (max-width: 887px) {
    nav li img {
        width: 3rem;
    }
    .flex-2 {
        width: 100%;
        flex-direction: column-reverse;
        padding: 5px 10px;
        margin: 0;
    }
    .card{        
        width: 80%;        
        margin: 0;        
    }
   
    .content {
        width: 100%;        
        margin: auto 0;
    }
    .content h1 {
        font-size: 35px;
    }    
    
    .content p {
        font-size: 15px;
    }

    .image {
        width: 60%;
        margin: 40px auto;
        display: block;
    }
    .meet {        
        margin-top: 7rem;
        font-size: 1.5rem;
        position: relative;
    }
    .meet::after {        
        width: 40%;
        left: 30%;        
    }
    
    .sign {               
        gap: 3rem;
        width: 100%;
    }       
    .sign-name img {
        width: 6rem;
    }
    
}

@media screen and (max-width: 600px) {

    .card{        
        width: 90%;               
    }
    .card .content h1 {
        font-size: 3.2rem;
    }



    .timeline {
        margin: 50px auto;
    }
    .timeline::after {
        left: 37px;
    }
    .contain {
        width: 100%;
        padding-left: 80px;
        padding-right: 35px;
    }
    .text-box {
        font-size: 13px;
    }
    .text-box small {
        margin-bottom: 10px;
    }
    .right-container {
        left: 0;
    }
    .left-container img, .right-container img {
        left: 11px;
    }
    .left-arrow, .right-arrow {
        border-right: 15px solid #cdc5c5;
        border-left: 0;
        left: -15px;
    }
}