:root {
  --bg: #0a0e14;
  --bg2: #0f1520;
  --surface: #1a2336;
  --surface2: #1f2b3e;
  --border: rgba(99, 179, 237, 0.15);
  --accent: #63b3ed;
  --accent2: #4ecdc4;
  --accent3: #f6c90e;
  --text: #e2e8f0;
  --text-muted: #718096;
  --text-dim: #4a5568;
  --gradient: linear-gradient(135deg, #63b3ed 0%, #4ecdc4 50%, #f6c90e 100%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

/* ── MODAL ─────────────────────────────────────────────────── */
#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
#modal-overlay.open {
  display: flex;
}
#modal-box {
  background: var(--surface);
  border: 1px solid rgba(99, 179, 237, 0.25);
  max-width: 820px;
  width: 100%;
  position: relative;
  animation: modal-in 0.22s ease;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 179, 237, 0.3) transparent;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
#modal-img-wrap {
  width: 100%;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-img {
  width: 100%;
  object-fit: cover;
  display: block;
  max-height: 520px;
}
#modal-img-placeholder {
  display: none;
  width: 100%;
  height: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
}
#modal-img-placeholder i {
  font-size: 2.5rem;
}
#modal-body {
  padding: 2.5rem 2.5rem 2rem;
}
#modal-award {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  background: rgba(246, 201, 14, 0.12);
  border: 1px solid rgba(246, 201, 14, 0.35);
  color: var(--accent3);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
#modal-award:empty {
  display: none;
}
#modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
  color: var(--accent2);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
#modal-tag:empty {
  display: none;
}
#modal-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
#modal-sub {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
#modal-sub:empty {
  display: none;
}
#modal-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
#modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
#modal-tags:empty {
  display: none;
}
.modal-tag-chip {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  background: rgba(99, 179, 237, 0.08);
  border: 1px solid rgba(99, 179, 237, 0.2);
  color: var(--accent);
}
#modal-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
#modal-links:empty {
  display: none;
}
.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.modal-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.modal-link.linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
}
#modal-stats {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
#modal-stats:empty {
  display: none;
}
.modal-sp-stat {
  text-align: center;
  background: rgba(99, 179, 237, 0.06);
  border: 1px solid rgba(99, 179, 237, 0.15);
  padding: 0.85rem 1.25rem;
  flex: 1;
  min-width: 90px;
}
.modal-sp-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.modal-sp-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}
#modal-list {
  list-style: none;
  margin-bottom: 1.25rem;
}
#modal-list:empty {
  display: none;
}
#modal-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
#modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: var(--accent2);
}
#modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(99, 179, 237, 0.3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
}
#modal-close:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
#modal-box {
  position: relative;
}

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: "DM Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.72rem;
  text-decoration: none;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero-bg.png");
  background-size: cover;
  background-position: top right;
  filter: brightness(0.7) saturate(7);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(10, 14, 20, 0.97) 10%,
    rgba(10, 14, 20, 0.6) 40%
  );
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    linear-gradient(rgba(99, 179, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 179, 237, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 20%,
    transparent 100%
  );
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 179, 237, 0.08) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 2;
  animation: pulse-glow 6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.2em;
}
.hero-name .name-highlight {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 3rem;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 179, 237, 0.4);
}
.btn-secondary {
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border);
  transition:
    border-color 0.2s,
    color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── PAGE HERO (non-index pages) ────────────────────────────── */
.page-hero {
  padding: 9rem 3rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 179, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 179, 237, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.page-hero-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}
.page-hero-title span {
  display: block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.75;
  font-weight: 300;
}

/* ── SECTIONS ──────────────────────────────────────────────── */
section {
  padding: 6rem 3rem;
  position: relative;
}
section:nth-child(even) {
  background: var(--bg2);
}
.section-header {
  margin-bottom: 4rem;
}
.section-num {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}
.section-line {
  width: 60px;
  height: 2px;
  background: var(--gradient);
  margin-top: 1rem;
}

/* ── ABOUT / MISSION ───────────────────────────────────────── */
.ambition-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  max-width: 1500px;
}
.ambition-card::before {
  content: "\201C";
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-family: "Playfair Display", serif;
  font-size: 12rem;
  font-weight: 900;
  color: rgba(99, 179, 237, 0.05);
  line-height: 1;
  pointer-events: none;
}
.ambition-text {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  line-height: 1.75;
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ── PILLARS ───────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(99, 179, 237, 0.1);
}
.pillar-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.pillar-card:hover::after {
  transform: scaleX(1);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 179, 237, 0.1);
  border: 1px solid rgba(99, 179, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: var(--accent);
}
.pillar-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.pillar-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ── QUICK STATS ───────────────────────────────────────────── */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.quick-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.quick-stat:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.quick-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}
.quick-stat-big {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.quick-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-family: "DM Mono", monospace;
}

/* ── ACADEMIC ──────────────────────────────────────────────── */
.academic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.academic-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.academic-stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.academic-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}
.academic-big {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.academic-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.academic-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: "DM Mono", monospace;
  margin-top: 0.35rem;
}
.module-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.module-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.875rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s;
}
.module-item:hover {
  border-color: var(--accent2);
}
.module-name {
  font-size: 0.82rem;
  font-weight: 500;
}
.module-badge {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  background: rgba(246, 201, 14, 0.1);
  border: 1px solid rgba(246, 201, 14, 0.3);
  color: var(--accent3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── PROJECTS ──────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.project-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.project-placeholder {
  width: 100%;
  height: 180px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
}
.project-placeholder i {
  font-size: 2rem;
  color: var(--text-dim);
}
.project-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.project-award {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  background: rgba(246, 201, 14, 0.12);
  border: 1px solid rgba(246, 201, 14, 0.35);
  color: var(--accent3);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.project-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.project-role {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.project-body {
  padding: 1.5rem;
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tag {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  background: rgba(99, 179, 237, 0.08);
  border: 1px solid rgba(99, 179, 237, 0.2);
  color: var(--accent);
}
.project-links {
  display: flex;
  gap: 0.75rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.project-link.linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
}

/* ── TIMELINE ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  padding-left: 2.5rem;
  padding-bottom: 3rem;
  position: relative;
  cursor: pointer;
}
.timeline-dot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline-period {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-role {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-org {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ── EVENTS ────────────────────────────────────────────────── */
.events-section {
  margin-top: 4rem;
}
.events-section-title {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
  cursor: pointer;
}
.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.event-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: var(--surface2);
}
.event-placeholder {
  width: 100%;
  height: 130px;
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  font-family: "DM Mono", monospace;
}
.event-placeholder i {
  font-size: 1.5rem;
  color: var(--text-dim);
}
.event-body {
  padding: 0.875rem;
}
.event-year {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.event-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.event-type {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── SERVICE / SPOTLIGHT ───────────────────────────────────── */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.spotlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}
.spotlight-header {
  padding: 1.75rem 1.75rem 1.25rem;
}
.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.3);
  color: var(--accent2);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}
.spotlight-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.spotlight-subtitle {
  font-size: 0.82rem;
  color: var(--accent2);
  font-family: "DM Mono", monospace;
}
.spotlight-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spotlight-img-placeholder {
  width: 100%;
  height: 300px;
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spotlight-img-placeholder i {
  font-size: 2.5rem;
  color: var(--text-dim);
}
.spotlight-body {
  padding: 1.5rem 1.75rem;
}
.spotlight-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.spotlight-stats {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
.sp-stat {
  text-align: center;
  background: rgba(99, 179, 237, 0.06);
  border: 1px solid rgba(99, 179, 237, 0.15);
  padding: 0.75rem 1rem;
  flex: 1;
  min-width: 70px;
}
.sp-stat-num {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.sp-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}
.spotlight-list {
  list-style: none;
  margin-bottom: 1rem;
}
.spotlight-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}
.spotlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background: var(--accent2);
}
.spotlight-footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
}
.spotlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--accent2);
  color: var(--accent2);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.2s,
    color 0.2s;
}
.spotlight-btn:hover {
  background: var(--accent2);
  color: var(--bg);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
}
.service-year {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent2);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.service-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-family: "Playfair Display", serif;
}
.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.service-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-items li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.service-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background: var(--accent2);
}

/* ── RESUME / CONTACT ──────────────────────────────────────── */
.resume-section {
  max-width: 900px;
}
.resume-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 600px;
}
.resume-download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.resume-download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}
.resume-card-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.resume-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 179, 237, 0.1);
  border: 1px solid rgba(99, 179, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}
.resume-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.resume-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
}
.resume-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.resume-btn.primary {
  background: var(--accent);
  color: var(--bg);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.resume-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 179, 237, 0.35);
}
.resume-btn.outline {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.resume-btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.contact-card:hover::before {
  transform: scaleX(1);
}
.contact-card.email:hover {
  border-color: var(--accent2);
}
.contact-card.linkedin:hover {
  border-color: #0a66c2;
}
.contact-card.github:hover {
  border-color: #f0f6fc;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-card.email .contact-icon {
  background: rgba(78, 205, 196, 0.1);
  color: var(--accent2);
  border-color: rgba(78, 205, 196, 0.25);
}
.contact-card.linkedin .contact-icon {
  background: rgba(10, 102, 194, 0.15);
  color: #4d9fd6;
  border-color: rgba(10, 102, 194, 0.3);
}
.contact-card.github .contact-icon {
  background: rgba(240, 246, 252, 0.06);
  color: #c9d1d9;
  border-color: rgba(240, 246, 252, 0.15);
}
.contact-label {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.contact-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.contact-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition:
    transform 0.2s,
    color 0.2s;
  flex-shrink: 0;
}
.contact-card:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem;
  text-align: center;
}
.footer-name {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  letter-spacing: 0.1em;
}
.footer-copy {
  margin-top: 2rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: "DM Mono", monospace;
  letter-spacing: 0.08em;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(99, 179, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.footer-social-btn:hover {
  transform: translateY(-3px);
}
.footer-social-btn.email:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}
.footer-social-btn.linkedin:hover {
  border-color: #0a66c2;
  color: #4d9fd6;
}
.footer-social-btn.github:hover {
  border-color: #c9d1d9;
  color: #c9d1d9;
}

/* ── MOBILE NAV HAMBURGER ──────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.nav-hamburger:hover {
  border-color: var(--accent);
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-muted);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--accent);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--accent);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 61px; /* nav height */
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}
.nav-mobile-menu.open {
  display: flex;
  max-height: 400px;
  padding: 1rem 0 1.5rem;
}
.nav-mobile-menu a {
  font-family: "DM Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.85rem 1.75rem;
  border-left: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(99, 179, 237, 0.05);
}
.nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 1.75rem;
}
.nav-mobile-socials {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 1.75rem 0;
}
.nav-mobile-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.nav-mobile-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 179, 237, 0.08);
  border-left-color: transparent !important;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.25rem;
  }
  .nav-links {
    gap: 1rem;
  }
  section {
    padding: 4rem 1.5rem;
  }
  #hero {
    padding: 7rem 1.5rem 4rem;
  }
  .page-hero {
    padding: 7rem 1.5rem 3rem;
  }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  #modal-body {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  #modal-title {
    font-size: 1.5rem;
  }
}
