/* ===== VARIÁVEIS E RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0c14;
    --bg-panel: #11141f;
    --primary-cyan: #2dd4bf;
    --primary-blue: #3b82f6;
    --accent-purple: #9d00ff;
    --text-bright: #edf2f7;
    --text-dim: #94a3b8;
    --border-glow: rgba(45,212,191,0.3);
    --terminal-green: #4ade80;
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
    --card-bg: rgba(20,25,40,0.7);
    --body-bg-image: radial-gradient(circle at 20% 30%, rgba(45,212,191,0.05) 0%, transparent 30%),
                      repeating-linear-gradient(45deg, rgba(0,255,200,0.02) 0px, rgba(0,255,200,0.02) 2px, transparent 2px, transparent 8px);
    /* Terminal */
    --terminal-bg: #0b0e16;
    --terminal-output-bg: #010101;
    --terminal-output-color: #0f0;
    --terminal-input-bg: #1e1e2f;
    --terminal-input-color: var(--text-bright);
}

body.light-mode {
    --bg-dark: #f0f4fa;
    --bg-panel: #ffffff;
    --primary-cyan: #0e7c75;
    --primary-blue: #2563eb;
    --accent-purple: #8b5cf6;
    --text-bright: #0f172a;
    --text-dim: #334155;
    --border-glow: rgba(14,124,117,0.3);
    --terminal-green: #16a34a;
    --card-bg: rgba(255,255,255,0.95); /* aumentada opacidade para melhor contraste */
    --body-bg-image: radial-gradient(circle at 20% 30%, rgba(14,124,117,0.05) 0%, transparent 30%),
                      repeating-linear-gradient(45deg, rgba(0,100,80,0.02) 0px, rgba(0,100,80,0.02) 2px, transparent 2px, transparent 8px);
    /* Terminal no modo claro */
    --terminal-bg: #eef2f6;
    --terminal-output-bg: #ffffff;
    --terminal-output-color: #000000;
    --terminal-input-bg: #d0d7de;
    --terminal-input-color: #000000;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--body-bg-image);
    font-family: var(--font-sans);
    color: var(--text-dim);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
}

/* Partículas 3D (fundo) */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.25;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

/* Alternador de tema */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: var(--bg-panel);
    border: 2px solid var(--primary-cyan);
    border-radius: 40px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-cyan);
    box-shadow: 0 0 15px var(--primary-cyan);
    transition: 0.2s;
    backdrop-filter: blur(8px);
}
.theme-toggle:hover {
    background: var(--primary-cyan);
    color: #0a0c14;
}

/* Seletor de idioma compacto */
.language-selector-compact {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-current {
    background: var(--bg-panel);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.lang-current:hover {
    background: var(--primary-cyan);
    color: #0a0c14;
}

.lang-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--primary-cyan);
    border-radius: 20px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 160px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.8rem 1.2rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    border-bottom: 1px solid rgba(45,212,191,0.2);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--primary-cyan);
    color: #0a0c14;
}

.lang-option.active {
    background: rgba(45,212,191,0.2);
    color: var(--primary-cyan);
    font-weight: 600;
}

/* ===== NAVBAR ÂNCORA ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--primary-cyan);
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.navbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.navbar a {
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: 0.2s;
    border: 2px solid transparent;
}

.navbar a:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(45,212,191,0.1);
}

/* Botão Voltar ao Topo */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-cyan);
    color: #0a0c14;
    border: 2px solid var(--primary-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: 0 0 20px var(--primary-cyan);
    backdrop-filter: blur(4px);
}

#backToTop:hover {
    background: transparent;
    color: var(--primary-cyan);
    transform: scale(1.1);
}

/* Glassmorphism */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glow);
    border-radius: 32px;
    box-shadow: 0 25px 40px -15px #00000080;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    scroll-margin-top: 80px;
}
#hero {
    scroll-margin-top: 80px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-cyan);
    object-fit: cover;
    box-shadow: 0 0 30px var(--primary-cyan);
    transition: transform 0.3s ease;
    cursor: pointer;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.profile-pic:hover {
    transform: scale(1.05) rotate(2deg);
}

.hero-text {
    flex: 1;
    padding: 1.5rem;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary-cyan);
}

.hero-text p {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
}

/* Terminal interativo */
.interactive-terminal {
    background: var(--terminal-bg);
    border-radius: 24px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    border: 2px solid var(--primary-cyan);
    margin: 2rem 0;
    box-shadow: 0 0 30px rgba(45,212,191,0.2);
}

.terminal-output {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--terminal-output-bg);
    padding: 1rem;
    border-radius: 16px;
    color: var(--terminal-output-color);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    background: var(--terminal-input-bg);
    border-radius: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-cyan);
}

.terminal-prompt {
    color: var(--primary-cyan);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

#terminalInput {
    background: transparent;
    border: none;
    outline: none;
    color: var(--terminal-input-color);
    font-family: var(--font-mono);
    font-size: 1rem;
    width: 100%;
}

.command-hint {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: right;
}

/* Estatísticas */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 28px;
    padding: 1.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-glow);
    min-width: 130px;
    flex: 1 1 auto;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-cyan);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Filtro de skills */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-cyan);
    color: #0a0c14;
    box-shadow: 0 0 25px cyan;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--border-glow);
    transition: 0.2s;
}

.skill-card[data-category] {
    display: block;
}

.skill-card.hidden {
    display: none;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 30px -12px #2dd4bf40;
}

.skill-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill-tag {
    background: rgba(45,212,191,0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 40px;
    padding: 0.2rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-bright);
}

.proficiency {
    margin-top: 1rem;
}

.proficiency span {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.progress-bar {
    background: #1e293b;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-blue));
    width: 0%;
    transition: width 0.5s;
}

/* Projetos Destaque */
.featured-project {
    background: linear-gradient(145deg, var(--accent-purple)20, var(--primary-cyan)20);
    border-radius: 40px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 0 50px rgba(157, 0, 255, 0.3);
    scroll-margin-top: 80px;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.project-info h3 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 0 15px var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--primary-cyan);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-subtitle i {
    font-size: 1.4rem;
}

.project-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--accent-purple);
}

.project-info .tech-tags {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-info .tech-tags span {
    background: rgba(45,212,191,0.2);
    border: 1px solid var(--primary-cyan);
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    color: white;
}

.project-features {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== CARROSSEL BASE ===== */
.project-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--primary-cyan);
}

.carousel-container {
    position: relative;
    width: 100%;
    background: #1a1a2e;
}

/* Padrão retrato (GG Match) */
.project-carousel:not(.landscape) .carousel-container {
    aspect-ratio: 9/16;
}

/* Variante paisagem (PDV) */
.project-carousel.landscape .carousel-container {
    aspect-ratio: 16/9;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Link do lightbox ocupa toda a área do slide */
.lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.carousel-img {
    width: 100%;
    height: 100%;
    display: block;
    cursor: zoom-in;
}

/* Padrão retrato: imagem cobre todo o espaço (pode cortar) */
.project-carousel:not(.landscape) .carousel-img {
    object-fit: cover;
}

/* Paisagem: imagem inteira visível com barras */
.project-carousel.landscape .carousel-img {
    object-fit: contain;
    background-color: #0a0c14;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px 15px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    font-family: var(--font-mono);
    pointer-events: none; /* para não interferir no clique do link */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 25, 40, 0.4); /* Fundo sutil */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(45, 212, 191, 0.2); /* Borda quase invisível */
    color: var(--primary-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0.6; /* Fica levemente apagado até passar o mouse */
}

.carousel-btn:hover {
    background: rgba(45, 212, 191, 0.15);
    border-color: var(--primary-cyan);
    color: white;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.1); /* Dá uma leve crescida */
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--primary-cyan);
}

.dot.active {
    background: var(--primary-cyan);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary-cyan);
}

.project-description {
    margin-top: 2rem;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 20px;
    border-left: 4px solid var(--accent-purple);
}

/* Scroll Reveal */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tecnologias Flutuantes */
.floating-tech-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    border: 1px solid var(--border-glow);
    margin: 2rem 0;
}

.tech-item {
    background: rgba(45,212,191,0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 40px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: var(--text-bright);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: float-tech 4s ease-in-out infinite;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(45,212,191,0.3);
    cursor: default;
}

.tech-item:hover {
    transform: scale(1.1);
    background: var(--primary-cyan);
    color: #0a0c14;
    box-shadow: 0 0 30px var(--primary-cyan);
    animation-play-state: paused;
}

.tech-item i {
    font-size: 1.2rem;
}

@keyframes float-tech {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.tech-item:nth-child(odd) { animation-delay: 0.2s; }
.tech-item:nth-child(3n) { animation-delay: 0.7s; }
.tech-item:nth-child(5n+2) { animation-delay: 1.2s; }
.tech-item:nth-child(7n+4) { animation-delay: 0.4s; }

/* Timeline */
.timeline {
    border-left: 4px solid var(--primary-cyan);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    margin-bottom: 2rem;
}
#trajetoria {
    scroll-margin-top: 80px;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item:before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--primary-cyan);
    position: absolute;
    left: -2rem;
    top: 0.3rem;
    border-radius: 50%;
    box-shadow: 0 0 15px cyan;
}

.timeline-date {
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.timeline-item h4 {
    color: var(--text-bright);
    margin: 0.2rem 0;
    font-size: 1.1rem;
}

/* Formação */
.edu-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 1.2rem;
    margin: 2rem 0;
    border: 1px dashed var(--primary-cyan);
}

.edu-item {
    background: #151e2e;
    border-radius: 40px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #2dd4bf40;
    font-size: 0.85rem;
}

.edu-item i {
    color: var(--primary-cyan);
}

/* Mapa */
#map {
    height: 200px;
    border-radius: 24px;
    border: 2px solid var(--primary-cyan);
    margin: 2rem 0;
    z-index: 5;
}

/* Contato */
.contact-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border-radius: 40px;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-glow);
    margin: 2rem 0;
    gap: 1rem;
}
#contato {
    scroll-margin-top: 80px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--primary-cyan);
    width: 20px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-cyan);
    color: #0a0c14;
    box-shadow: 0 0 25px cyan;
}

/* Botão de download do app */
.btn-download {
    display: inline-block;
    background: linear-gradient(145deg, var(--primary-cyan), var(--primary-blue));
    color: #0a0c14;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--primary-cyan);
    margin-top: 0.5rem;
}

.btn-download i {
    margin-right: 8px;
}

.btn-download:hover {
    background: transparent;
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--primary-cyan);
}

/* Footer */
footer {
    text-align: center;
    margin: 2rem 0 0.5rem;
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ===== LIGHTBOX MODERNO ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(45,212,191,0.5);
    border: 2px solid var(--primary-cyan);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    padding: 0 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.lightbox-close:hover {
    color: #ff5f56;
    text-shadow: 0 0 15px rgba(255, 95, 86, 0.8);
    transform: scale(1.2) rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-nav button {
    pointer-events: auto;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 2.5rem;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
.lightbox-nav button:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 15px var(--primary-cyan);
    transform: scale(1.2);
    background: transparent; 
}

.lightbox-caption {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1rem;
    font-family: var(--font-mono);
}

/* Responsividade do lightbox */
@media (max-width: 768px) {
    .lightbox-caption {
        font-size: 0.8rem;
        bottom: -20px;
    }
    .lightbox-nav button {
        font-size: 20px;
        padding: 5px 10px;
    }
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 100;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== RESPONSIVIDADE GERAL ===== */
@media (max-width: 768px) {
    .navbar ul {
        gap: 1rem;
    }
    .navbar a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .container {
        padding: 0.8rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .hero-text {
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .interactive-terminal {
        padding: 1rem;
    }

    .terminal-output {
        min-height: 150px;
        font-size: 0.8rem;
    }

    .terminal-input-line {
        padding: 0.3rem 0.8rem;
    }

    #terminalInput {
        font-size: 0.9rem;
    }

    .command-hint {
        font-size: 0.7rem;
        text-align: left;
    }

    .stats-grid {
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .filter-bar {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .skill-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1rem;
    }

    .skill-icon {
        font-size: 1.8rem;
    }

    .skill-card h3 {
        font-size: 1.2rem;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .featured-project {
        padding: 1.5rem;
    }

    .project-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-carousel {
        max-width: 300px;
        order: -1;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .project-info {
        text-align: center;
    }
    
    .project-info .tech-tags {
        justify-content: center;
    }

    .project-description {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .floating-tech-cloud {
        padding: 1rem;
        gap: 0.6rem;
    }

    .tech-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .tech-item i {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 1rem;
        margin-left: 0;
    }

    .timeline-item:before {
        left: -1.4rem;
        width: 12px;
        height: 12px;
    }

    .timeline-date {
        font-size: 0.7rem;
    }

    .timeline-item h4 {
        font-size: 1rem;
    }

    .edu-container {
        padding: 0.8rem;
        gap: 0.5rem;
    }

    .edu-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    #map {
        height: 150px;
        margin: 1.5rem 0;
    }

    .contact-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.8rem;
    }

    .contact-item {
        font-size: 0.85rem;
        width: 100%;
    }

    .btn-outline {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    footer {
        font-size: 0.75rem;
    }

    .language-selector-compact {
        top: 10px;
        right: 10px;
    }
    
    .lang-current {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        top: 10px;
        left: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
        line-height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .filter-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .project-info h3 {
        font-size: 1.8rem;
    }

    .project-subtitle {
        font-size: 0.9rem;
    }

    .project-tagline {
        font-size: 1rem;
    }
    
    .project-carousel {
        max-width: 250px;
    }
    
    .carousel-caption {
        font-size: 0.8rem;
        padding: 15px 10px 8px;
    }

    .tech-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .contact-item {
        font-size: 0.8rem;
    }
}

/* Ajuste fino para o terminal */
.terminal-output {
    white-space: pre-wrap;
    word-break: break-word;
}

#terminalInput {
    width: 100%;
}

/* ===== EASTER EGG XPENGUINS ===== */
/* Garantir que os pinguins fiquem presos dentro do terminal */
.interactive-terminal {
    position: relative;
    overflow: hidden; 
}

.falling-penguin {
    position: absolute;
    top: -50px; /* Começa escondido em cima */
    width: 32px; /* Tamanho do pinguim */
    height: auto;
    z-index: 10;
    pointer-events: none; /* Para não atrapalhar o clique no terminal */
    image-rendering: pixelated; /* Dá aquela carinha retrô */
}