/* ============================================
   LIAM DONDISCH — PERSONAL WEBSITE
   Dark editorial aesthetic
   ============================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --bg: #0d0d0d;
  --bg-2: #141414;
  --bg-3: #1a1a1a;
  --border: #2a2a2a;
  --border-hover: #444;
  --text: #e8e6e0;
  --text-muted: #777;
  --text-dim: #444;
  --accent: #c9a84c;       /* warm gold */
  --accent-dim: rgba(201, 168, 76, 0.15);
  --accent-2: #4c8ec9;     /* steel blue for tags */
  --red: #c94c4c;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --max-w: 1200px;
  --section-pad: 100px 48px;
  --radius: 4px;
  --radius-lg: 12px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

img { display: block; max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 48px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 110px);
  line-height: 1.0;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-name em {
  font-style: italic;
  color: var(--accent);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 500;
}

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

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* HERO VISUAL */
.hero-visual {
  flex-shrink: 0;
  width: 340px;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}

.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  /* Replace with your actual photo:
     background: url('your-photo.jpg') center/cover; */
}

.placeholder-initials {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--border);
  font-style: italic;
}

.hero-stats {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 0;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--accent);
  line-height: 1.3;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- SECTIONS ---- */
.section {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 60px;
  color: var(--text);
}

.section-heading em {
  font-style: italic;
  color: var(--text-muted);
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.about-body p {
  color: #b0aca4;
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.about-body p:last-child { margin-bottom: 0; }

/* SIDEBAR */
.sidebar-block {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.sidebar-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-school {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sidebar-detail {
  font-size: 14px;
  color: #999;
  margin-bottom: 2px;
}

.sidebar-detail.muted { color: var(--text-muted); }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.interests-list li {
  font-size: 14px;
  color: #999;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.interests-list li:last-child { border-bottom: none; }

/* ---- TIMELINE ---- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 4px;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}

.timeline-org {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.timeline-content p {
  color: #999;
  font-size: 15px;
  line-height: 1.7;
}

.timeline-bullets {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 14px;
  color: #999;
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 3px;
}

/* ---- CONTACT ---- */
.contact {
  text-align: center;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
  margin-top: -40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.contact-item:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.contact-icon {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  width: 20px;
  text-align: center;
}

/* ---- FOOTER ---- */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- PAGE HEADER (projects page) ---- */
.page-header {
  padding: 160px 48px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ---- PROJECTS ---- */
.projects-intro .about-main p {
  color: #b0aca4;
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 24px;
}

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

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto auto auto auto auto;
  gap: 16px 40px;
}

.project-card.featured .project-card-header { grid-column: 1; }
.project-card.featured h3 { grid-column: 1; }
.project-card.featured .project-org { grid-column: 1; }
.project-card.featured .project-desc { grid-column: 1; }
.project-card.featured .project-highlights { grid-column: 1; }
.project-card.featured .project-stack { grid-column: 1; }
.project-card.featured .project-visual { grid-column: 2; grid-row: 1 / 7; }

.project-card-header {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 2px;
}

/* Project visuals */
.project-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.vg-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.05em;
}

.nba-stats {
  display: flex;
  gap: 24px;
}

.nba-stat {
  text-align: center;
}

.nba-stat span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.nba-stat strong {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  font-weight: 400;
}

.crypto-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding: 0 12px;
}

.cbar {
  flex: 1;
  background: var(--accent);
  opacity: 0.7;
  border-radius: 2px 2px 0 0;
  transition: opacity 0.2s;
}

.cbar:nth-child(2) { opacity: 0.5; }
.cbar:nth-child(3) { opacity: 0.3; }
.cbar:nth-child(4) { opacity: 0.9; }
.cbar:nth-child(5) { opacity: 0.6; }

.research-badge {
  text-align: center;
}

.rb-num {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--accent);
  line-height: 1;
}

.rb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.project-org {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.project-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.75;
}

.project-highlights {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-highlights li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.project-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

.project-teammates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-card .project-stack {

/* ---- COURSEWORK ---- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.course-item {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}

.course-item:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > * {
  animation: fadeInUp 0.7s ease both;
}

.hero-eyebrow { animation-delay: 0.1s; }
.hero-name { animation-delay: 0.2s; }
.hero-tagline { animation-delay: 0.35s; }
.hero-cta { animation-delay: 0.5s; }

.hero-visual {
  animation: fadeInUp 0.7s ease 0.3s both;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root {
    --section-pad: 70px 24px;
  }

  .nav { padding: 16px 24px; }

  .hero {
    flex-direction: column;
    padding: 120px 24px 60px;
    min-height: auto;
    gap: 48px;
  }

  .hero-visual {
    width: 100%;
    max-width: 360px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .project-card.featured .project-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
