/*Importação das duas fontes para ser usada no projeto */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* raiz do css com as fonts e cores para serem usadas no projeto */
:root {

    /* fontes */
    --text-poppins: "Poppins", sans-serif;
    --text-exo-2: "Exo 2", sans-serif;

    /* cores */
    --orange-1: #FF5A0A;
    --orange-hover: #FF7433;
    --bg-1: #070C0F;
    --bg-2: #0D1317;
    --cards: #11181C;
    --tittle: #F5F5F5;
    --text-secundary: #A8ADB0;
    --border: #252C30;
    --whats: #20C968;
}

/* Formatação principal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: auto;
    background: linear-gradient(to right, #070C0F, #252C30);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100dvh;
    width: 100%;
}

/* Estilização do header */
header {
    border-bottom: 1px solid var(--border);
    padding: 0.8rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.name {
    font-family: var(--text-poppins);
    color: var(--tittle);
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
}

.name span {
    color: var(--orange-1);
}

.text_logo {
    color: var(--text-secundary);
    font-family: var(--text-exo-2);
    font-size: 16px;
}

/* estilizaçao da section hero da pagina */

.hero {
    display: flex;
    padding: 1rem;
    height: 100dvh;

    width: 100%;
    position: relative;
    overflow: hidden;
}

.img_hero_bg {
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    object-fit: cover;
    object-position: center;

    z-index: -1;
}

.content_hero {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 34px;

    position: relative;
    z-index: 1;
}

.text_hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text_hero h1 {
    font-family: var(--text-poppins);
    color: var(--tittle);
    line-height: 1.2;
    font-size: 54px;
}

.text_hero h1 span {
    color: var(--orange-1);
}

.text_hero p {
    color: var(--text-secundary);
    font-family: var(--text-exo-2);
    line-height: 1.4;

    font-size: 18px;
}

/* div que contem a button e a list da hero*/

.button_list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

/* div onde contém o button da hero */

.button_hero {
    display: flex;
    justify-content: start;
    align-items: center;
}

.button_hero a {
    font-family: var(--text-poppins);
    text-decoration: none;
    color: var(--tittle);
    font-weight: 600;

    width: 50%;

    border-radius: 12px;
    background: linear-gradient(to right, #ff7433, #FF5A0A);
    padding: 12px 18px;
    /* X → Y → Blur → Spread → Color*/
    box-shadow: 2px 10px 50px 1px rgba(255, 116, 51, 0.6);
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
}

.button_hero a:hover {
    background: linear-gradient(to right, #FF5A0A, #ff7433);
    font-size: 24px;
}

.button_hero img {
    width: 30px;
    height: auto;
}

/* list da hero */

.list_hero {
    color: var(--text-secundary);
    font-family: var(--text-exo-2);
    font-size: 12px;

    max-width: 50%;
    

    display: flex;
    justify-content: space-around;
    gap: 24px;

    padding-inline: 12px;
}

.item_list {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;

    padding: 6px;
}

.item_list img {
    width: 30px;
    height: auto;
}

.item_list p {
    font-size: 10px;
    line-height: 1;
}

/* Section my work - estilização */

.my_work {
    width: 100%;
    background: linear-gradient(to right, var(--bg-1), var(--border));
    padding: 1rem;
}

/* class span_page esta estilizando mais de uma section da pagina */ 
.span_page {
    color: var(--orange-1);
    font-family: var(--text-exo-2);
    
}

/* class h2_page esta estilizando mais de uma section da pagina */
.h2_page {
    color: var(--tittle);
    font-family: var(--text-poppins);
    text-transform:initial;

    font-size: 40px;

    line-height: 1.2;
}

.projects {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

.img_project {
    width: 100%;
    
    background-repeat: no-repeat;
    background-size: cover;

    border-radius: 12px;
    padding: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#card1 {
    background-image: linear-gradient(
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.8)
        ), url(../img/page_chita.webp);
}

#card2 {
    background-image: linear-gradient(
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.8)
        ), url(../img/page_missa.webp);
}

#card3 {
    background-image: linear-gradient(
            rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.8)
        ), url(../img/page_missa.webp);
}

.img_project img {

    width: 280px;
    height: auto;

    border-radius: 12px;

    box-shadow: 5px 5px 5px;
}

.content_project {
    height: 50%;
    padding: 12px;
    font-family: var(--text-poppins);
    color: var(--tittle);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.content_project p {
    font-family: var(--text-exo-2);
    font-size: 12px;
    line-height: 1;
    color: var(--text-secundary);
}

.content_project a {
    text-decoration: none;
    color: var(--orange-1);
    border: 2px solid var(--border);
    padding: 8px 12px;
    border-radius: 12px;

    background: linear-gradient(to right, var(--border), var(--bg-1));
}

.content_project a:hover {
    background: linear-gradient(to right, var(--bg-1), var(--border));
    color: var(--orange-hover);
}

.item_project {
    width: 350px;

}

.project_card {
    width: 100%;
    height: 350px;

    border: 1px solid var(--border);
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* bolinhas do container para mudanças dos cards - aqui no desktop não irei usar */

.indicators {
    display: none;
}


/* Section What I DO */

.what_I_Do {

    background: linear-gradient(to right, var(--bg-1), var(--border));
    padding: 1rem;

    border-top: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;

    overflow-x: hidden;
}

.content_Ido {
    padding: 1rem;
}

.points {
    display: flex;
    justify-content: space-between;
    gap: 12px;  
}

.box_points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    padding-inline: 6px;

}

.box_points:nth-child(2) {
    border-inline: 1px solid var(--border);
}

.img_point {

    border: 1px solid var(--text-secundary);
    padding: 12px;
    border-radius: 50%;

    background: linear-gradient(to left, var(--bg-2), var(--border));
}

.text_point {

    color: var(--tittle);
    font-family: var(--text-poppins);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    text-align: center;
}

.text_point p {
    font-family: var(--text-exo-2);
    color: var(--text-secundary);
    line-height: 1.2;
}

/* section about me */

.about_me {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;

    display: flex;
    padding: 1rem;

}

#img_about_me {
    position: absolute;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;

    z-index: -1;
}

.content_about_me {
    padding: 1rem;
    width: 50%;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}

.content_about_me p {
    color: var(--text-secundary);
    font-family: var(--text-exo-2);
    line-height: 1.2;

    font-size: 14px;
}

.content_about_me div a {
    text-decoration: none;

    border-radius: 12px;
    border: 1px solid var(--border);

    font-family: var(--text-poppins);
    color: var(--tittle);

    padding: 6px 12px;

    display: inline-flex;
    align-items: center;
    
    font-weight: 600;

    background: linear-gradient(to right, var(--bg-1), var(--border));
    
}

.content_about_me div a:hover {
    color: var(--orange-hover);
    background: linear-gradient(to right, var(--border), var(--bg-1));
}

/* Estilização do rodapé - antes do footer */

.rodape {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 1rem;

    background: linear-gradient(to right, var(--bg-1), var(--border));

    border-bottom: 1px solid var(--border);

}

.content_rodape {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.content_rodape p {
    color: var(--text-secundary);
    font-family: var(--text-exo-2);
}

.content_rodape a {
    text-decoration: none;
    color: var(--tittle);

    background-color: var(--orange-1);

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 10px 18px;
    font-family: var(--text-poppins);
    border-radius: 50px;
    font-weight: 600;

    box-shadow: 0px 10px 30px rgba(255, 116, 51, 0.6);

    animation: Up ;
}



.content_rodape a:hover {
    background-color: var(--orange-hover);

}

/* footer */

footer {
    padding: 1rem;

    background: linear-gradient(to right, var(--bg-1), var(--border));

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy_igor {
    font-family: var(--text-exo-2);
    color: var(--text-secundary);
}

.social_medias {
    display: flex;
    gap: 12px;
}

.social_medias a {
    text-decoration: none;
}

@media (max-width: 1020px) {

    /* section hero */
    .text_hero h1 {
        
        font-size: 50px;
        line-height: 1.2;
    }

    .text_hero p {
    
        font-size: 18px;
    }

    .button_hero a {
        width: 50%;
    }

    /* section my work */

    .item_project {
        width: 300px;
        height: 350px;
    }

    .img_project img {

        width: 220px;
        height: auto;
    }

    .content_project h3 {
        font-size: 18px;
    }
    
}

@media (max-width: 740px) {
    
    /* section hero */
    .text_hero h1 {
        
        font-size: 32px;
    }

    .text_hero p {
        font-size: 12px;
    }

    .list_hero {
        width: 100%;
        justify-content: space-around;
        align-items: center;
    }
    
    .button_hero a {
        width: 100%;
    }

    /* estilização do carrosel para mostrar os 3 cards de projetos */

    /* janela onde tem os 3 cards */
    .preview_projects {

        width: 100%;

        /* tudo que tiver fora da div fica escondido */
        overflow: hidden;
    }

    .projects {
        padding: 0;

        display: flex;
        justify-content: flex-start;

        gap: 0;
    /* 
        Quando alterarmos o transform pelo JS,
        o movimento acontecerá suavemente.
    */
        transition: transform 0.5s ease;
    }

    .item_project {
        /*
            flex: 0 0 100% significa:

            0    → não aumenta
            0    → não diminui
            100% → largura base de 100%
        */

        flex: 0 0 100%;

        /* 
            Impede que o flexbox diminua o card
            cada card terá exatamente 100% da largura da preview_projects 
        */
        width: 100%;

        display: flex;
        justify-content: center;
    }

    .project_card {
        width: 90%;
        height: 350px;
    }

    /* container das bolinhas */

    .indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }

    .indicator {
        width: 15px;
        height: 15px;

        padding: 0;
        border: none;
        border-radius: 50%;

        background-color: var(--tittle);

        cursor: pointer;

    }

    .indicator.active {
        background-color: var(--orange-1);
    }

    /* section - what I DO*/

    .what_I_Do {
        flex-direction: column;
    }

    .mobile {
        font-size: 26px;
    }

    .points {
        flex-direction: column;
    }

    .box_points {
        border: 1px solid var(--border);
        border-radius: 6px;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.8);
        padding: 6px;
    
    }

    /* section about me*/

    .about_me {
        height: 100dvh;
        overflow: visible;
        flex-direction: column;
    }

    .content_about_me {
        width: 100%;
        gap: 16px;
    }

    /* section rodapé - antes do footer */
    .h2_rodape {
        font-size: 24px;
    }

    .rodape p {
        font-size: 12px;
    }

    /* footer */
    footer {
        flex-direction: column;

        gap: 12px;
        
    }

    .copy_igor {
        font-size: 14px;
    }

    .social_medias {
        gap: 24px;
    }

}
