/* ==========================================================================
   Base & Canvas Background Setup
   ========================================================================== */
:root {
  --bg-color: #11111b;           /* Catppuccin Crust */
  --card-bg: rgba(24, 24, 37, 0.60); /* Semi-transparent for canvas visibility */
  --card-border: rgba(205, 214, 244, 0.14);
  --text-main: #cdd6f4;          /* Text */
  --text-muted: #a6adc8;         /* Subtext */
  --accent-mauve: #cba6f7;       /* Mauve */
  --accent-blue: #89b4fa;        /* Blue */
  --accent-teal: #94e2d5;        /* Teal */
  --accent-green: #a6e3a1;       /* Green */
  --font-serif: 'Fraunces', serif;
  --font-sans: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  padding-bottom: 3rem;
  overflow-x: hidden;
}

/* Canvas Background */
#field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.mono {
  font-family: var(--font-mono);
}

a {
  color: var(--accent-mauve);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #f5c2e7;
  text-decoration: underline;
}

/* ==========================================================================
   Navigation & Sticky Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 27, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  border-radius: 0 0 12px 12px;
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
}

.topbar nav a {
  color: var(--text-muted);
}

.topbar nav a.active,
.topbar nav a:hover {
  color: var(--text-main);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.status .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

/* ==========================================================================
   Layout Frames & Cards
   ========================================================================== */
.frame {
  max-width: 900px;
  margin: 1.25rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* Fixes card spacing on resume.html */
}

.frame.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .frame.split {
    grid-template-columns: 1fr;
  }
}

.cell {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero .eyebrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.hero .prompt {
  color: var(--accent-green);
}

.hero .name {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.5rem;
}

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

.hero .titles {
  font-size: 0.8rem;
  color: var(--accent-teal);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.hero .role {
  color: var(--text-main);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.quote-block {
  border-left: 3px solid var(--accent-mauve);
  padding-left: 1rem;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.quote-attr {
  font-style: normal;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: var(--accent-blue);
}

/* ==========================================================================
   Resume & Timeline Styles
   ========================================================================== */
.resume-header .resume-title {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-teal);
  margin: 0.5rem 0 1rem;
}

.summary-text {
  font-size: 0.95rem;
  line-height: 1.65;
}

.company-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.company-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
}

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

.role-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.role-title {
  font-weight: 600;
  color: var(--text-main);
}

.role-dates {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.bullets {
  list-style: none;
  padding-left: 0.5rem;
}

.bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent-mauve);
}

.block-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.25rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--card-border);
}

.tl-item {
  position: relative;
}

.tl-marker {
  position: absolute;
  left: -1.25rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-color);
  transform: translateX(-50%);
}

.tl-item.current .tl-marker {
  background: var(--accent-mauve);
  box-shadow: 0 0 0 0 rgba(203, 166, 247, 0.6);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(203, 166, 247, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(203, 166, 247, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 166, 247, 0); }
}

.tl-date {
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 0.15rem;
}

.tl-role {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tl-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stack-a { color: var(--accent-mauve); }
.stack-b { color: var(--accent-teal); }

/* ==========================================================================
   Skills, Education, & Stack Badges
   ========================================================================== */
.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.list li .name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.list li .detail {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-tags span {
  background: rgba(205, 214, 244, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.stack-tags span:hover {
  transform: translateY(-2px);
  border-color: var(--accent-mauve);
  box-shadow: 0 4px 12px rgba(203, 166, 247, 0.2);
  color: #fff;
}

.stack-tags .hot-a {
  border-color: rgba(203, 166, 247, 0.4);
  color: var(--accent-mauve);
}

.stack-tags .hot-b {
  border-color: rgba(148, 226, 213, 0.4);
  color: var(--accent-teal);
}

.edu-item + .edu-item {
  margin-top: 1.25rem;
}

.edu-degree {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.edu-school {
  color: var(--accent-mauve);
  font-size: 0.85rem;
}

.edu-dates {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.skill-group + .skill-group {
  margin-top: 1.25rem;
}

.skill-group-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}