/* --------------------------------- *\
#style.css
\* --------------------------------- */



/* ---------------------------------- *\
copyright 2025 Fultho
\* ---------------------------------- */

@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter-VariableFont_opsz\,wght.ttf) format("truetype");
    font-weight: 100 900;
    font-style: normal;
}


/* CUSTOM PROPERTY */


:root {

    /* colors */

    --color-primary-off-white: #f6f6f6;
    --color-primary-gray: #222222;
    --color-white: #FFFFFF;
    --color-black: #000;
    --color-lightblue: #1d79cbff;
    --color-gray_nav: #5F6368;
    --color-blue_whenhover: #004888;
    --color-border-divisor: #DADCE0;
    /* --darkblue: #174f86ff; */
    
    
    /* TIPOGRAFIA */

    /* font-family */
    --font-primary: 'Inter';

    /* Font Size */
    --fs-base: 62.5%;
    --fs-label-medium: 1.5rem;
    --fs-body-medium: 1.6rem;

    --fs-title: 3.2rem;

    /* Line Height */
    --lh-label-medium: 20px;
    --lh-body-medium: 24px;
    

    --lh-title: 8px;

    /* Font-Weight */
    --weight-Bold: 700;
    --weight-Semibold: 600;
    --weight-Medium: 500;
    --weight-Regular: 400;

    /* Letter Spacing */
    --ls-small: 0.5px;

    /* Border Radius */
    --radius-circle:50%;
    --radius-full: 1000px;
    --radius-extra-large: 32px;

    /* Shadows */


    /* Transitions */
    --transition-easing-quick: cubic-bezier(0, 0.7, 0.3, 1);
    --transition-duration-quick: 200ms;
    --transition-duration-smooth: 500ms;
}

/****************************************\
                RESET
\****************************************/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;

}

li {    list-style: none;   }

a {
    color: inherit;
    text-decoration: none;
}

img {   height: auto;   }

a,
img,
span,
input,
select,
button {    display: block; }

button {    cursor: pointer;    }

button,
input,
select {
    background: none;
    border: none;
    font: inherit;
}

html {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
}

body {
    background-color: var(--color-primary-off-white);
    color: var(--color-primary-gray);
    font-size: var(--fs-body-medium);
    line-height: var(--lh-body-medium);
    /* line height faz muita diferença quando tem muito texto ou mesmo textos de 3,4 linhas. interfere também em menus de navegação como <nav> */
}

/****************************************\
                TIPOGRAFIA
\****************************************/

.body-medium {
    font-size: var(--fs-body-medium);
    line-height: var(--lh-body-medium);
    font-weight: var(--weight-Regular);
}

.label-medium {
    font-size: var(--fs-label-medium);
    line-height: var(--lh-label-medium);
    font-weight: var(--weight-Semibold);
}

.title {
    font-size: var(--fs-title);
    font-weight: var(--weight-Bold);
    line-height: var(--lh-title);
}

/****************************************\
                REUSED STYLE
\****************************************/

.container {
    padding-inline: 16px;
    max-width: 580px;
    width: 100%;
    margin-inline: auto;
}

.section {  padding-block-end: 60px;    }

.section-start {    padding-block-start: 120px;  }

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    width: 100vw;
}

.overlay.active {
    display: block;
}

/* 
.btn_inicial {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 62px;
    padding-inline: 24px;
    border-radius: var(--radius-full);
    max-width: max-content;
    transition: 0.3s;
} */


.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 54px;
    padding-inline: 28px;
    border-radius: var(--radius-full);
    max-width: max-content;
    transition: 0.3s;
    cursor: pointer;
}




.btn-fill-black {
    background-color: var(--color-primary-gray);
    color: var(--color-primary-off-white);
}

.btn-fill-black:where(:hover, :active, :focus, :focus-visible) {
    background-color: var(--color-black); 
    color: var(--color-white);  
}

.btn-fill-blue {
    background-color: var(--color-lightblue);
    color: var(--color-primary-off-white);
}

.btn-fill-blue:where(:hover, :active, :focus, :focus-visible) {
    background-color: var(--color-blue_whenhover); 
    color: var(--color-white);  
}

.btn-outline {
    color: var(--color-primary-gray);
    box-shadow: inset 0 0 0 0.5px var(--color-primary-gray);
}

.btn-outline:where(:hover, :active, :focus, :focus-visible) {
    color: var(--color-primary-off-white);
    background-color: var(--color-primary-gray);
}


/* verificar necessidade de colocar espaçamentos que são repetidos frequentemente (no início das sections, ou no meio etc)
ex: title-wrapper no projeto de aula
*/


/****************************************\
                HEADER
\****************************************/

.header {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;

    & .container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
    }
}

.menu-btn {
    width: 40px ;
    height: 32px;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;   

    & .bar {
        background-color: var(--color-primary-gray);
        display: block;
        width: 24px;
        height: 2.50px;
        border-radius: var(--radius-full);
        position: absolute;
        transition: transform 0.5s ease, top 0.5s ease, bottom 0.5s ease;
    }

    /* Posicionamento inicial das barras */

    & .top-bar {
        top: 10px;
    }

    & .bottom-bar {
        bottom: 10px;
    }

    /* Operação quanto estiver active */

}

.menu-btn.active .top-bar {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg)
}
.menu-btn.active .bottom-bar {
    bottom: 50%;
    transform: translateY(50%) rotate(45deg);
}

.sidebar {
    background-color: var(--color-primary-off-white);
    width: 80vw;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    right: -80vw;
    overflow-y: auto;
    transition: 0.4s;
    transition-property: right;

    padding-top: 70px;
    /* padding-top: 400px; */

    & .navbar-link { 
            color: var(--color-gray_nav); 
            line-height: 50px;
        }

        & .navbar-link:where(:hover, :active, :focus, :focus-visible) {
            border: 2px solid var(--color-lightblue);   
            border-radius: 0 32px 32px 0;
            color: var(--color-primary-gray);
    }

    & .sidebar-top {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    
        & .btn {
            min-width: 60%;
            margin: 0 auto;
        }
    
        & .material-symbols-rounded {
            color: inherit;
            font-size: 1.8rem;
            transition: 0.3s;
            margin-left: 4px;
        }

        & .circle {
            width: 60px;
            height: 60px;
            text-transform: uppercase;
            font-weight: var(--weight-Bold);
            color: var(--color-primary-off-white);
            border-radius: var(--radius-circle);
            background: var(--color-primary-gray);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        & p span {
            display: inline;
            text-transform: capitalize;
        }

        & .btn-meu-espaco {
            margin-top: 10px;
        }
    
    }

    & .sidebar-nav {
    
        .navbar-list {
            display: flex;
            flex-direction: column;
            padding: 10px 20px 20px;
            margin-top: 10px;
            border-block-start: 1px solid var(--color-border-divisor);

        }
    
    }
    
    & .sidebar-bottom {
        position: absolute;
        bottom: 100px;
        width: 100%;
        height: 100px;
        padding: 0px 20px;
    
        & .sair {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 4px;
        
            & .material-symbols-rounded {
                color: var(--color-primary-gray);
                font-size: 2rem;
            }
        }
    }

}

.sidebar.active {   right: 0;   }

/****************************************\
                HERO SECTION
\****************************************/

.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;

    & .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        gap: 26px;
        /* margin-bottom: 180px; */
        padding-bottom: 140px;
    }

    & h1 {
        max-width: 280px;
        text-align: center;
        font-size: 3.2rem;
        font-weight: var(--weight-Semibold);
        line-height: 5.4rem;
        
    }

    & a{
        font-weight: var(--weight-Medium);
        font-size: 1.4rem;
        border-block-end: 1px solid var(--color-primary-gray);
    }
}


/****************************************\
                RESUMO SECTION
\****************************************/

.resumo {

    & h2 {
        font-weight: var(--weight-Regular);
        color: #5F6368;
        font-size: 1.6rem;
        margin-bottom: 36px;
    }

    & p {
        font-weight: var(--weight-Semibold);
        font-size: 2.8rem;
        line-height: 4.6rem;
        text-align: left;
        margin-bottom: 62px;
    }

}

/***************************************\
            PROJETOS SECTION
\***************************************/

.projetos-content h3 {
    text-align: center;
    margin-bottom: 180px;
    font-size: 4rem;
    font-weight: var(--weight-Semibold);
}

.projetos .card {
    margin-bottom: 80px;
}

.img-holder {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 1px 20px 20px #7e7c7c;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.box {
    position: relative;
    height: 420px;
    width: 100%;
    background-color: #dddcdc;
    border-radius: var(--radius-extra-large);
}

.card-descricao {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 34px;
    gap: 34px;

}

.card-title {
    text-align: center;
    font-weight: var(--weight-Semibold);
    font-size: 2.8rem;
    letter-spacing: var(--ls-small);
    line-height: 4rem;
    word-wrap: break-word;
}

.projetos-content .card:nth-child(3) {
    & .box {    background-color: #f5bfd0;  }

    & .img-holder { box-shadow: 1px 20px 20px #f48fb1;  }
}


.projetos-content .card:nth-child(4) {
    & .box {    background-color: #64b6f7;  }

    & .img-holder { 
        box-shadow: 1px 20px 20px #114b7a;  
        aspect-ratio: auto;    
    }
}
