/* ============================================================
   Enzo Bonelli — Portfolio
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --bg-surface: #11172a;
  --bg-elevated: #161d35;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6edf7;
  --text-muted: #a8b1c9;
  --text-dim: #6b7591;
  --accent: #00d4ff;
  --accent-2: #a855f7;
  --accent-soft: rgba(0, 212, 255, 0.12);
  --success: #4ade80;
  --gradient: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(168, 85, 247, 0.18));
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-glow: 0 0 60px -10px rgba(0, 212, 255, 0.3);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

a:hover {
  color: #66e3ff;
}

ul, ol {
  list-style: none;
}

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

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

/* ============================================================
   BACKGROUND DECOR
   ============================================================ */

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(0, 212, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(168, 85, 247, 0.10), transparent 60%),
    radial-gradient(500px 400px at 50% 100%, rgba(0, 212, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  color: var(--text);
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--gradient);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--bg);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 140px 0 80px;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 28px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-size: clamp(48px, 9vw, 112px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 720px;
  color: var(--text-muted);
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero-description a {
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 56px;
}

.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}

.hero-contact-item:not(.hero-contact-item-static):hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.05);
  color: var(--text);
  transform: translateY(-2px);
}

.hero-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-contact-item-static {
  cursor: default;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 6px 20px -8px rgba(0, 212, 255, 0.5);
}

.btn-primary:hover {
  background: white;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -8px rgba(0, 212, 255, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 920px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.hero-meta-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-meta-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  transition: border-color 0.2s;
}

.scroll-indicator:hover {
  border-color: var(--accent);
}

.scroll-indicator span {
  display: block;
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.2; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 120px 0;
  position: relative;
}

.section-tight {
  padding: 60px 0;
}

.section-top {
  padding-top: 0;
}

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */

.page-header {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

.page-header-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 14px 0 18px;
}

.page-header-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
}

.page-header-sub strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   PILLARS (Home — What I do)
   ============================================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.pillar {
  padding: 36px 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}

.pillar p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   STATS ROW (Home)
   ============================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ============================================================
   TECH CLOUD (Home)
   ============================================================ */

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-chip {
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.tech-chip:hover {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================================
   NEXT GRID (CTA cards to other pages)
   ============================================================ */

.next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.next-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-glow);
  color: var(--text);
}

.next-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.next-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.next-card-title svg {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.next-card:hover .next-card-title svg {
  transform: translateX(4px);
}

.next-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   THESIS SPOTLIGHT (Education page)
   ============================================================ */

.thesis-spotlight {
  padding: 44px 44px 40px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(168, 85, 247, 0.04)),
    var(--bg-surface);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.thesis-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.thesis-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 22px;
}

.thesis-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.thesis-school {
  font-size: 15px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.thesis-school-name {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.thesis-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.thesis-body p:last-child {
  margin-bottom: 0;
}

.thesis-body strong {
  color: var(--text);
  font-weight: 600;
}

.thesis-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed rgba(0, 212, 255, 0.22);
}

.thesis-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thesis-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.thesis-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   PAGE CTA (bottom-of-page navigation buttons)
   ============================================================ */

.page-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 64px;
  max-width: 800px;
}

.section-header-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.section-sub strong {
  color: var(--text);
  font-weight: 600;
}

.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-prose p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-prose strong {
  color: var(--text);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.stat {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.stat:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   TIMELINE / EXPERIENCE
   ============================================================ */

.timeline {
  position: relative;
  margin-left: 4px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-strong) 0%, var(--border) 70%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.08);
}

.timeline-item:first-child .timeline-marker {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(0, 212, 255, 0.08);
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.timeline-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.timeline-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text);
}

.timeline-company {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-company .muted {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 13px;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.timeline-date {
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-loc {
  color: var(--text-dim);
  font-size: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.tag-active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.subrole {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

.subrole:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.subrole-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  text-transform: none;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.timeline-bullets li strong {
  color: var(--text);
  font-weight: 600;
}

.timeline-bullets li em {
  color: var(--text);
  font-style: italic;
}

/* ============================================================
   PUBLICATION CALLOUT (inside timeline-card)
   ============================================================ */

.publication {
  padding: 22px 24px;
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.04));
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.publication-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

.publication-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.publication-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.publication-desc strong {
  color: var(--text);
  font-weight: 600;
}

.publication-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}

.publication-link:hover {
  color: var(--bg);
  background: var(--accent);
  transform: translateY(-1px);
}

.publication-link svg {
  flex-shrink: 0;
}

/* ============================================================
   EDUCATION
   ============================================================ */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.edu-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.3s;
}

.edu-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.edu-card:hover::before {
  background: var(--gradient);
}

.edu-card-current {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06) 0%, var(--bg-surface) 100%);
  border-color: rgba(0, 212, 255, 0.22);
}

.edu-card-current::before {
  background: var(--gradient);
}

.edu-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.edu-status-complete {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text-dim);
}

.edu-degree {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--text);
}

.edu-field {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.edu-school {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.4;
}

.edu-year {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.edu-card-wide {
  grid-column: 1 / -1;
}

.edu-thesis {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(0, 212, 255, 0.25);
}

.edu-thesis-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.edu-thesis-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 760px;
}

/* ============================================================
   CERTIFICATIONS / AWARDS
   ============================================================ */

.creds-layout {
  display: grid;
  gap: 56px;
}

.creds-heading {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.cred-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cred-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.cred-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.cred-icon svg {
  width: 20px;
  height: 20px;
}

.cred-card h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}

.cred-issuer {
  font-size: 14px;
  color: var(--text-muted);
}

.cred-date {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.cred-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.cred-detail strong {
  color: var(--text);
  display: inline;
}

.cred-card-award .cred-icon {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-2);
}

/* ============================================================
   SKILLS
   ============================================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.skill-cat {
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.skill-cat:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.skill-cat h3 {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.skill-cat ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-cat li {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
}

.skill-cat li::before {
  content: '◇';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 5px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.section-contact {
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-glow);
  color: var(--text);
}

.contact-card-static {
  cursor: default;
}

.contact-card-static:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.contact-value {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-stats {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .timeline-card-head {
    flex-direction: column;
    gap: 12px;
  }
  .timeline-meta {
    flex-direction: row;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
  }
  .section {
    padding: 80px 0;
  }
}

@media (max-width: 720px) {
  .container, .nav-container, .hero-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 12px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-logo-text {
    display: none;
  }
  .hero {
    padding-top: 120px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    justify-content: center;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    padding-left: 40px;
  }
  .timeline::before {
    left: 9px;
  }
  .timeline-marker {
    width: 20px;
    height: 20px;
  }
  .timeline-marker span {
    width: 8px;
    height: 8px;
  }
  .timeline-card {
    padding: 24px 20px;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
