/* ==========================================
   RESET & CONFIGURAÇÕES GLOBAIS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #0f172a; /* Fundo escuro slate moderno */
    color: #f8fafc; /* Texto claro */
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilitário para Textos com Gradiente (Nome e Logo) */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ==========================================
   NAVEGAÇÃO SUPERIOR
   ========================================== */
nav {
    background-color: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #f8fafc;
    text-decoration: none;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #f8fafc;
}

.nav-links .btn-contact {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.nav-links .btn-contact:hover {
    opacity: 0.9;
}

/* ==========================================
   SEÇÃO APRESENTAÇÃO (HERO)
   ========================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1.2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #38bdf8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.badge span {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}

.desc {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn-primary-main {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-primary-main:hover {
    background-color: #2563eb;
}

.btn-secondary-main {
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-secondary-main:hover {
    background-color: #1e293b;
}

/* LADO DIREITO: FOTO + CÓDIGO */
.hero-visual {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem; 
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%; 
    object-fit: cover;  
    border: 3px solid #3b82f6; 
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); 
}

.card-code {
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 1.25rem;
    border-radius: 0.5rem;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.9rem;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   SEÇÃO DE PROJETOS (MODERNA & ANIMADA)
   ========================================== */
.projects-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.section-title-container {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.section-subtitle {
    color: #94a3b8;
    font-size: 1.05rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    /* Transição elástica cúbica de alta fluidez */
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.45s ease, 
                box-shadow 0.45s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.25);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-name {
    font-size: 1.35rem;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.project-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 0px;
}

/* Indicador de Status Dinâmico (Pulse) */
.live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.6s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* Modificadores visuais para as caixas */
.text-blue { color: #3b82f6; }
.bg-blue { background-color: #3b82f6; }
.text-purple { color: #a855f7; }
.bg-purple { background-color: #a855f7; }

/* Componente: Dashboard de Métricas */
.mini-metrics-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    background: rgba(15, 23, 42, 0.4);
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed #334155;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.metric-lbl {
    font-size: 11px;
    color: #64748b;
}

/* Componente: Terminal de Stream do Kafka */
.kafka-stream-preview {
    background: #020617;
    border-radius: 10px;
    padding: 12px;
    margin-top: 16px;
    border: 1px solid #334155;
}

.stream-line {
    font-size: 11px;
    color: #38bdf8;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-line:last-child {
    margin-bottom: 0;
    color: #a7f3d0;
}

/* Componente: Estrutura de Requisição HTTP */
.http-request-badge {
    background: #020617;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.http-method {
    background: #e11d48;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    width: max-content;
}

.http-route {
    font-size: 12px;
    color: #e2e8f0;
    font-weight: 600;
}

.http-header {
    font-size: 11px;
    color: #64748b;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Footer Interno do Card & Tags */
.card-footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid #334155;
    padding-top: 1rem;
    margin-top: auto;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background-color: #0f172a;
    color: #38bdf8;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    border: 1px solid #1e293b;
    font-weight: 500;
}

.category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
}

.category-tag.back-end { color: #f43f5e; background: rgba(244, 63, 94, 0.1); }
.category-tag.systems { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.category-tag.advanced { color: #a855f7; background: rgba(168, 85, 247, 0.1); }

.project-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.link-swagger { color: #eab308; }
.link-code { color: #3b82f6; }

/* ==========================================
   SEÇÃO DE CONTATO & RODAPÉ
   ========================================== */
.contact-section {
    background-color: #1e293b;
    border-top: 1px solid #334155;
    padding: 5rem 2rem;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-highlight {
    color: #3b82f6;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.contact-desc {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.contact-buttons {
    justify-content: center;
}

footer {
    background-color: #0f172a;
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVIDADE (MOBILE)
   ========================================== */
@media (max-width: 968px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        margin: 3rem auto;
        gap: 3rem;
    }
    .hero-content h1 { font-size: 2.75rem; }
    .desc { margin: 0 auto 2rem auto; }
    .btn-group { justify-content: center; }
    .nav-links { display: none; }
}
