/* ═══════════════════════════════════════════
   Luke Litman Portfolio — IronReach DNA
   Dark, premium, architectural
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* IronReach-evolved palette */
  --bg-deep:       #06060a;
  --bg-primary:    #0a0a0f;
  --bg-card:       #111118;
  --bg-card-hover: #16161f;
  --bg-elevated:   #1a1a24;

  --accent:        #c75b12;
  --accent-bright: #e07a2f;
  --accent-glow:   rgba(199, 91, 18, 0.15);
  --accent-subtle: rgba(199, 91, 18, 0.08);

  --steel:         #a8a9b4;
  --steel-dim:     #6b6b78;

  --text-primary:  #eeeef2;
  --text-secondary:#9494a3;
  --text-muted:    #5e5e6e;

  --border:        #1e1e2a;
  --border-hover:  #2a2a3a;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text-secondary); max-width: 65ch; }

.accent { color: var(--accent-bright); }
.steel  { color: var(--steel); }
.muted  { color: var(--text-muted); }

/* ── Layout ─────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* ── Navigation ─────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-links a.active {
  color: var(--accent-bright);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; }
}

/* ── Hero ────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(199, 91, 18, 0.2);
  border-radius: 100px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 40px rgba(199, 91, 18, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: var(--accent-subtle);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.825rem;
}

/* ── Cards ────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border: 1px solid rgba(199, 91, 18, 0.15);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 { margin-bottom: 0.75rem; }

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-link {
  color: var(--accent-bright);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.card-link:hover { gap: 0.6rem; }

/* ── Role-specific page cards ─────────── */

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.role-card + .role-card { margin-top: 1.5rem; }

.role-card h3 { margin-bottom: 0.5rem; }

.role-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.role-card ul {
  list-style: none;
  padding: 0;
}

.role-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.role-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Skills / Tags ───────────────────────── */

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--steel);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tag.highlight {
  color: var(--accent-bright);
  border-color: rgba(199, 91, 18, 0.25);
  background: var(--accent-subtle);
}

/* ── Timeline ────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
  transform: translateX(-4px);
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline-item .meta {
  font-size: 0.8rem;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Section Headers ─────────────────────── */

.section-header {
  margin-bottom: 3rem;
}

.section-header .overline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* ── Stats ────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Callout Box ─────────────────────────── */

.callout {
  background: var(--accent-subtle);
  border: 1px solid rgba(199, 91, 18, 0.2);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.callout p {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-style: italic;
}

.callout .attribution {
  color: var(--accent-bright);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ── Footer ──────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover { color: var(--accent-bright); }

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ── Divider ─────────────────────────────── */

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ── Project Showcase Grid ───────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}

.project-body {
  padding: 1.5rem;
}

.project-body h3 { margin-bottom: 0.5rem; }

.project-body .meta {
  font-size: 0.8rem;
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.project-body p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ── CTA Section ─────────────────────────── */

.cta-section {
  text-align: center;
  padding: 6rem 0;
}

.cta-section h2 { margin-bottom: 1rem; }

.cta-section p {
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 4rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ── Skill Meters ────────────────────────── */

.skill-meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.skill-meter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.5rem;
  transition: all 0.3s ease;
}

.skill-meter:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.skill-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.skill-meter-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-meter-level {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.skill-meter-level.vibe {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.skill-meter-level.familiar {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.skill-meter-level.proficient {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.skill-meter-level.advanced {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
}

.skill-meter-level.master {
  background: rgba(199, 91, 18, 0.15);
  color: var(--accent-bright);
}

.skill-meter-track {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

/* Glow on hover */
.skill-meter:hover .skill-meter-fill {
  box-shadow: 0 0 8px currentColor;
}

.skill-meter-fill.vibe {
  width: 20%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  color: #a78bfa;
}

.skill-meter-fill.familiar {
  width: 40%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: #60a5fa;
}

.skill-meter-fill.proficient {
  width: 60%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  color: #4ade80;
}

.skill-meter-fill.advanced {
  width: 80%;
  background: linear-gradient(90deg, #eab308, #facc15);
  color: #facc15;
}

.skill-meter-fill.master {
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  color: var(--accent-bright);
}

/* Meter legend */
.meter-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.meter-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meter-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.meter-legend-dot.vibe { background: #8b5cf6; }
.meter-legend-dot.familiar { background: #3b82f6; }
.meter-legend-dot.proficient { background: #22c55e; }
.meter-legend-dot.advanced { background: #eab308; }
.meter-legend-dot.master { background: var(--accent-bright); }

/* ── Subtle animations ───────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ── Accordion / Collapsible ─────────────── */

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.accordion-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.accordion-toggle .arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: var(--accent-bright);
}

.accordion-toggle.open .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content.open {
  max-height: 3000px;
}

/* ── Compact game cards ──────────────────── */

.game-card-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.game-card-compact:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.game-card-compact .game-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.game-card-compact .game-info {
  flex: 1;
  min-width: 0;
}

.game-card-compact .game-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
}

.game-card-compact .game-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.game-card-compact .game-status {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--accent-subtle);
  color: var(--accent-bright);
}

.game-card-compact .game-status.live {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.game-card-compact .game-status.demo {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.game-card-compact .game-status.shipped {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.game-card-compact .game-status.wip {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
}

/* ── Scroll panel for WIP projects ───────── */

.scroll-panel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-panel::-webkit-scrollbar {
  height: 6px;
}

.scroll-panel::-webkit-scrollbar-track {
  background: var(--bg-deep);
  border-radius: 3px;
}

.scroll-panel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.scroll-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.scroll-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.scroll-card h4 {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.scroll-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.scroll-card .game-icon {
  font-size: 1.75rem;
}
