/* ========= GOOGLE FONTS ========= */
@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&family=Outfit:wght@100..900&display=swap');

/* ========= VARIABLES CSS ======= */
:root{
    --header-height: 3.5rem;

    /* ====== colors ======= */
    --black-color : #000;
    --black-color-alt : #262626;
    --black-color-light : #424242;
    --white-color : #fff;
    
    /* ===== typography and fonts */
    --body-font : "Outfit", sans-serif;
    --title-font : font-family: "Nata Sans", sans-serif;
    --biggest-font-size : 3rem;
    --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 : .813rem;
    
    /* ====== 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 : 5rem;
    --big-font-size : 3.25rem;
    --h1-font-size : 2.75rem;
    --h2-font-size : 2.5rem;
    --h3-font-size : 2.25rem;
    --normal-font-size : 1.25rem;
    --small-font-size : .1rem;
    --smallest-font-size : .938rem;
    }
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body{
    font-family: var(--body-font);
    color: var(--white-color);
    font-size: var(--normal-font-size);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4{
    font-family: var(--title-font);
    font-weight: var(--font-bold);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

input,
button{
    border: none;
    outline: none;
}

/* ======= BASE ====== */
.section{
    padding-block: 3rem 1rem;
}

.container{
    max-width: 1024px;
    margin-inline: 1.5rem;
}

.grid{
    display: grid;
}

.flex{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

/* ========= HEADER ======== */
.header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--black-color);
    transition: .4s;
    z-index: var(--z-fixed);
}

.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-logo{
    font-size: var(--small-font-size);
}

@media screen and (max-width : 1025px){
    .nav-menu{
        position: absolute;
        top: 0;
        right: -120%;
        width: 70%;
        height: 100vh;
        padding: 10rem 5rem;
        background-color: var(--black-color);
        box-shadow: rgb(255, 255, 255) 0px 5px 15px;
        transition: .4s;
    }
}

.nav-list{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.nav-link{
    font-size: var(--normal-font-size);
    color: var(--white-color);
    font-family: var(--title-font);
    text-transform: uppercase;
    font-weight: var(--font-semi);
    position: relative;
}

.nav-link::after{
    content: '';
    width: 0;
    height: 2px;
    border-radius: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--white-color);
    transition: .4s;
}

.nav-link:hover::after{
    width: 30%;
}


.nav-close,
.nav-toggle{
    font-size: var(--h2-font-size);
    cursor: pointer;
}

.nav-close{
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

/* show-menu */
.show-menu{
    right: 0%;
}

/* blur-header */
.blur-header{
    box-shadow: rgb(255, 255, 255) 0px 5px 15px;
}

/* ========= HOME ======= */
.home{
    width: 100%;
    min-height: 100vh;
    background-image: url(/img/home-bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
}

.home::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-color-alt);
    opacity: .3;
}

.home-container{
    position: absolute;
    z-index: var(--z-tooltip);
    bottom: 5rem;
}

.home-desc h1{
    font-size: var(--big-font-size);
    font-weight: 800;
    font-family: var(--title-font);
}

.home-subtitle{
    font-weight: var(--font-light);
    font-size: var(--h3-font-size);
}

.home-social{
    display: flex;
    align-items: center;
    column-gap: 2rem;
    font-size: var(--h3-font-size);
}

.home-social-link{
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
    color: var(--black-color-alt);
    border-radius: 1rem;
    transition: .4s;
}


.home-social-link:hover{
    transform: translateY(-.25rem);
    box-shadow: rgb(255, 255, 255) 0px 5px 15px;
}

.about{
    background-color: var(--white-color);
}

.about-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 3rem;
}

.about-image{
    width: 300px;
    height: 400px;
    position: relative;
}

.about-image::before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    border-left: 4px solid var(--black-color);
    border-top: 4px solid var(--black-color);
}

.about-desc{
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
}

.about-title{
    color: var(--black-color);
    font-size: var(--big-font-size);
    letter-spacing: 1px;
    position: relative;
}

.about-title::after{
    align-items: center;
    content: '';
    width: 20%;
    height: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--black-color);
}

.about-text{
    color: var(--black-color-light);
    font-size: var(--small-font-size);
    font-weight: var(--font-light);
}

/* =========== WHAT I DO ========= */
.whatido{
    background-image: url(/img/whatido.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.whatido::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black-color);
    opacity: .3;
}

.whatido-container{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 3rem 1rem;
    position: relative;
    z-index: var(--z-tooltip);
}

.what-desc{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
}

.what-title{
    font-size: var(--h1-font-size);
    letter-spacing: 1px;
    position: relative;
}

.what-title::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;
    height: 3px;
    background-color: var(--white-color);
}

.what-info{
    grid-template-columns: repeat(1,1fr);
    row-gap: 2rem;
}

.what-info_text{
    display: flex;
    align-items: center;
    column-gap: .5rem;
}

.what-logos{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    row-gap: 2rem;
}

.what-data{
   display: flex;
   flex-direction: column;
   align-items: center;
}

.what-data i{
    font-size: var(--biggest-font-size);
}

.what-data h1{
    font-family: var(--body-font);
    font-weight: var(--font-regular);
    font-size: var(--h3-font-size);
}

/* =========== WORKS ============ */
.works{
    background-color: var(--white-color);
    color: var(--black-color);
}

.work-container{
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    align-items: center;
}

.works-title{
    text-align: start;
    align-items: self-start;
    position: relative;
}

.works-title::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 3px;
    background-color: var(--black-color);
}

.works-gallery{
    grid-template-columns: repeat(2, 165px);
    grid-template-rows: repeat(4, 200px);
    gap: .5rem;
}

.work-img{
    transition: all .4s ease-in-out;
}

.work-img:hover{
    transform: scale(1.05);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* ============ CONTACT ============ */
.contact{
    background-color: var(--white-color);
    color: var(--black-color);
    border-top: 1px solid var(--black-color-alt);
}

.contact-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-big_div{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 3rem;
    width: 100%;
}

.contact-desc{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 1rem;
    width: 100%;
}

.contact-title{
    font-size: var(--h1-font-size);
    letter-spacing: 1px;
    position: relative;
}

.contact-title::after{
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    width: 25%;
    height: 3px;
    background-color: var(--black-color);
}

.contact-info{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 1rem;
}

.contact-div_1{
    display: flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--black-color-alt);
}

.contact-form{
    display: flex;
    flex-direction: column;
    align-items: self-start;
    row-gap: 1rem;
}

.contact-input{
    padding: 1rem 6rem 1rem 0.5rem;
    border: 1px solid black;
}

.contact-input::placeholder{
    font-weight: var(--font-semi);
    color: var(--black-color-light);
}

.contact-btn{
    padding: 1rem 4rem;
    background: var(--black-color);
    color: var(--white-color);
    font-weight: var(--font-semi);
    font-family: var(--title-font);
    transition: .4s;
}

.contact-btn:hover{
    background-color: var(--black-color-alt);
}

.contact-image{
    width: 100%;
    height: 300px;
    position: relative;
}

/* ============ INSTAGRAM =========== */
.instagram{
    background-image: url(/img/bg.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    color: var(--white-color);
    position: relative;
}

.instagram::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--black-color-alt);
    opacity: .5;
}

.inst-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 3rem;
    padding-block: 3rem 1rem;
    position: relative;
    z-index: var(--z-tooltip);
}

.inst-title{
    font-size: var(--h1-font-size);
    letter-spacing: 1px;
    position: relative;
}

.inst-title::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: var(--white-color);
}

.inst-gallery{
    grid-template-columns: repeat(1, 300px);
    grid-template-rows: repeat(4, 300px);
    row-gap: 1rem;
}

.inst-gallery img{
    transition: .4s ease-in-out;
}

.inst-gallery img:hover{
    transform: scale(1.05);
    cursor: pointer;
}

/* ============== FOOTER ========= */
.footer{
    background-color: var(--black-color-light);
    color: var(--white-color);
}

.footer-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
}

.footer-title{
    font-size: var(--big-font-size);
    letter-spacing: 1px;
}

.footer-subtitle{
    font-weight: var(--font-regular);
    font-size: var(--h2-font-size);
}

.footer-img{
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.footer-img img{
    border-radius: 50%;
    object-position: top right ;
}

.footer-links{
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1rem;
}

.footer-link{
    color: var(--white-color);
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi);
    transition: .4s;
}

.footer-link:hover{
    text-decoration: underline;
    color: var(--black-color-alt);
}

/* ========== BREAKPOINTS ========== */
@media screen and (max-width : 480px) {

    .footer-links{
        column-gap: .5rem;
    }

    .footer-link{
        font-size: var(--smallest-font-size);
    }
}

@media screen and (min-width : 640px) and (max-width : 1025px) {

    .works-title{
        font-size: var(--big-font-size);
    }

    .works-gallery{
        grid-template-columns: repeat(2, 300px);
        grid-template-rows: repeat(4, 250px);
    }

    .inst-gallery{
        grid-template-columns: repeat(2, 300px);
        grid-template-rows: repeat(2, 300px);
        column-gap: 1rem;
    }
}

@media screen and (min-width : 1025px) {

    .container{
        max-width: 1298px;
        margin-inline: 7rem;
    }

    .nav-close,
    .nav-toggle{
        display: none;
    }

    .nav-logo{
        font-size: var(--normal-font-size);
    }

    .nav-list{
        flex-direction: row;
        column-gap: 1.5rem;
    }

    .nav-link{
        font-weight: var(--font-medium);
    }

    .about-container{
        flex-direction: row;
        column-gap: 5rem;
        justify-content: space-evenly;
        margin-left: 4rem;
    }

    .about-image{
        width: 50%;
    }

    .about-desc{
        text-align: start;
        align-items: self-start;
        width: 45%;
    }

    .about-text{
        font-size: 1rem;
    }

    .what-desc{
        row-gap: 3rem;
    }

    .what-info{
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .what-info_text{
        font-size: 1rem;
    }

    .what-logos{
        grid-template-columns: repeat(4, 1fr);
    }
    .work-container{
        font-size: 2.25rem;
    }

    .works-gallery{
        grid-template-columns: repeat(3, 350px);
        grid-template-rows: repeat(3, 300px);
    }

    .contact-big_div{
        flex-direction: row;
    }

    .contact-image{
        height: 400px;
    }

    .inst-gallery{
        grid-template-columns: repeat(4, 300px);
        grid-template-rows: repeat(1, 300px);
        gap: 1rem;
    }
}













