/* =================== GOOGLE FONTS =================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ==================== FLATICON CDN ===================== */
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-straight/css/uicons-regular-straight.css');
@import url('https://cdn-uicons.flaticon.com/3.0.0/uicons-regular-rounded/css/uicons-regular-rounded.css');
/* ==================== VARIABLES CSS ===================== */
:root{
    --header-height: 4rem;

    /* ========= COLORS ======= */
    --body-color : #fff;
    --container-color: #EBEBEB;
    --text-color: #606060;
    --title-color:#04080f;
    --footer-color : #212227;
    --button-color : #4b8cc8;

    /* ========== FONT AND TYPOGRAPHY =========*/
    --body-font: "Roboto", sans-serif;
    --title-font: "Montserrat", sans-serif;
    --subtitle-font: "DM Serif Text", serif;
    --biggest-font-size: 2.75rem;
    --big-font-size : 2rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* ========== FONT WEIGHT =========*/
    --font-regular:400;
    --font-medium:500;
    --font-semi-bold:600;
    --font-bold: 700;

    /* ========== Z INDEX =========*/
    --z-tooltip : 10;
    --z-fixed:100;
}

/* ================ RESPONSIVER TYPOGRAPHY ================ */
@media screen and (min-width : 1024px) {
    :root{
    --biggest-font-size: 5.5rem;
    --big-font-size : 4.5rem;
    --h1-font-size: 3rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
    } 
}

/* ========== BASE ========= */
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

body,
button,
input{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--text-color);
}

body{
    background-color:var(--body-color) ;
}

button,
input{
    outline: none;
    border: none;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

/* ========== REUSABLE CSS ========= */
.main{
    overflow: hidden;
}

.section{
    padding-block: 3rem 1rem;
}

.container{
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.flex{
    display: flex;
    flex-direction: column;
}

.grid{
    display: grid;
    gap: 1.5rem;
}

/* ============= HEADER ============= */
.header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    transition: .5s;
    background-color: var(--title-color);
}

.nav{
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo{
    font-family: var(--subtitle-font);
    color: var(--body-color);
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
}

@media screen and (max-width: 1024px) {
    .nav-menu{
        position: fixed;
        top: 0;
        left: -100%;
        padding: 8rem 4rem;
        width: 75%;
        height: 100vh;
        background-color: var(--body-color);
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        transition: .5s;
    }
}

/* show-menu */
.show-menu{
    left: 0;
}

.nav-list{
    row-gap: 2rem;
}

.nav-link{
    font-size: var(--h3-font-size);
    text-transform: uppercase;
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.nav-socials{
    display: flex;
    align-items: center;
    column-gap: 2rem;
}

.nav-social_link{
    font-size: 1.75rem;
    transition: .5s;
}

.nav-social_link:hover{
    transform: translateY(-.25rem);
}

.nav-close{
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: var(--h2-font-size);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.nav-close:hover,
.nav-toggle:hover{
    cursor: pointer;
}

.nav-choose{
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.lang-btn{
    color: var(--body-color);
    font-family: var(--title-font);
    font-weight: var(--font-medium);
    font-size: var(--h3-font-size);
}

.nav-toggle{
    font-size: var(--h2-font-size);
    color: var(--body-color);
    font-weight: var(--font-medium);
}

/* =================== HOME =============== */
.home{
    background-image: url(img/home-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home::after{
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 100%;
    height: 100%;
    background-color: var(--footer-color);
    opacity: .7;
}

.home-container{
    position: relative;
    z-index: var(--z-tooltip);
    color: var(--body-color);
    align-items: center;
    text-align: center;
    row-gap: .5rem;
}

.home-title{
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    font-weight: var(--font-regular);
    letter-spacing: 2px;
}

.home-subtitle{
    font-family: var(--subtitle-font);
    font-size: var(--biggest-font-size);
}

.home-banner{
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.home-btn{
    color: var(--body-color);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    background-color: var(--button-color);
    padding: 1rem 2rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    column-gap: .5rem;
    transition: .5s;
}

.home-btn:hover{
    box-shadow: rgba(255, 255, 255, 0.24) 0px 3px 8px;
}

.home-btn i,
.project-btn i{
    transition: .5s;
}

.home-btn i:hover,
.project-btn i:hover{
    transform: translateX(.25rem);
}

/* =================== PERIOD ============== */

.period-container{
    align-items: center;
    justify-content: center;
    row-gap: 2rem;
}

.period-title h1{
    font-size: var(--big-font-size);
    color: var(--title-color);
    text-transform: capitalize;
    text-align: center;
}

.period-grid{
    margin-top: 2rem;
    grid-template-columns: repeat(1, 330px);
    align-items: center;
    justify-content: center;
    row-gap: 2rem;
}

.period-data{
    row-gap: .5rem;
    border: 1px solid var(--container-color);
}

.period-data p{
   padding: 0 1rem 1rem 1rem;
}

.period-data_title{
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-size: var(--h3-font-size);
    color: var(--button-color);
    text-transform: uppercase;
    padding: 1rem 1rem 0 1rem;
}

.period-data_title i{
    font-weight: var(--font-medium);
    font-size: var(--h2-font-size);
}

.period-img{
    width: 100%;
    height: 150px;
}

/* =================== ABOUT =============== */

.about{
    width: 100%;
    padding-block: 3rem 1rem;
}

.about-container{
    row-gap: 2rem;
}

.about-img{
    width: 100%;
    height: 400px;
}

.about-desc{
    row-gap: 1rem;
}

.about-desc h1,
.services-title h1,
.projects-title h1,
.faqs-title h1,
.contact-title h1{
    text-transform: uppercase;
    font-size: var(--big-font-size);
    font-family: var(--title-font);
    color: var(--title-color);
    font-weight: var(--font-bold);
}

.about-desc p,
.services-title p,
.contact-title p{
    font-weight: var(--font-medium);
}

.about-choose{
    flex-direction: row;
    column-gap: 2rem;
    align-items: center;
    justify-content: center;
}

.about-box{
    margin-top: 1rem;
    width: 150px;
    height: 150px;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: .5rem;
    cursor: pointer;
    transition: .5s;
}

/* ========================= SERVICES =================== */

.services-container{
    row-gap: 2rem;
    align-items: center;
}

.services-grid{
    grid-template-columns: repeat(1, 330px);
}

.services-data{
    row-gap: .5rem;
    padding: 1rem;
    border: 1px solid var(--title-color);
    border-radius: .5rem;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    height: 250px;
}

.services-data i{
    font-size: var(--big-font-size);
    color: var(--title-color);
}

.services-data h3{
    font-size: var(--h2-font-size);
    color: var(--title-color);
    font-family: var(--title-font);
}

/* ================ PROJECTS ============= */

.projects-container{
    row-gap: 2rem;
}

.projects-title{
    row-gap: .5rem;
    align-items: self-start;
}

.projects-title h2{
    color: var(--button-color);
    font-size: var(--h2-font-size);
    text-transform: capitalize;
    font-weight: var(--font-semi-bold);
}

.attention-text{
    font-weight: var(--font-semi-bold);
}

.project-btn{
    display: flex;
    align-items: center;
    column-gap: .5rem;
    background-color: var(--button-color);
    color: var(--body-color);
    padding: 1rem;
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    transition: .5s;
}

.project-btn:hover{
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.projects-swiper{
    max-width: 700px;
    height: 360px;
    margin-inline: 1.5rem;
}

.card{
    width: 330px !important;
    height: 300px !important;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.project-img{
    width: 100%;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
}

.project-info{
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.project-info h4{
    color: var(--title-color);
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
}

.project-view{
    display: flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--footer-color);
    font-weight: var(--font-bold);
    font-family: var(--title-font);
    font-size: var(--small-font-size);
    text-transform: uppercase;
}

.project-view i{
    transition: .5s;
}

.project-view i:hover{
    transform: translate(.25rem, -.25rem);
}

/* Swiper Class */
.swiper-button-next,
.swiper-button-prev{
    top: initial !important;
    bottom: 0;
    background-color: var(--container-color) !important;
    border: 2px solid var(--text-color-light);
    padding: 6px !important;
    border-radius: .5rem;
    font-size: 1.5rem;
    color: var(--title-color) !important;
}

.swiper-button-prev::after,
.swiper-button-next::after{
    content: " "!important;
}

.swiper-navigation-icon{
    display: none;
}

.swiper-button-prev{
    left: calc(50% - 3rem) !important;
}

.swiper-button-next{
    right: calc(50% - 3rem) !important;
}

/* ==================== FAQS =================== */
.faqs{
    display: flex;
    align-items: center;
    justify-content: center;
}

.faqs-container{
    row-gap: 2rem;
    align-items: center;
    justify-content: center;
}

.faq{
    padding-bottom: 0.5rem;
    max-width: 700px;
    row-gap: .5rem;
    cursor: pointer;
}

.question{
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--title-font);
    font-size: var(--normal-font-size);
    color: var(--footer-color);
    font-weight: var(--font-semi-bold);
    transition: .5s;
}

.answer{
    border-bottom: 1px solid var(--title-color);
    font-size: var(--small-font-size);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.4s ease;
}

.faq.active .answer{
    max-height: 400px;
}

.question i{
    transition: transform .5s ease-in-out;
    font-size: var(--h3-font-size);
}

.faq.active i{
    transform: rotate(180deg);
}

/* ================ CONTACT ============= */
.contact-container{
    row-gap: 2rem;
    align-items: center;
}

.contact-title{
    row-gap: .5rem;
    text-align: center;
}

.contact-form{
    width: 100%;
    row-gap: .5rem;
}

.contact-inputs{
    row-gap: .5rem;
}

.contact-input{
    padding: 1rem;
    border: 1px solid var(--text-color);
}

.contact-input::placeholder{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

.contact-btn{
    width: max-content;
    cursor: pointer;
}

.contact-message{
    color: rgb(17, 186, 17);
    font-weight: var(--font-medium);
}

.error-message{
    color: rgb(175, 0, 0);
    font-weight: var(--font-medium);
}

.footer{
    background-color: var(--title-color);
    color: var(--container-color);
}

.footer-container{
    row-gap: 1rem;
}

.footer-container h1{
    font-family: var(--subtitle-font);
}

.footer-container p{
    color: var(--text-color);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--text-color);
}

.footer-links{
    row-gap: .5rem;
    font-size: var(--h3-font-size);
}

.footer-links a{
    color: var(--text-color);
    font-weight: var(--font-bold);
    transition: .5s;
}

.footer-social{
    display: flex;
    align-items: center;
    column-gap: 1rem;
    font-size: var(--h2-font-size);
    padding-bottom: 1rem;
}

.footer-social_link{
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 1rem;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    transition: .5s;
}

.footer-social_link:hover{
    color: var(--body-color);
    border-color: var(--body-color);
}

.footer-link:hover{
    color: var(--body-color);
}

.footer-copy{
    text-align: center;
    padding-top: 2rem;
    color: var(--text-color);
}

::-webkit-scrollbar{
    width: .6rem;
    background-color: hsl(220, 6%, 80%);
}

::-webkit-scrollbar-thumb{
    background-color: hsl(220, 6%, 60%);
}

::-webkit-scrollbar-thumb:hover{
    background-color: hsl(220, 6%, 50%);
}

@media screen and (min-width:340px) and (max-width: 391px) {

    .home-title{
        font-size: var(--h3-font-size);
    }

    .home-subtitle{
        font-size: var(--big-font-size);
    }

    .home-banner{
        font-size: var(--small-font-size);
    }

    .home-btn{
        padding: 1rem;
    }

    .swiper-button-next{
        right: calc(70% - 3rem) !important;
    }

    .swiper-button-prev{
        left: calc(30% - 3rem) !important;
    }
}

@media  screen and (min-width: 768px) and (max-width:1024px) {

    .home{
        height: 50vh;
    }

    .period-grid{
        grid-template-columns: repeat(2, 330px);
    }

    .period-data{
        height: 100%;
        justify-content: space-between;
    }

    .about-container,
    .services-container,
    .projects-container,
    .contact-container{
        max-width: 700px;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .about-img{
        order: 2;
    }

    .about-desc{
        align-items: self-start;
    }

    .about-box h1{
        font-size: var(--h1-font-size);
    }

    .about-desc h1,
    .services-title h1,
    .projects-title h1,
    .faqs-title h1,
    .contact-title h1{
        font-size: var(--h1-font-size);
    }

    .services-grid{
        grid-template-columns: repeat(2, 330px);
    }

    .services-data{
        height: 350px;
    }
}

@media screen and (min-width: 1025px) {
    .container{
        max-width: 1496px;
        margin-inline: 2.5rem;
    }

    .nav{
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav-list{
        flex-direction: row;
        align-items: center;
        column-gap: 1.5rem;
        padding-top: .5rem;
    }

    .nav-link{
        color: var(--body-color);
        font-size: var(--normal-font-size);
    }

    .nav-socials{
        display: none;
    }

    .nav-close,
    .nav-toggle{
        display: none;
    }

    .period-container,
    .services-container,
    .projects-container{
        max-width: 1200px;
        margin: 0 auto;
    }

    .period-data{
        height: 100%;
        justify-content: space-between;
    }

    .period-grid{
        grid-template-columns: repeat(3, 330px);
    }

    .about-container{
        flex-direction: row;
        column-gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .about-img{
        width: 50%;
        height: 550px;
    }

    .about-desc{
        width: 50%;
        align-items: self-start;
    }

    .about-box h1{
        font-size: var(--h1-font-size);
    }

    .services-title{
        padding-right: 5rem;
    }

    .services-grid{
        grid-template-columns: repeat(3, 330px);
    }

    .services-data{
        height: 350px;
    }

    .projects-swiper{
        max-width: 1200px;
    }

    .contact-container{
        max-width: 700px;
        margin: 0 auto;
    }

    .about-desc h1,
    .services-title h1,
    .projects-title h1,
    .faqs-title h1,
    .contact-title h1{
        font-size: var(--h1-font-size);
    }

}

@media screen and (min-width: 1919px) {
    .container{
        max-width: 2048px;
        margin-inline: 4rem;
    }

    .about-container{
        flex-direction: row;
        column-gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .period-container,
    .services-container,
    .projects-container{
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-container{
        max-width: 700px;
        margin: 0 auto;
    }
}