/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo general */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a, #0b1220);
  color: #e2e8f0;
  min-height: 100vh;
  padding: 40px;
}

/* Header */
header {
  margin-bottom: 60px;
}

header h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #38bdf8; /* azul tech */
}

header p {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 14px;
}

/* Títulos */
h2 {
  margin-bottom: 24px;
  font-size: 22px;
  color: #e2e8f0;
  letter-spacing: 1px;
}

/* Grid de proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

/* Cards */
.project-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.15);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #38bdf8;
  font-size: 18px;
}

.project-card p {
  font-size: 14px;
  color: #cbd5e1;
}

/* Sección dinámica */
#project-view {
  margin-top: 40px;
  padding: 30px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

/* Live demo */
#live-demo {
  margin-top: 20px;
}

#live-demo select,
#live-demo button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  margin-right: 10px;
  font-size: 14px;
}

#live-demo select {
  background: #1e293b;
  color: #e2e8f0;
}

#live-demo button {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

#live-demo button:hover {
  background: #0ea5e9;
}

#result {
  margin-top: 20px;
  padding: 15px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  font-size: 14px;
  color: #e2e8f0;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 720px;   /* o 800px si querés más ancho */
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #111827;
  border: 1px solid #1f2937;

  max-height: 220px;   /* altura controlada */
  overflow-y: auto;    /* scroll interno */
  overflow-x: hidden;

  border-radius: 6px;
  z-index: 10;

  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.autocomplete-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}

.autocomplete-item:hover {
  background: #1f2937;
}

.demo-caption {
  margin-bottom: 16px;
  font-size: 1.35rem;
  line-height: 1.6;
  color: #9fb3c8;
  max-width: 620px;
  border-left: 3px solid #4da3ff;
  padding-left: 12px;
  opacity: 0.9;
}

.demo-caption strong {
  color: #4da3ff;
}

.demo-caption::before {
  color: #4da3ff;
  margin-right: 8px;
}

.project-header {
  display: flex;
  flex-direction: column;   /* 🔥 clave */
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
}

.github-link {
  font-size: 14px;
  color: #4da3ff;
  text-decoration: none;
}

.github-link:hover {
  text-decoration: underline;
}

.tabs {
  display: flex;
  gap: 16px;
  margin: 28px 0 32px 0;
}

.tab-btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;

  background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,0.9));
  border: 1px solid rgba(77,163,255,0.4);
  border-radius: 10px;

  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;

  min-width: 180px;
  text-align: center;
}

.tab-btn:hover {
  transform: translateY(-2px);
  border-color: #4da3ff;
  box-shadow: 0 6px 18px rgba(77,163,255,0.25);
}

.tab-btn.active {
  background: linear-gradient(135deg, #4da3ff, #3b82f6);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(77,163,255,0.45);
  border: none;
}

/* ===== ABOUT SECTION PREMIUM ===== */

.about-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Bloque individual */
.about-block {
  padding: 28px 30px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 14px;
  transition: 0.25s ease;
}

.about-block:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.12);
}

/* Título estilizado */
.about-title {
  font-size: 18px;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 18px;
  letter-spacing: 1px;
  position: relative;
  padding-left: 14px;
}

.about-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  background: #38bdf8;
  border-radius: 2px;
}

/* Contenido texto */
.about-content p {
  font-size: 14px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 16px;
  max-width: 760px;
}

/* Lista arquitectura */
.architecture-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.architecture-list li {
  font-size: 14px;
  color: #cbd5e1;
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.architecture-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 16px;
}


/* ===== CINEMATIC FLOW ===== */

.architecture-cinematic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  overflow: hidden;
}

.flow-step {
  padding: 8px 14px;
  font-size: 13px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  color: #cbd5e1;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards;
}

.flow-step.highlight {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
}

.flow-arrow {
  color: #38bdf8;
  font-size: 14px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

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

/* =========================
   INPUT FIELD
========================= */

.search-box input {
  width: 200%;
  max-width: 520px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(79, 140, 255, 0.35);
  background: rgba(15, 25, 55, 0.95);
  color: #e6f0ff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  outline: none;

  box-shadow: 0 0 20px rgba(79, 140, 255, 0.08);
  transition: all 0.25s ease;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.73);
  font-weight: 400;
}

.search-box input:focus {
  border-color: #4f8cff;
  box-shadow:
    0 0 0 3px rgba(79, 140, 255, 0.25),
    0 0 30px rgba(79, 140, 255, 0.15);
}

/* =========================
   PRIMARY BUTTON
========================= */

.primary-btn {
  margin-top: 20px;

  padding: 16px 36px;           /* más cuerpo */
  border-radius: 12px;

  font-size: 18px;              /* antes 14px */
  font-weight: 700;             /* más decisión */
  letter-spacing: 0.6px;

  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #4f8cff, #2d6bff);
  color: white;

  box-shadow: 0 10px 28px rgba(79, 140, 255, 0.35);
  transition: all 0.25s ease;

  min-width: 240px;             /* evita que quede chico */
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79, 140, 255, 0.35);
}

.primary-btn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 14px rgba(79, 140, 255, 0.25);
}

/* =========================
   VELAS
========================= */
.chart-container {
  margin-top: 30px;
  height: 400px;
  width: 100%;
  border-radius: 14px;
  background: #131e2d;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow: hidden;
}

#tv-attr-logo {
  display: none !important;
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.808);
  font-size: 14px;
  letter-spacing: 0.4px;
}

.chart-container {
  position: relative; /* IMPORTANTE */
}

/* ASSET CARD */
.asset-card {
  background: #111c2e;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 30px 0;
  backdrop-filter: blur(6px);
}

.asset-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.asset-title h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: #e2e8f0;
}

.asset-symbol {
  margin-left: 10px;
  font-size: 16px;
  color: #60a5fa;
  font-weight: 500;
}

.asset-card-meta {
  display: flex;
  gap: 40px;
  margin-top: 14px;
}

.meta-block {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
}

.meta-value {
  font-size: 15px;
  color: #cbd5e1;
}

.asset-card-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

/*Metrics container*/
.metrics-container {
  margin-top: 40px;
}

.metrics-box {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.75)
  );
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
}

.metrics-header h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: #e2e8f0;
}

.metrics-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.metrics-tab {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.metrics-tab:hover {
  color: #cbd5e1;
}

.metrics-tab.active {
  color: #38bdf8;
}

.metrics-tab.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #38bdf8;
}

.metrics-content {
  min-height: 120px;
}

.metrics-placeholder {
  color: #64748b;
  font-size: 14px;
}

.fundamentals-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.metric-card {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.8),
    rgba(15, 23, 42, 0.6)
  );
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.25s ease;
}

.metric-card:hover {
  border-color: rgba(56,189,248,0.25);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.metric-label {
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #64748b;
}

.metric-value-modern {
  font-size: 30px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: -0.5px;
}

.metric-info {
  position: relative;
  cursor: pointer;
}

.metric-info svg {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.metric-info:hover svg {
  opacity: 1;
}

.metric-tooltip {
  position: absolute;
  bottom: 130%;
  right: 0;
  width: 220px;
  background: #0f172a;
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
}

.metric-info:hover .metric-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  margin-top: 10px;
}

.perf-item {
  padding: 16px 10px;
  text-align: center;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s ease;
}

.perf-item:hover {
  border-color: rgba(56,189,248,0.2);
}

.perf-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 6px;
}

.perf-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.perf-positive .perf-value {
  color: #3fa37c;   /* verde petróleo frío */
}

.perf-negative .perf-value {
  color: #c05656;   /* rojo vino contenido */
}

.metrics-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 24px;
}

.volatility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.vol-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 18px;
}

.vol-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.vol-value {
  font-size: 22px;
  font-weight: 600;
  color: #cbd5e1;
}

.volume-separator {
  margin: 30px 0;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.volume-section-title {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.vol-base-card,
.vol-gap-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
}

.vol-base-label,
.vol-gap-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.vol-base-value {
  font-size: 18px;
  color: #cbd5e1;
}

.vol-gap-value {
  font-size: 18px;
  font-weight: 600;
}

.vol-gap-positive .vol-gap-value {
  color: #38bdf8;
}

.vol-gap-negative .vol-gap-value {
  color: #64748b;
}

.volume-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.vol-item:hover {
  transform: translateY(-3px);
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.30);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
}

/* --- Flow interaction refined --- */

.flow-step {
  transition: background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.25s ease;
}

/* Hover SOLO para los que NO son highlight */
.flow-step:not(.highlight):hover {
  transform: translateY(-3px);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

/* Highlight base */
.flow-step.highlight {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  border-color: #38bdf8;
}

/* Highlight hover (solo lift, sin cambiar color) */
.flow-step.highlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
}

.github-cta-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.github-primary-btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.github-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.github-secondary-line {
  font-size: 1.1rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.about-badges {
  margin: 16px 0 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: rgba(100, 149, 237, 0.15);
  color: #8fb6ff;
  border: 1px solid rgba(100, 149, 237, 0.25);
}

.about-list {
  margin: 12px 0 24px 20px;
}

.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-highlight {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-left: 3px solid #6ea8ff;
  background: rgba(110, 168, 255, 0.05);
  font-weight: 500;
}

.costco-explorer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.costco-breadcrumb {
  font-size: 14px;
  color: #94a3b8;
}

.breadcrumb-item {
  cursor: pointer;
}

.breadcrumb-item:hover {
  color: #38bdf8;
}

.costco-explorer-body {
  display: flex;
}

.costco-level {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.costco-category-card {
  padding: 18px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56,189,248,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.costco-category-card:hover {
  border-color: #38bdf8;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(56,189,248,0.2);
}

/* === COSTCO BREADCRUMB IMPROVED === */

.costco-breadcrumb {
  font-size: 18px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb-item {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(56,189,248,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.breadcrumb-item:hover {
  background: rgba(56,189,248,0.25);
  color: #38bdf8;
  transform: translateY(-2px);
}

.breadcrumb-item.root {
  font-weight: 600;
  background: rgba(56,189,248,0.15);
}

.breadcrumb-sep {
  color: #64748b;
  font-size: 16px;
}

.sort-controls {
  display: flex;
  gap: 8px;
}

.sort-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s ease;
}

.sort-btn:hover {
  background: #334155;
  color: white;
}

.sort-btn.active {
  background: #2563eb;
  color: white;
}

.sort-btn .arrow {
  margin-left: 6px;
  font-weight: 600;
}

.random-btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  background: #10b981;
  color: white;

  transition: 0.25s ease;
}

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

.about-me-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- TOP SECTION WRAPPER (air) ---------- */
#main-view {
  max-width: 1800px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

/* ---------- TOP NAV TABS (Portfolio / About) ---------- */
.top-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(77, 163, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  margin-bottom: 18px;
}

.top-tab {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(77, 163, 255, 0.16);
  background: rgba(30, 41, 59, 0.35);
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
  font-weight: 600;
  transition: 0.18s ease;
}

.top-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 163, 255, 0.32);
  background: rgba(30, 41, 59, 0.55);
}

.top-tab.active {
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.95), rgba(45, 107, 255, 0.95));
  color: white;
  border: 1px solid rgba(77, 163, 255, 0.35);
  box-shadow: 0 10px 26px rgba(79, 140, 255, 0.18);
}

/* ---------- PROJECTS GRID (more air + nicer cards) ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(77, 163, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  cursor: pointer;
  transition: 0.18s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 163, 255, 0.33);
  background: rgba(15, 23, 42, 0.68);
}

.project-card h3 {
  margin: 0 0 8px;
}

.project-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.35;
}

/* ---------- PROJECT VIEW CONTAINER (air + consistent panel) ---------- */
#project-view {
  margin-top: 14px;
}

.project-card.selected {
  border-color: rgba(79, 140, 255, 0.7);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 16px 40px rgba(79, 140, 255, 0.25);
  transform: translateY(-2px);
}

.project-card.selected h3 {
  color: #8fc7ff;
}

/* ---------- ABOUT (clean, low-friction, high-signal) ---------- */
.about-me {
  margin-top: 16px;
}

.about-me-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(77, 163, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

@media (max-width: 900px) {
  .about-me-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.about-me-photo img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(77, 163, 255, 0.35);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.about-me-copy h2 {
  margin: 2px 0 8px;
}

.about-me-title {
  margin: 0 0 10px;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.about-me-summary {
  margin: 0 0 14px;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.5;
}

.about-me-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  .about-me-proof {
    grid-template-columns: 1fr;
  }
}

.proof-item {
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(77, 163, 255, 0.14);
}

.proof-k {
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 6px;
}

.proof-v {
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.35;
}

.about-me-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.badge {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(77, 163, 255, 0.16);
}

.about-me-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 22px;
  border-radius: 12px;

  font-weight: 600;
  font-size: 0.95rem;

  text-decoration: none;
  transition: 0.2s ease;

  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(77, 163, 255, 0.25);
  color: #e2e8f0;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(79, 140, 255, 0.18);
}

.cta-btn.secondary {
  background: rgba(30, 41, 59, 0.35);
  color: rgba(226, 232, 240, 0.9);
}

.about-me-note {
  color: rgba(226, 232, 240, 0.68);
  font-size: 13px;
}

.about-me {
  margin-bottom: 48px;
}

.projects-grid {
  margin-top: 24px;
}

.about-me-cta-line {
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 18px;
  margin-bottom: 20px;
}

.about-me-cta .primary {
  background: linear-gradient(135deg, #4f8cff, #2d6bff);
  color: white;
  border: none;
}

.about-me-cta .secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
}

.about-me-contact {
  margin-top: 16px;
}

.contact-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.contact-label {
  font-weight: 600;
  opacity: 0.8;
}

.contact-value {
  font-family: monospace;
  opacity: 0.9;
}

.contact-action {
  font-size: 0.9rem;
  opacity: 0.7;
  text-decoration: none;
  transition: 0.2s ease;
}

.contact-action:hover {
  opacity: 1;
}

.contact-grid {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.contact-btn {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(77,163,255,0.3);
  background: rgba(30,41,59,0.6);
  color: #e2e8f0;
}

.contact-btn:hover {
  background: rgba(77,163,255,0.2);
  border-color: rgba(77,163,255,0.6);
}

.contact-btn.primary {
  background: linear-gradient(135deg, #4f8cff, #2d6bff);
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(79,140,255,0.25);
}

.contact-row {
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 16px;
}

.contact-value {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 500;
  color: #e2e8f0;
}

.contact-action {
  font-size: 1rem;
  font-weight: 600;
  color: #4da3ff;
}