/* ================ Google FONTES ================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500;600&display=swap');

/* ================  VARIABLES CSS ================ */
:root {
    --header-height: 3.5rem;

    /* ====== COLORS ====== */
    --first-hue: 207;
    --sat: 90%;
    --lig: 72%;
    --second-hue: 219; 

    --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
    --first-color-alt: hsl(var(--first-hue), var(--sat), 68%);
    --title-color: hsl(var(--second-hue), 15%, 95%);
    --text-color: hsl(var(--second-hue), 8%, 75%);
    --text-color-light: hsl(var(--second-hue), 4%, 55%);
    --body-color: hsl(var(--second-hue), 48%, 8%);
    --container-color: hsl(var(--second-hue), 32%, 12%);

    /* ====== Font and typography ====== */
    /* .5rem == 8px | 1rem == 16px*/
    --body-font: "Montserrat Alternates", sans-serif;
    --biggest-font-size: 1.75rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
    --tiny-font-size: .625rem;

    /* ====== Font Weight ====== */
    --font-medium: 500;
    --font-semibold: 600;

    /* ====== Z index ====== */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 2.5rem;
        --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: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body, button, input, textarea {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body {
    background-color: var(--body-color);
    color:var(--text-color);
    transition: .4s;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

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

/* ================ REUSABLE CSS CLASSES ================ */
.container {
    max-width: 968px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.main {
    overflow: hidden;
}

.section {
    padding: 4.5rem 0 1rem ;
}

.section-title,
.section-subtitle {
    text-align: center;
}

.section-title {
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-bottom: 2rem;
}

.section-subtitle {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

/* ================ HEADER & NAV ================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: .4s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--first-color);
    font-weight: var(--font-medium);
    transition: .4s;
}

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

.nav-menu {
    position: fixed;
    bottom: 1rem;
    background-color: hsla(var(--second-hue), 32%, 16%, .8);    
    width: 90%;
    border-radius: 4rem;
    padding: 1rem 2.25rem;
    backdrop-filter: blur(10px);
    transition: .4s;
}

.nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-size: 1.25rem;
    padding: .4rem;
    display: flex;
    border-radius: 5rem;
}

/* Active link */
.active-link {
    background: linear-gradient(
        180deg,
        hsla(var(--first-hue), var(--sat), var(--lig), 1),
        hsla(var(--first-hue), var(--sat), var(--lig), .2)
    );
    box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), .4);

    color: var(--title-color);
}

/* ================ HOME ================ */
.home-container {
    position: relative;
    row-gap: 4.5rem;
    padding-top: 2rem;
}

.home-data {
    text-align: center;
}

.home-greeting, 
.home-education {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
}

.home-greeting {
    display: block;
    color: var(--title-color);
    margin-bottom: .25rem;
}

.home-education {
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.home-name {
    font-size: var(--biggest-font-size);
}

.home-img {
    /* 160px*/
    width: 190px; 
}

.home-handle {
    justify-self: center;
    width: 190px;
    height: 293px;
    background: linear-gradient(
        180deg,
        hsla(var(--first-hue), var(--sat), var(--lig), 1),
        hsla(var(--first-hue), var(--sat), var(--lig), .2)
    );
    border-radius: 10rem 10rem 1rem 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.home-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.home-social,
.home-scroll {
    position: absolute;
}

.home-social {
    bottom: 5rem;
    left: 0;
    display: grid;
    row-gap: .5rem;
}

.home-social-link {
    width: max-content;
    background-color: var(--container-color);
    color: var(--first-color);
    padding: .25rem;
    border-radius: .25rem;
    display: flex;
    font-size: 1rem;
    transition: .4s;
}

.home-social-link:hover {
    background-color: var(--first-color);
    color: #fff;
}

.home-social::after {
    content: '';
    width: 32px;
    height: 2px;
    background-color: var(--first-color);
   transform: rotate(90deg) translate(16px, 3px);
}

.home-scroll {
    color: var(--first-color);
    right: -1.5rem;
    bottom: 4rem;
    display: grid;
    row-gap: 2.25rem;
    justify-items: center;
}

.home-scroll-icon {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.home-scroll-name {
    font-size: var(--small-font-size);
    transform: rotate(-90deg);
}

/* ================ BUTTONS ================ */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: .75rem 1rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .4s;
}

.button-gost {
    background-color: transparent;
    border: 2px solid var(--first-color);
    color: var(--first-color);
}

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

/* ================ ABOUT ================ */
.about-container {
    row-gap: 2.5rem;
}

.about-img {
    width: 220px;
}

.home-handle-about {
    justify-self: center;
    width: 220px;
    height: 253px;
    background: linear-gradient(
        180deg,
        hsla(var(--first-hue), var(--sat), var(--lig), 1),
        hsla(var(--first-hue), var(--sat), var(--lig), .2)
    );
    border-radius: 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.about-data {
    text-align: center;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-bottom: 2rem;
}

.about-box {
    background-color: var(--container-color);
    border-radius: .75rem;
    padding: .75rem .5rem;
}

.about-icon {
    font-size: 1.5rem;
    color: var(--first-color);
    margin-bottom: .5rem;
}

.about-title {
    font-size: var(--small-font-size);
}

.about-subtitle {
    font-size: var(--tiny-font-size);
}

.about-description {
    margin-bottom: 2rem;
}

/* Change background header */
.scroll-header {
    box-shadow: 0 4px 4px hsla(0, 0%, 4%, .3);
}

/* ================ SKILLS ================ */
.skills-container {
    row-gap: 2rem;
    /*remover*/
    padding-top: 1rem;
}

.skills-content {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1.25rem;
    margin-top: 1rem;
}

.skills-title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--first-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.skills-box {
    display: flex;
    justify-content: center;
    column-gap: 2.5rem;
}

.skills-group {
    display: grid;
    align-content: flex-start;
    row-gap: 1rem;
}

.skills-data {
    display: flex;
    column-gap: .5rem;
}

.skills .ri-verified-badge-fill {
    font-size: 1rem;
    color: var(--first-color);
}

.skills-name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    line-height: 18px;
}

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

.services-card {
    background-color: var(--container-color);
    padding: 3rem 1.5rem 1.5rem;
    border-radius: 1rem;
}

.service-title{
    font-size: var(--h3-font-size);
    margin-bottom: 2.5rem;
}

.services-button {
    color: var(--first-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    column-gap: .25rem;
    cursor: pointer;
}

.services-button:hover .ri-arrow-right-line {
    transform: translateX(.25rem);
}

.ri-arrow-right-line {
    font-size: 1rem;
    transition: .4s;
}

/* Services Modal */
.services-modal {
    position: fixed;
    inset: 0;
    background-color: hsla(var(--second-hue), 28%, 16%, .7);
    padding: 2rem 1rem;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    transition: .4s;
    z-index: var(--z-modal);
}

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

.services-modal-title,
.services-modal-description {
    text-align: center;
}

.services-modal-title {
    font-size: var(--h3-font-size);
    color: var(--first-color);
    margin-bottom: 1rem;
}

.services-modal-description {
    font-size: var(--small-font-size);
    margin-bottom: 2rem;
}

.services-modal-list {
    display: grid;
    row-gap: .75rem;
}

.services-modal-item {
    display: flex;
    align-items: flex-start;
    column-gap: .5rem;
}

.services-modal-icon {
    font-size: 1.1rem;
    color: var(--first-color);
}

.services-modal-info {
    font-size: var(--small-font-size);
}

.services-modal-info a{
    color: var(--first-color);
}

.services-modal-info a:hover{
    color: #fff;
}

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

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

/* ================ CONTACT ================ */
.contact-container {
    row-gap: 3rem;
    padding-bottom: 3rem;
}

.contact-title {
    text-align: center;
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-card {
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: .75rem;
    text-align: center;
}

.contact-card-icon {
    font-size: 2rem;
    color:  var(--title-color);
    margin-bottom: .25rem;
}

.contact-card-title,
.contact-card-data {
    font-size: var(--small-font-size);
}

.contact-card-title {
    font-weight: var(--font-medium);
}
.contact-card-data {
    display: block;
    margin-bottom: 0.75rem;
}

.contact-button {
    color: var(--first-color);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: .25rem;
}

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

.contact-button-icon {
    font-size: 1rem;
    transition: .4s;
}

.contact-form-div {
    position: relative;
    margin-bottom: 2rem;
    height: 4rem;
}

.contact-form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-color-light);
    background: none;
    color: var(--text-color);
    outline: none;
    padding: 1.5rem;
    border-radius: .75rem;
    z-index: 1;
}

.contact-form-tag {
    position: absolute;
    top: -.75rem;
    left: 1.25rem;
    font-size: var(--smaller-font-size);
    padding: .25rem;
    background-color: var(--body-color);
    z-index: 10;
}

.contact-form-area {
    height: 11rem;
}

.contact-form-area textarea {
    resize: none;
}

/* ================ FOOTER ================ */
.footer {
    background-color: var(--first-color);  
}

.footer-container {
    padding: 2rem 0 6rem;
}

.footer-title,
.footer-link {
    color: var(--body-color);
}

.footer-title {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-list {
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    column-gap: 1.25rem;
}

.footer-social-link {
    background-color: var(--body-color);
    color: var(--first-color);
    padding: .25rem;
    border-radius: .25rem;
    font-size: 1rem;
    display: inline-flex;
}

.footer-copy {
    display: block;
    margin-top: 4.5rem;
    color: var(--container-color);
    text-align: center;
    font-size: var(--smaller-font-size);
}

/* ================ SCROLL BAR ================ */
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(var(--second-hue), 8%, 38%);
}

::-webkit-scrollbar-thumb {
    background-color: hsl(var(--second-hue), 8%, 26%);
    border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--second-hue), 8%, 20%);
}

/* ================ THEME ================ */
.change-theme {
    font-size: 1.25rem;
    cursor: pointer;
    transition: .3s;
}

.change-theme:hover {
    color: var(--first-color);
}

/* ================ Variables Light Theme ================ */
body.light-theme {
    --title-color: hsl(var(--second-hue), 15%, 15%);
    --text-color: hsl(var(--second-hue), 8%, 35%);
    --body-color: hsl(var(--second-hue), 100%, 99%);
    --container-color: #fff;
}

.light-theme .scroll-header {
    box-shadow: 0 2px 4px hsla(0, 0%, 1%, .1);
}

.light-theme .nav-menu {
    background-color: hsla(var(--second-hue), 32%, 80%, .8);
}

.light-theme .section-subtitle {
    color: var(--text-color);
}

.light-theme .home-social-link {
    box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, .5);
}

.light-theme .home-social::after,
.light-theme .footer-social-link {
    background-color: var(--text-color);
}

.light-theme .home-social-link,
.light-theme .home-scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .footer-title,
.light-theme .footer-link,
.light-theme .footer-copy {
    color: var(--title-color);
}

.light-theme .about-box {
    box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, .2);
}

.light-theme .skills-content,
.light-theme .services-card,
.light-theme .contact-card {
    box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, .2);
}

.light-theme::-webkit-scrollbar {
    background-color: hsl(var(--second-hue), 8%, 66%);
}

.light-theme::-webkit-scrollbar-thumb {
    background-color: hsl(var(--second-hue), 8%, 66%);
}

.light-theme::-webkit-scrollbar-thumb:hover {
    background-color: hsl(var(--second-hue), 8%, 44%);
}

/* ================ RESPONSIBLE ================ */
@media screen and (max-width: 320px) {
    .nav-menu {
        padding: 1rem 1.5rem;
    }

    .home-buttons {
        flex-direction: column;
    }

    .home-handle {
        width: 150px;
        height: 253px;
    }

    .home-img {
        width: 130px;
    }

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

    .skills-box {
        column-gap: 1rem;
    }

    .skills-name {
        font-size: var(--small-font-size);
    }

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

/* Médio */
@media screen and (min-width: 576px) {
    .nav-menu {
        width: 328px;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .about-info {
        grid-template-columns: repeat(3, 140px);
        justify-content: center;
    }

    .about-description {
        padding: 0 5rem;
    }

    .skills-container {
        justify-content: center;
    }

    .skills-content {
        padding: 2rem 4rem;
    }

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

    .services-modal-content {
        width: 500px;
        padding: 4.5rem 2.5rem 2.5rem;
    }

    .services-modal-description {
        padding: 0 3.5rem;
    }

    .contact-info {
        grid-template-columns: 380px;
        justify-content: center;
    }

    .contact-form {
        width: 360px;
        margin: 0 auto;
    }
}

/* Desktop */
@media screen and (min-width: 767px) {
    .contact-container {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        column-gap: 3rem;
    }
}

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

    .section {
        padding: 6.5rem 0 1rem;
    }

    .section-title {
        margin-bottom: 3.5rem;
    }

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

    .home-handle {
        width: 290px;
        height: 400px;
    }    

    .home-img {
        width: 280px;
    }

    .home-social-link {
        padding: .4rem;
        font-size: 1.25rem;
    }

    .home-social::after {
        transform: rotate(90deg) translate(16px, 0);
    }

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

    .about-container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        column-gap: 4rem;
    }

    .home-handle-about {
        width: 350px;
        height: 403px;
    }

    .about-img {
        width: 350px;
    }

    .about-data {
        text-align: initial;
    }

    .about-info {
        justify-content: initial;
    }

    .about-box {
        text-align: center;
        padding: 1rem 1.25rem;
    }

    .about-description {
        padding: 0 4rem 0 0;
        margin-bottom: 2.5rem;
    }

    .skills-container {
        grid-template-columns: repeat(2, 350px);
        column-gap: 3rem;
    }

    .services-container {
        grid-template-columns: repeat(3, 192px);
        column-gap: 3rem;
    }

    .services-card {
        padding: 3.5rem 2rem 1.5rem;
    }

    .contact-container {
        column-gap: 6rem;
    }

    .footer-social-link {
        font-size: 1.5rem;
        padding: .4rem;
        border-radius: .5rem;
    }
}