:root {
  --bg: #010314;
  --panel: #080d2a;
  --panel-alt: #0e163d;
  --text: #f7f7ff;
  --muted: #9fa6d8;
  --accent: #6d6bff;
  --accent-soft: rgba(109, 107, 255, 0.18);
  --gradient: radial-gradient(circle at top, #2b2d70, #050718 60%);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #2a2a2a;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.5rem, 4vw, 4rem);
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.brand .logo {
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: #4a4a4a;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #1a1a2e;
  background: #f0f0f0;
}

.nav-toggle {
  display: none;
  border: 1px solid #e0e0e0;
  background: transparent;
  color: #1a1a2e;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

main {
  padding: 0;
  background: #f5f5f5;
}

/* Resume-style layout */
.hero-resume {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  background: #ffffff;
}

/* Dark sidebar */
.resume-sidebar {
  background: #1a1a2e;
  color: #ffffff;
  padding: 2.5rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.resume-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resume-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.resume-title {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.resume-contact {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #d0d0d0;
}

.resume-contact p {
  margin: 0.3rem 0;
}

.resume-contact a {
  color: #d0d0d0;
  text-decoration: none;
}

.resume-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.resume-sidebar-section {
  margin-top: 1rem;
}

.resume-sidebar-section h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.resume-project {
  margin-bottom: 1.5rem;
}

.resume-project h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.resume-project p {
  font-size: 0.85rem;
  color: #b0b0b0;
  line-height: 1.5;
  margin: 0;
}

.resume-achievements {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-achievements li {
  font-size: 0.85rem;
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
}

.resume-achievements li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6d6bff;
  font-weight: bold;
}

.resume-skills {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-category {
  font-size: 0.85rem;
  color: #b0b0b0;
  line-height: 1.5;
}

.skill-category strong {
  color: #ffffff;
  font-weight: 600;
}

/* Light main content */
.resume-main {
  background: #ffffff;
  padding: 3rem 3.5rem;
  color: #2a2a2a;
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a2e;
  margin: 0 0 1.2rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.resume-summary {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0;
}

.resume-item {
  margin-bottom: 2rem;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  gap: 1rem;
}

.resume-item-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}

.resume-date {
  font-size: 0.9rem;
  color: #6d6bff;
  font-weight: 500;
}

.resume-date:empty {
  display: none;
}

.resume-company {
  font-size: 0.95rem;
  color: #6d6bff;
  font-weight: 500;
  margin: 0 0 0.8rem 0;
  font-style: italic;
}

.resume-duties {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-duties li {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
}

.resume-duties li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #6d6bff;
  font-weight: bold;
}

.resume-duties li strong {
  color: #1a1a2e;
  font-weight: 600;
}

.resume-section p {
  font-size: 0.95rem;
  color: #4a4a4a;
  line-height: 1.7;
  margin: 0.5rem 0;
}

.resume-achievements li strong {
  color: #ffffff;
  font-weight: 600;
}

.section {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card-badge {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card ul {
  padding-left: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.tracks {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid #e8e9ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tracks .section-heading .eyebrow {
  color: #6d6bff;
  font-weight: 600;
}

.tracks .section-heading h2 {
  color: #1a1a2e;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tracks .section-heading p {
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.6;
}

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

.track-card {
  padding: 1.75rem;
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid #e8e9ea;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.track-card:hover {
  border-color: #6d6bff;
  box-shadow: 0 8px 16px rgba(109, 107, 255, 0.12);
  transform: translateY(-2px);
}

.track-card:visited {
  color: inherit;
}

.track-card h3 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin: 0 0 0.75rem 0;
  font-weight: 600;
}

.track-card p {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.track-card .label {
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.9rem;
  background: #6d6bff;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
  box-shadow: 0 2px 4px rgba(109, 107, 255, 0.2);
}

.lectures .lecture-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.lecture-list article {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

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

.contact-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

.back-to-top {
  margin-top: 1rem;
  display: inline-block;
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero-resume {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    position: static;
    height: auto;
    padding: 2rem 1.5rem;
  }

  .resume-main {
    padding: 2rem 1.5rem;
  }

  .resume-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

