/* UPGRADE: Otimização de estilos para imagem de automação e modal responsivo em mobile */

/*==================== GOOGLE FONTS =====================*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

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

    /*========== Colors ==========*/
    --hue-color: 195; /* HSL color mode */

    /* Primary Colors */
    --first-color: hsl(var(--hue-color), 100%, 50%);
    --first-color-second: hsl(var(--hue-color), 69%, 61%);
    --first-color-alt: hsl(var(--hue-color), 57%, 53%);
    --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
    
    /* Text Colors */
    --title-color: hsl(var(--hue-color), 8%, 95%);
    --text-color: hsl(var(--hue-color), 8%, 75%);
    --text-color-light: hsl(var(--hue-color), 8%, 65%);
    
    /* Background Colors */
    --input-color: hsl(var(--hue-color), 70%, 96%);
    --body-color: hsl(var(--hue-color), 60%, 4%);
    --container-color: hsl(var(--hue-color), 29%, 8%);
    
    /* Scroll Colors */
    --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
    --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);

    /*========== Font and typography ==========*/
    --body-font: 'Inter', sans-serif;
    --title-font: 'Poppins', sans-serif;

    /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
    --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;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;

    /*========== Margenes Bottom ==========*/
    /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
    --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;

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

/* Font size for large devices */
@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: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: calc(var(--header-height) + 1rem) 0 0 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);
    font-family: var(--title-font);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

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

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
    padding: 2rem 0 4rem;
}

.section#home {
    padding-top: calc(var(--header-height) + 2rem);
}

.section__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    text-align: center;
    margin-bottom: var(--mb-0-25);
}

.section__subtitle {
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-3);
    text-align: center;
    color: var(--text-color-light);
}

.container {
    max-width: 768px;
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
}

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

/*==================== HEADER ====================*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
    border-bottom: 1px solid var(--container-color);
}

/*==================== NAV ====================*/
.nav {
    max-width: 1200px;
    height: calc(var(--header-height) + 1rem);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.nav__content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-link {
    text-decoration: none;
}

.nav__logo-text {
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav__logo-link:hover .nav__logo-text {
    color: var(--first-color-alt);
}

/* Menu Desktop */
.nav__desktop {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__item {
    margin: 0;
}

.nav__link {
    display: flex;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 0.5rem 0;
}

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

.nav__icon {
    font-size: 1.2rem;
}

/* Menu Mobile - Estilo Hamburgueria */
.nav__mobile {
    display: none;
    cursor: pointer;
}

.nav__mobile h3 {
    cursor: pointer;
    color: var(--first-color);
    font-size: 1.8rem;
    margin: 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__mobile h3:hover {
    color: var(--first-color-alt);
}

.nav__mobile-menu {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    top: calc(var(--header-height) + 1rem);
    background-color: var(--body-color);
    border-top: 2px solid var(--container-color);
    list-style-type: none;
    z-index: 1000;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.nav__mobile-menu.show-menu {
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav__mobile-menu .nav__item {
    padding: 15px 0;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__mobile-menu .nav__item:last-child {
    border-bottom: none;
}

.nav__mobile-menu .nav__link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: var(--font-medium);
    font-size: var(--normal-font-size);
    display: block;
    padding: 10px 0;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.nav__mobile-menu .nav__link:hover {
    color: var(--first-color);
    background-color: var(--container-color);
    padding-left: 20px;
}

.nav__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--container-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav__social:hover {
    background-color: var(--first-color);
    color: #fff;
    transform: translateY(-2px);
}

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

/* Change background header */
.scroll-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    border-bottom: 1px solid var(--container-color);
}

/*==================== HOME ====================*/
.home__container {
    gap: 1rem;
}

.home__content {
    grid-template-columns: .5fr 3fr;
    padding-top: 1rem;
    align-items: center;
}

.home__data {
    grid-column: 1/3;
}

.home__title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-0-25);
}

.home__title-color {
    color: var(--first-color);
}

.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);
    line-height: 1.6;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home__img {
    order: 1;
    justify-self: center;
}

.home__blob {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--first-color), var(--first-color-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.home__blob-img {
    width: 170px;
    height: 170px;
    background-color: var(--container-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home__icon {
    font-size: 3rem;
    color: var(--first-color);
}

.home__scroll {
    display: none;
}

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

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

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

.home__scroll-arrow {
    font-size: 1.25rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/*==================== BUTTONS ====================*/
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem;
    border-radius: .5rem;
    font-weight: var(--font-medium);
    transition: .3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-2px);
}

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

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

.button--outline:hover {
    background-color: var(--first-color);
    color: #fff;
}

.button--small {
    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);
}

/*==================== ABOUT ====================*/
.about__img {
    width: 200px;
    border-radius: .5rem;
    justify-self: center;
    align-self: center;
}

.about__blob {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--first-color-lighter), var(--first-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__blob-img {
    width: 170px;
    height: 170px;
    background-color: var(--container-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__icon {
    font-size: 3rem;
    color: var(--first-color);
}

.about__description {
    text-align: center;
    margin-bottom: var(--mb-2-5);
    line-height: 1.6;
}

.about__info {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2-5);
    flex-wrap: wrap;
    gap: 1rem;
}

.about__info-title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

.about__info-name {
    font-size: var(--smaller-font-size);
}

.about__info-title,
.about__info-name {
    display: block;
    text-align: center;
}

/* Special styling for freelancer availability */
.about__info div:last-child .about__info-title {
    color: var(--first-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.about__buttons {
    display: flex;
    justify-content: center;
}

/*==================== SKILLS SECTION ====================*/
.skills__container {
    row-gap: 0;
}

.skills__header {
    display: flex;
    align-items: center;
    margin-bottom: var(--mb-2-5);
    cursor: pointer;
}

.skills__icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-right: var(--mb-0-75);
}

.skills__title {
    font-size: var(--h3-font-size);
}

.skills__subtitle {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.skills__arrow {
    margin-left: auto;
    transition: .4s;
}

.skills__list {
    row-gap: 1.5rem;
    padding-left: 2.7rem;
}

.skills__titles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--mb-1);
    padding: 0.75rem;
    background-color: var(--container-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.skills__titles:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.skills__name {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
}

.skills__description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.6;
    margin-top: var(--mb-0-5);
    padding: var(--mb-0-75);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    border-left: 3px solid var(--first-color);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.skills__description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skills__description:hover::before {
    transform: translateX(100%);
}

.skills__description:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.08));
}

/*==================== SKILLS DESCRIPTION STYLES ====================*/

/* Estilo especial para React e Next.js */
.skills__description--react {
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.15), rgba(97, 218, 251, 0.08));
    border-left-color: #61dafb;
    box-shadow: 0 2px 8px rgba(97, 218, 251, 0.15);
}

.skills__description--react:hover {
    box-shadow: 0 4px 16px rgba(97, 218, 251, 0.25);
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.2), rgba(97, 218, 251, 0.12));
}

/* Efeito de destaque para React e Next.js */
.skills__description--react::after {
    display: none;
}

.skills__description--react:hover::after {
    display: none;
}

/* Estilos para TypeScript */
.skills__description--typescript {
    background: linear-gradient(135deg, rgba(49, 120, 198, 0.15), rgba(49, 120, 198, 0.08));
    border-left-color: #3178c6;
    box-shadow: 0 2px 8px rgba(49, 120, 198, 0.15);
}

.skills__description--typescript:hover {
    box-shadow: 0 4px 16px rgba(49, 120, 198, 0.25);
    background: linear-gradient(135deg, rgba(49, 120, 198, 0.2), rgba(49, 120, 198, 0.12));
}

.skills__description--typescript::after {
    content: 'TS';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #3178c6;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.skills__description--typescript:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Estilos para Tailwind CSS */
.skills__description--tailwind {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.08));
    border-left-color: #06b6d4;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.skills__description--tailwind:hover {
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.12));
}

.skills__description--tailwind::after {
    content: '💨';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.skills__description--tailwind:hover::after {
    opacity: 1;
    transform: scale(1.1) rotate(-10deg);
}

/* Animação de entrada para as descrições */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.skills__description {
    animation: slideInFromLeft 0.6s ease-out;
}

/* Destaque para palavras-chave na descrição */
.skills__description strong,
.skills__description em {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.skills__description--react strong,
.skills__description--react em {
    color: #61dafb;
    text-shadow: 0 0 8px rgba(97, 218, 251, 0.4);
}

.skills__description--typescript strong,
.skills__description--typescript em {
    color: #3178c6;
    text-shadow: 0 0 8px rgba(49, 120, 198, 0.4);
}

.skills__description--tailwind strong,
.skills__description--tailwind em {
    color: #06b6d4;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}



/* Estilos para níveis de experiência */
.skills__level {
    color: var(--title-color);
    font-weight: var(--font-medium);
    font-size: var(--smaller-font-size);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: var(--first-color-lighter);
    color: var(--first-color);
}

.skills__level.advanced {
    background-color: #10b981;
    color: white;
}

.skills__level.intermediate {
    background-color: #f59e0b;
    color: white;
}

.skills__level.developing {
    background-color: #6366f1;
    color: white;
    animation: pulse-developing 2s infinite;
}

@keyframes pulse-developing {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.skills__close .skills__list {
    height: 0;
    overflow: hidden;
}

.skills__open .skills__list {
    height: max-content;
    margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
    transform: rotate(-180deg);
}

/*==================== PROJECTS ====================*/
.projects__container {
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.projects__content:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
    transform: translateY(-5px);
}

.projects__img {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, var(--first-color), var(--first-color-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mb-1);
}

.projects__icon {
    font-size: 2rem;
    color: #fff;
}

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

.projects__description {
    margin-bottom: var(--mb-1-5);
    line-height: 1.6;
}

.projects__technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--mb-1-5);
}

.projects__tech {
    background-color: var(--first-color-lighter);
    color: var(--first-color-alt);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
}

.projects__buttons {
    display: flex;
    gap: 1rem;
}

/* Ajustes específicos para a seção Automação - melhorar visualização em mobile */
#automacao .projects__content > div {
    padding: 0 1rem;
}

#automacao .projects__content img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    object-fit: cover;
}

@media screen and (max-width: 600px) {
    #automacao .projects__content {
        padding: 1.25rem 0.75rem;
    }

    #automacao .projects__content > div {
        padding: 0 0.75rem;
    }

    #automacao .projects__content img {
        border-radius: 8px;
    }
}

/* Modal de imagem: estilos gerais e comportamento full-screen em mobile */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#imageModal.show {
    display: block;
}

#imageModalImg {
    display: block;
    width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

#imageModalClose {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background 0.3s ease;
}

#imageModalClose:hover {
    background: rgba(255,255,255,0.2);
}

@media screen and (max-width: 600px) {
    #imageModalImg {
        width: 100vw;
        max-width: 100vw;
        height: auto;
        margin: 20px 0;
        border-radius: 0;
    }

    #imageModalClose {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 28px;
        background: rgba(0,0,0,0.6);
    }
}

/*==================== IMPROVED PROJECTS ====================*/
.projects__content {
    position: relative;
    background-color: var(--container-color);
    padding: 3.5rem .5rem 1.25rem 1.5rem;
    border-radius: .25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
    transition: .3s;
    border: 1px solid transparent;
}

.projects__content:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-8px);
    border-color: var(--first-color-lighter);
}

.projects__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--first-color), var(--first-color-alt));
    border-radius: .25rem .25rem 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.projects__content:hover::before {
    opacity: 1;
}

.projects__img {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, var(--first-color), var(--first-color-alt));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--mb-1);
    transition: all 0.3s ease;
}

.projects__content:hover .projects__img {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.projects__icon {
    font-size: 2rem;
    color: #fff;
}

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

.projects__description {
    margin-bottom: var(--mb-1-5);
    line-height: 1.6;
    color: var(--text-color);
}

.projects__technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--mb-1-5);
}

.projects__tech {
    background: linear-gradient(135deg, var(--first-color-lighter), var(--first-color));
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.projects__tech:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.projects__buttons {
    display: flex;
    gap: 1rem;
}

.projects__buttons .button {
    transition: all 0.3s ease;
}

.projects__buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/*==================== FOOTER ====================*/
.footer {
    background-color: var(--body-color);
    border-top: 1px solid var(--container-color);
    padding: 1rem 0;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
}

.footer__logo-text {
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: var(--first-color);
    letter-spacing: 1px;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__link {
    color: var(--text-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.footer__socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--container-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__social:hover {
    background-color: var(--first-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer__copy {
    color: var(--text-color-light);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/*========== SCROLL UP ==========*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -20%;
    background-color: var(--first-color);
    opacity: .8;
    padding: 0 .3rem;
    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: #fff;
}

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

/*========== 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);
}

/*==================== CONTACT ====================*/
.contact__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 6rem;
    padding-bottom: 3rem;
}

.contact__title {
    text-align: center;
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-1-5);
    color: var(--title-color);
}

.contact__info {
    display: grid;
    row-gap: 1rem;
    grid-template-columns: 300px;
}

.contact__card {
    background-color: var(--container-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact__card:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transform: translateY(-5px);
    border-color: var(--first-color);
    background-color: hsl(var(--hue-color), 29%, 12%);
}

.contact__card-icon {
    font-size: 2rem;
    color: var(--first-color);
    margin-bottom: var(--mb-0-25);
}

.contact__card-title {
    font-weight: var(--font-medium);
    margin-bottom: var(--mb-0-5);
    color: var(--title-color);
}

.contact__card-data {
    font-size: var(--small-font-size);
    display: block;
    margin-bottom: var(--mb-0-75);
    color: var(--text-color);
}

.contact__form {
    width: 360px;
}

.contact__form-div {
    position: relative;
    margin-bottom: var(--mb-2);
    height: 4rem;
}

.contact__form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: var(--container-color);
    color: var(--text-color);
    outline: none;
    border-radius: 0.75rem;
    padding: 1.5rem;
    z-index: 1;
    transition: all 0.3s ease;
    font-family: var(--body-font);
}

.contact__form-input::placeholder {
    color: var(--text-color-light);
    opacity: 0.7;
}

.contact__form-tag {
    position: absolute;
    top: -0.75rem;
    left: 1.25rem;
    font-size: var(--smaller-font-size);
    padding: 0.25rem 0.5rem;
    background-color: var(--body-color);
    z-index: 10;
    color: var(--first-color);
    font-weight: var(--font-medium);
    border-radius: 0.25rem;
}

.contact__form-area {
    height: 11rem;
}

.contact__form-area textarea {
    resize: none;
    padding-top: 1.5rem;
    line-height: 1.5;
}

.contact__form-area textarea::placeholder {
    color: var(--text-color-light);
    opacity: 0.7;
}

.contact__form-input:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.4);
    background-color: hsl(var(--hue-color), 29%, 10%);
}

.contact__form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: hsl(var(--hue-color), 29%, 10%);
}

.contact__form-input.error {
    border-color: #EB2D2D !important;
    box-shadow: 0 0 5px rgba(235, 45, 45, 0.3);
}

.contact__form-input.error:focus {
    border-color: #EB2D2D !important;
    box-shadow: 0 0 8px rgba(235, 45, 45, 0.4);
}

.contact__status-message {
    margin-top: 1rem;
    font-weight: var(--font-semi-bold);
    text-align: center;
    font-size: var(--small-font-size);
    min-height: 1.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--container-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact__status-message.success {
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
    background-color: rgba(76, 175, 80, 0.1);
}

.contact__status-message.error {
    color: #EB2D2D;
    border-color: rgba(235, 45, 45, 0.3);
    background-color: rgba(235, 45, 45, 0.1);
}

.contact__status-message.info {
    color: var(--first-color);
    border-color: rgba(0, 123, 255, 0.3);
    background-color: rgba(0, 123, 255, 0.1);
}

.error-message {
    color: #EB2D2D;
    font-size: var(--smaller-font-size);
    display: block;
    margin-top: 0.5rem;
    font-weight: var(--font-medium);
    padding-left: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.contact__form-input[type="tel"] {
    font-family: monospace;
    letter-spacing: 1px;
}

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

.contact__form .button {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    font-size: var(--normal-font-size);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.contact__form .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background-color: var(--first-color-alt);
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
    .container {
        margin-left: var(--mb-1);
        margin-right: var(--mb-1);
    }

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

    .nav__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .nav__logo {
        flex: 1;
    }

    .nav__logo-text {
        font-size: var(--h3-font-size);
    }

    .nav__desktop {
        display: none;
    }

    .nav__mobile {
        display: block;
        order: 3;
    }

    .nav__mobile-menu {
        display: block;
    }

    .nav__socials {
        display: none;
    }

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

    .home__blob {
        width: 180px;
        height: 180px;
    }

    .home__blob-img {
        width: 150px;
        height: 150px;
    }

    .about__info {
        flex-direction: column;
        row-gap: 1rem;
    }

    .skills__title {
        font-size: var(--normal-font-size);
    }

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

    .projects__content {
        padding-right: 3.5rem;
    }

    .footer__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer__links {
        gap: 1.5rem;
    }

    .footer__social {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .contact__container {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .contact__info {
        justify-content: center;
    }

    .contact__form {
        width: 100%;
    }
}

/* For small-medium devices */
@media screen and (min-width: 400px) and (max-width: 767px) {
    .nav__mobile-menu .nav__link {
        padding: 12px 0;
    }
    
    .contact__container {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 2rem;
    }
    
    .contact__info {
        justify-content: center;
    }
    
    .contact__form {
        width: 100%;
    }
}

/* Menu mobile para telas menores que 900px (mesma lógica hamburgueria) */
@media screen and (max-width: 900px) {
    .nav__desktop {
        display: none;
    }

    .nav__mobile {
        display: block;
    }

    .nav__mobile-menu {
        display: block;
    }
    
    /* Garantir que contato fique em coluna no mobile */
    .contact__container {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 2rem;
    }
    
    .contact__info {
        justify-content: center;
    }
    
    .contact__form {
        width: 100%;
    }
}

/* For medium devices */
@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,
    .skills__container,
    .projects__container,
    .footer__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,
    .footer__container {
        padding: 0 1rem;
    }

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

    .nav__content {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav__desktop {
        display: flex;
    }

    .nav__mobile {
        display: none;
    }

    .nav__mobile-menu {
        display: none !important;
    }

    .nav__socials {
        display: flex;
    }

    .change-theme {
        margin: 0;
    }

    .home__container {
        row-gap: 5rem;
    }

    .home__content {
        padding-top: 2rem;
        column-gap: 2rem;
    }

    .home__blob {
        width: 270px;
        height: 270px;
    }

    .home__blob-img {
        width: 240px;
        height: 240px;
    }

    .home__scroll {
        display: block;
    }

    .home__scroll-button {
        margin-left: 3rem;
    }

    .about__container {
        column-gap: 5rem;
    }

    .about__img {
        width: 350px;
    }

    .about__description {
        text-align: initial;
    }

    .about__info {
        justify-content: space-between;
    }

    .about__buttons {
        justify-content: initial;
    }

    .projects__img {
        width: 320px;
    }

    .projects__content {
        align-items: center;
    }

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer__links {
        gap: 2rem;
    }
    
    /* Contato volta para 2 colunas em telas maiores */
    .contact__container {
        grid-template-columns: repeat(2, max-content);
        column-gap: 4rem;
    }
    
    .contact__form {
        width: 360px;
    }
}

/* For large devices */
@media screen and (min-width: 1024px) {
    .header,
    .main,
    .footer__container {
        padding: 0;
    }

    .home__blob {
        width: 320px;
        height: 320px;
    }

    .home__blob-img {
        width: 290px;
        height: 290px;
    }

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

    .projects__container {
        gap: 3rem;
    }

    .projects__content {
        padding: 5rem 2rem 2rem 2.5rem;
    }

    .projects__icon {
        font-size: 3.5rem;
    }

    .contact__container {
        column-gap: 6rem;
    }

    .contact__form {
        width: 460px;
    }

    .contact__info {
        grid-template-columns: 300px;
    }

    .footer__container {
        padding: 0 2rem;
    }

    .footer__content {
        gap: 2rem;
    }

    .footer__links {
        gap: 2.5rem;
    }
}

