/* Variáveis CSS */
:root {
    /* Cores do tema escuro (padrão) */
    --primary-color: #6c63ff;
    --secondary-color: #f50057;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --surface-color-light: #2d2d2d;
    --text-color: #f4f4f4;
    --text-color-secondary: #b3b3b3;
    --border-color: #333;
    --success-color: #4CAF50;
    --danger-color: #dc3545;
    --transition: all 0.3s ease;
    --card-bg: #1e1e1e;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(18, 18, 18, 0.95);
    --footer-bg: #0a0a0a;
    --input-bg: #2d2d2d;
    --input-border: #444;
}

/* Tema claro (quando ativado via JavaScript) */
:root.light-theme {
    --background-color: #ffffff;
    --surface-color: #f4f4f4;
    --surface-color-light: #e9e9e9;
    --text-color: #2c2c2c;
    --text-color-secondary: #666;
    --border-color: #ddd;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #2c2c2c;
    --input-bg: #ffffff;
    --input-border: #ddd;
}

/* Reset e Estilos Básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #5a52d5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

/* Botão Download CV - Extra Chamativo */
.btn-download-cv {
    background: linear-gradient(135deg, #6c63ff 0%, #f50057 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    animation: pulse-cv 2s ease-in-out infinite;
}

.btn-download-cv i {
    margin-right: 8px;
    animation: bounce-icon 1.5s ease-in-out infinite;
}

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

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

.btn-download-cv:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(245, 0, 87, 0.5);
    animation: none;
}

@keyframes pulse-cv {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(245, 0, 87, 0.6);
    }
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Header e Navegação */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn__burger {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
}

/* Botão de alternar tema */
.theme-toggle {
    margin-right: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Elementos de fundo animados (estilo DIO.me) */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(108, 99, 255, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(245, 0, 87, 0.15), transparent 50%);
    z-index: -1;
}

/* Seção Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: shapeFloat 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background-color: var(--secondary-color);
    animation-delay: 5s;
}

.shape-3 {
    top: 50%;
    right: 20%;
    width: 200px;
    height: 200px;
    background-color: #00bcd4;
    animation-delay: 10s;
}

.shape-4 {
    bottom: 30%;
    left: 30%;
    width: 250px;
    height: 250px;
    background-color: #ff9800;
    animation-delay: 15s;
}

@keyframes shapeFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
    100% {
        transform: translateY(30px) scale(0.9);
    }
}

.hero-content {
    max-width: 800px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-color-secondary);
}

.highlight {
    color: var(--primary-color);
}

.hero-btns {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-btns .btn {
    margin-right: 0;
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-color);
    color: var(--text-color);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Seção Sobre */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--primary-color);
    margin: 0 auto;
    border-radius: 5px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    z-index: -1;
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
    z-index: -1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 30px;
    color: var(--text-color-secondary);
    text-align: justify;
}

.skills {
    margin-bottom: 30px;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: var(--surface-color-light);
    border-radius: 10px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    position: relative;
    animation: skill-animation 1.5s ease-in-out;
}

@keyframes skill-animation {
    from {
        width: 0;
    }
}

/* Seção Projetos */
.projects {
    background-color: var(--surface-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--card-bg);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-color);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    transform: translateY(0); /* Garante que o texto sempre esteja visível */
    transition: var(--transition);
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-color-secondary);
    margin-bottom: 15px;
    text-align: justify;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background-color: var(--surface-color-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

.projects-btn {
    text-align: center;
}

/* Seção Contato */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Página de Agradecimento */
.thank-you {
    padding: 150px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.thank-you i {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.thank-you h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.thank-you p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color-secondary);
}

.thank-you .btn {
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-info .social-icons {
    margin-top: 30px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--input-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Language Selector */
.language-selector {
    margin-right: 1rem;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 0.5rem 1rem;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-selector select option {
    background: #333;
    color: white;
    padding: 0.5rem;
}

/* Responsividade */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-btn {
        display: block;
        position: relative;
        z-index: 1000;
    }
    
    .menu-btn.open .menu-btn__burger {
        background: transparent;
    }
    
    .menu-btn.open .menu-btn__burger::before {
        transform: rotate(45deg);
    }
    
    .menu-btn.open .menu-btn__burger::after {
        transform: rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para telas grandes com zoom 100% */
@media screen and (min-width: 1200px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero-content {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        order: -1;
        margin-right: 0;
        margin-left: auto;
        margin-right: 1rem;
    }
}