/* ── RESET & DESIGN TOKENS (MODERN NEUTRAL TECH) ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Neutral Color Palette (Slate / Zinc Modern) */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --card-bg: #ffffff;
  
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-hover: #cbd5e1;

  --text-main: #0f172a;        /* Slate-900 */
  --text-secondary: #334155;   /* Slate-700 */
  --text-muted: #64748b;       /* Slate-500 */
  --text-dim: #94a3b8;         /* Slate-400 */

  --accent: #0f172a;           /* Clean dark primary */
  --accent-blue: #2563eb;      /* Tech blue */
  --accent-soft: #f1f5f9;
  --success: #10b981;          /* Status green */
  --success-bg: #ecfdf5;

  /* Legacy variables compatibility */
  --paper: var(--bg);
  --paper2: var(--bg-subtle);
  --paper3: var(--bg-muted);
  --ink: var(--text-main);
  --ink2: var(--text-secondary);
  --ink3: var(--text-muted);
  --ink4: var(--text-dim);
  --rule: var(--border);
  --rule2: var(--border-subtle);
  --accent2: var(--text-main);
  --accent3: var(--success);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.09);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAVBAR ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: border-color 0.2s;
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand-tag {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background-color 0.15s;
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
  background-color: var(--bg-muted);
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.15s;
  font-family: var(--font-body);
}

.lang-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--text-main);
}

/* ── HERO SECTION ── */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 2rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-badge-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.hero-name {
  font-size: clamp(36px, 5.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.035em;
}

.hero-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.015em;
}

.hero-bio {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-main);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s, transform 0.15s;
}

.btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-subtle);
  transform: translateY(-1px);
}

/* Social icons buttons */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.social-btn:hover {
  color: var(--text-main);
  border-color: var(--border-hover);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.social-btn svg {
  width: 17px;
  height: 17px;
}

/* Hero Right: Avatar Frame */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-avatar-box {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 5px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

/* ── MAIN CONTENT LAYOUT ── */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.sec {
  margin-top: 4rem;
}

.sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.sec-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--border);
}

.sec-link-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.sec-link-more:hover {
  color: var(--text-main);
}

/* ── SKILLS SECTION (GROUPED BENTO / CARDS) ── */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.skill-category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skill-category-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.scc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.scc-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.scc-icon svg {
  width: 16px;
  height: 16px;
}

.scc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.scc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s, border-color 0.15s;
}

.tech-pill:hover {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text-main);
}

/* ── ABOUT EXECUTIVE SUMMARY ── */
.about-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.about-block h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.about-block p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.about-list-icon {
  margin-top: 3px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.about-list-icon svg {
  width: 14px;
  height: 14px;
}

/* ── EXPERIENCE (COMPACT EXECUTIVE LIST) ── */
.exp-compact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-compact-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.exp-compact-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.eci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.eci-role-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.eci-role {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin: 0;
}

.eci-company {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--bg-muted);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
}

.eci-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eci-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1.5px 7px;
  border-radius: 9999px;
}

.eci-badge-active .status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #10b981;
}

.eci-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.eci-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── DECORAÇÃO DA STACK NA EXPERIÊNCIA ── */
.eci-stack-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.eci-stack-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  user-select: none;
}

.eci-stack-label svg {
  color: var(--accent-blue);
}

.eci-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.exp-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  user-select: none;
}

.exp-tech-badge:hover {
  transform: translateY(-1.5px);
  border-color: var(--border-hover);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  color: var(--text-main);
}

/* Dots Coloridos Decorativos com Efeito Radar Glow */
.badge-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.exp-tech-badge:hover .badge-dot {
  transform: scale(1.25);
}

/* Paleta de cores das tecnologias */
.badge-python .badge-dot { background: #38bdf8; box-shadow: 0 0 6px rgba(56, 189, 248, 0.65); }
.badge-sql .badge-dot { background: #6366f1; box-shadow: 0 0 6px rgba(99, 102, 241, 0.65); }
.badge-playwright .badge-dot { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.65); }
.badge-powerbi .badge-dot { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.65); }
.badge-js .badge-dot { background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.65); }
.badge-servicenow .badge-dot { background: #14b8a6; box-shadow: 0 0 6px rgba(20, 184, 166, 0.65); }
.badge-network .badge-dot { background: #8b5cf6; box-shadow: 0 0 6px rgba(139, 92, 246, 0.65); }
.badge-cisco .badge-dot { background: #0284c7; box-shadow: 0 0 6px rgba(2, 132, 199, 0.65); }
.badge-mikrotik .badge-dot { background: #ec4899; box-shadow: 0 0 6px rgba(236, 72, 153, 0.65); }
.badge-zabbix .badge-dot { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.65); }

/* ── FEATURED PROJECTS ── */
.sec-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

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

.project-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

/* ── MOCKUP WINDOW BAR ── */
.pc-preview {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: #0f172a;
}

.pc-window-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pc-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-close { background: #ef4444; opacity: 0.85; }
.dot-min   { background: #f59e0b; opacity: 0.85; }
.dot-max   { background: #10b981; opacity: 0.85; }

.pc-window-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.pc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 9999px;
}

.pc-status.live {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pc-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.pc-status .status-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.4;
  animation: pulseDot 2s infinite ease-out;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── CARROSSEL INTERATIVO DO CARD ── */
.card-carousel {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0f172a;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  background: #090e17;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 28px;
  overflow: hidden;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

.project-card:hover .carousel-slide img {
  transform: scale(1.02);
}

/* Badge Contador de Slides (1 / 4) */
.carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 10;
}

/* Setas de Navegação (Prev / Next) */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease, transform 0.15s ease;
  z-index: 12;
}

.carousel-nav-btn.prev { left: 8px; }
.carousel-nav-btn.next { right: 8px; }

.pc-preview:hover .carousel-nav-btn {
  opacity: 1;
}

.carousel-nav-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-50%) scale(1.06);
}

/* Bullets / Dots */
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 11;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 16px;
  background: #ffffff;
}

/* ── CARD BODY ── */
.pc-body {
  padding: 18px 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pc-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  background: var(--bg-muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.pc-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.pc-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.pc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.pc-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pc-tag {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}

.project-card:hover .pc-tag {
  border-color: var(--border-hover);
  background: var(--bg-muted);
}

/* ── CARD FOOTER & ACTIONS ── */
.pc-footer {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}

.pc-btn-primary {
  background: var(--text-main);
  color: #ffffff;
}

.pc-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.pc-btn-secondary {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pc-btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  color: var(--text-main);
  transform: translateY(-1px);
}

.pc-link-details {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.pc-link-details:hover {
  color: var(--accent-blue);
  transform: translateX(2px);
}

/* ── FOOTER ── */
.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer span {
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--text-main);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--text-main);
  color: #ffffff;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 90;
  transform: translateY(8px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1e293b;
}

/* ── ANIMATIONS & I18N TRANSITIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.45s ease both;
}

.fade-up:nth-child(1) { animation-delay: 0.04s; }
.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.12s; }
.fade-up:nth-child(4) { animation-delay: 0.16s; }

[data-i18n] {
  transition: opacity 0.15s ease;
}

.lang-switching [data-i18n] {
  opacity: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2.5rem;
    gap: 2rem;
  }

  .hero-right {
    order: -1;
    align-items: flex-start;
  }

  .hero-avatar-box {
    width: 110px;
    height: 110px;
  }

  .about-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }

  .career-metrics-bar {
    grid-template-columns: 1fr;
  }

  .exp-badge-active {
    display: inline-block;
    align-self: flex-start;
  }


  .page {
    padding: 0 1.5rem 4rem;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 0 1rem;
  }

  .nav-brand-tag {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-socials {
    margin-left: 0;
    justify-content: flex-start;
  }
}
