/* Portfolio shared styles - terminal/monospace dark theme */
:root {
  --bg: #303446;
  --bg-elev: #292c3c;
  --bg-card: #414559;
  --bg-terminal: #1e1e2e;
  --fg: #c6d0f5;
  --fg-dim: #a5adce;
  --fg-muted: #838ba7;
  --accent: #f2d5cf;
  --accent-2: #f4b8e4;
  --green: #a6d189;
  --red: #e78284;
  --yellow: #e5c890;
  --blue: #8caaee;
  --mauve: #ca9ee6;
  --teal: #81c8be;
  --border: #51576d;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  zoom: 0.9;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 80px;
  animation: page-in 0.5s ease both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 60px;
}
.nav-crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-dim);
  font-size: 18px;
  transition: color 0.25s ease;
}
.nav-crumbs a {
  color: var(--fg-dim);
  transition: color 0.25s ease;
}
.nav-crumbs a:hover { color: var(--accent); text-decoration: none; }
.s-icon {
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: inline-block;
  vertical-align: -4px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s-icon.gh { fill: currentColor; stroke: none; }
.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 0;
  animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 65%, 100% { opacity: 1; }
  85% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 42px;
  align-items: center;
  font-size: 17px;
}
.nav-links a {
  color: var(--fg);
  position: relative;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-links a.more { color: var(--fg); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  margin: 0;
}
h1 { font-size: 44px; letter-spacing: -0.5px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

.accent { color: var(--accent); }
.dim { color: var(--fg-dim); }
.muted { color: var(--fg-muted); }

/* ---------- HOME HERO ---------- */
.hero {
  padding: 60px 0 40px;
}
.hero h1 { margin-bottom: 28px; }
.hero p {
  font-size: 18px;
  color: var(--fg);
  max-width: 760px;
  margin: 0 0 18px;
}
.hero .links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
  font-size: 17px;
}
.hero .links a {
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero .links a:hover { color: var(--accent); }
.hero .sep { color: var(--border); }

.linkdash {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
}

/* ---------- TERMINAL CARD ---------- */
.term {
  background: var(--bg-terminal);
  border-radius: 10px;
  padding: 18px 20px 16px;
  font-size: 15px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.term-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.term-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.term-dots .r { background: #ed8796; }
.term-dots .y { background: #e5c890; }
.term-dots .g { background: #a6d189; }

.term-stars {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--fg-dim);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-repo {
  margin-bottom: 8px;
  font-size: 15px;
}
.term-repo .owner { color: var(--accent-2); }
.term-repo .slash { color: var(--fg-muted); }
.term-repo .name { color: var(--green); }

.term-desc {
  color: var(--fg);
  margin: 4px 0 16px;
  line-height: 1.5;
}
.term-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg-muted);
  font-size: 13px;
  font-style: italic;
}

/* outer card around terminal */
.proj-shell {
  background: linear-gradient(180deg, #6d7297 0%, #5b6080 100%);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ---------- FEATURED PROJECTS ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 24px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.view-all {
  color: var(--accent);
  position: relative;
}
.view-all::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) 4px,
    transparent 4px,
    transparent 8px
  );
  transition: width 0.25s ease;
}
.view-all:hover { text-decoration: none; }
.view-all:hover::after { width: 100%; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.featured-card .body {
  padding: 22px 6px 0;
}
.featured-card h3 { margin-bottom: 10px; font-size: 22px; }
.proj-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.proj-head h3 { margin: 0; }
.proj-icons { display: inline-flex; gap: 12px; align-items: center; }
.proj-icons a { color: var(--fg-dim); display: inline-flex; }
.proj-icons a:hover { color: var(--accent); }
.proj-icons .s-icon { width: 16px; height: 16px; }
.featured-card p {
  color: var(--fg);
  margin: 0 0 18px;
  line-height: 1.55;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.tags .tag-icon { color: var(--fg-muted); margin-right: 4px; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.tag.go { color: #f2a59a; border-color: rgba(242,165,154,0.3); }
.tag.sec { color: #c6d0f5; border-color: rgba(198,208,245,0.25); }
.tag.ai { color: var(--mauve); border-color: rgba(202,158,230,0.3); }
.tag.bot { color: var(--yellow); border-color: rgba(229,200,144,0.3); }
.tag.def { color: var(--green); border-color: rgba(166,209,137,0.3); }
.tag.pow { color: var(--teal); border-color: rgba(129,200,190,0.3); }
.tag.gin { color: var(--green); border-color: rgba(166,209,137,0.3); }
.tag.dock { color: var(--blue); border-color: rgba(140,170,238,0.3); }
.tag.redis { color: var(--red); border-color: rgba(231,130,132,0.3); }
.tag.an { color: var(--accent-2); border-color: rgba(244,184,228,0.3); }
.tag.ts { color: var(--blue); border-color: rgba(140,170,238,0.3); }
.tag.svelte { color: #f2a59a; border-color: rgba(242,165,154,0.3); }
.tag.port { color: var(--mauve); border-color: rgba(202,158,230,0.3); }
.tag.dist { color: var(--teal); border-color: rgba(129,200,190,0.3); }
.tag.map { color: var(--yellow); border-color: rgba(229,200,144,0.3); }
.tag.had { color: var(--accent-2); border-color: rgba(244,184,228,0.3); }
.tag.rust { color: #f2a59a; border-color: rgba(242,165,154,0.3); }
.tag.cli { color: var(--green); border-color: rgba(166,209,137,0.3); }
.tag.web { color: var(--blue); border-color: rgba(140,170,238,0.3); }
.tag.db { color: var(--red); border-color: rgba(231,130,132,0.3); }

/* ---------- INFO GRID (theme/connect/location/click) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 60px;
}
.info-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  background: rgba(255,255,255,0.012);
}
.info-card h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.theme-pill {
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--fg-dim);
  cursor: pointer;
}
.theme-pill.active {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.sw { aspect-ratio: 1; border-radius: 6px; }
.sw.active { outline: 2px solid var(--accent); outline-offset: 2px; }

.connect-text { color: var(--fg-dim); font-size: 14px; margin: 0 0 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: #f5e0db; text-decoration: none; }

.map-box {
  background: #1a1c25;
  border-radius: 8px;
  height: 110px;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.location-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-dim);
}

.click-area { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.click-counter { font-size: 30px; color: var(--accent); }
.click-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 1px;
}
.click-msg { font-size: 12px; color: var(--fg-muted); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg-muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn { align-self: flex-start; margin-top: 2px; }

/* ---------- FAVORITE SHOWS ---------- */
.shows-card { grid-column: 1 / -1; padding: 28px 32px; }
.shows-label {
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 500;
  margin: 0 0 18px;
}
.shows-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shows-list li {
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
}
.shows-list li:last-child { border-bottom: none; }
.show-title { color: var(--fg); }
.show-note { color: var(--fg-muted); font-style: italic; margin-left: 8px; font-size: 16px; }

/* ---------- BOTTOM ROW ---------- */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}
.list-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.list-card h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}
.list-card h4 .label {
  display: flex; align-items: center; gap: 8px;
}
.list-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--fg-dim);
  gap: 12px;
}
.list-row .left {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-row .left strong { color: var(--accent); font-weight: 500; margin-right: 4px; }
.list-row .delta-pos { color: var(--green); }
.list-row .delta-neg { color: var(--red); }
.list-row .date { color: var(--fg-muted); }

/* ---------- FOOTER ---------- */
footer {
  margin-top: 60px;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 16px;
}
footer .left, footer .right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
footer .status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 8px var(--green); margin-right: 6px; }
footer a { color: var(--fg-dim); }
footer a:hover { color: var(--accent); }

/* ---------- ABOUT PAGE ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 50px;
  align-items: start;
}
.about-photo {
  background: transparent;
  aspect-ratio: 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 13px;
  border: none;
}
.about-photo .placeholder-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.02) 12px 24px);
}
.about-text p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.about-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  font-size: 15px;
  color: var(--fg-dim);
  flex-wrap: wrap;
}
.about-links a { color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.about-links a:hover { color: var(--accent); }
.about-links .star { color: var(--border); }

.about-section { margin-top: 70px; }
.about-section h2 {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.skill {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
}
.skill .name { color: var(--accent); margin-bottom: 4px; }
.skill .level { color: var(--fg-muted); font-size: 12px; }

.timeline {
  border-left: 1px dashed var(--border);
  margin-left: 8px;
  padding-left: 24px;
}
.timeline-item { margin-bottom: 28px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-item .when { color: var(--fg-muted); font-size: 13px; margin-bottom: 4px; }
.timeline-item .what { color: var(--accent); font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.timeline-item .where { color: var(--fg-dim); font-size: 14px; margin-bottom: 6px; }
.timeline-item p { margin: 0; color: var(--fg); font-size: 14px; line-height: 1.55; }

/* ---------- PROJECTS PAGE ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

@media (max-width: 1100px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page { padding: 20px 20px 60px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .featured-grid, .bottom-row, .projects-grid, .about-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}
