.herosection {
    background-image: url('../images/team image.jpg');
}

.ourteam {
    display: flex;
    align-items: center;
    margin-top: 10%;
    flex-direction: row-reverse;
}

.ourteam-image {
    width: 45%;
    display: flex;
    justify-content: center;
}

.ourteam-image img {
    padding-right: 20px;
}

.ourteam-test {
    width: 55%;
    padding-left: 54px;
}

.ourteam-test h5 {
    margin: 0;
}

.ourteam-test h1 {
    margin-bottom: 0;
    margin-top: 20px;
}

.ourteam-test p {
    margin-bottom: 0;
    line-height: 2.5;
    color: var(--colorwhite);
}

.meetourteam {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15%;
}

.meetourteam-text {
    width: 90%;
    text-align: center;
}

.meetourteam-text h1 {
    margin-bottom: 0;
}

.meetourteam-text p {
    line-height: 2.5;
}

.box {
    min-width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    position: relative;
    text-decoration: none;
    border-radius: 20px;
    padding: 5px;
    margin-top: -60px;
    background: var(--gradientstrokeforbox);
    box-shadow: var(--shadowforbox);
}

.card-box {
    display: flex;
    align-items: center;
    background-color: var(--colorblack);
    border-radius: 20px;
    padding: 30px 25px;
}

.card-box h4 {
    margin: 0;
}

.card-box p {
    margin: 0;
}

.icon {
    display: flex;
    justify-content: center;
    margin-left: 20px;
}

.gradient-card-inner {
    background: none;
    padding: 0;
}

.gradient-card-inner img {
    border-radius: 38px;
}

.scrollsection {
    margin: 55px 0;
    padding: 0 0 0 20px;
}

.scrollcontainer {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 40px;
    padding: 20px 10px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    cursor: grab;
    scrollbar-width: none;
}

.scrollcontainer::-webkit-scrollbar {
    display: none;
}

.scrollcontainer.active {
    cursor: grabbing;
}

.boxsection2 h5 {
    text-align: center;
}

.card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
}

.contact {
    background-image: url('../images/phone\ image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 626px;
    margin: 15% 130px 0 54px;
    border-radius: 46px;
}

.contact-text {
    width: 50%;
    padding: 10% 0 10% 5%;
}

.contact-text h1 {
    margin: 20px 0;
}

.contact-text p {
    width: 85%;
    line-height: 2.5;
}

.contact-logo {
    display: flex;
    align-items: center;
}

.contact-logo img {
    width: 100px;
    padding-right: 10px;
}

.contact-logo h5 {
    width: 10%;
    margin: 0;
    padding-left: 20px;
    border-left: solid white 1px;
}

.button {
    margin: 0;
}

.contact-card {
    position: relative;
    text-decoration: none;
    width: 30%;
    border-radius: 20px;
    padding: 5px;
    bottom: 750px;
    left: 65%;
    background: var(--gradientstrokeforbox);
    box-shadow: var(--shadowforbox);
}

.contactcard-box {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-color: var(--colorblack);
    border-radius: 20px;
    padding: 30px;
}

.contactcard-box h4 {
    margin: 0;
}

.contactcard-box h5 {
    margin: 0;
}

.contact-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
}

@media screen and (max-width:1080px) {
    .ourteam {
        flex-direction: column;
    }

    .ourteam-image {
        order: 2;
        margin-top: 5%;
        width: 60%;
    }

    .ourteam-image img {
        padding-right: 0;
        width: 90%;
    }

    .ourteam-test {
        order: 1;
        display: flex;
        align-items: center;
        flex-direction: column;
        width: 100%;
        padding-left: 0;
    }

    .ourteam-test p {
        width: 90%;
    }

    .icon img {
        width: 80%;
    }

    .contact {
        margin: 15% 100px 0 54px;
        min-height: 600px;
    }

    .contact-card {
        bottom: 700px;
    }
}

@media screen and (max-width:825px) {
    .contact-card {
        width: 40%;
        left: 55%;
    }
}

@media screen and (max-width:750px) {
    .contact-card {
        width: 40%;
        left: 50%;
    }
}

@media screen and (max-width:720px) {
    .contact {
        min-height: 450px;
    }

    .contact-card {
        bottom: 550px;
    }
}

@media screen and (max-width:700px) {
    .card-box {
        flex-direction: column;
        padding: 20px;
    }

    .icon {
        order: 1;
        margin-left: 0;
    }

    .card-text {
        order: 2;
        margin-top: 10px;
    }

    .icon img {
        width: 60%;
    }

    .scrollsection {
        margin: 35px 0;
    }
}

@media screen and (max-width:520px) {
    .scrollcontainer {
        gap: 20px;
    }
}

@media screen and (max-width:500px) {
    .icon-phone img {
        width: 30px;
    }

    .contact-card {
        width: 45%;
    }

    .contact {
        margin: 25% 30px 0 30px;
    }
}

@media screen and (max-width:450px) {
    .card {
        padding: 2px;
    }
}

@media screen and (max-width:425px) {
    .card-box {
        flex-direction: column;
        padding: 15px;
    }

    .card {
        margin-top: -30%;
    }

    .icon {
        order: 1;
        margin-left: 0;
    }

    .card-text {
        order: 2;
        margin-top: 10px;
    }

    .icon img {
        width: 40%;
    }

    .scrollsection {
        margin: 15px 0;
    }

    .contact-text {
        width: 60%;
    }

    .contactcard-box {
        padding: 20px;
    }

    .contact-card {
        bottom: 480px;
    }

    .contact {
        min-height: 400px;
    }
}