/* ==========================================================================
   Design Tokens e Configurações Gerais
   ========================================================================== */
:root {
    --bg-dark: hsl(224, 25%, 8%);
    --bg-card: hsla(224, 25%, 12%, 0.6);
    --border-card: hsla(224, 20%, 20%, 0.4);
    
    --text-primary: hsl(0, 0%, 96%);
    --text-secondary: hsl(224, 14%, 72%);
    --text-muted: hsl(224, 10%, 55%);
    
    --accent-blue: hsl(210, 100%, 60%);
    --accent-purple: hsl(270, 95%, 65%);
    --accent-glow: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-soft: 0 12px 40px -15px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
    
    --radius-full: 9999px;
    --radius-lg: 20px;
    --radius-md: 14px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Geral e Scroll Suave */
html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================================================
   Efeitos de Fundo (Ambient Lights)
   ========================================================================== */
.bg-glow, .bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
    animation: rotateGlow 25s infinite alternate ease-in-out;
}

.bg-glow {
    background: var(--accent-blue);
    top: 5%;
    left: -10%;
}

.bg-glow-2 {
    background: var(--accent-purple);
    top: 50%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes rotateGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.2);
    }
}

/* ==========================================================================
   Menu de Navegação (Sticky Navbar)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: hsla(224, 25%, 8%, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-card);
    transition: var(--transition-smooth);
}

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

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-blue);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.btn-nav {
    background: hsla(224, 25%, 16%, 0.6);
    border: 1px solid var(--border-card);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
}

.btn-nav:hover {
    border-color: var(--accent-blue);
    background: var(--accent-blue) !important;
    color: var(--bg-dark) !important;
}

/* ==========================================================================
   Seção Hero
   ========================================================================== */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10rem 2rem 6rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    min-height: 90vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-new {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: hsla(142, 70%, 45%, 0.1);
    border: 1px solid hsla(142, 70%, 45%, 0.3);
    color: hsl(142, 75%, 45%);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--accent-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.975rem;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(255, 255, 255, 0.3);
    background: var(--accent-blue);
    color: var(--bg-dark);
}

.btn-secondary {
    background: hsla(224, 25%, 12%, 0.5);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-purple);
    background: hsla(224, 25%, 16%, 0.8);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-frame {
    position: relative;
    width: 280px;
    height: 280px;
    transition: var(--transition-smooth);
}

.avatar-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    z-index: -1;
    opacity: 0.4;
    filter: blur(25px);
    transition: var(--transition-smooth);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    object-position: center 70%;
    border: 4px solid transparent;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), var(--accent-glow);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.hero-avatar.monogram {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    user-select: none;
}

.avatar-frame:hover {
    transform: translateY(-5px) scale(1.02);
}

.avatar-frame:hover::before {
    opacity: 0.6;
    filter: blur(30px);
}

/* ==========================================================================
   Estrutura de Seções Comuns
   ========================================================================== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
}

/* ==========================================================================
   Seção Sobre Mim
   ========================================================================== */
.sobre-section {
    background: hsla(224, 25%, 10%, 0.4);
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.sobre-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.sobre-text p strong {
    color: var(--text-primary);
}

.sobre-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Seção de Habilidades (Skills Grid)
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: hsla(224, 25%, 18%, 0.6);
    border-radius: var(--radius-md);
    color: var(--accent-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.skill-card:hover .skill-icon {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

/* ==========================================================================
   Seção de Projetos
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.project-visual {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project-visual-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.biology-bg {
    background: linear-gradient(135deg, hsl(142, 60%, 15%), hsl(160, 60%, 8%));
    border-bottom: 1px solid hsla(142, 50%, 25%, 0.3);
}

.hub-bg {
    background: linear-gradient(135deg, hsl(210, 60%, 15%), hsl(230, 60%, 8%));
    border-bottom: 1px solid hsla(210, 50%, 25%, 0.3);
}

.medical-bg {
    background: linear-gradient(135deg, hsl(350, 60%, 15%), hsl(330, 60%, 8%));
    border-bottom: 1px solid hsla(350, 50%, 25%, 0.3);
}

.empty-bg {
    background: linear-gradient(135deg, hsl(224, 20%, 10%), hsl(224, 20%, 6%));
    border-bottom: 1px solid var(--border-card);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-links {
    margin-top: auto;
}

.btn-project {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-project:hover {
    border-color: var(--accent-blue);
    background: hsla(210, 100%, 60%, 0.05);
    color: var(--accent-blue);
}

.btn-project-disabled {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    background: hsla(224, 20%, 10%, 0.5);
    cursor: not-allowed;
}

/* Hover nos Cards de Projeto */
.project-card:hover {
    transform: translateY(-5px);
    border-color: hsla(224, 25%, 35%, 0.6);
    box-shadow: var(--shadow-soft);
}

.project-card:hover .project-visual-icon {
    transform: scale(1.15) rotate(5deg);
}

.placeholder-card {
    opacity: 0.7;
    border-style: dashed;
}

.placeholder-card:hover {
    opacity: 1;
}

/* ==========================================================================
   Novos Elementos: Mídia de Projetos, Showcase Tecnológico e Vídeos
   ========================================================================== */
.project-media {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-card);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

/* Showcase de Tecnologia em Destaque */
.tech-showcase {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(10px);
    align-items: center;
    transition: var(--transition-smooth);
}

.tech-showcase:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.tech-bullets {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bullet-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 1.25rem;
}

.bullet-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 1.2rem;
    line-height: 1;
}

.bullet-item strong {
    color: var(--text-primary);
}

.tech-showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-icon-container {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
    background: hsla(224, 25%, 14%, 0.6);
    border: 1px solid var(--border-card);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.tech-showcase:hover .tech-icon-container {
    background: var(--accent-blue);
    color: var(--bg-dark);
    transform: scale(1.05) rotate(3deg);
}

.tech-svg {
    width: 90px;
    height: 90px;
}

/* Grid Esportivo e Vídeos */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.sports-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.sports-card:hover {
    transform: translateY(-5px);
    border-color: hsla(224, 25%, 35%, 0.6);
    box-shadow: var(--shadow-soft);
}

.video-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.sports-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsividade Adicional */
@media (max-width: 900px) {
    .tech-showcase {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    
    .tech-icon-container {
        width: 130px;
        height: 130px;
    }
    
    .tech-svg {
        width: 65px;
        height: 65px;
    }
}

/* ==========================================================================
   Seção de Contato
   ========================================================================== */
.contato-section {
    background: hsla(224, 25%, 10%, 0.3);
    border-top: 1px solid var(--border-card);
}

.contato-card {
    background: linear-gradient(135deg, hsla(224, 25%, 12%, 0.8), hsla(224, 25%, 16%, 0.8));
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    backdrop-filter: blur(10px);
}

.contato-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contato-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contato-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-contact-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
}

.btn-contact-action.whatsapp {
    background: hsl(142, 70%, 45%);
    color: hsl(224, 25%, 6%);
}

.btn-contact-action.whatsapp:hover {
    background: hsl(142, 75%, 40%);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.btn-contact-action.linkedin {
    background: hsla(224, 25%, 18%, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-contact-action.linkedin:hover {
    border-color: hsl(200, 100%, 45%);
    background: hsl(200, 100%, 45%);
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.btn-contact-action.email {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-contact-action.email:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   Rodapé (Footer)
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-card);
    padding: 3rem 0;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    color: var(--accent-blue);
}

/* ==========================================================================
   Responsividade (Responsiveness)
   ========================================================================== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 8rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contato-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .nav-links {
        display: none; /* Em projetos complexos faríamos um menu sanduíche, para o escopo limpo mantemos a logo ou simplificado */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Lightbox Modal (Galeria de Imagens Premium)
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(8, 10, 16, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    border: 1px solid var(--border-card);
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-primary);
    font-size: 35px;
    font-weight: 300;
    transition: var(--transition-smooth);
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: hsla(224, 25%, 16%, 0.6);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-card);
}

.lightbox-close:hover {
    background: var(--accent-purple);
    color: var(--bg-dark);
    border-color: var(--accent-purple);
    transform: rotate(90deg);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-secondary);
    padding: 15px 0;
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   Internacionalização (i18n)
   ========================================================================== */
html[lang="pt"] .lang-en {
    display: none !important;
}

html[lang="en"] .lang-pt {
    display: none !important;
}

/* Botão Seletor de Idioma */
.btn-lang-toggle {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
}

.btn-lang-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
    background: hsla(210, 100%, 60%, 0.05);
    box-shadow: var(--shadow-glow);
}


