@font-face {
    font-family: Cairo;
    src: url(../../fonts/Cairo/Cairo-VariableFont_slnt\,wght.ttf);
}

@font-face {
    font-family: Tajawal;
    src: url(../../fonts/Tajawal/Tajawal-Bold.ttf);
}

body {
    margin: 0;
    font-family: Cairo;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Tajawal;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

.btn {
    background-color: #0F62FE;
    color: white;
    transition: all ease 0.3s;
    font-family: Cairo;
    border-radius: 5px;
    border: #0F62FE solid 2px;
    cursor: pointer;
    padding: 5px 10px;
}

.btn:hover {
    transform: scale(1.1);
}

#phone-icon {
    position: fixed;
    bottom: 10%;
    right: 5%;
    z-index: 2000;
}

#whatsapp-icon {
    position: fixed;
    bottom: 10%;
    left: 5%;
    z-index: 2000;
}

#whatsapp-icon svg,
#phone-icon svg {
    display: flex;
    align-self: center;
}

.box {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.box.show {
    opacity: 1;
    transform: translateY(0);
}

/*--------------------------------------------------------------------------NavbarStyling------------------------------------------*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #062150;
    color: white;
    padding: 0px 4%;
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
    z-index: 10001;
}

.hamburger {
    display: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    min-height: 25px !important;
    max-height: 25px;
    background: transparent;
    cursor: pointer;
    padding: 1.5%;
}

.hamburger span {
    width: 100%;
    border: #0F62FE solid 1px;
    background-color: #0F62FE;
    border-radius: 2px;
    margin-bottom: 0px;
    display: none;
}

.logo {
    width: 6rem
}

.navbar img {
    width: 100%;
    height: auto;
}

nav button {
    background-color: #0F62FE;
    padding: 8px;
    border-radius: 7px;
    transition: all ease 0.3s;
    font-weight: bold;
    border: none;
    justify-self: end;
    color: white;
    white-space: nowrap;
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

li a {
    color: white;
    text-decoration: none;
    transition: all ease 0.3s;
    font-size: 14px;
}

li a:hover {
    color: #0F62FE;
}

/* --------------------------Main Stying----------------------------- */

main {
    background-image: url('./hero.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 94vh;
    display: flex;
}

main h1 {
    margin-top: 5px;
    margin-bottom: 0;
}

main .text-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 311px;
    text-align: right;
    margin-right: 5%;
}

.head-span {
    color: #0F62FE;
    background-color: #F5F9FF;
    border-radius: 20px;
    padding: 10px;
    width: fit-content;
    margin-bottom: 1%;
    font-size: small;
    font-family: Cairo;
}

main .second-title {
    color: #0348C9;
}

main .button {
    background-color: #0F62FE;
    color: white;
    transition: all ease 0.3s;
}

main .button:hover {
    background-color: #0F62FE;
    color: white;
    transform: scale(1.1);
}

main p {
    /* width: 25%; */
    text-align: right;
}

main .first-button {
    margin-right: 5%;
}

main .buttons {
    display: flex;
    width: 100%;
    justify-content: right;
    font-family: Cairo;
}

/* -----------------Contact Us info-------------- */

/* --------------Left Section Styling--------------- */
.left-section h4 {
    margin-bottom: 5px;
    font-size: 15px;
    text-align: right;
}

.left-section h4 {
    height: 3vh;
    justify-content: center;
    width: 100%;
    display: flex;
    gap: 5%;
}

.left-section svg {
    align-self: center;
}

.left-section p {
    margin-top: 0px;
    max-width: 300px;
    color: grey;
    font-size: 12px;
    text-align: right;
}

.left-section a {
    color: grey;
    text-decoration: none;
    transition: all ease 0.3s;
}

.left-section a:hover {
    color: #0F62FE;
}

.left-section {
    margin-top: 5%;
    gap: 3%;
    align-items: end;
    display: flex;
    justify-content: center;
    width: 90%;
    flex-wrap: wrap;
    margin-inline: auto;
}

.left-section .card {
    align-self: normal;
    width: 20%;
    border: none;
    background-color: rgb(158 158 158 / 7%);
    min-width: 230px;
}

.left-section .text-container {
    padding: 10%;
    align-items: center;
    flex-direction: column;
    display: flex;
}

/* -----------------Cards styling---------------- */

.second-div {
    display: flex;
    gap: 2%;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    margin-top: 3%;
}

.second-div .card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-center {
    text-align: center;
}

.second-div .card-container {
    display: flex;
    gap: 2%;
    justify-content: center;
    text-align: right;
    flex-wrap: wrap;
}

.second-div img {
    width: 100%;
    height: auto;
    border-top-left-radius: 5%;
    border-top-right-radius: 5%;
    border-bottom-left-radius: 0%;
    border-bottom-right-radius: 0%;
}

.second-div h3 {
    color: #0348C9;
    font-size: 30px;
}

.second-div .text-container h3 {
    font-size: 22px;
    margin-top: 5px;
    margin-bottom: 0;
}

.second-div .text-container p {
    font-size: 12px;
}

.second-div .text-container .head-svg {
    background-color: white;
    border-radius: 16%;
    box-shadow: 0 10px 20px rgba(226, 232, 224, 0.5);
    margin-top: -25px;
    position: relative;
    z-index: 1000;
    padding: 4%;
}

.second-div .text-container {
    background-color: white;
    border-top-left-radius: 0%;
    border-top-right-radius: 0%;
    border-bottom-left-radius: 5%;
    border-bottom-right-radius: 5%;
    box-shadow: 0 4px 12px rgba(226, 232, 224, 0.5);
    position: relative;
}

.second-div .card {
    min-width: 170px;
    flex: 0 0 17%;
    transition: all ease 0.3s;
    margin-top: 1%;
    border: none;
}

.second-div .text-container {
    transition: all ease 0.3s;
    padding-bottom: 2%;

}

.second-div .card:hover {
    transform: scale(1.1);
}

.second-div .card:hover .text-container {
    transform: translateY(-20px);
}

.second-div ul {
    list-style: none;
    display: flex;
    padding: 0;
    flex-direction: column;
    align-items: end;
}

.second-div .text-container p {
    color: grey;
}

.second-div .p-container p {
    padding: 0px 10px 0px 10px;
}

li {
    display: flex;
    gap: 1%;
    flex: 1;
    width: 95%;
    margin-bottom: 2%;
}

li p {
    min-width: 150px;
    padding: 0 !important;
    text-align: right;
    margin: 0;
}


li svg {
    min-width: 25px;
    align-self: center;
}

.second-div .p-container svg {
    margin-top: 4px;
}

/* ------------------Who Are We Styling--------------- */

.who-are-we {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin-top: 8%;
    gap: 3%;
    justify-content: center;
    text-align: right;
}

.who-are-we .head-span {
    font-size: 15px;
}

.who-are-we img {
    width: 40%;
    height: auto;
    border-radius: 10px;
}

.who-are-we .text-container {
    width: 40%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.who-are-we .text-container h3 {
    color: #0348C9;
    margin-top: 4%;
    margin-bottom: 4%;
}

.who-are-we .text-container p {
    max-width: 400px;
}

/*-------------------------------------------Footer Styling------------------------------------*/
footer {
    display: flex;
    flex-wrap: wrap;
    background-color: #062150;
    color: white;
    padding: 1rem 2rem;
    gap: 5rem;
    margin-top: 5%;
}

footer p,
footer a,
footer li {
    font-size: 14px;
}

footer a {
    color: white;
    transition: all ease 0.3s;
    text-decoration: none;
}

footer a:hover {
    color: #0F62FE;
}

footer>div {
    flex: 1;
}

.first-group .link {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.first-group svg {
    align-self: center;
}

.second-group .links,
.third-group .links {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    padding-right: 0;
    gap: 2rem;
}

.fourth-group {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.fourth-group img {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-top: 1rem;
}

/*---------------------------Media Quereies---------------------------------- */

@media (max-width: 576px) {

    body {
        font-size: 1rem;
        line-height: 1.5;
    }

    h1,
    .h1 {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 1rem;
    }

    h2,
    .h2 {
        font-size: 1.375rem;
        line-height: 1.3;
        margin-bottom: 0.875rem;
    }

    h3,
    .h3 {
        font-size: 15px !important;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    p,
    li,
    span {
        font-size: 12px;
        margin-bottom: 0.875rem;
    }

    small,
    .caption,
    .text-muted {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    input,
    select,
    textarea,
    button,
    .btn {
        font-size: 10px !important;
        padding: 5px 12px;
    }

    span {
        font-size: 12px !important;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    nav {
        position: sticky !important;
    }

    .hamburger {
        display: flex;
        border: #0F62FE solid 1px;
        margin-left: 2%;
    }

    .hamburger span {
        display: flex;

    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 62%;
        left: 0;
        width: 100%;
        background-color: #0F62FE;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }

    .nav-links li a:hover {
        color: #062150 !important;
    }

    .nav-links li a {
        transition: all ease 0.2s;
    }

    .nav-links.active {
        display: flex;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }

    footer p,
    footer a,
    footer li {
        font-size: 10px;
    }

    footer .first-group .link {
        white-space: wrap;
    }

    footer .first-group svg {
        width: 20px !important;
        height: 15px !important;
        margin-bottom: 5%;
    }

    .second-group .links,
    .third-group .links {
        flex-direction: row;
    }

    footer .first-group,
    footer .second-group,
    footer .third-group {
        width: 100%;
    }

    footer ul {
        gap: 1rem;
    }

    /*------------------------ main------------------------------*/
    main {
        background-position: 65%;
    }
    
    main .text-container {
        margin-top: 40%;
        justify-content: flex-start;
    }

    main span {
        font-size: 10px !important;
        margin-bottom: 10% !important;
    }
    
    main h1 span {
        font-size: 30px !important;
    }


    /*--------------------------- who are we ----------------------*/

    .who-are-we {
        flex-direction: column;
    }

    .who-are-we img,
    .who-are-we .text-container {
        width: 90%;
        align-self: center;
    }

    .who-are-we img {
        margin-top: 12px;
    }

    .who-are-we button {
        padding: 5px 15px !important;
    }

    h3 {
        font-size: 15px;
    }


    .second-div .text-container h3 {
        margin-bottom: 10px;
    }

    /*--------------------------Contact Us--------------------------- */
    .left-section .card {
        margin-top: 10px;
        min-width: 135px;
    }

    .left-section h4 {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .left-section svg {
        align-self: normal;
    }

    .left-section p {
        max-width: 136px;
        font-size: 8px;
        text-align: center;
        margin-bottom: 0;
    }

    /*--------------------------second div---------------------------*/
    .second-div .p-container p {
        font-size: 8px !important;
    }

    .second-div .head-svg {
        width: 30px !important;
        height: 30px !important;
        margin-top: -20px !important;
    }

    .second-div li svg {
        width: 5px !important;
        height: 12px !important;
        margin-top: 0 !important
    }


    .who-are-we .text-container p {
        font-size: 12px;
    }
}