* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

:root {
    --mainColor1: #101916;
    --mainColor2: #1c312a;
    --mainColor3: #648374;
    --mainColor4: #e3e5d8;
    --mainColor5: #afc1b6;
    --mainColor6: #fff;
    --mainColor7: #000;
}

.background {
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, var(--mainColor3), var(--mainColor1) 100%);
    width: 100%;
    direction: ltr;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    background-color: transparent;
    color: var(--mainColor6);
    height: 80vh;
    width: 100%;
}

.about-img img {
    position: relative;
    width: 32vw;
    top: 1rem;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    margin-left: 45px;
}

.heading {
    font-size: 5rem;
    margin: 0 1rem;
}

.about-content p {
    font-size: 1.2rem;
    margin: 2rem 0 2rem;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--mainColor2);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--mainColor6);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--mainColor2);
    color: var(--mainColor1);
}

.timeheading {
    text-align: center;
    font-size: 2.4rem;
    margin: 0 1rem;
    color: var(--mainColor6);
    margin-top: 80px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 70px auto;
    direction: ltr !important;
}

.about-container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
}

.text-box {
    padding: 20px 30px;
    background: var(--mainColor6);
    position: relative;
    border-radius: 6px;
    font-size: 18px;
    box-shadow: 0 0 7px 2px var(--mainColor7);
    transition: .4s;
    min-height: 100px;
    display: grid;
    align-items: center;
    text-align: center;
}

.text-box:hover {
    box-shadow: 0 0 10px 4px var(--mainColor7);
    transition: .4s;
}

p {
    transition: .4s;
}

.text-box:hover>p {
    color: var(--mainColor3);
    transition: .2s;
    font-size: 20px;
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

.about-container img {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    right: -30px;
    top: 50px;
    z-index: 2;
    border: 4px solid var(--mainColor2);
    box-shadow: 0 0 5px 2px var(--mainColor1);
    transition: .4s;
}

.about-container img:hover {
    box-shadow: 0 0 6px 2px var(--mainColor7);
    top: 45px;
    transition: .4s;
}

.right-container img {
    left: -30px;
}

.timeline::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 100%;
    background: var(--mainColor6);
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: 0;
    animation: moveline 6s linear forwards;
    box-shadow: 0 0 3px 1px var(--mainColor6);
}

@keyframes moveline {
    0% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}

.text-box h2 {
    font-weight: 600;
}

.text-box small {
    display: inline-block;
    margin-bottom: 15px;
}

.left-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 55px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--mainColor6);
    right: -13px;
}

.right-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 55px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--mainColor6);
    left: -13px;
}

.thead {
    text-align: center;
    color: var(--mainColor4);
    font-size: 50px;
    margin-top: 100px;
}

.team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    margin: 0 250px;
    justify-content: center;
}

.person {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 250px;
}

.p-container {
    height: 312px;
    width: 400px;
    cursor: pointer;
    transform: scale(0.48);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.circle {
    position: absolute;
    background: var(--mainColor2);
    height: 380px;
    width: 380px;
    top: 210px;
    left: 10px;
    border-radius: 50%;
}

.person img {
    position: relative;
    width: 340px;
    top: 164px;
    left: 22px;
    transform: translateY(20px) scale(1.15);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.container-inner {
    position: relative;
    clip-path: path("M 390,400 C 390,504.9341 304.9341,590 200,590 95.065898,590 10,504.9341 10,400 V 10 H 200 390 Z");
    top: -200px;
    direction: ltr !important;
}

.divider {
    height: 3px;
    width: 130px;
    border-radius: 5px;
    background: var(--mainColor2);
}

.person h1 {
    color: var(--mainColor4);
    margin-top: 16px;
    font-size: 22px;
}

.person p {
    color: var(--mainColor2);
    font-size: 16px;
    margin-top: 5px;
    font-weight: bold;
    text-align: center;
}

.p-container:hover {
    transform: scale(0.54);
}

.p-container:hover img {
    transform: translateY(0) scale(1.3);
}



@media only screen and (max-width: 1285px) {

    .heading {
        font-size: 5rem;
    }

    .about-content p {
        font-size: 1.2rem;
        padding: 0 20px;
    }

}

@media only screen and (max-width: 1200px) {

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

}

@media only screen and (max-width: 991px) {

    .heading {
        font-size: 4rem;
    }

    .about-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    header {
        padding: 2rem 3%;
    }

    .about-content h2 {
        margin-top: 2rem;
    }

    section {
        padding: 3rem 3% 2rem;
    }

    .btn {
        font-size: 2rem;
    }

}

@media only screen and (max-width: 895px) {

    .about-content h2 {
        margin-top: 11.5rem;
    }

    .about {
        flex-direction: column-reverse;
        margin-top: 10rem;
        margin-bottom: 30rem;
        gap: 5rem;
    }

    .about-content {
        margin: 0 5rem 0;
    }

    .about img {
        margin: 0 5rem 0;
        width: 50vw;
        margin-top: 0rem;
        margin-bottom: 1rem;
    }

    .btn {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .timeline {
        margin: 70px auto 0 auto;
    }

    .team {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 0 200px;
    }
}

@media only screen and (max-width:670px) {
    .background {
        height: 560vh;
    }

    .timeline {
        margin: 60px auto 50px auto;
    }

    .timeline::after {
        left: 31px;
    }

    .text-box {
        font-size: 16px;
    }

    .right-container {
        left: 0;
    }

    .left-container img,
    .right-container img {
        left: 10px;
    }

    .left-container-arrow,
    .right-container-arrow {
        border-right: 15px solid var(--mainColor6);
        border-left: 0;
        left: -14px;
    }

    .about-container {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;

    }

    .about-content p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media screen and (max-width:600px) {

    .about {
        margin-top: 10rem;
        margin-bottom: 30rem;
    }

    .timeheading {
        font-size: 1.8rem;
        margin: 0 .8rem;
        margin-top: 40px;
    }

    .heading {
        font-size: 3.7rem;
    }

    .background {
        height: 570vh;
    }

}

@media only screen and (max-width: 500px) {

    .heading {
        font-size: 3rem;
        margin: 0 0;
    }

    .about-content p {
        font-size: .9rem;
        padding: 0 10px;
    }

    .background {
        height: 740vh;
    }

    .timeline {
        margin: 60px auto 50px auto;
    }

    .about-content h2 {
        margin-top: 14rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about-content {
        margin: 0 1rem 0;
    }

    .about img {
        margin: 0 5rem 0;
        width: 90vw;
        margin-top: 0rem;
        margin-bottom: 1rem;
    }

    .btn {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }


    .team {
        grid-template-columns: repeat(1, 1fr);
        gap: 6px;
        margin: 0 100px;
    }
}

@media only screen and (max-width: 430px) {
    .about {
        margin-top: 10rem;
        margin-bottom: 30rem;
        gap: 5rem;
    }

    .background {
        height: 750vh;
    }

}

@media only screen and (max-width: 400px) {
    .about {
        margin-top: 10rem;
        margin-bottom: 30rem;
        gap: 5rem;
    }

    .background {
        height: 790vh;
    }

}

@media only screen and (max-width: 400px),
screen and (max-height:780px) {
    .about {
        margin-top: 10rem;
        margin-bottom: 30rem;
        gap: 5rem;
    }

    .background {
        height: 850vh;
    }

}

@media only screen and (max-width: 400px),
screen and (max-height:720px) {
    .about {
        margin-top: 10rem;
        margin-bottom: 30rem;
        gap: 5rem;
    }

    .background {
        height: 900vh;
    }

}

@media only screen and (max-width: 400px),
screen and (max-height:680px) {
    .about {
        margin-top: 10rem;
        margin-bottom: 30rem;
        gap: 5rem;
    }

    .background {
        height: 950vh;
    }

}

@media only screen and (max-width: 400px),
screen and (max-height:640px) {
    .about {
        margin-top: 10rem;
        margin-bottom: 30rem;
        gap: 5rem;
    }

    .background {
        height: 1000vh;
    }

}