/* ========================================
   VARIÁVEIS CSS
======================================== */
:root {
    --color-black: #1a1a1a;
    --color-white: #ffffff;
    --color-gold: #FFD700; 
    --color-gold-dark: #DAA520; 
    --color-gray-text: #cccccc;
    --color-dark-transparent: rgba(22, 22, 22, 0.85); 
    --color-light-transparent: rgba(255, 255, 255, 0.1); 
}

/* ========================================
   RESET E BASE
======================================== */
body {
    margin: 0;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: var(--color-white);
    background-color: var(--color-black); 
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 20px; 
}

#particles-js {
    position: fixed; 
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    background-image: url('');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    z-index: 0; 
    pointer-events: all;
}

/* ========================================
   LAYOUT PRINCIPAL
======================================== */
.content {
    position: relative; 
    z-index: 1; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px; 
    box-sizing: border-box;
    pointer-events: none; 
}

.main-content {
    padding-top: 30px;
    padding-bottom: 30px;
}

.section {
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--color-gold);
}

/* ========================================
   HEADER E NAVEGAÇÃO
======================================== */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark-transparent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 100; 
    padding: 10px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto; 
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px; 
}

.site-title {
    font-size: 1.8em;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: bold;
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.site-title:hover {
    color: var(--color-gold-dark);
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-button {
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    pointer-events: auto; 
}

.nav-button:hover {
    background-color: var(--color-light-transparent);
    color: var(--color-gold);
}

.nav-button2{
    color: var(--color-black);
    background-color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    pointer-events: auto; 
}

.nav-button2:hover {
    background-color: var(--color-gold-dark);
    color: var(--color-dark-transparent);
}

/* ========================================
   ÍCONES DE CONTATO NO HEADER
======================================== */
.header-contact-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
    padding: 1px 10px;
    background-color: transparent;
    border: 2px solid var(--color-gold);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-contact-icons:hover {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.contact-icon-header {
    color: var(--color-gold);
    font-size: 1.2em;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 4px;
}

.contact-icon-header:hover {
    color: var(--color-white);
    transform: scale(1.1);
}

/* ========================================
   DROPDOWN DE IDIOMAS
======================================== */
.language-dropdown {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
    font-family: Arial, sans-serif;
}

.dropdown-btn {
    background-color: transparent;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border: 2px solid #FFD700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-btn:hover {
    background-color: rgba(255, 255, 0, 0.1);
}

.arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.rotate {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
    z-index: 9999;
    border: 1px solid #333;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #333;
}

.dropdown-content a:hover {
    background-color: #FFD700;
    color: #000000;
}

.show {
    display: block !important;
}

/* ========================================
   SEÇÃO HERO
======================================== */
.hero-section {
    text-align: center;
    padding-bottom: 20px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    position: relative;
    padding-bottom: 80px;
}

.greeting-text {
    font-size: 1.8em;
    color: var(--color-white);
    margin-bottom: -25px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.hand-emoji {
    width: 35px;
    height: auto;
    vertical-align: super;
    margin-left: 8px;
    animation: wave 2s infinite ease-in-out;
    transform-origin: 75% 75%;
}

@keyframes wave {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

.hero-section h1 {
    font-size: 4em;
    margin-bottom: 5px; 
    color: var(--color-white);
    font-weight: 700;
}

.hero-section .name {
    color: var(--color-gold);
}

.job-title {
    font-size: 1.5em;
    color: var(--color-gray-text);
    margin-bottom: 20px;
}

.social-links-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    pointer-events: auto;
}

.social-line {
    width: 60px;
    height: 2px;
    background-color: var(--color-gray-text);
    opacity: 0.6;
}

.social-icon-hero {
    color: var(--color-gold);
    font-size: 1.8em;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.social-icon-hero:hover {
    color: var(--color-gold-dark);
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
    pointer-events: auto; 
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5em;
    color: var(--color-gray-text);
    text-decoration: none;
    opacity: 0.8;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: auto;
}

.scroll-down-arrow:hover {
    opacity: 1;
    color: var(--color-gold-dark);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========================================
   CARDS E SEÇÕES
======================================== */
.section-card {
    background-color: var(--color-dark-transparent);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    pointer-events: auto;
}

.section-card p {
    font-size: 1.125em;
    color: var(--color-white);
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: justify;
    white-space: normal;
}

/* ========================================
   SEÇÃO SOBRE MIM
======================================== */
.about-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    padding: 20px;
    box-sizing: border-box;
    justify-content: center;
    background-color: var(--color-dark-transparent);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-text-card {
    flex: 1;
    padding: 20px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: none;
}

.about-text-card p {
    line-height: 1.7;
}

.about-text-card br {
    display: block !important;
    margin: 0.5em 0 !important;
    line-height: 1.7 !important;
    content: "" !important;
}

.about-text-card p br {
    display: block !important;
    margin: 0.5em 0 !important;
    line-height: 1.7 !important;
}

#about-text {
    white-space: pre-line !important;
    line-height: 1.7;
}

.section-card.about-text-card p#about-text br {
    display: block !important;
    margin: 0.5em 0 !important;
    line-height: 1.7 !important;
    content: "" !important;
}

.text-left-section p,
.text-flow-section p {
    font-size: 1.125em;
    color: var(--color-white);
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: justify;
}

.text-flow-section {
    margin-top: 15px;
}

.text-flow-section p:last-child {
    margin-bottom: 0;
}

.about-image-wrapper {
    flex: 0 0 300px;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.profile-photo {
    max-width: 100%;
    height: auto; 
    object-fit: contain;
    border: 5px solid var(--color-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.cv-button {
    display: none;
}

/* ========================================
   SEÇÃO DE HABILIDADES
======================================== */
.skills-section {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 20px;
    text-align: center;
}

.skills-section h3 {
    font-size: 3em;
    margin-bottom: 30px;
    color: var(--color-gold);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    background-color: var(--color-dark-transparent);
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.skill-title {
    margin: 0 0 12px 0;
    color: var(--color-gold);
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 10px; 
    border-radius: 9999px; 
    color: var(--color-white);
    font-weight: bold;
    font-size: 0.85em;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background-color: #3f51b5; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    filter: brightness(1.1);
}

.tag-javascript { background-color: #f7df1e; color: #333; } 
.tag-css3 { background-color: #2196f3; }
.tag-tailwind { background-color: #38b2ac; }
.tag-html5 { background-color: #ff5722; }
.tag-react { background-color: #61dafb; }
.tag-git { background-color: #f34f29; }
.tag-next { background-color: #000000; }
.tag-storybook { background-color: #ff4081; }
.tag-java { background-color: #f44336; }
.tag-python { background-color: #4caf50; }
.tag-node { background-color: #8bc34a; }
.tag-mysql { background-color: #03a9f4; }
.tag-mongodb { background-color: #4caf50; }
.tag-github { background-color: #333; }
.tag-aws { background-color: #ff9900; }
.tag-bootstrap { background-color: #7952b3; }
.tag-docker { background-color: #2496ed; }
.tag-maven { background-color: #c71a36; }
.tag-scrum { background-color: #3f51b5; }
.tag-kanban { background-color: #009688; }
.tag-english { background-color: #00247d; }
.tag-spanish { background-color: #c60b1e; } 
.tag-portuguese { background-color: #008000; }

/* ========================================
   SEÇÃO DE TECNOLOGIAS
======================================== */
.tech-skills-section {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background-color: var(--color-dark-transparent);
    margin-bottom: 60px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.tech-icons-container {
    width: 100%;
}

.tech-icons-track {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
    will-change: transform;
    pointer-events: auto;
}

.tech-icons-track:hover {
    animation-play-state: paused;
}

.tech-icon{
    display: inline-block;
    color: var(--color-white);
    font-size: 3em;
    margin: 0 25px;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.tech-icon-img {
    display: inline-block;
    color: var(--color-white);
    margin: 0 25px;
    vertical-align: middle;
    height: 3em; 
    filter: 
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)) 
        brightness(0) invert(1);
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.tech-icon:hover,
.tech-icon-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px currentColor);
}

.tech-icon.fa-java:hover {
    color: #f44336;
}

.tech-icon.fa-js-square:hover {
    color: #f7df1e;
}

.tech-icon.fa-html5:hover {
    color: #ff5722;
}

.tech-icon.fa-css3-alt:hover {
    color: #2196f3;
}

.tech-icon-img[alt="Spring Boot"]:hover {
    filter: 
        drop-shadow(0 0 10px #6db33f) 
        brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.tech-icon.fa-react:hover {
    color: #61dafb;
}

.tech-icon-img[alt="Tailwind CSS"]:hover {
    filter: 
        drop-shadow(0 0 10px #06b6d4) 
        brightness(0) saturate(100%) invert(70%) sepia(95%) saturate(2000%) hue-rotate(180deg) brightness(100%) contrast(100%);
}

.tech-icon.fa-bootstrap:hover {
    color: #7952b3;
}

.tech-icon.fa-python:hover {
    color: #3776ab;
}

.tech-icon-img[alt="MySQL"]:hover {
    filter: 
        drop-shadow(0 0 10px #f29111) 
        brightness(0) saturate(100%) invert(60%) sepia(95%) saturate(2000%) hue-rotate(20deg) brightness(100%) contrast(100%);
}

.tech-icon-img[alt="MongoDB"]:hover {
    filter: 
        drop-shadow(0 0 10px #47a248) 
        brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.tech-icon.fa-node-js:hover {
    color: #339933;
}

.tech-icon.fa-git-alt:hover {
    color: #f05032;
}

.tech-icon.fa-github:hover {
    color: #333;
}

.tech-icon.fa-aws:hover {
    color: #ff9900;
}

.tech-icon.fa-docker:hover {
    color: #2496ed;
}

.tech-icon-img[alt="Maven"]:hover {
    filter: 
        drop-shadow(0 0 10px #c71a36) 
        brightness(0) saturate(100%) invert(20%) sepia(95%) saturate(2000%) hue-rotate(320deg) brightness(100%) contrast(100%);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* ========================================
   SEÇÃO DE PROJETOS
======================================== */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--color-black));
    pointer-events: none;
    opacity: 1;
    z-index: 0;
}

.project-grid.expanded::after {
    display: none;
}

.project-item {
    background-color: var(--color-dark-transparent);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    pointer-events: auto;
    width: 100%;
    max-width: 700px;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-item h3 {
    font-size: 1.875em;
    margin-bottom: 8px;
    color: var(--color-gold);
}

.project-item p {
    color: var(--color-gray-text);
    margin-bottom: 10px;
}

.project-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.project-link:hover {
    color: var(--color-gold-dark);
    text-decoration: underline;
}

.more-projects {
    margin-top: 30px;
    text-align: center;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 18px rgba(218, 165, 32, 0.35);
    border: 1px solid rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-github:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 22px rgba(218, 165, 32, 0.45);
}

.btn-github .fa-github {
    font-size: 1.2em;
}

/* ========================================
   SEÇÃO DE CERTIFICADOS
======================================== */
.certify-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.certify-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, var(--color-black));
    pointer-events: none;
    opacity: 1;
    z-index: 0;
}

.certify-grid.expanded::after {
    display: none;
}

.certify-item {
    background-color: var(--color-dark-transparent);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    pointer-events: auto;
    flex: 1 1 280px;
    max-width: 350px;
}

.certify-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.certify-item h3 {
    font-size: 1.5em;
    margin-bottom: 8px;
    color: var(--color-gold);
}

.certify-item p {
    color: var(--color-gray-text);
    margin-bottom: 10px;
    font-size: 0.95em;
}

.certify-item .project-link { 
    font-size: 0.9em; 
}

/* ========================================
   SEÇÃO DE CONTATO
======================================== */
.contato-section {
    padding: 60px 0;
    text-align: center;
}

.contato-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--color-dark-transparent);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.contato-card h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--color-gold);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.contato-subtext {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-gray-text);
}

.contato-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.contato-item {
    display: flex;
    align-items: center;
}

.contato-icon {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-right: 10px;
    transition: transform 0.2s ease-in-out;
}

.contato-link {
    color: var(--color-gray-text);
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.2s ease-in-out;
}

.contato-item:hover .contato-icon {
    transform: scale(1.1);
    color: var(--color-white);
}

.contato-item:hover .contato-link {
    color: var(--color-white);
}

/* ========================================
   FORMULÁRIO DE CONTATO
======================================== */
.contato-form {
    max-width: 500px;
    margin: 40px auto 0;
    padding: 40px;
    background-color: var(--color-dark-transparent);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.contato-form h3 {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--color-gold);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contato-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.contato-form input::placeholder,
.contato-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.contato-form input:valid,
.contato-form textarea:valid {
    border-color: rgba(76, 175, 80, 0.5);
    background-color: rgba(76, 175, 80, 0.05);
}

.contato-form input:invalid:not(:placeholder-shown),
.contato-form textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(244, 67, 54, 0.5);
    background-color: rgba(244, 67, 54, 0.05);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contato-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.contato-form button {
    background: var(--color-gold);
    color: var(--color-black);
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contato-form button:hover {
    background: var(--color-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.contato-form button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.2);
}

.contato-form button:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contato-form button:disabled:hover {
    background: #666;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contato-form button.loading {
    background: #ffa500;
    color: var(--color-black);
    cursor: wait;
}

.contato-form button.loading .btn-text {
    opacity: 0;
}

.contato-form button.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid var(--color-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.contato-form button .send-icon {
    font-size: 1em;
    transition: transform 0.2s ease;
}

.contato-form button:hover .send-icon {
    transform: translateX(2px);
}

.contato-form button.loading .send-icon {
    display: none;
}

.contato-form .btn-text {
    display: inline-block;
    transition: opacity 0.3s ease;
    font-weight: 700;
}

.form-message {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-gold);
    font-weight: 500;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--color-white);
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: rgba(76, 175, 80, 0.5);
    background-color: rgba(76, 175, 80, 0.05);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(244, 67, 54, 0.5);
    background-color: rgba(244, 67, 54, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.5;
}

.submit-btn {
    background: linear-gradient(135deg, var(--color-gold) 0%, #ffed4e 100%);
    color: var(--color-black);
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ffed4e 0%, var(--color-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled:hover {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn.loading {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    position: relative;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--color-black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   ACORDEÃO
======================================== */
.accordion-toggle {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    cursor: pointer;
    color: var(--color-white);
    font-size: 2em;
    transition: transform 0.4s ease, color 0.3s ease;
    padding: 10px;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.accordion-toggle:hover {
    color: var(--color-gold-dark);
    transform: scale(1.15);
}

.accordion-toggle.expanded {
    transform: rotate(180deg);
}

.project-grid {
    max-height: 400px;
    transition: max-height 0.6s ease;
    overflow: hidden;
}

.certify-grid {
    max-height: 400px;
    transition: max-height 0.6s ease;
    overflow: hidden;
}

.project-grid.expanded, .certify-grid.expanded {
    max-height: 3000px;
}

/* ========================================
   MEDIA QUERIES - RESPONSIVIDADE
======================================== */

@media (max-width: 1024px) {
    .language-dropdown {
        margin-right: 15px;
    }
    
    .header-contact-icons {
        margin-right: 15px;
        gap: 12px;
        padding: 6px 12px;
    }
    
    .contact-icon-header {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .fixed-nav {
        flex-direction: row;
        padding: 8px 0;
        align-items: center;
    }
    
    .nav-inner {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    
    .site-title {
        font-size: 1.4em;
        margin-bottom: 0;
    }
    
    .main-nav {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-button {
        padding: 6px 8px;
        font-size: 0.9em;
        text-align: center;
    }
    
    .nav-button2 {
        padding: 6px 8px;
        font-size: 0.9em;
    }
    
    .main-nav .nav-button:not(.nav-button2) {
        display: none;
    }
    
    .main-nav .nav-button2 {
        display: inline-block;
    }
    
    .language-dropdown {
        position: relative;
        margin: 0px auto 0;
        align-self: center;
    }
    
    .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
        min-width: 160px;
    }
    
    .header-contact-icons {
        margin-right: 10px;
        gap: 10px;
        padding: 1px 8px;
    }
    
    .contact-icon-header {
        font-size: 1em;
    }
    
    .hero-section {
        padding-top: 30px;
        padding-bottom: 10px;
    }
    
    .hero-section h1 {
        font-size: 3em;
    }
    
    .greeting-text, .job-title {
        font-size: 1.2em;
    }
    
    .hand-emoji {
        width: 30px;
    }
    
    .social-links-hero {
        margin-top: 15px;
        gap: 10px;
    }
    
    .social-line {
        width: 40px;
    }
    
    .social-icon-hero {
        font-size: 1.5em;
    }
    
    .scroll-down-arrow {
        font-size: 2em;
        bottom: 20px;
    }
    
    .section h2 {
        font-size: 2.2em;
    }
    
    .section-card, .project-item {
        padding: 20px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tech-icons-track {
        align-items: center;
        margin-bottom: -70px;
    }
    
    .tech-skills-section {
        padding: 20px 0;
    }
    
    .tech-icon {
        font-size: 2.2em;
        margin: 0 15px;
        height: 2.2em;
    }
    
    .tech-icon-img {
        padding: 0;
        margin: 0 15px;
        height: 2.2em;
        vertical-align: top;
        display: inline-block;
        line-height: 0;
    }

    .skills-section h3 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    
    .about-content-wrapper {
        display: flex;
        flex-direction: row;
        gap: 15px;
        padding: 20px;
        align-items: flex-start;
        flex-wrap: nowrap;
    }
    
    .about-text-card {
        flex: 1 1 70%;
        padding: 0;
        width: 100%;
        max-width: 700px;
        padding-right: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .text-left-section {
        width: 320px;
        margin-bottom: 15px;
    }
    
    .text-left-section p {
        font-size: 1.125em;
        line-height: 1.7;
        margin-left: 100px;
        margin-bottom: 10px;
        text-align: justify;
        width: 100%;
    }
    
    .text-flow-section {
        width: 550px;
        margin-top: -10px;
        margin-left: 100px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
    }
    
    .text-flow-section p {
        position: relative;
        display: block;
        font-size: 1.125em;
        line-height: 1.7;
        margin-bottom: 15px;
        text-align: justify;
        width: 100%;
        max-width: none;
        padding-right: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .text-flow-section p:last-child {
        margin-bottom: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .about-image-wrapper {
        flex: 0 0 180px;
        padding: 0;
        align-self: flex-start;
    }
    
    .profile-photo {
        margin-left: -200px;
        margin-top: 25px;
        width: 180px;
        height: auto;
        border: 3px solid var(--color-gold);
        object-fit: contain;
    }
    
    .about-content-wrapper .cv-button {
        display: none;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }
    
    .fixed-nav {
        padding: 5px 0;
    }
    
    .nav-inner {
        flex-direction: row;
        gap: 10px;
        padding: 0 5px;
        align-items: center;
        justify-content: space-between;
    }
    
    .site-title {
        font-size: 1.2em;
        margin: 0;
        flex-shrink: 0;
        margin-left: 20px;
    }
    
    .main-nav {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        flex: 1;
    }
    
    .header-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    
    
    .nav-button2 {
        padding: 2px 10px;
        padding-bottom: 10px;
        font-size: 13px;
        height: auto;
        min-height: 10px;
        max-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin:10px;
        text-align: center;
    }
    
    .language-dropdown {
        margin: 0;
    }
    
    .dropdown-btn {
        padding: 6px 10px;
        font-size: 13px;
        height: auto;
        min-height: 43px;
        margin-right: 20px;
    }
    
    .dropdown-btn img {
        width: 28px;
        height: 24px;
        margin-right: 0;
    }
    
    .dropdown-content {
        min-width: 140px;
    }
    
    .dropdown-content a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .header-contact-icons {
        display: none;
    }
    
    .contact-icon-header {
        font-size: 0.9em;
    }
    
    .hero-section {
        padding-top: 20px;
        padding-bottom: 5px;
    }
    
    .hero-section h1 {
        font-size: 2.5em;
    }
    
    .greeting-text, .job-title {
        font-size: 1em;
    }
    
    .hand-emoji {
        width: 25px;
    }
    
    .social-links-hero {
        margin-top: 10px;
        gap: 8px;
    }
    
    .social-line {
        width: 30px;
    }
    
    .social-icon-hero {
        font-size: 1.2em;
    }
    
    .scroll-down-arrow {
        font-size: 1.8em;
        bottom: 15px;
    }
    
    .tech-skills-section {
        padding: 10px 0;
    }
    
    .tech-icon {
        font-size: 1.8em;
        margin: 2px 10px;
        height: 1.8em;
    }
    
    .tech-icon-img {
        padding: 0px;
        font-size: 1.8em;
        margin: 0 4px;
        height: 1.0em;
        vertical-align: top;
        display: inline-block;
        line-height: 0;
    }
    
    .tag {
        font-size: 0.8em;
        padding: 2px 6px;
        margin: 1px 2px;
    }
    
    .about-content-wrapper {
        display: flex;
        flex-direction: row;
        gap: 15px;
        margin-bottom: 30px;
        padding: 20px;
        align-items: flex-start;
        flex-wrap: nowrap;
    }
    
    .about-text-card {
        flex: 1 1 70%;
        padding: 0;
        font-size: 0.9em;
        text-align: justify;
        width: 100%;
        max-width: 400px;
        padding-right: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .text-left-section {
        width: 85%;
        margin-bottom: 10px;
    }
    
    .text-left-section p {
        font-size: 1.125em;
        line-height: 1.7;
        margin-bottom: 15px;
        margin-left: 10px;
        text-align: justify;
        width: 100%;
    }
    
    .text-flow-section {
        width: 150%;
        margin-left: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
    }
    
    .text-flow-section p {
        font-size: 1.125em;
        line-height: 1.7;
        margin-bottom: 15px;
        text-align: justify;
        width: 100%;
        max-width: none;
        padding-right: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .text-flow-section p:last-child {
        margin-bottom: 0;
    }
    
    .about-image-wrapper {
        flex: 0 0 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        align-self: flex-start;
    }
    
    .about-image-wrapper .cv-button {
        display: none;
    }
    
    .profile-photo {
        width: 120px;
        height: 220px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid var(--color-gold);
        margin-top: 50px;
        margin-right: -180px;
    }
    
    .about-content-wrapper .cv-button {
        display: none;
    }
    
    .project-grid {
        padding: 10px;
    }
    #contact-main-title {
        text-align: center;
        
    }
}

@media (max-width: 320px) {
    .nav-button2 {
        display: none !important;
    }
    
    .dropdown-btn {
        padding: 5px 8px;
        font-size: 12px;
        height: auto;
        min-height: 28px;
    }
    
    .dropdown-btn img {
        width: 20px;
        height: 15px;
        margin-right: 0;
    }
    
    
    .header-contact-icons {
        padding: 3px 6px;
    }
    
    .contact-icon-header {
        font-size: 0.8em;
    }
    
    .hand-emoji {
        width: 20px;
    }
    
    .greeting-text {
        font-size: 0.9em;
    }
    
    .hero-section h1 {
        font-size: 2em;
    }
    
    .tech-icon {
        font-size: 1.5em;
        margin: 0 8px;
        height: 1.5em;
    }
    
    .tech-icon-img {
        font-size: 1.5em;
        margin: 0 8px;
        height: 1.0em;
        vertical-align: top;
        display: inline-block;
        line-height: 0;
    }
    
    .about-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        padding: 15px 10px;
        align-items: center;
    }
    
    .about-text-card {
        flex: 1 1 100%;
        padding: 0;
        font-size: 0.8em;
        text-align: justify;
        width: 100%;
        max-width: none;
        padding-right: 0;
        margin-right: 0;
        box-sizing: border-box;
        line-height: 1.5;
    }
    
    .text-left-section {
        width: 100%;
        margin-bottom: 2px;
    }
    
    .text-left-section p {
        font-size: 0.9em;
        line-height: 1.5;
        margin-bottom: 2px;
        margin-left: 2px;
        text-align: justify;
        width: 100%;
    }
    
    .text-flow-section {
        width: 100%;
        margin-top: 2px;
        margin-left: 2px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-right: 0;
        margin-right: 0;
    }
    
    .text-flow-section p {
        font-size: 0.9em;
        line-height: 1.5;
        margin-bottom: 10px;
        text-align: justify;
        width: 100%;
        max-width: none;
        padding-right: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .text-flow-section p:last-child {
        margin-bottom: 0;
    }
    
    .about-image-wrapper {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin: 10px auto;
        width: 100%;
        max-width: 120px;
    }
    
    .profile-photo {
        width: 200px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid var(--color-gold);
        margin: 10px auto;
        display: block;
        max-width: 100%;
        height: auto;
    }
    

}
 