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

html { -webkit-text-size-adjust: 100%; }

body {
  background-color: #0a0a0a;
  color: #d0d0d0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111111;
  border-bottom: 1px solid #222222;
  padding: 0 24px;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

nav .nav-left,
nav .nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: #999999;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
  height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

nav a + a { margin-left: 2px; }

nav a:hover { color: #e0e0e0; }
nav a:active { color: #ffffff; }

nav .nav-right a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777777;
  padding: 0 12px;
}

nav .nav-right a:hover { color: #c0c0c0; }

a[href^="https://github.com"] { color: #c0c0c0; }
a[href^="https://github.com"]:hover { color: #ffffff; }

/* ===== Layout ===== */
main {
  flex: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  width: 100%;
}

/* ===== Profile Photo ===== */
main img[alt="Eder Gutiérrez"] {
  display: block;
  margin: 12px auto 32px;
  width: 152px;
  height: 152px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #2a2a2a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

main img[alt="Eder Gutiérrez"]:hover {
  border-color: #3a3a3a;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
  transform: scale(1.02);
}

/* ===== Typography ===== */
h1 {
  color: #f0f0f0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h1 + p { color: #c0c0c0; font-size: 1.05rem; margin-bottom: 32px; }

h2 {
  color: #e0e0e0;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid #222222;
}

h2.topics {
  border-bottom: 1px solid #222222;
  margin-top: 0;
}

h3 {
  color: #c0c0c0;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
}

p { color: #b0b0b0; margin-bottom: 14px; }

strong, b { color: #e0e0e0; font-weight: 600; }

/* ===== Hero slots ===== */
.slot.hero h1 {
  border-bottom: 1px solid #222222;
  padding-bottom: 18px;
}

.slot.hero .role {
  color: #c0c0c0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.slot.hero .tagline {
  color: #e0e0e0;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 560px;
}

.cta-row { margin-top: 28px; }

.cta-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.cta-row a.primary {
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #ffffff;
}

.cta-row a.primary:hover {
  background-color: #3a3a3a;
  border-color: #555555;
}

.cta-row a.secondary {
  background-color: transparent;
  border: 1px solid #333333;
  color: #c0c0c0;
}

.cta-row a.secondary:hover {
  color: #ffffff;
  border-color: #555555;
}

.cta-row a.quiet {
  background-color: transparent;
  border: 1px solid #2a2a2a;
  color: #999999;
  padding: 8px 14px;
}

.cta-row a.quiet:hover {
  color: #e0e0e0;
  border-color: #3a3a3a;
}

/* ===== Shared components ===== */
.muted { color: #888888; }

.metric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
  overflow: hidden;
}

.metric {
  flex: 1 1 160px;
  padding: 14px 16px;
  background-color: #111111;
  border-right: 1px solid #222222;
}

.metric:last-child { border-right: none; }

.metric .number {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric .label { color: #888888; font-size: 0.82rem; margin-top: 4px; }

.experience-card {
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 24px;
}

.experience-card .company {
  color: #a0a0a0;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.experience-card .role {
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.experience-card p { margin-bottom: 10px; }
.experience-card ul { margin-top: 6px; }

.project-card {
  border: 1px solid #222222;
  border-left: 3px solid #444444;
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 18px;
}

.project-card.tier1 { border-left-color: #666666; }
.project-card.tier2 { border-left-color: #3a3a3a; }

.project-card .project-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 6px;
}

.project-card .project-sub { color: #a0a0a0; font-size: 0.95rem; margin-bottom: 10px; }
.project-card .project-stack { color: #888888; font-size: 0.82rem; margin-top: 8px; }

.project-card .repo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #c0c0c0;
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.project-card .repo-link:hover { color: #ffffff; border-color: #555555; }

.slot.projects .tier-label {
  color: #888888;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid #222222;
}

.slot.projects .tier-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.skill-group {
  margin-top: 24px;
  padding: 14px 18px;
  border: 1px solid #222222;
  border-radius: 8px;
}

.skill-group .skill-group-title {
  color: #c0c0c0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.skill-group .skill-list { color: #b0b0b0; font-size: 0.95rem; line-height: 1.5; }

.theme-note {
  color: #888888;
  font-size: 0.85rem;
  margin-top: 16px;
  padding: 12px 16px;
  background-color: #111111;
  border: 1px solid #222222;
  border-radius: 8px;
}

.flag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888888;
  padding: 2px 6px;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* ===== Links (content, not nav) ===== */
a {
  color: #8888aa;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

a:hover { color: #b0b0cc; border-bottom-color: #8888aa; }
a:active { color: #d0d0e8; }

/* ===== Lists ===== */
ul, ol { padding-left: 22px; margin-bottom: 16px; color: #b0b0b0; }
li { margin-bottom: 5px; }
li p { margin-bottom: 4px; }

/* ===== Code ===== */
pre, code { word-wrap: break-word; overflow-wrap: break-word; hyphens: none; }

code {
  background-color: #161616;
  color: #c0c0c0;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.88em;
  border: 1px solid #252525;
}

pre {
  background-color: #121212;
  border: 1px solid #252525;
  border-radius: 8px;
  padding: 16px 20px;
  overflow: auto;
  margin-bottom: 16px;
  font-size: 0.8rem;
  line-height: 1.55;
}

pre code { background: none; border: none; padding: 0; color: #a8a8a8; font-size: 0.8rem; }

/* ===== Resume link (CTA row only) ===== */
.cta-row a[href*="Eder_Gutierrez_Resume.pdf"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 16px;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.cta-row a[href*="Eder_Gutierrez_Resume.pdf"]:hover {
  background-color: #3a3a3a;
  border-color: #555555;
  color: #ffffff !important;
}

.cta-row a[href*="Eder_Gutierrez_Resume.pdf"]:active {
  background-color: #1a1a1a;
  border-color: #2a2a2a;
  color: #ffffff !important;
}

/* ===== Horizontal Rule ===== */
hr {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 40px 0;
}

/* ===== Blockquote ===== */
blockquote {
  border-left: 3px solid #2a2a2a;
  padding: 8px 16px;
  margin: 16px 0;
  color: #777777;
  background-color: #0e0e0e;
  border-radius: 0 4px 4px 0;
}

/* ===== Images ===== */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #1a1a1a;
  margin: 16px 0;
}

img:not([alt="Eder Gutiérrez"]) { display: block; margin: 24px auto; }

/* ===== Selection ===== */
::selection { background-color: #222222; color: #ffffff; }

/* ===== Focus ===== */
a:focus-visible {
  outline: 2px solid #555577;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #222222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2e2e2e; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  main { padding: 48px 28px 72px; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.35rem; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }

  nav {
    padding: 0 16px;
    height: 48px;
  }

  nav .nav-right { display: none; }

  nav a {
    font-size: 13px;
    padding: 0 10px;
    height: 48px;
  }

  nav a + a { margin-left: 0; }

  main { padding: 36px 18px 60px; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }

  main img[alt="Eder Gutiérrez"] {
    width: 120px;
    height: 120px;
    margin-top: 8px;
    margin-bottom: 24px;
  }

  .metric-grid { flex-direction: column; }

  .metric {
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
  }

  .metric:last-child { border-bottom: none; }

  .cta-row a { padding: 8px 12px; font-size: 0.88rem; }

  .project-card, .experience-card { padding: 14px 16px; }
}

/* ===== Print ===== */
@media print {
  nav { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  pre { background: #f0f0f0; border: 1px solid #ccc; color: #000; }
  code { background: #f0f0f0; color: #000; border: 1px solid #ccc; }
  blockquote { border-left: 3px solid #999; color: #333; background: none; }
  img { border: none; }
}
