/* ──────────────────────────────────────────────
   Base & Reset
   ────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00f0b5;
    --secondary-color: #9333ea;
    --dark-bg: #0d1117;
    --darker-bg: #161b22;
    --card-bg: #1a1f2e;
    --light-text: #e6edf3;
    --gray-text: #8b949e;
    --border-color: #30363d;
    --success-color: #39ff14;
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --navbar-height: 60px;
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    padding-top: var(--navbar-height);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    transition: color var(--transition-fast);
}
a:hover {
    color: #5fffd4;
}

/* Util */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ──────────────────────────────────────────────
   Navbar — Terminal Style + Hamburger
   ────────────────────────────────────────────── */
.navbar {
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.05rem;
    white-space: nowrap;
}
.prompt-user { color: var(--success-color); }
.prompt-tilde { color: var(--secondary-color); }

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-link {
    color: var(--gray-text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-med);
}
.nav-link:hover {
    color: var(--primary-color);
}
.nav-link:hover::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light-text);
    border-radius: 2px;
    transition: all var(--transition-med);
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ──────────────────────────────────────────────
   Hero — Terminal Window
   ────────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    background: radial-gradient(circle at top right, #1f2937 0%, var(--dark-bg) 40%);
}

.terminal-window {
    background: var(--darker-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 100%;
    margin: 0 1rem;
    overflow: hidden;
}

.terminal-header {
    background: #21262d;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gray-text);
}

.terminal-body { padding: 2rem; font-family: var(--font-mono); }
.command-line { color: var(--success-color); margin-bottom: 0.5rem; }
.command-line::before { content: "$ "; color: var(--gray-text); }

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #fff, var(--gray-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.hero-text {
    color: var(--gray-text);
    margin-bottom: 2rem;
    min-height: 3rem;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn.primary {
    background: var(--primary-color);
    color: var(--dark-bg);
}
.btn.secondary {
    border: 1px solid var(--border-color);
    color: var(--light-text);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 181, 0.2);
}

/* ──────────────────────────────────────────────
   Sections
   ────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}
.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 1.6rem;
}

/* ──────────────────────────────────────────────
   Timeline (Experience)
   ────────────────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    z-index: 1;
    transition: box-shadow var(--transition-med);
}
.timeline-item:hover .timeline-marker {
    box-shadow: 0 0 10px rgba(0, 240, 181, 0.4);
}

.timeline-content.card {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 6px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.timeline-content.card:hover {
    border-color: var(--primary-color);
    transform: translateX(3px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.job-header h3 { color: var(--light-text); font-size: 1.05rem; }
.company { color: var(--primary-color); font-family: var(--font-mono); font-size: 0.9rem; }
.date { color: var(--gray-text); font-size: 0.85rem; font-family: var(--font-mono); }

.job-desc {
    margin-bottom: 1rem;
    padding-left: 1rem;
    color: var(--gray-text);
    list-style: none;
}
.job-desc li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2rem;
}
.job-desc li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.tech-tags span {
    display: inline-block;
    background: rgba(0, 240, 181, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    margin-right: 0.5rem;
    font-family: var(--font-mono);
}

/* ──────────────────────────────────────────────
   Skills Grid
   ────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.skill-card {
    background: var(--darker-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition-med);
}
.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 240, 181, 0.06);
}
.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.skill-card h3 {
    margin-bottom: 0.5rem;
}

/* ──────────────────────────────────────────────
   Recommendations
   ────────────────────────────────────────────── */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.rec-card {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: transform var(--transition-fast);
}
.rec-card:hover {
    transform: translateY(-2px);
}
.rec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.rec-avatar i {
    font-size: 2.5rem;
    color: var(--gray-text);
}
.rec-info h4 { color: var(--light-text); font-size: 1rem; }
.rec-info span { color: var(--primary-color); font-size: 0.8rem; font-family: var(--font-mono); }
.rec-text {
    font-style: italic;
    color: var(--gray-text);
    line-height: 1.7;
}

/* ──────────────────────────────────────────────
   Footer & Status Bar
   ────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    background: var(--darker-bg);
    color: var(--gray-text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}
.status-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.status-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ──────────────────────────────────────────────
   Animations
   ────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.post-card,
.timeline-item,
.skill-card,
.rec-card {
    animation: fadeInUp 0.5s ease forwards;
}
.post-card:nth-child(2) { animation-delay: 0.05s; }
.post-card:nth-child(3) { animation-delay: 0.1s; }
.post-card:nth-child(4) { animation-delay: 0.15s; }
.post-card:nth-child(5) { animation-delay: 0.2s; }
.post-card:nth-child(6) { animation-delay: 0.25s; }
.post-card:nth-child(7) { animation-delay: 0.3s; }

/* ──────────────────────────────────────────────
   Scrollbar
   ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-text);
}

/* ──────────────────────────────────────────────
   Typography extras (blog post reading)
   ────────────────────────────────────────────── */
.post-body {
    line-height: 1.8;
    font-size: 1.05rem;
}
.post-body h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}
.post-body h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.75rem;
}
.post-body h4 {
    color: var(--gray-text);
    margin: 1.2rem 0 0.5rem;
}
.post-body p {
    margin-bottom: 1rem;
}
.post-body code {
    background: var(--card-bg);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--primary-color);
}
.post-body pre {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
}
.post-body pre code {
    background: none;
    padding: 0;
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
}
.post-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}
.post-body a:hover {
    border-bottom-style: solid;
}
.post-body ul,
.post-body ol {
    margin: 1rem 0 1rem 1.5rem;
}
.post-body li {
    margin-bottom: 0.5rem;
}
.post-body blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-text);
    font-style: italic;
}
.post-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}
.post-body img {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* ──────────────────────────────────────────────
   Responsivo
   ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: rgba(22, 27, 34, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        transform: translateY(-110%);
        opacity: 0;
        transition: all var(--transition-med);
        border-bottom: 1px solid var(--border-color);
        pointer-events: none;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 30px; }
    .timeline-marker { left: 1px; }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .terminal-body { padding: 1.5rem; }

    .section { padding: 3rem 0; }
    .section h2 { font-size: 1.3rem; }

    .nav-container { padding: 0 1rem; }
    .container { padding: 0 1rem; }

    .post-body { font-size: 1rem; }
    .post-body pre { font-size: 0.85rem; }

    .footer { font-size: 0.78rem; }
    .status-bar { gap: 1rem; flex-direction: column; align-items: center; }
}
