/* =================================
   Variáveis & Configuração (Dark Premium)
   ================================= */
   :root {
    --bg-dark: #020617;       /* Slate 950 */
    --bg-card: #0f172a;       /* Slate 900 */
    --border: #1e293b;        /* Slate 800 */
    --text-main: #f8fafc;     /* Slate 50 */
    --text-muted: #94a3b8;    /* Slate 400 */
    
    --primary: #3b82f6;       /* Azul Tech */
    --primary-glow: rgba(59, 130, 246, 0.4);
    --accent: #06b6d4;        /* Cyan */
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =================================
   Background FX
   ================================= */
.background-effects {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.glow-top {
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.6;
    filter: blur(80px);
}

/* =================================
   Navbar
   ================================= */
.floating-nav {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 90%; max-width: 600px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}
.nav-links a:hover { color: white; }

.btn-hire {
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-hire:hover { background: white; color: var(--bg-dark); }

/* =================================
   Hero Section
   ================================= */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.hero-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    margin-bottom: 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dot { width: 8px; height: 8px; background: #34d399; border-radius: 50%; box-shadow: 0 0 10px #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(to right, #60a5fa, #22d3ee);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; }

.btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }

.btn-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}
.btn-icon:hover { border-color: var(--primary); color: white; background: rgba(59, 130, 246, 0.1); }

/* Terminal */
.terminal-window {
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.terminal-header {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dots { display: flex; gap: 6px; }
.d { width: 10px; height: 10px; border-radius: 50%; }
.d.red { background: #ef4444; } .d.yellow { background: #f59e0b; } .d.green { background: #10b981; }
.terminal-header .title { color: var(--text-muted); font-size: 0.8rem; }

.terminal-body { padding: 24px; color: #e2e8f0; }
.code-line { margin-bottom: 8px; }
.k { color: #c084fc; } 
.s { color: #86efac; } 
.v { color: #fca5a5; } 
.comment { color: #64748b; font-style: italic; }
.success { color: #34d399; margin-top: 16px; }

/* =================================
   Bento Grid Projects
   ================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px 100px; }

.section-header { margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-heading); font-size: 2rem; }
.section-header .line { width: 60px; height: 4px; background: var(--primary); margin-top: 10px; border-radius: 2px; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.bento-card.featured { grid-column: span 2; display: flex; flex-direction: row; align-items: center; gap: 30px; }
.bento-card.full-width { grid-column: span 3; }

.bento-card h3 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 12px; }
.bento-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }

.tech-tag {
    font-family: var(--font-code);
    font-size: 0.75rem;
    background: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}
.tech-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;}

.links-row { display: flex; align-items: center; gap: 20px; margin-top: auto; }

.btn-live {
    background: white;
    color: var(--bg-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-live:hover { background: var(--primary); color: white; }

.link-arrow { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.link-arrow:hover { color: white; }

.card-link-cover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }
.card-footer-links { margin-top: auto; z-index: 3; position: relative; display: flex; gap: 15px;}
.mini-link { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; border-bottom: 1px dotted var(--text-muted); }
.mini-link:hover { color: var(--primary); border-color: var(--primary); }

/* VISUAL: Econo.AI Brain/Node Effect */
.card-visual.ai-visual {
    height: 120px; width: 150px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.ai-node { border-radius: 50%; position: absolute; background: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.ai-node.main { width: 40px; height: 40px; z-index: 2; animation: pulseNode 3s infinite; }
.ai-node.sub { width: 15px; height: 15px; background: var(--accent); opacity: 0.7; }
.ai-node.s1 { top: 20px; left: 20px; }
.ai-node.s2 { bottom: 20px; right: 20px; }
.ai-line { position: absolute; background: rgba(255,255,255,0.1); height: 2px; width: 60px; }
.ai-line.l1 { transform: rotate(45deg); top: 50px; left: 45px; }
.ai-line.l2 { transform: rotate(45deg); bottom: 50px; right: 45px; }

@keyframes pulseNode { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

.card-top-icon { font-size: 2rem; margin-bottom: 20px; color: white; }

/* =================================
   Sobre & Skills
   ================================= */
.split-section { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; margin-top: 100px; }

.highlight { font-size: 1.4rem; color: white; border-left: 3px solid var(--primary); padding-left: 20px; margin-bottom: 24px; }

.stats-row { display: flex; gap: 40px; margin-top: 40px; }
.stat .num { display: block; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: white; }
.stat .label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.skills-grid { display: grid; gap: 30px; }
.skill-category h4 { margin-bottom: 16px; color: var(--accent); font-family: var(--font-code); }
.skill-category ul { list-style: none; }
.skill-category li { margin-bottom: 10px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }

/* =================================
   Footer & CTA
   ================================= */
.cta-card {
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(12px);         
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: white; margin-bottom: 10px; }
.cta-content p { color: rgba(255,255,255,0.7); margin-bottom: 30px; }

.btn-primary.white {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary.white:hover {
    background: var(--accent);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.email-link { display: block; margin-top: 20px; color: white; opacity: 0.8; text-decoration: none; font-family: var(--font-code); }

footer {
    border-top: 1px solid var(--border);
    padding: 60px 24px 20px;
    background: #020617;
}
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h5 { color: white; margin-bottom: 10px; font-size: 1.1rem; }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; transition: 0.2s; }
.footer-col a:hover { color: var(--primary); }
.copy { text-align: center; font-size: 0.8rem; color: #475569; font-family: var(--font-code); }

/* Mobile */
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; } 
    .hero-actions { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.featured, .bento-card.full-width { grid-column: span 1; flex-direction: column; align-items: flex-start; }
    .card-visual.ai-visual { display: none; }
    .split-section { grid-template-columns: 1fr; }
    .floating-nav { width: 95%; top: 15px; }
    .nav-links { display: none; }
}
