/* ============================================================
   CryptoWatch-Inspired Dark Terminal Portfolio
   ============================================================ */

:root {
    --bg-primary: #080b10;
    --bg-secondary: #0d1117;
    --bg-card: #0f1622;
    --bg-card-hover: #141f2e;
    --bg-surface: #111827;
    --border: #1a2535;
    --border-bright: #22334d;

    --green: #00d084;
    --green-dim: rgba(0, 208, 132, 0.15);
    --green-glow: rgba(0, 208, 132, 0.35);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --cyan: #22d3ee;
    --cyan-dim: rgba(34, 211, 238, 0.15);
    --cyan-glow: rgba(34, 211, 238, 0.35);
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.15);
    --purple: #a78bfa;
    --purple-dim: rgba(167, 139, 250, 0.15);

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

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

/* ============================================================
   GRID BACKGROUND
   ============================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ============================================================
   TICKER BAR
   ============================================================ */
.ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
}

.ticker-live {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    background: var(--green-dim);
    border-right: 1px solid var(--border);
    color: var(--green);
    font-weight: 600;
    height: 100%;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker-track-wrapper {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    animation: ticker-scroll 45s linear infinite;
    padding: 0 20px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.ticker-item.green { color: var(--green); }
.ticker-item.cyan { color: var(--cyan); }
.ticker-item.amber { color: var(--amber); }
.ticker-item i { font-size: 9px; }

.ticker-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

.ticker-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    border-left: 1px solid var(--border);
    color: var(--cyan);
    font-weight: 600;
    height: 100%;
    background: var(--cyan-dim);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    animation: blink 2s ease-in-out infinite 0.6s;
    flex-shrink: 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: fixed;
    top: 28px;
    left: 0;
    right: 0;
    padding: 0 50px;
    height: 58px;
    background: rgba(8, 11, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition);
}

nav.scrolled {
    background: rgba(8, 11, 16, 0.97);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.logo-bracket { color: var(--cyan); }

.logo-cursor {
    display: inline-block;
    color: var(--green);
    animation: blink 1s step-end infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: all var(--transition);
    letter-spacing: 0.03em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan);
    background: var(--cyan-dim);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-menu-btn:hover { color: var(--cyan); border-color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 140px 50px 80px;
    position: relative;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        radial-gradient(ellipse 80% 60% at 60% 50%, rgba(0, 208, 132, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 10% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    flex: 1;
    max-width: 660px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.9s ease both;
}

.hero-visual {
    flex: 1;
    max-width: 440px;
    margin-left: 60px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.9s ease 0.3s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-header {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 0;
}

.terminal-prompt { color: var(--green); margin-right: 2px; }
.terminal-cmd { color: var(--text-secondary); }
.terminal-cursor {
    color: var(--green);
    animation: blink 0.8s step-end infinite;
    margin-left: 1px;
}

.hero-name {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--cyan) 60%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.title-tag { color: var(--cyan); opacity: 0.7; }

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.highlight-green { color: var(--green); font-weight: 600; }

.hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-location i { color: var(--red); font-size: 11px; }
.hero-location .sep { opacity: 0.4; }

.remote-badge {
    background: var(--cyan-dim);
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-sans);
}

.cta-btn.primary {
    background: var(--green);
    color: var(--bg-primary);
    border-color: var(--green);
}

.cta-btn.primary:hover {
    background: transparent;
    color: var(--green);
    box-shadow: 0 0 20px var(--green-glow);
}

.cta-btn.secondary {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: var(--cyan);
}

.cta-btn.secondary:hover {
    background: var(--cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.cta-btn.ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-bright);
}

.cta-btn.ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
}

/* Code Window */
.code-window {
    background: #0d1624;
    border: 1px solid #243044;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(34, 211, 238, 0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0a1020;
    border-bottom: 1px solid #243044;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.amber { background: #febc2e; }
.dot.green { background: #28c840; }

.file-name {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-body {
    padding: 20px 24px;
}

.code-body pre {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
}

.c-bracket { color: var(--text-muted); }
.c-key { color: var(--cyan); }
.c-str { color: var(--amber); }
.c-num { color: var(--purple); }
.c-green { color: var(--green); }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 50px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    border-radius: 2px;
    margin-top: 14px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-secondary); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.stat-card:hover::before { transform: scaleX(1); }
.stat-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}

.stat-icon {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.stat-value.green { color: var(--green); }
.stat-value.cyan { color: var(--cyan); }
.stat-value.amber { color: var(--amber); }

.stat-suffix {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--text-muted);
    display: inline;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
    font-weight: 500;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: all var(--transition);
}

.pillar-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.pillar-tag {
    position: absolute;
    top: -1px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 6px 6px;
    letter-spacing: 0.1em;
}

.pillar-tag.green { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); border-top: none; }
.pillar-tag.cyan { background: var(--cyan-dim); color: var(--cyan); border: 1px solid var(--cyan); border-top: none; }
.pillar-tag.amber { background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber); border-top: none; }

.pillar-icon {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.pillar-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience { background: var(--bg-primary); }

.timeline {
    position: relative;
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 4px;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-bright);
    border: 2px solid var(--border-bright);
    flex-shrink: 0;
    z-index: 1;
    transition: all var(--transition);
}

.marker-dot.green {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 12px var(--green-glow);
}

.marker-dot.pulse {
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 var(--green-glow), 0 0 12px var(--green-glow); }
    70% { box-shadow: 0 0 0 10px transparent, 0 0 12px var(--green-glow); }
    100% { box-shadow: 0 0 0 0 transparent, 0 0 12px var(--green-glow); }
}

.marker-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--border-bright) 0%, transparent 100%);
    margin-top: 6px;
    min-height: 30px;
}

.timeline-item:last-child .marker-line { display: none; }

.timeline-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: all var(--transition);
}

.timeline-item.active .timeline-card {
    border-color: rgba(0, 208, 132, 0.25);
    background: rgba(0, 208, 132, 0.03);
}

.timeline-card:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.company-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.company-via {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--amber-dim);
    color: var(--amber);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.timeline-duration {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.active-badge {
    color: var(--green) !important;
    background: var(--green-dim);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 208, 132, 0.2);
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 6px;
}

.timeline-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-location i { color: var(--red); font-size: 11px; }

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

/* ============================================================
   TECH TAGS (shared)
   ============================================================ */
.tech-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.tech-tag.green {
    background: var(--green-dim);
    color: var(--green);
    border-color: rgba(0, 208, 132, 0.2);
}

.tech-tag.cyan {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.2);
}

.tech-tag.amber {
    background: var(--amber-dim);
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.2);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--bg-secondary); }

.skills-heatmap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    transition: all var(--transition);
}

.skill-group:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.skill-group-icon {
    font-size: 15px;
}

.skill-group-icon.green { color: var(--green); }
.skill-group-icon.cyan { color: var(--cyan); }
.skill-group-icon.amber { color: var(--amber); }
.skill-group-icon.red { color: var(--red); }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    cursor: default;
}

.skill-tag:hover { transform: scale(1.05); }

.skill-tag.lvl-high {
    background: var(--green-dim);
    color: var(--green);
    border-color: rgba(0, 208, 132, 0.25);
}

.skill-tag.lvl-mid {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.2);
}

.skill-tag.lvl-low {
    background: var(--amber-dim);
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.2);
}

.skill-legend {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--bg-primary); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: border-color var(--transition);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}

.project-card:hover::before {
    border-color: rgba(34, 211, 238, 0.3);
}

.project-card.featured {
    grid-column: span 2;
    border-color: rgba(0, 208, 132, 0.25);
    background: rgba(0, 208, 132, 0.02);
}

.project-card.featured:hover::before {
    border-color: rgba(0, 208, 132, 0.4);
}

.project-featured-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(0, 208, 132, 0.3);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

.project-header {
    padding: 24px 24px 0;
}

.project-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.project-status.live {
    color: var(--green);
}

.live-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: blink 1.2s ease-in-out infinite;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.project-type {
    font-size: 12px;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 0;
}

.project-content {
    padding: 16px 24px 24px;
}

.project-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-link-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.view-project {
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.project-card:hover .view-project { gap: 10px; }

/* ============================================================
   EDUCATION & CERTIFICATIONS
   ============================================================ */
.education { background: var(--bg-secondary); }

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.col-header {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-header i { color: var(--green); }

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.edu-card:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
}

.edu-degree {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.edu-school {
    font-size: 0.9rem;
    color: var(--cyan);
    margin-bottom: 6px;
}

.edu-period {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-badge.active {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(0, 208, 132, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 16px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--amber), var(--green));
}

.achievement-card:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
}

.achievement-place {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.achievement-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.achievement-issuer {
    font-size: 12px;
    color: var(--cyan);
    margin-bottom: 10px;
}

.achievement-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Certifications */
.certs-section { margin-top: 20px; }

.certs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.cert-filter-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cert-filter {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
}

.cert-filter:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.cert-filter.active {
    border-color: var(--cyan);
    color: var(--cyan);
    background: var(--cyan-dim);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: all var(--transition);
}

.cert-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.cert-card.hidden { display: none; }

.cert-issuer-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.cert-issuer-badge.fiap { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(167,139,250,0.2); }
.cert-issuer-badge.udemy { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.cert-issuer-badge.alura { background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(34,211,238,0.2); }
.cert-issuer-badge.cambridge { background: var(--green-dim); color: var(--green); border: 1px solid rgba(0,208,132,0.2); }

.cert-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.cert-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.certs-more {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.link-green {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.link-green:hover { color: var(--cyan); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-primary); }

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-top: -30px;
    margin-bottom: 48px;
    max-width: 560px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 760px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--border-bright);
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-icon.green { background: var(--green-dim); color: var(--green); }
.contact-icon.cyan { background: var(--cyan-dim); color: var(--cyan); }
.contact-icon.amber { background: var(--amber-dim); color: var(--amber); }

.contact-info { flex: 1; }

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 3px;
    font-weight: 600;
}

.contact-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

.contact-arrow {
    color: var(--text-muted);
    transition: all var(--transition);
    font-size: 13px;
}

.contact-card:hover .contact-arrow {
    color: var(--cyan);
    transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 50px;
}

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

footer .logo-bracket { color: var(--cyan); }
footer .footer-logo {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--cyan); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 211, 238, 0.2);
}

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 30px 80px;
    }

    .hero-content { max-width: 100%; }
    .hero-visual { margin-left: 0; margin-top: 48px; max-width: 100%; }
    .cta-buttons { justify-content: center; }
    .hero-location { justify-content: center; }

    .project-card.featured { grid-column: span 1; }
}

@media (max-width: 900px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    nav { padding: 0 20px; }

    .nav-links {
        position: fixed;
        top: 86px;
        right: -100%;
        width: 75%;
        height: calc(100vh - 86px);
        background: rgba(8, 11, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 32px 20px;
        border-left: 1px solid var(--border);
        transition: right var(--transition);
        z-index: 999;
        gap: 8px;
    }

    .nav-links.active { right: 0; }
    .nav-links a { font-size: 14px; padding: 10px 16px; display: block; }

    .section-container { padding: 80px 24px; }

    .hero { padding: 130px 24px 60px; }

    .timeline-card { padding: 20px; }
    .timeline-header { flex-direction: column; }
    .timeline-meta { align-items: flex-start; }

    .projects-grid { grid-template-columns: 1fr; }

    .certs-header { flex-direction: column; align-items: flex-start; }

    footer { padding: 24px; }
    .footer-container { flex-direction: column; align-items: flex-start; }

    .ticker-status { display: none; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 2.2rem; }
    .skills-heatmap { grid-template-columns: 1fr; }
    .hero-name { font-size: 2.2rem; }
}
