/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins:wght@300;400;500&display=swap');

/* ========= VARIABLES CSS ========== */
:root{
    --header-height: 3.5rem;

    /* ====== COLORS ====== */
    --first-color : #02173c;
    --card-color: #010d30;
    --title-color: #fff;
    --line-color:#223e8f;
    --input-color:#2d3857;

    /* ====== FONT AND TYPOGRAPHY ====== */
    --title-font: "Outfit", sans-serif;
    --text-font: "Poppins", sans-serif;
    --logo-font-size: 5rem;
    --biggest-font-size: 3.5rem;
    --big-font-size : 2.25rem;
    --h1-font-size : 1.75rem;
    --h2-font-size : 1.5rem;
    --h3-font-size : 1.25rem;
    --normal-font-size : 1rem;
    --small-font-size: .938rem;
    --smallest-font-size: .875rem;

    /* ====== FONT WEIGHT ====== */
    --font-light: 300;
    --font-regular:400;
    --font-medium:500;
    --font-semi:600;
    --font-bold: 700;

    /* ====== Z INDEX ====== */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* ====== RESPONSIVE TYPOGRAPHY ====== */
@media screen and (min-width: 1025px){
    :root{
    --biggest-font-size: 4rem;
    --big-font-size : 2.75rem;
    --h1-font-size : 2.25rem;
    --h2-font-size : 1.75rem;
    --h3-font-size : 1.5rem;
    --normal-font-size : 1rem;
    --small-font-size: .875rem;
    --smallest-font-size: .813rem;
    }
}

/* ======== UTILITIES ======== */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--first-color);
    color: var(--title-color);
    font-family: var(--text-font);
    font-size: var(--normal-font-size);
}

h1,h2,h3,h4{
    font-family: var(--title-font);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img,video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========== BASE ======== */
.main{
    overflow: hidden;
}

.section{
    padding-block: 4rem 2rem;
}

.container{
    max-width: 1024px;
    margin-inline: 1.5rem;
}

.flex{
    display: flex;
    flex-direction: column;
}

.grid{
    display: grid;
    gap: 1.5rem;
}

.button{
    padding: 1rem 2rem;
    border-radius: 1.5rem;
    background-color: var(--card-color);
    color: var(--title-color);
}

/* =========== HEADER ========== */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    transition: .4s;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.nav{
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo{
    display: flex;
    align-items: center;
    column-gap: .5rem;
    font-size: var(--h3-font-size);
}

.nav-toggle,
.nav-close{
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi);
}

.nav-close:hover,
.nav-toggle:hover{
    cursor: pointer;
}

.nav-close{
    position: absolute;
    top: 1rem;
    right: 1rem;
}

@media screen and (max-width:1024px) {
    .nav-menu{
        position: fixed;
        top: -1000%;
        left: 0;
        width: 100%;
        background-color: var(--card-color);
        padding-block: 1.5rem;
        box-shadow: rgba(255, 255, 255, 0.756) 0px 5px 15px;
        transition: .5s;
    }
}

/* show-menu */
.show-menu{
    top: 0;
}

.nav-list{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    align-items: center;
}

.nav-list li{
    width: max-content;
}

.nav-link,
.language-link{
    color: var(--title-color);
    font-weight: var(--font-semi);
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    position: relative;
}

.nav-link::after,
.footer-link::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--title-color);
    transition: .5s;
}

.nav-link:hover::after,
.footer-link:hover::after{
    width: 35%;
}

.lang-cont{
    display: flex;
    align-items: center;
    column-gap: .5rem;
}

.language-link{
    font-weight: var(--font-regular);
}

/* ====================== HOME ====================== */
.home{
    width: 100%;
    height: 100%;
    min-height: 100vh;
    position: relative;
    transition: .4s;
}

.home-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-bg::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--first-color);
    opacity: .4;
}

.home-desc{
    position: absolute;
    top: 25%;
    display: flex;
    align-items: center;
    column-gap: 3rem;
}

.home-info{
    width: 100%;
    align-items: self-start;
    row-gap: .5rem;
}

.home-info h1{
    font-size: var(--biggest-font-size);
}

.home-info h3{
    font-size: var(--h1-font-size);
    font-weight: var(--font-light);
}

.home-btn{
    font-weight: var(--font-medium);
    transition: .4s;
    margin-top: 1rem;
}

.home-btn:hover{
    opacity: .7;
}

.home-social{
    align-items: center;
    row-gap: 1rem;
}

.home-link{
    color: var(--title-color);
    font-size: var(--h2-font-size);
    transition: .5s;
}

.home-link:hover{
    transform: translateY(-.25rem);
}

/* ====================== ABOUT ====================== */

.about{
    width: 100%;
}

.about-desc{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
    text-align: center;
}

.about-info{
    display: flex;
    flex-direction: column;
}

.about-info h3,
.services-title h3,
.projects-title h3,
.contact-title h3{
    font-size: var(--h3-font-size);
    font-weight: var(--font-regular);
}

.about-info h2,
.services-title h2,
.projects-title h2,
.contact-title h2{
    font-size: var(--biggest-font-size);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-work{
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 2rem;
}

.a_work1{
    flex-basis: 35%;
    padding: 2rem;
    background-color: var(--card-color);
    border-radius: 1.5rem;
    box-shadow: rgba(255, 251, 251, 0.35) 0px 5px 15px;
    transition: .4s;
}

.a_work1:hover{
    transform: translateY(-.25rem);
}

/* ====================== SERVICES ====================== */

.services{
    width: 100%;
}

.serives-container{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    align-items: center;
    text-align: center;
}

.services-offer{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1,1fr);
    grid-template-rows: repeat(3, 500px);
    align-items: center;
    justify-content: center;
    row-gap: 2rem;
}

.services-data{
    width: 100%;
    height: 100%;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    background-color: var(--card-color);
    border-radius: 1.5rem;
    box-shadow: rgba(255, 255, 255, 0.35) 0px 5px 15px;
    transition: .5s;
}

.services-data:hover{
    transform: translateY(-.25rem);
}

.services-data i{
    font-size: var(--logo-font-size);
}

.services-data h3{
    font-size: var(--h2-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 1rem;
}

.services-data p{
    font-weight: var(--font-light);
    font-size: var(--smallest-font-size);
}

.services-btn{
    margin-top: 1rem;
    background-color: var(--title-color);
    width: max-content;
    padding: .5rem 2rem;
    color: var(--card-color);
    font-weight: var(--font-semi);
    font-family: var(--title-font);
    border-radius: 1.5rem;
    transition: .5s;

}

.services-btn:hover{
    box-shadow: rgba(255, 255, 255, 0.35) 0px 5px 15px;
}


/* ======== SKILLS ======== */

.my-skills{
    row-gap: 2rem;
    padding-top: 2rem;
}

.skills-title{
    font-size: var(--h1-font-size);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills{
    width: 100%;
    display: grid;
    grid-template-columns:repeat(1,330px);
    row-gap: 2rem;
    align-items: center;
    justify-content: center;
    font-size: var(--h2-font-size);
}

.skills-data{
    width: 100%;
    display: flex;
    align-items: center;
    column-gap: .5rem;
}

.skills-icon{
    align-items: center;
    width: 20%;
}

.skills-icon p{
    font-size: var(--smallest-font-size);
    color: gray;
}

.skills-line{
    width: 80%;
    height: 5px;
    border-radius: 2rem;
    background-color: gray;
    position: relative;
}

.skills-line_1{
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--line-color);
    width: 80%;
    height: 100%;
}

/* ===================== PROJECTS ==================== */
.projects{
    width: 100%;
}

.projects-container{
    align-items: center;
    row-gap: 2rem;
}

.projects-title{
    text-align: center;
}

.project-nav{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    column-gap: 2rem;
}

.project-item{
    font-size: var(--h3-font-size);
    font-family: var(--title-font);
    font-weight: var(--font-semi);
    cursor: pointer;
    position: relative;
}

.project-item::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--title-color);
    transition: .5s;
}

.mixitup-control-active{
    color: gray;
}

.project-item:hover::after{
    width: 100%;
}


.projects-grid{
    grid-template-columns: repeat(1,330px);
}

.projects-data{
    background-color: var(--card-color);
    width: 100%;
    height: 270px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.projects-data_img{
    width: 100%;
}

.projects-data_info{
    padding: 1rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}

.projects-data_info h3{
    font-size: var(--h3-font-size);
}

.port-link{
    color: var(--title-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    column-gap: .5rem;
}

.port-link i{
    transition: .4s;
}

.port-link i:hover{
    transform: translateY(-.25rem) translateX(.25rem);
}

/* ================ CONTACT =============== */
.contact{
    width: 100%;
}

.contact-title{
   align-items: center;
   row-gap: .5rem;
}

.contact-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
}

.contact-content{
    grid-template-columns: repeat(1,330px);
    grid-template-rows: repeat(3, 200px);
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.contact-box{
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: var(--card-color);
    border-radius: 1.5rem;
    box-shadow: rgba(255, 255, 255, 0.35) 0px 5px 15px;
    transition: .5s;
}

.contact-box:hover{
    transform: translateY(-.25rem);
}

.contact-box-icons{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    column-gap: .5rem;
}

.contact-icon{
    font-size: var(--biggest-font-size);
    color: var(--title-color);
}

.contact-title{
    font-size: var(--h2-font-size);
    text-transform: capitalize;
    font-weight: var(--font-semi);
}

.contact-description{
    font-size: var(--small-font-size);
    font-weight: var(--font-light);
}

.contact-form{
    margin-top: 2rem;
    width: 100%;
    align-items: center;
    row-gap: 1rem;
}

.contact-inputs{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    width: 80%;
}

input,
textarea,
button{
    border: none;
}

textarea{
    width: 80%;
}

.contact-input{
    padding: 1rem;
    background-color: var(--input-color);
}

.contact-input::placeholder{
    font-family: var(--title-font);
    color: #010d30;
    font-weight: var(--font-semi);
    font-size: var(--normal-font-size);
}

.contact-btn{
    padding: 1rem 2rem;
}

.contact-message,
.error-message{
    color: gray;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi);
    margin-top: .5rem;
}


/* ========== FOOTER ========== */
.footer{
    width: 100%;
    background-color: var(--card-color);
    padding-block: 2rem;
}

.footer-container{
    row-gap: 2rem;
    border-bottom: 1px solid var(--title-color);
}

.footer-desc{
    row-gap: .5rem;
}

.footer-desc h1{
    font-family: var(--title-font);
    font-weight: var(--font-medium);
}

.footer-desc p{
    font-weight: var(--font-light);
}

.footer-lists,
.list1{
    row-gap: 1rem;
    margin-bottom: 2rem;
}

.list1 h1{
    font-size: var(--h1-font-size);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.list1 ul{
    row-gap: .5rem;
}

.footer-link{
    color: var(--title-color);
    position: relative;
}

.footer-copy{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: var(--font-light);
    color: gray;
    padding-top: 2rem;
}

.scrollup{
    position: fixed;
    box-shadow: rgba(255, 255, 255, 0.35) 0px 5px 15px;
    bottom: -5rem;
    right: 1rem;
    color: var(--title-color);
    background-color: var(--card-color);
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi);
    border-radius: 50%;
    padding: 1rem;
    transition: .5s;
}

.show-scroll{
    bottom: 1rem;
}

/* ========== BREAKPOINTS ========= */

@media screen and (max-width:375px){
    .contact-title h2{
        font-size: var(--big-font-size);
    }
}

@media screen and (max-width: 345px) {
    .services-offer{
        grid-template-rows: repeat(3, 560px);
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px){
    .home{
        min-height: 60vh;
    }

    .services-offer{
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 500px);
    column-gap: 2rem;
    }

    .skills{
        grid-template-columns: repeat(2, 330px);
        gap: 1rem;
    }

    .projects-grid{
            grid-template-columns: repeat(2, 330px);
    }

    .contact-content{
        grid-template-columns: repeat(2, 330px);
        grid-template-rows: repeat(2, 200px);
    }
}

@media screen and (min-width: 1025px) {

    .container{
        max-width: 1496px;
        margin-inline: 2.5rem;
    }

    .nav{
        height: calc(var(--header-height) + 1.5rem);
    }

    .nav-close,
    .nav-toggle{
        display: none;
    }

    .nav-list{
        flex-direction: row;
        column-gap: 3rem;
    }

    .services-offer{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(1, 500px);
        gap: 2rem;
    }

    .skills{
        grid-template-columns: repeat(3, 330px);
        gap: 2rem;
    }

    .projects-grid{
        grid-template-columns: repeat(3, 330px);
    }

    .contact-container{
        flex-direction: row;
    }

    .contact-content,
    .contact-form{
        flex-basis: 50%;
    }

    .footer-lists{
        flex-direction: row;
        column-gap: 10rem;
    }
}