* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cor-primaria: #00d4ff;
    --cor-secundaria: #ff6b6b;
    --fundo-escuro: #1a1a1a;
    --fundo-card: #2a2a2a;
    --texto-claro: white;
    --texto-escuro: #333;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: var(--fundo-escuro);
    color: var(--texto-claro);
    transition: background-color 0.3s, color 0.3s;
}

/* ========== NAVBAR ==========*/
.navbar {
    background: var(--fundo-card);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--cor-primaria);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--texto-claro);
    text-decoration: none;
    transition: color 0.3s;
}

ion-icon {
    font-size: 24px;
}

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

/* ========== HERO SECTION ========== */
.hero {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content {
    animation: fadeIn 1s;
}

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

.avatar-container {
    margin-bottom: 30px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--cor-primaria);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s;
}

.avatar:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--cor-primaria);
}

.hero-subtitle {
    font-size: 24px;
    color: #aaa;
    margin-bottom: 30px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag {
    background: var(--fundo-card);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--cor-primaria);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cor-primaria), #0099cc);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--cor-primaria);
    color: var(--fundo-escuro);
}

/* ========== TIMELINE ========== */
.sobre-resumo {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.sobre-resumo h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--cor-primaria);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateY(-5%);
    width: 4px;
    height: 100%;
    background: var(--cor-primaria);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--cor-primaria);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
    z-index: 2;
    margin: 0 20px;
}

.timeline-content {
    background: var(--fundo-card);
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    max-width: 45%;
}

.timeline-content h3 {
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

/* ========== STATS ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.stat-card {
    background: var(--fundo-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid var(--cor-primaria);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--cor-primaria);
}

.stat-label {
    font-size: 16px;
    color: #aaa;
    margin-top: 10px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    text-align: center;
    max-width: 800px;
    margin: 80px auto;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 20px;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #aaa;
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

/* ========== BOTÃO DE TEMA ========== */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cor-primaria);
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 999;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
}

/* ========== MODO CLARO ========== */
body.modo-claro {
    background-color: #f4f4f4;
    color: var(--texto-escuro);
}

body.modo-claro .navbar,
body.modo-claro .stat-card,
body.modo-claro .timeline-content,
body.modo-claro .tag {
    background: white;
    color: var(--texto-escuro);
}

body.modo-claro .nav-links a {
    color: var(--texto-escuro);
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-content {
        max-width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ========== PÁGINA SOBRE ========== */
h1 {
    color: var(--cor-primaria);
    border-bottom: 3px solid var(--cor-primaria);
    padding-bottom: 10px;
    margin: 30px 0;
}

h2 {
    color: var(--cor-secundaria);
    margin-top: 40px;
    margin-bottom: 20px;
}

ul {
    background: var(--fundo-card);
    padding: 20px 40px;
    border-radius: 10px;
    border-left: 4px solid var(--cor-primaria);
    margin: 20px 0;
    color: white;
}

li {
    margin: 15px 0;
    line-height: 1.8;
}

nav {
    margin-bottom: 30px;
    padding: 15px;
    background: var(--fundo-card);
    border-radius: 10px;
    text-align: center;
}

nav a {
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: underline;
}

p {
    background: var(--fundo-card);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    line-height: 1.8;
}

/* ========== PÁGINA CONTATO ========== */
.container-contato {
    max-width: 600px;
    margin: 40px auto;
}

.form-contato {
    background: var(--fundo-card);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--cor-primaria);
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--cor-primaria);
    font-weight: bold;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #3a3a3a;
    border-radius: 5px;
    background: var(--fundo-escuro);
    color: white;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

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

.btn-enviar {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--cor-primaria), #0099cc);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-enviar:active {
    transform: translateY(0);
}

.mensagem-sucesso {
    background: #2ecc71;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
    animation: surgir 0.5s;
}

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

/* ========== REDES SOCIAIS ========== */
.redes-sociais {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--fundo-card);
    border-radius: 10px;
}

.redes-sociais h2 {
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 12px 25px;
    background: #3a3a3a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
}

.social-btn:hover {
    background: var(--cor-primaria);
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* ========== AJUSTES GERAIS ========== */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== PÁGINA DE PROJETOS ========== */
.projetos-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.projetos-header h1 {
    font-size: 48px;
    color: var(--cor-primaria);
    margin-bottom: 20px;
    border: none;
}

.projetos-intro {
    font-size: 20px;
    color: #aaa;
    line-height: 1.8;
    background: transparent;
    padding: 0;
}

.projetos-grip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.projetos-card {
    background: var(--fundo-card);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.projetos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2s);
    border-color: var(--cor-primaria);
}

.projeto-em-breve {
    opacity: 0.7;
}

.projeto-em-breve:hover {
    opacity: 1;
}

.projeto-thumbnail {
    background: linear-gradient(135deg, var(--cor-primaria), #0099cc);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto-icon {
    font-size: 80px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3s));
}

.projeto-content {
    padding: 25px;
}

.projeto-content h3 {
    color: var(--cor-primaria);
    font-size: 24px;
    margin-bottom: 15px;
}

.projeto-descricao {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
}

.projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--cor-primaria);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid var(--cor-primaria);
}

.projeto-links {
    display: flex;
    gap: 10px;
}

.btn-projeto {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-demo {
    background: var(--cor-primaria);
    color: var(--fundo-escuro);
}

.btn-demo:hover {
    background: #00b8e6;
    transform: scale(1.05);
}

.btn-codigo {
    background: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
}

.btn-codigo:hover {
    background: var(--cor-primaria);
    color: var(--fundo-escuro);
}

.projeto-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.status-concluido {
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

.status-desenvolvimento {
    background: rgba(255, 193, 7, 0.9);
    color: black;
}

.status-planejado {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

/* ========== PÁGINA DE PROJETOS ========== */
.projetos-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.projetos-header h1 {
    font-size: 48px;
    color: var(--cor-primaria);
    margin-bottom: 20px;
    border: none;
}

.projetos-intro {
    font-size: 20px;
    color: #aaa;
    line-height: 1.8;
    background: transparent;
    padding: 0;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.projeto-card {
    background: var(--fundo-card);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    border-color: var(--cor-primaria);
}

.projeto-em-breve {
    opacity: 0.7;
}

.projeto-em-breve:hover {
    opacity: 1;
}

.projeto-thumbnail {
    background: linear-gradient(135deg, var(--cor-primaria), #0099cc);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto-icon {
    font-size: 80px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.projeto-content {
    padding: 25px;
}

.projeto-content h3 {
    color: var(--cor-primaria);
    font-size: 24px;
    margin-bottom: 15px;
}

.projeto-descricao {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
    background: transparent;
    padding: 0;
}

.projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.2);
    color: var(--cor-primaria);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid var(--cor-primaria);
}

.projeto-links {
    display: flex;
    gap: 10px;
}

.btn-projeto {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-demo {
    background: var(--cor-primaria);
    color: var(--fundo-escuro);
}

.btn-demo:hover {
    background: #00b8e6;
    transform: scale(1.05);
}

.btn-codigo {
    background: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
}

.btn-codigo:hover {
    background: var(--cor-primaria);
    color: var(--fundo-escuro);
}

.projeto-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.status-concluido {
    background: rgba(46, 204, 113, 0.9);
    color: white;
}

.status-desenvolvimento {
    background: rgba(255, 193, 7, 0.9);
    color: black;
}

.status-planejado {
    background: rgba(108, 117, 125, 0.9);
    color: white;
}

/* ========== RESPONSIVO PROJETOS ========== */
@media (max-width: 768px) {
    .projetos-grid {
        grid-template-columns: 1fr;
    }
    
    .projetos-header h1 {
        font-size: 32px;
    }
}

/* ========== BOTÃO TOGGLE ========== */
.btn-toggle {
    margin: 20px 0;
    padding: 12px 25px;
    background: var(--cor-primaria);
    color: var(--fundo-escuro);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-toggle:active {
    transform: translateY(0);
}

/* Animação suave ao esconder/mostrar */
#secaoHabilidades {
    transition: all 0.3s;
    overflow: hidden;
}

#secaoHabilidades.escondido {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Animação suave ao esconder/mostrar */
#secaoExperiencias {
    transition: all 0.3s;
    overflow: hidden;
}

#secaoExperiencias.escondido {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Animação suave ao esconder/mostrar */
#secaoFormacao {
    transition: all 0.3s;
    overflow: hidden;
}

#secaoFormacao.escondido {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Animação suave ao esconder/mostrar */
#secaoIdioma {
    transition: all 0.3s;
    overflow: hidden;
}

#secaoIdioma.escondido {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}