:root {
    --hue-color: 46;  /* #f1d67b; */

    /* Primárias */
    --first-color: hsl(var(--hue-color), 65%, 61%);        
    --first-color-second: hsl(var(--hue-color), 75%, 62%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);    
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%); 

    --white-color: #fff;

    /* Texto */
    --title-color: hsl(var(--hue-color), 8%, 15%);       
    --text-color: hsl(var(--hue-color), 8%, 45%);          
    --text-color-light: hsl(var(--hue-color), 8%, 65%);

    /* Fundo */
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 99%);
    --container-color: #ffffff;
    --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 90%);

    /* Fonte */
    --body-font: 'Poppins', sans-serif;

    /* Tamanho title */ 
    --header-height: 3rem;
    --big-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /* Peso */
    --font-medium: 500;
    --font-semi-bold: 600;

    /* Margens Bottom */
    --mb-0-25: .25rem;
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /* Ordem  de precedência*/
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

@media screen and (min-width: 968px) {
    :root {
        --big-font-size: 3rem; 
        --h1-font-size: 2.25rem;
        --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-left: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 0 var(--header-height) 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
}

h1, h2, h3, h4 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}
/* / Base */

/* Genérica */
.section {
    padding: 2rem 0 4rem;
}

.section-title {
    font-size: var(--h1-font-size);
}

.section-subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
}

.section-title,
.section-subtitle {
    text-align: center;
}
    
    /* Layout */
.container {
    max-width: 768px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

.grid {
    display: grid;
    gap: 1.5rem;
}
    /* / Layout */
/* / Genérica */

/* Dark Theme Color */
body.dark-theme {
    /* Primárias */
    --first-color-second: hsl(var(--hue-color), 30%, 8%);
    /* Texto */
    --title-color: hsl(var(--hue-color), 8%, 95%);       
    --text-color: hsl(var(--hue-color), 8%, 75%);          
    /* Fundo */
    --input-color: hsl(var(--hue-color), 29%, 16%);
    --body-color: hsl(var(--hue-color), 28%, 12%);
    --container-color: hsl(var(--hue-color), 29%, 16%);
    --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);
}
/* / Dark Theme Color */

/* Theme Drak */
.nav-btns  {
    display: flex;
    align-items: center;
}

.change-theme {
    font-size: 1.25rem;
    color: var(--title-color);
    margin-right: var(--mb-1);
    cursor: pointer;
}

.change-theme:hover {
    color: var(--first-color);
}
/* / Theme Drak */

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* / Logo */

/* Herder */
.header {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
}
/* / Herder */

/* Navbar */
.nav {
    max-width: 986px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo,
.nav-toggle {
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.nav-logo:hover {
    color: var(--first-color);
}

.nav-toggle {
    font-size: 1.1rem;
    cursor: pointer;
}

.nav-toggle:hover {
    color: var(--first-color);
}

@media screen and (max-width: 767px) {
    .nav-menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background-color: var(--body-color);
        padding: 2rem 1.5rem 4rem;
        box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
        border-radius: 1.0rem 1.0rem 0 0;
        transition: .3s;
    }
}

.nav-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.nav-link:hover {
    color: var(--first-color);
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-close {
    position: absolute;
    right: 1.3rem;
    bottom: .5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--first-color);
}

.nav-close:hover {
    color: var(--first-color-alt);
}

.show-menu {
    bottom: 0;
}
/* / Navbar */

/* Link ativo */
.active-link {
    color: var(--first-color);
}
/* / Link ativo */

/* Background Header */
.scroll-header {
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
}
/* / Background Header */

/* Home */
.home-container {
    gap: 1rem;
}

.home-content {
    grid-template-columns: .5fr 3fr;
    padding-top: 3.5rem;
    align-items: center;
}

.home-social {
    display: grid;
    grid-template-columns: max-content;
    row-gap: 1rem;
}

.home-social-icon {
    font-size: 1.25rem;
    color: var(--first-color);
}

.home-social-icon:hover {
    color: var(--first-color-alt);
}

.home-img {
    width: 200px;
}

.img-primary {
    width: 170px;
    mask-image: linear-gradient(to bottom, hsla(var(--hue-color), 65%, 61%) 60%, transparent 100%);
    border-radius: .3rem;
}

.home-data {
    grid-column: 1/3;
}

.home-title {
    font-size: var(--big-font-size);
}

.home-subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-75);
}

.home-description {
    margin-bottom: var(--mb-2);
}

.home-scroll {
    display: none
}

.home-scroll-button {
    color: var(--first-color);
    transition: .3s;
}

.home-scroll-button:hover {
    transform: translateY(.25rem);
}

.home-scroll-mouse {
    font-size: 2rem;
}

.home-scroll-name {
    font-size: var(--small-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-right: var(--mb-0-25);
}

.home-scroll-arrow {
    font-size: 1.25rem;
}
/* / Home */

/* Buttons */ 
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 1rem;
    border-radius: .5rem;
    font-weight: var(--font-semi-bold);
}

.button:hover {
    background-color: var(--first-color-alt);
}

.button-icon {
    font-size: 1.25rem;
    margin-left: var(--mb-0-5);
    transition: .3s;
}

.button-flex {
    display: inline-flex;
    align-items: center;
}

.button-samll {
    padding: .75rem 1rem;
}

.button-link {
    padding: 0;
    background-color: transparent;
    color: var(--first-color);
}

.button-link:hover {
    background-color: transparent;
    color: var(--first-color-alt);
}

.button-white {
    background-color: var(--white-color);
    color: var(--first-color);
}

.button-white:hover {
    background-color: var(--white-color);
}
/* / Buttons */ 

/* About */
.about-img {
    width: 200px;
    border-radius: 0.5rem;
    justify-self: center;
    align-self: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.about-description {
    text-align: justify;
    color: var(--title-color);
    margin-bottom: var(--mb-0-5);
}

.about-data {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    background-color: var(--container-color);
}
/* / About */

/* Services */
.services-container {
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.services-content {
    position: relative;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    background-color: var(--container-color);
    padding: 3.5rem .5rem 1.25rem 1.5rem;
    border-radius: .25rem;
    transition: .3s;
}

.services-content:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.services-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--first-color);
    margin-bottom: var(--mb-1);
}

.services-title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--mb-1);
    font-weight: var(--font-medium);
}

.services-button {
    cursor: pointer;
    font-size: var(--small-font-size);
}

.services-button:hover .button-icon {
    transform: translateX(.25rem);
}

.services-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: var(--z-modal);
    opacity: 0; 
    visibility: hidden;
    transition: .3s;
}

.services-modal-content {
    position: relative;
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: .5rem;
}

.services-modal-services {
    row-gap: 1rem;
}

.services-modal-service {
    display: flex;
}

.services-modal-title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1-5);
}

.services-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--first-color);
    cursor: pointer;
}

.services-modal-icon {
    color: var(--first-color);
    margin-right: var(--mb-0-25);
}

.active-modal {
    opacity: 1;
    visibility: visible;
}
/* / Services */

/* Project */
.project {
    text-align: center;
}

.project-bg {
    background-color: var(--first-color-second);
    padding-top: 3rem;
}

.project-title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-0-75);
}

.project-description {
    margin-bottom: var(--mb-1-5);
    font-weight: var(--font-semi-bold);
}

.project-title,
.project-description {
    color: var(--white-color);
}

.project-img {
    width: 232px;
    justify-self: center;
}
/* / Project */

/* Scroll UP */
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    opacity: .8;
    padding: .2rem .5rem;
    border-radius: .4rem;
    z-index: var(--z-tooltip);
    transition: .4s;
}

.scrollup:hover {
    background-color: var(--first-color-alt);
}

.scrollup-icon {
    font-size: 1.5rem;
    color: var(--white-color);
}
/* / Scroll UP */

/* Show Scroll */
.show-scroll {
    bottom: 5rem;
}
/* / Show Scroll */

/* Scroll bar */
::-webkit-scrollbar {
    width: .60rem;
    background-color: var(--scroll-bar-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb-color);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-color-light);
}
/* / Scroll bar*/

@media screen and (max-width: 350px){
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

    .nav-menu {
        padding: 2rem .25rem 4rem;
    }

    .nav-list {
        column-gap: 0;
    }

    .home-content {
        grid-template-columns: .25fr 3fr;
    }

    .home-img {
        width: 180px;
    }

    .services-container {
        grid-template-columns: max-content;
        justify-content: center;
    }

    .services-content {
        padding-right: 2.5rem;
    }

    .services-modal {
        padding: 0 .5rem;
    }

    .project-img {
        width: 200px;
    }
}

@media screen and (min-width: 568px) {
    .home-content {
        grid-template-columns: max-content 1fr 1fr;
    }

    .home-data {
        grid-column: initial;
    }

    .home-img {
        order: 1;
        justify-self: center;
    }

    .about-container,
    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .body {
        margin: 0;
    }

    .section {
        padding: 6rem 0 2rem;
    }

    .section-subtitle {
        margin-bottom: 4rem;
    }

    .header {
        top: 0;
        bottom: initial;
    }

    .header,
    .main {
        padding: 0 1rem;
    }

    .nav {
        height: calc(var(--header-height) + 1.5rem);
        column-gap: 1rem
        ;
    }

    .nav-icon,
    .nav-close,
    .nav-toggle {
        display: none;
    }

    .nav-list {
        display: flex;
        column-gap: 2rem;
    }

    .nav-menu {
        margin-left: auto;
    }

    .change-theme {
        margin: 0;
    }

    .home-container {
        row-gap: 5rem;
    }

    .home-content {
        padding-top: 5.5rem;
        column-gap: 2rem;
    }

    .home-scroll {
        display: block;
    }

    .home-scroll-button {
        margin-left: 3rem;
    }

    .about-container {
        column-gap: 5rem;
    }

    .home-img {
        width: 270px;
    }

    .about-img {
        width: 350px;
    }

    .about-description {
        justify-content: space-between;
    }

    .services-container {
        grid-template-columns: repeat(3, 218px);
        justify-content: center;
    }

    .services-icon {
        font-size: 2rem;
    }

    .services-content {
        padding: 6rem 0 2rem 2.5rem;
    }

    .services-modal-content {
        width: 450px;
    }

    .project {
        text-align: initial;
    }

    .project-bg {
        background: none;
    }

    .project-container {
        background-color: var(--first-color-second);
        border-radius: 1rem;
        padding: 3rem 2.5rem 0;
        grid-template-columns: 1fr max-content;
        column-gap: 3rem;
    }

    .project-data {
        padding-top: .8rem;
    }
}

@media screen and (min-width: 1024px){
    .header,
    .main {
        padding: 0;
    }

    .home-img {
        width: 320px;
    }

    .img-primary {
        width: 220px; 
    }

    .home-social {
        transform: translateX(-6rem);
    }

    .services-container {
        grid-template-columns: repeat(3, 238px);
    }
}