:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f2;
  --text: #17161a;
  --text-muted: #64646a;
  --border: #e6e6e3;
  --accent: #17161a;
  --accent-dark: #000000;
  --accent-lime: #e2f959;
  --accent-lime-hover: #d3ea44;
  --accent-lime-soft: #f2fac8;
  --radius: 12px;
  --max-width: 860px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5,
.logo, .section-title, .subheading,
.career-role, .skill-title, .project-body h3,
.timeline-header h4, .highlight-card h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.005em;
}

h1, .section-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  padding: 72px 0 64px;
}

.hero-inner { text-align: left; }

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 500;
}

.hero-blurb {
  max-width: 640px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent-lime-soft);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime-hover);
  flex-shrink: 0;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero-location svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-lime);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-1px);
}


/* Focus Area */
.focus-area {
  padding: 0 0 48px;
}

.focus-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-lime);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 32px;
}

.focus-badge {
  display: inline-block;
  background: var(--accent-lime);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.focus-title {
  font-size: 1.4rem;
  margin: 0 0 14px;
}

.focus-desc {
  max-width: 640px;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 18px;
}

@media (max-width: 640px) {
  .focus-card { padding: 24px; }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
  background: var(--accent-lime);
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
}

.section-title {
  position: relative;
  font-size: 1.75rem;
  margin: 0;
  padding-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-lime);
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 32px;
}

.about-grid p {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.85;
}

.learning-path {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.learning-path-title {
  font-size: 1rem;
  margin: 0 0 16px;
}

.learning-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learning-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.8;
}

.learning-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
}

/* Resume */
.subheading {
  font-size: 1.1rem;
  margin: 40px 0 16px;
}

.subheading:first-of-type { margin-top: 0; }

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 720px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.skill-card:hover {
  border-color: var(--text);
  box-shadow: 0 10px 24px rgba(20, 20, 18, 0.08);
  transform: translateY(-2px);
}

.skill-icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 14px;
}

.skill-icon svg { width: 26px; height: 26px; }

.skill-title {
  margin: 0 0 12px;
  font-size: 1rem;
}

/* Career history */
.career-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 4px;
}

.eyebrow-small {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  background: var(--accent-lime-soft);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.download-link:hover { background: var(--accent-lime); }

.career-list {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.career-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
  .career-item { grid-template-columns: 1fr; gap: 6px; }
}

.career-date {
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.career-date .current {
  color: var(--accent-dark);
  font-weight: 600;
}

.career-role {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.career-company {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.career-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Grouped role (same company, multiple positions) */
.role-sub-list {
  margin-top: 4px;
}

.role-sub-item {
  padding: 14px 0;
  border-top: 1px dashed var(--border);
}

.role-sub-item:first-child { border-top: none; padding-top: 0; }

.role-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 6px;
}

.role-sub-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.role-sub-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Highlights attached to a specific role (screenshots) */
.role-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  gap: 16px;
  margin-top: 16px;
}

.role-highlights-single {
  grid-template-columns: minmax(200px, 240px);
}

@media (max-width: 480px) {
  .role-highlights, .role-highlights-single {
    grid-template-columns: 1fr;
  }
}

.highlight-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.highlight-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 8px;
  box-sizing: border-box;
}

.highlight-card figcaption {
  padding: 12px 14px;
}

.highlight-card h5 {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.highlight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.edu-item h4 { margin: 0 0 4px; }
.edu-item p { margin: 0; color: var(--text-muted); }

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ececea;
  color: #262624;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-tool {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Projects */
.project-category {
  margin-bottom: 44px;
}

.project-category:last-child {
  margin-bottom: 0;
}

.project-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
}

.project-category-title::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-lime);
  flex-shrink: 0;
}

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

.project-grid--solo {
  grid-template-columns: minmax(240px, 440px);
}

@media (max-width: 640px) {
  .project-grid, .project-grid--solo { grid-template-columns: 1fr; }
}

.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
  border-color: var(--text);
  box-shadow: 0 10px 24px rgba(20, 20, 18, 0.08);
  transform: translateY(-2px);
}

.project-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}

.placeholder-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.project-media--photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.project-media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.watch-demo-btn:hover {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  transform: translateY(-1px);
}

.project-body {
  padding: 14px 16px;
}

.project-body h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.project-body p {
  color: var(--text-muted);
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.project-body .tag-group {
  gap: 6px;
  margin: 0;
}

.project-body .tag {
  padding: 4px 9px;
  font-size: 0.68rem;
}

.tech-stack-label {
  margin: 0 0 8px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Video demo modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 22, 26, 0.65);
}

.video-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-modal-close:hover { background: var(--accent-lime); }

.video-modal-body {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-body video {
  width: 100%;
  height: 100%;
  display: block;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.video-placeholder svg {
  color: var(--accent-lime-hover);
}

.video-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

/* Contact */
.contact-inner { text-align: left; }

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 28px 0 36px;
  background: transparent;
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
    gap: 16px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
}

/* Case study cards (Projects section) */
.project-grid--full {
  grid-template-columns: 1fr;
}

.case-study-card .project-body {
  padding: 26px 28px;
}

.case-study-card h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.case-study-card .case-study-meta {
  margin: 0 0 18px;
}

.case-study-card .project-body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.case-study-card .project-body p:last-child {
  margin-bottom: 0;
}

.case-study-card .project-body p strong {
  color: var(--text);
}
