/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --bg:          #03060f;
  --bg-alt:      #050a16;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.065);
  --border:      rgba(255, 255, 255, 0.07);
  --border-hover: rgba(59, 130, 246, 0.35);
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-faint:  #475569;
  --accent:      #3b82f6;
  --accent-2:    #06b6d4;
  --accent-3:    #f59e0b;
  --gradient:    linear-gradient(135deg, #3b82f6, #06b6d4);
  --gradient-r:  linear-gradient(135deg, #06b6d4, #3b82f6);
  --shadow:      0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 48px rgba(59, 130, 246, 0.12);
  --radius:      16px;
  --radius-sm:   10px;
  --nav-h:       64px;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Circuit-board grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,136,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Particle canvas */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── SCROLL PROGRESS ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── CURSOR GLOW ── */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease;
  z-index: 0;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(3, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-logo .dot { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 7px 18px !important;
  border-radius: 8px;
  font-weight: 600 !important;
}
.hamburger { display: none; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(3, 6, 15, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 4px;
  z-index: 999;
}
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--text); background: var(--surface); }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(3,6,15,0.82) 0%, rgba(5,10,22,0.75) 50%, rgba(3,6,15,0.88) 100%),
    url('AnnArbor.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.5), transparent 70%);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.5), transparent 70%);
  bottom: -150px; right: -80px;
  animation-delay: -3s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,158,11,0.3), transparent 70%);
  top: 50%; left: 55%;
  animation-delay: -6s;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
.hero-left {
  flex: 1;
  min-width: 0;
}
.hero-right {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}
.hero-photo-wrap {
  position: relative;
  width: 400px;
  height: 400px;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
  filter: brightness(1.05) contrast(1.02);
}
.hero-photo-wrap:hover .hero-photo {
  transform: scale(1.03);
}
.hero-photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient);
  z-index: 1;
  animation: spin-ring 8s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}
.hero-photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 70%);
  z-index: 0;
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 900px) {
  .hero-content { flex-direction: column-reverse; gap: 40px; }
  .hero-right { margin-top: 0; }
  .hero-photo-wrap { width: 240px; height: 240px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 52px;
  font-weight: 400;
  min-height: 2em;
}
.cursor-blink {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  max-width: 780px;
  margin-bottom: 56px;
  align-items: stretch;
}
.bento-degree {
  /* no special sizing needed */
}
.bento-side {
  display: contents;
}
.bento-side .bento-card {
  /* flows naturally into grid */
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.bento-wide { grid-column: span 2; }
.bento-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.bento-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.bento-value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
}
.bento-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.bento-langs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.bento-langs span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.bento-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.bento-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}
.bento-link:hover { color: var(--accent-2); }
.bento-link svg { width: 14px; height: 14px; }

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.scroll-arrow svg {
  width: 20px; height: 20px;
  animation: bounce-y 2s ease-in-out infinite;
}
@keyframes bounce-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── SECTIONS ── */
.section { padding: 120px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; }

/* ── GLASS CARD ── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

/* ── EDUCATION ── */
.edu-grid { display: grid; gap: 20px; }
/* edu banner */
.edu-card { padding: 0; overflow: hidden; }
.edu-banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.edu-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: brightness(0.45);
  transition: transform 0.6s ease;
}
.edu-card:hover .edu-banner-img {
  transform: scale(1.03);
}
.edu-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3,6,15,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px 32px;
}
.edu-banner-text .edu-school {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.edu-banner-text .edu-degree {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.edu-banner-text .edu-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.edu-body {
  padding: 32px 36px 36px;
}
.coursework-block {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 24px;
}
.coursework-block:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
/* clubs */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.club-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.club-card:hover {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.07);
  transform: translateY(-2px);
}
.club-abbr {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.club-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.3;
}
.club-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: color 0.2s;
}
.club-card:hover .club-arrow {
  color: var(--accent);
}

/* ── MAJOR TILES ── */
.major-tiles {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 28px;
}
.major-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.major-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.major-tile:hover {
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.06);
  transform: translateY(-3px);
}
.major-tile:hover::before { opacity: 0.04; }
.major-tile-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}
.major-tile-icon svg { width: 18px; height: 18px; color: var(--accent); }
.major-tile:hover .major-tile-icon { background: rgba(59,130,246,0.18); }
.major-tile-body { flex: 1; min-height: 0; }
.major-tile-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.major-tile-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.major-tile-count {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-top: auto;
}
.major-tile-arrow {
  width: 18px; height: 18px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.25s, color 0.25s;
}
.major-tile:hover .major-tile-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ── COURSE MODAL ── */
.course-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.course-modal.open {
  opacity: 1;
  pointer-events: all;
}
.course-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.course-modal-panel {
  position: relative;
  width: 100%;
  max-height: 80vh;
  background: rgba(8,14,30,0.97);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-y: auto;
  padding: 32px 36px 48px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
  scrollbar-width: thin;
}
.course-modal.open .course-modal-panel {
  transform: translateY(0);
}
.course-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.course-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}
.course-modal-icon svg { width: 24px; height: 24px; color: var(--accent); }
.course-modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.course-modal-close:hover { background: var(--surface-hover); color: var(--text); }
.course-modal-close svg { width: 16px; height: 16px; }
.course-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.course-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s, background 0.25s;
}
.course-pill.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.course-pill:hover {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.07);
}
.course-pill code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59,130,246,0.12);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.course-pill span {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.coursework-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.coursework-label svg { width: 14px; height: 14px; color: var(--accent); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.course-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.course-item:hover {
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59,130,246,0.06);
}
.course-item code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.course-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
}
.timeline-dot {
  position: absolute;
  left: -29px;
  top: 32px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(59,130,246,0.3);
}
.dot-inner {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-card { padding: 28px 32px; }
.tl-header { margin-bottom: 16px; }
.tl-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}
.tl-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}
.tl-type {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.tl-company {
  display: flex;
  align-items: center;
  gap: 14px;
}
.company-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  padding: 4px;
}
.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cisco-logo { background: #fff; }
.ford-logo  { background: #fff; }
.tl-role {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.tl-org {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.via {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
}
.tl-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.tl-desc strong { color: var(--text); font-weight: 600; }
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.18);
  color: var(--accent-2);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.project-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.proj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proj-icon { font-size: 2rem; }
.proj-links { display: flex; gap: 8px; }
.icon-link {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.icon-link svg { width: 14px; height: 14px; }
.proj-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.proj-subtitle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.proj-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.proj-desc strong { color: var(--text); font-weight: 600; }
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.proj-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 100px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  color: var(--text-muted);
}
.proj-award {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-3);
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: 4px;
}

/* ── AWARDS MARQUEE ── */
.aw-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  cursor: default;
}
.aw-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: aw-scroll 33s linear infinite;
}
.aw-marquee:hover .aw-track {
  animation-play-state: paused;
}
@keyframes aw-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Base card */
.aw-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  background: var(--surface);
  padding: 24px;
  width: 300px;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), border-color 0.3s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aw-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--c);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 40px color-mix(in srgb, var(--c) 18%, transparent);
}

/* Colored top strip */
.aw-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c);
  opacity: 0.8;
  transition: opacity 0.3s;
}
.aw-card:hover::before { opacity: 1; }

/* Ghost year */
.aw-year-bg {
  position: absolute;
  right: -10px;
  bottom: -18px;
  font-family: var(--font-head);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--c);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  transition: opacity 0.3s, transform 0.3s;
}
.aw-card:hover .aw-year-bg { opacity: 0.1; transform: scale(1.06); }

/* Shimmer */
.aw-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, color-mix(in srgb, var(--c) 10%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
}
.aw-card:hover .aw-shine {
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

/* Header row */
.aw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.aw-medal { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.aw-tier {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  padding: 3px 9px;
  border-radius: 20px;
}
.aw-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Body */
.aw-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.aw-title {
  font-family: var(--font-head);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.aw-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.skill-group {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skill-group-header, .skill-group-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-group-icon { font-size: 1.3rem; }
.skill-group-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  cursor: default;
}
.skill-tag:hover {
  color: var(--text);
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.07);
}
.lang-tag { font-size: 0.82rem; }

/* ── HOBBIES ── */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Sports card — no longer spans; all equal columns now */
.hobby-sports {
  --hclr: #ef4444;
  border-color: rgba(239,68,68,0.15);
}
.hobby-sports:hover {
  border-color: rgba(239,68,68,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(239,68,68,0.12);
}

/* Logo + photo side-by-side for sports card */
.hobby-sports-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  height: 160px;
  flex-shrink: 0;
}
.hobby-sports-media .hobby-logo-strip {
  height: 100%;
  margin-bottom: 0;
}
.hobby-sports-media .hobby-photo-strip {
  height: 100%;
  margin-bottom: 0;
}
.hobby-photo-strip--cover img {
  object-fit: cover !important;
}

/* RudySKC logo strip */
.hobby-logo-strip {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}
.hobby-logo-strip img {
  max-height: 130px;
  max-width: 92%;
  object-fit: contain;
  transition: transform 0.3s;
}
.hobby-card:hover .hobby-logo-strip img { transform: scale(1.05); }

/* Single photo strip (guitar) */
.hobby-photo-strip {
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
}
.hobby-photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}
.hobby-card:hover .hobby-photo-strip img { transform: scale(1.04); }

/* Angle guitar photos up — both centred horizontally for alignment */
.hobby-guitar .hobby-photo-split img {
  object-position: 50% 10%;
}
/* Recital photo: align head with left photo */
.hobby-guitar .hobby-photo-split img:nth-child(2) {
  object-position: 10% -10% !important;
}
/* Mridangam/carnatic: pan right so performer is in frame */
.hobby-carnatic .hobby-photo-split img:nth-child(2) {
  object-position: 30% center !important;
}
/* Split photo (singing + mridangam / guitar) */
.hobby-photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 160px;
  gap: 6px;
  height: 160px;
  margin-bottom: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.hobby-photo-split img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s ease;
  display: block;
}
.hobby-card:hover .hobby-photo-split img { transform: scale(1.04); }

/* Sports watermark emoji */
.sports-watermark {
  position: absolute;
  right: -10px;
  bottom: -16px;
  font-size: 8rem;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  transition: opacity 0.3s, transform 0.3s;
}
.hobby-card:hover .sports-watermark {
  opacity: 0.1;
  transform: scale(1.08) rotate(5deg);
}

.hobby-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), border-color 0.3s, box-shadow 0.35s;
}
.hobby-card:hover {
  transform: translateY(-5px) scale(1.015);
}

/* Carnatic card accent */
.hobby-carnatic {
  --hclr: #a855f7;
  border-color: rgba(168,85,247,0.2);
}
.hobby-carnatic:hover {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(168,85,247,0.12);
}

/* Guitar card accent */
.hobby-guitar {
  --hclr: #f59e0b;
  border-color: rgba(245,158,11,0.2);
}
.hobby-guitar:hover {
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(245,158,11,0.12);
}

/* Radial glow blob */
.hobby-bg-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hclr) 12%, transparent), transparent 70%);
  right: -80px;
  top: -80px;
  pointer-events: none;
  transition: transform 0.4s;
}
.hobby-card:hover .hobby-bg-glow { transform: scale(1.2); }

.hobby-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hobby-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hobby-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hclr);
  opacity: 0.9;
}
.hobby-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--hclr) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--hclr) 35%, transparent);
  color: var(--hclr);
  padding: 3px 10px;
  border-radius: 20px;
}

.hobby-icon-xl { font-size: 2.4rem; line-height: 1; }

.hobby-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.hobby-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 48ch;
}

/* Action buttons */
.hobby-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.hobby-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.hobby-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.hobby-btn-yt {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,0,0,0.3);
}
.hobby-btn-sp {
  background: #1db954;
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,185,84,0.3);
}

/* ── Animated soundwave equalizer ── */
.soundwave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 20px;
  opacity: 0.18;
  pointer-events: none;
}
.soundwave span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--hclr);
  animation: sw-pulse 1.2s ease-in-out infinite alternate;
}
.soundwave span:nth-child(1)  { height: 30%; animation-delay: 0s;    }
.soundwave span:nth-child(2)  { height: 60%; animation-delay: 0.1s;  }
.soundwave span:nth-child(3)  { height: 45%; animation-delay: 0.2s;  }
.soundwave span:nth-child(4)  { height: 80%; animation-delay: 0.05s; }
.soundwave span:nth-child(5)  { height: 55%; animation-delay: 0.15s; }
.soundwave span:nth-child(6)  { height: 70%; animation-delay: 0.25s; }
.soundwave span:nth-child(7)  { height: 95%; animation-delay: 0s;    }
.soundwave span:nth-child(8)  { height: 65%; animation-delay: 0.18s; }
.soundwave span:nth-child(9)  { height: 40%; animation-delay: 0.08s; }
.soundwave span:nth-child(10) { height: 75%; animation-delay: 0.22s; }
.soundwave span:nth-child(11) { height: 50%; animation-delay: 0.12s; }
.soundwave span:nth-child(12) { height: 85%; animation-delay: 0.03s; }
.soundwave span:nth-child(13) { height: 35%; animation-delay: 0.17s; }
.soundwave span:nth-child(14) { height: 60%; animation-delay: 0.09s; }
.soundwave span:nth-child(15) { height: 45%; animation-delay: 0.27s; }

@keyframes sw-pulse {
  from { transform: scaleY(0.3); opacity: 0.6; }
  to   { transform: scaleY(1);   opacity: 1;   }
}
.hobby-card:hover .soundwave { opacity: 0.32; }

/* ── Guitar strings ── */
.guitar-strings {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 60px 0;
  pointer-events: none;
  opacity: 0.06;
}
.guitar-strings span {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--hclr) 20%, var(--hclr) 80%, transparent);
  transition: opacity 0.3s;
}
.hobby-card:hover .guitar-strings { opacity: 0.13; }

/* Guitar year counter */
.guitar-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}
.guitar-num {
  font-family: var(--font-head);
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--hclr);
  line-height: 1;
  letter-spacing: -4px;
  opacity: 0.9;
}
.guitar-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

.guitar-icon {
  font-size: 3rem;
  opacity: 0.25;
  position: absolute;
  bottom: 24px;
  right: 28px;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.hobby-card:hover .guitar-icon { opacity: 0.45; transform: rotate(-12deg) scale(1.1); }

@media (max-width: 768px) {
  .hobby-grid { grid-template-columns: 1fr; }
  .hobby-sports { grid-column: span 1; }
  .major-tiles { flex-direction: column; }
}

/* ── FOOTER ── */
#footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.footer-tagline { font-size: 0.85rem; color: var(--text-faint); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.footer-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  justify-content: center;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }

/* ── HAMBURGER ── */
.hamburger {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  display: none;
}
.hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .hero-name { font-size: clamp(3rem, 15vw, 5rem); }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .projects-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 20px; }
  .section { padding: 80px 0; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; }
}

/* ── SELECTION STYLE ── */
::selection { background: rgba(59,130,246,0.3); color: var(--text); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.5); }
