/* =====================
   Variables & Reset
   ===================== */
:root {
  --blue: #4169e1;
  --blue-dark: #2f50c0;
  --blue-glow: rgba(65, 105, 225, 0.25);
  --black: #0a0a0a;
  --surface: #111111;
  --card-grey: #232323;
  --card-grey-light: #2b2b2b;
  --border: #1e1e1e;
  --border-light: #222222;
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --text-dim: #444444;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-italic: 'Times New Roman', Times, serif;
  --font-sans: 'Inter', sans-serif;
  --letter-spacing-wide: 0.06em;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* =====================
   Navigation
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border-light);
}

.nav-logo {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 20px;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-primary);
}

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

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
}

/* =====================
   Hero
   ===================== */
.hero {
  padding: 6rem 2.5rem 5rem;
  border-bottom: 0.5px solid var(--border-light);
}

.hero-inner {
  max-width: 800px;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: 0.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--blue);
}

.hero-sub {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 18px;
  letter-spacing: var(--letter-spacing-wide);
  color: #777;
  margin-bottom: 1.2rem;
}

.hero-gpa {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 11px 26px;
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 0.5px solid #444;
  padding: 11px 26px;
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* =====================
   Sections
   ===================== */
.section {
  padding: 3.5rem 2.5rem;
  border-bottom: 0.5px solid var(--border-light);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

/* =====================
   About
   ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 1.2rem 2rem;
}

.stat {
  border-left: 2px solid var(--blue);
  padding-left: 1rem;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-wide);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* =====================
   Experience — Flashcard Carousel
   ===================== */
.exp-carousel {
  max-width: 900px;
  margin: 0 auto;
  outline: none;
}

.exp-viewport {
  overflow: hidden;
}

.exp-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.exp-card {
  flex: 0 0 100%;
  background: var(--card-grey);
  border: 0.5px solid var(--border-light);
  border-left: 2px solid var(--blue);
  padding: 2rem 2.2rem;
  cursor: pointer;
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 14px 34px -16px rgba(0, 0, 0, 0.75),
    0 4px 10px -4px rgba(0, 0, 0, 0.6);
  transform: translateY(0);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.exp-card:hover,
.exp-card:focus-visible {
  background: var(--card-grey-light);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px var(--blue-glow),
    0 22px 44px -16px rgba(0, 0, 0, 0.85),
    0 10px 26px -10px var(--blue-glow);
}

.exp-card:active {
  transform: translateY(-1px) scale(0.99);
}

.exp-time {
  font-size: 11px;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.exp-company {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.exp-role {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--blue);
  margin-bottom: 14px;
}

.exp-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.75;
}

/* Carousel controls */
.exp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.exp-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card-grey);
  border: 0.5px solid #3a3a3a;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.exp-arrow:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.exp-arrow:active {
  background: var(--blue);
  color: #fff;
}

.exp-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #444;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.exp-dot:hover {
  border-color: var(--blue);
}

.exp-dot.active {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.2);
}

/* =====================
   Projects
   ===================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-card {
  background: var(--surface);
  border: 0.5px solid var(--border-light);
  padding: 1.4rem;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: var(--blue);
}

.project-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

.project-link {
  font-size: 11px;
  color: var(--blue);
  display: inline-block;
  margin-top: 12px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.project-link:hover {
  opacity: 0.7;
}

/* =====================
   Skills
   ===================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.skill {
  background: var(--surface);
  border: 0.5px solid var(--border);
  padding: 11px 16px;
  font-size: 13px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, color 0.2s;
}

.skill:hover {
  border-color: var(--blue);
  color: var(--text-primary);
}

.skill-dot {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =====================
   Leadership, Organizations & Awards
   ===================== */
.sub-block {
  margin-bottom: 2.4rem;
}

.sub-block:last-child {
  margin-bottom: 0;
}

.sub-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
}

.timeline-time {
  font-size: 11px;
  color: #555;
  letter-spacing: 0.05em;
  padding-top: 4px;
  line-height: 1.5;
}

.timeline-org {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.timeline-role {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--blue);
  margin-bottom: 10px;
}

.timeline-list {
  list-style: none;
}

.timeline-list li {
  position: relative;
  font-size: 13px;
  color: #777;
  line-height: 1.75;
  padding-left: 16px;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.timeline-list li + li {
  margin-top: 6px;
}

.timeline-item + .timeline-item {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 0.5px solid var(--border);
}

/* Awards & Honors — horizontal chip strip, distinct from the badge grids used elsewhere */
.awards-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.award-chip {
  background: var(--surface);
  border: 0.5px solid var(--border-light);
  border-top: 2px solid var(--blue);
  padding: 14px 20px;
  text-align: center;
  min-width: 150px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.award-chip:hover {
  background: var(--card-grey);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.award-title {
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.award-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

/* Badges — used for awards, organization memberships, and coursework */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.badge {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-left: 2px solid var(--blue);
  padding: 11px 16px;
  font-size: 13px;
  color: #aaa;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.badge:hover {
  border-color: var(--blue);
  background: var(--card-grey);
  color: var(--text-primary);
}

/* =====================
   Contact
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-intro {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 26px;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-primary);
  line-height: 1.5;
}

.contact-intro span {
  color: var(--blue);
}

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

.contact-link {
  font-size: 13px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}

.contact-link svg {
  color: var(--blue);
  flex-shrink: 0;
}

.contact-link:hover {
  color: var(--text-primary);
}

/* =====================
   Footer
   ===================== */
.footer {
  padding: 1.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: var(--font-italic);
  font-style: italic;
  letter-spacing: var(--letter-spacing-wide);
  font-size: 15px;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 11px;
  color: #2a2a2a;
}

/* =====================
   Animations
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag   { animation: fadeUp 0.5s ease both; animation-delay: 0.1s; }
.hero-title { animation: fadeUp 0.5s ease both; animation-delay: 0.2s; }
.hero-sub   { animation: fadeUp 0.5s ease both; animation-delay: 0.3s; }
.hero-gpa   { animation: fadeUp 0.5s ease both; animation-delay: 0.35s; }
.hero-desc  { animation: fadeUp 0.5s ease both; animation-delay: 0.4s; }
.hero-btns  { animation: fadeUp 0.5s ease both; animation-delay: 0.5s; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 0.5px solid var(--border-light);
    padding: 1.5rem 2.5rem;
    gap: 1.2rem;
  }

  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 2.5rem 1.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: 1fr; grid-auto-flow: row; }
  .awards-strip { flex-direction: column; }
  .award-chip { min-width: 0; text-align: left; }
  .exp-card { padding: 1.6rem 1.4rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .badge-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}