/* ===== VARIABLES ===== */
:root {
  --bg:       #0f0f0f;
  --bg2:      #080808;
  --surface:  #1a1a1a;
  --surface2: #252525;
  --accent:   #d4a574;
  --text:     #e8e8e8;
  --muted:    #a0a0a0;
  --border:   #2a2a2a;
  --green:    #a6e3a1;
  --red:      #f38ba8;
  --radius:   10px;
  --nav-h:    56px;
  --font:     'JetBrains Mono', monospace;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ===== CURSOR ===== */
.cursor {
  display: inline-block;
  animation: blink 1.7s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* ===== NAV ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
}

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

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.nav-logo .cursor {
  font-size: 0.75rem;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  justify-self: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  justify-self: end;
}

.about-back {
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  transition: color 0.2s;
  font-family: var(--font);
}
.about-back:hover { color: var(--text); }

/* ===== HERO ===== */
#hero {
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}

.hero-inner {
  padding: 4rem 0 2rem;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero-photo {
  width: 220px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.hero-text {
  flex: 1;
}

.hero-greeting {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.name-cursor {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.hero-link:hover { color: var(--text); }
.hero-link.accent { color: var(--accent); }
.hero-link.accent:hover { color: #fcd9b8; }

.hero-sep { color: var(--border); }

/* ===== SECTION HEADER ===== */
.section-header {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-star { color: var(--accent); }

section { padding: 4rem 0; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

/* ===== TERMINAL DOTS ===== */
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.terminal-window {
  background: var(--bg2);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  min-height: 170px;
  display: flex;
  flex-direction: column;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.terminal-repo { font-size: 0.82rem; }
.repo-user { color: var(--accent); }
.repo-name { color: var(--accent); }

.in-progress {
  color: var(--muted);
  font-size: 0.75rem;
}

.terminal-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  flex: 1;
}

.terminal-screenshot {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  object-position: top;
  flex: 1;
  display: block;
}

.terminal-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contributors {
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: auto;
}

.project-info {
  padding: 1.25rem;
}
.project-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.project-info p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.project-link:hover {
  background: var(--accent);
  color: var(--bg);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.tag-icon { color: var(--muted); font-size: 0.8rem; }
.tag {
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-family: var(--font);
  transition: color 0.2s;
}
.tag[data-tech="react"]  { color: #61dafb; }
.tag[data-tech="node"]   { color: #68a063; }
.tag[data-tech="socket"] { color: #c0c0c0; }
.tag[data-tech="mongo"]  { color: #47a248; }
.tag[data-tech="jwt"]    { color: var(--accent); }
.tag[data-tech="python"] { color: #3776ab; }
.tag[data-tech="twilio"] { color: #f22f46; }
.tag[data-tech="aws"]    { color: #ff9900; }
.tag[data-tech="fastapi"]{ color: #009688; }
.tag[data-tech="openai"] { color: #74aa9c; }

/* ===== SKILLS BOX ===== */
#skills { padding: 0 0 4rem; }

.skills-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.skills-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.skills-title {
  font-size: 0.82rem;
  color: var(--muted);
}

.skills-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skill-row {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  font-size: 0.85rem;
}
.skill-label {
  min-width: 110px;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.8rem;
}
.skill-items {
  color: var(--text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.skill-items i {
  font-size: 1rem;
  vertical-align: middle;
}

.skills-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.certs { display: flex; flex-direction: column; gap: 0.4rem; }
.cert-line {
  font-size: 0.82rem;
  color: var(--accent);
}
.cert-note {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ===== DASHBOARD ===== */
.dashboard { padding: 0 0 4rem; }

.dash-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-row-1 { grid-template-columns: 1.6fr 1fr; }
.dash-row-2 { grid-template-columns: 1.6fr 0.8fr 0.7fr; }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.dash-icon { margin-right: 0.25rem; }
.dash-link {
  color: var(--accent);
  font-size: 0.75rem;
  transition: opacity 0.2s;
}
.dash-link:hover { opacity: 0.7; }

/* CURRENTLY BUILDING */
.building-list { display: flex; flex-direction: column; gap: 1rem; }
.building-item { display: flex; flex-direction: column; gap: 0.5rem; }
.building-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.building-name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.building-status {
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  opacity: 0.8;
}
.building-desc { color: var(--muted); font-size: 0.8rem; line-height: 1.65; }
.building-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.building-divider { height: 1px; background: var(--border); }
.loading { color: var(--muted); font-size: 0.8rem; font-style: italic; }

/* CONNECT */
.connect-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.connect-btn {
  display: block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
  font-family: var(--font);
}
.connect-btn:hover { opacity: 0.85; }
.connect-links { display: flex; flex-direction: column; gap: 0.5rem; }
.connect-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.connect-social:hover { color: var(--text); }

/* MAP */
.map-placeholder {
  height: 140px;
  background: #0d1117;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250,179,135,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,179,135,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.map-label {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(205,214,244,0.4);
  letter-spacing: 0.3em;
}
.map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.map-location { color: var(--muted); }
.map-clock { color: var(--muted); }

/* INTERESTS */
.interest-list { display: flex; flex-direction: column; gap: 0.6rem; }
.interest-item { color: var(--text); font-size: 0.82rem; }
.interest-sub {
  color: var(--muted);
  font-size: 0.75rem;
  padding-left: 1.4rem;
}
.interest-note {
  color: var(--muted);
  font-size: 0.78rem;
}

/* MLB */
.mlb-teams { display: flex; flex-direction: column; gap: 0.85rem; }
.mlb-team { display: flex; flex-direction: column; gap: 0.2rem; }
.mlb-name { color: var(--text); font-size: 0.82rem; font-weight: 600; }
.mlb-record { color: var(--accent); font-size: 0.78rem; }
.mlb-game {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 0.25rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  background: var(--bg2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-sep { color: var(--border); }
.footer-links {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.footer-links a { color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

/* ===== PROJECT OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-nav {
  position: sticky;
  top: 0;
  background: rgba(15,15,15,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 10;
}
.overlay-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.overlay-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  font-family: var(--font);
}
.overlay-close:hover { color: var(--text); }

.overlay-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.overlay-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.overlay-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
}
.overlay-subtitle a {
  color: var(--accent);
  transition: opacity 0.2s;
}
.overlay-subtitle a:hover { opacity: 0.7; }

.overlay-hook {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}
.overlay-hook p {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.75;
  font-style: italic;
}

.overlay-section { margin-bottom: 2rem; }
.overlay-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.overlay-section p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.overlay-decision, .overlay-challenge {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}
.decision-label, .challenge-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* ===== ABOUT PAGE ===== */
.about-page {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
  min-height: 100vh;
}
.about-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.about-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.about-photo-img {
  width: 320px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-photo-label {
  font-size: 0.72rem;
  color: var(--surface2);
}
.about-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}
.about-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}
.about-terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 760px;
}
.about-terminal-body {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about-cmd {
  font-size: 0.88rem;
  color: var(--muted);
}
.about-prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}
.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.about-meta-row {
  display: grid;
  grid-template-columns: 100px 20px 1fr;
  align-items: baseline;
  font-size: 0.85rem;
  gap: 0.5rem;
}
.about-meta-key { color: var(--accent); }
.about-meta-arrow { color: var(--surface2); }
.about-meta-val { color: var(--text); }
.about-meta-val.accent { color: var(--accent); }
.about-divider {
  color: var(--surface2);
  font-size: 0.78rem;
  letter-spacing: 0;
  overflow: hidden;
  white-space: nowrap;
}
.about-story {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-story p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.85;
}
.about-links-terminal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}
.about-link:hover { color: var(--accent); }
.about-link-sep { color: var(--border); }

/* ===== FADE IN ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .hamburger { display: block; }
  .projects-grid { grid-template-columns: 1fr; }
  .dash-row-1 { grid-template-columns: 1fr; }
  .dash-row-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; }
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-photo-img {
    width: 220px;
    border-radius: 12px;
  }
  .about-content {
    align-items: center;
  }
  .about-links-terminal {
    justify-content: center;
  }
  .footer-inner { gap: 0.5rem; }
  .footer-links { margin-left: 0; width: 100%; }
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 0;
  }
  .hero-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
  }
  .hero-text { width: 100%; }
  .hero-bio { margin: 0 auto; }
  .hero-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
