/* ===== Reset & Variables ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --surface: #1a1a1f;
  --border: #2a2a30;
  --text: #e8e8ed;
  --text-muted: #8a8a95;
  --accent: #6c63ff;
  --accent-light: #8b83ff;
  --accent-glow: rgba(108, 99, 255, 0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  border-top: none;
}

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

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

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  padding-right: 3rem;
  background: transparent;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.nav-inner, .mobile-menu {
  pointer-events: auto;
}


.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 72px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 1rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--text);
  background: var(--surface);
}

.mobile-menu.open {
  display: flex;
}

/* ===== Hero Scroll Sequence ===== */
.hero-sequence {
  position: relative;
  overflow: hidden;
}

.hero-video-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0a0b;
}

.hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.05) 0%,
    rgba(10, 10, 11, 0.15) 50%,
    rgba(10, 10, 11, 0.7) 100%
  );
}

/* Scroll panels that float over the sticky video */
.hero-panel {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 4rem;
  padding-top: 10rem;
}


.hero-content {
  text-align: left;
  padding: 0 2rem;
  width: 100%;
  max-width: 1200px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-panel.active .hero-content,
#panel-intro .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 620px;
}

.hero-content-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-content-card strong {
  color: #fff;
  font-weight: 700;
}

/* Highlights grid */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-greeting {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(
    135deg, #fff 0%, #c0bfff 40%, var(--accent) 60%, #c0bfff 80%, #fff 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: nameShimmer 6s ease-in-out infinite;
}

@keyframes nameShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-sep {
  margin: 0 0.5rem;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.25);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
  background: rgba(108, 99, 255, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s ease-in-out infinite;
  transition: color 0.2s;
}

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

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

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.container {
  max-width: 100%;
  padding-left: 4rem;
  padding-right: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

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

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.about-skills h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ===== Timeline (Experience) ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 550px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 30%, var(--border) 70%, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, border-left-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-light);
  font-family: var(--mono);
}

.timeline-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}

.timeline-org {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-glow);
}

.project-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-glow);
  color: var(--accent-light);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(108, 99, 255, 0.25);
  white-space: nowrap;
  margin-bottom: 1rem;
}

.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.project-btn:hover {
  transform: translateY(-2px);
}

/* Live Site - blue */
.project-btn-live {
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.project-btn-live:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

/* Devpost - teal */
.project-btn-devpost {
  border-color: rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
}
.project-btn-devpost:hover {
  border-color: #2dd4bf;
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.15);
}

/* GitHub - subtle purple */
.project-btn-github {
  border-color: rgba(163, 113, 247, 0.4);
  color: #a371f7;
}
.project-btn-github:hover {
  border-color: #a371f7;
  box-shadow: 0 6px 20px rgba(163, 113, 247, 0.15);
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.project-card > p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-light);
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-family: var(--mono);
  transition: background 0.2s, border-color 0.2s;
}

.project-tags span:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
}

.project-award {
  margin-top: 1rem;
  font-size: 0.8125rem !important;
  color: #fbbf24 !important;
  font-weight: 600;
  font-style: italic;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

/* ===== Education ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.edu-card:hover {
  border-color: var(--accent);
  border-left-color: var(--accent-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(108, 99, 255, 0.08);
}

.edu-years {
  font-size: 0.8125rem;
  font-family: var(--mono);
  color: var(--accent-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edu-years::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.edu-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.75rem 0 0.35rem;
}

.edu-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Awards ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
}

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.award-card:hover {
  transform: translateY(-4px);
}

.award-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  padding: 10px;
  transition: background 0.3s, transform 0.3s;
}

.award-card:hover .award-icon {
  transform: scale(1.1);
}

.award-icon svg {
  width: 100%;
  height: 100%;
}

.award-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.award-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.award-project {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

/* Startup award — blue */
.award-startup:hover { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px rgba(56,189,248,0.1); }
.award-startup .award-icon { background: rgba(56, 189, 248, 0.1); }
.award-startup:hover .award-icon { background: rgba(56, 189, 248, 0.18); }
.award-startup .award-icon svg { color: #38bdf8; }
.award-startup .award-project { color: #38bdf8; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2); }

/* UI/UX award — teal */
.award-uiux:hover { border-color: rgba(45, 212, 191, 0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px rgba(45,212,191,0.1); }
.award-uiux .award-icon { background: rgba(45, 212, 191, 0.1); }
.award-uiux:hover .award-icon { background: rgba(45, 212, 191, 0.18); }
.award-uiux .award-icon svg { color: #2dd4bf; }
.award-uiux .award-project { color: #2dd4bf; background: rgba(45,212,191,0.1); border: 1px solid rgba(45,212,191,0.2); }

/* CS50 2022 — gold */
.award-cs50-2022:hover { border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px rgba(251,191,36,0.1); }
.award-cs50-2022 .award-icon { background: rgba(251, 191, 36, 0.1); }
.award-cs50-2022:hover .award-icon { background: rgba(251, 191, 36, 0.18); }
.award-cs50-2022 .award-icon svg { color: #fbbf24; }
.award-cs50-2022 .award-project { color: #fbbf24; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); }

/* CS50 2023 — purple */
.award-cs50-2023:hover { border-color: rgba(163, 113, 247, 0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 20px rgba(163,113,247,0.1); }
.award-cs50-2023 .award-icon { background: rgba(163, 113, 247, 0.1); }
.award-cs50-2023:hover .award-icon { background: rgba(163, 113, 247, 0.18); }
.award-cs50-2023 .award-icon svg { color: #a371f7; }
.award-cs50-2023 .award-project { color: #a371f7; background: rgba(163,113,247,0.1); border: 1px solid rgba(163,113,247,0.2); }

/* ===== Contact ===== */
.contact-container {
  text-align: left;
}

.contact-sub {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4ade80;
  margin-bottom: 2.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateX(6px);
}

.contact-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}

.contact-card:hover .contact-icon-wrap {
  transform: scale(1.1);
}

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

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-text span:last-child {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-card:hover .contact-text span:last-child {
  color: var(--text);
}

.contact-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.contact-card:hover .contact-arrow {
  opacity: 0.6;
  transform: translateX(0);
}

/* Email card — blue */
.contact-card:nth-child(1) { border-left-color: rgba(56, 189, 248, 0.4); }
.contact-card:nth-child(1) .contact-icon-wrap { background: rgba(56, 189, 248, 0.1); }
.contact-card:nth-child(1) .contact-icon-wrap svg { color: #38bdf8; }
.contact-card:nth-child(1) .contact-label { color: #38bdf8; }
.contact-card:nth-child(1) .contact-arrow { color: #38bdf8; }
.contact-card:nth-child(1):hover { border-color: rgba(56, 189, 248, 0.4); border-left-color: #38bdf8; box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 16px rgba(56,189,248,0.08); }

/* GitHub card — purple */
.contact-card:nth-child(2) { border-left-color: rgba(163, 113, 247, 0.4); }
.contact-card:nth-child(2) .contact-icon-wrap { background: rgba(163, 113, 247, 0.1); }
.contact-card:nth-child(2) .contact-icon-wrap svg { color: #a371f7; }
.contact-card:nth-child(2) .contact-label { color: #a371f7; }
.contact-card:nth-child(2) .contact-arrow { color: #a371f7; }
.contact-card:nth-child(2):hover { border-color: rgba(163, 113, 247, 0.4); border-left-color: #a371f7; box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 16px rgba(163,113,247,0.08); }

/* LinkedIn card — teal */
.contact-card:nth-child(3) { border-left-color: rgba(45, 212, 191, 0.4); }
.contact-card:nth-child(3) .contact-icon-wrap { background: rgba(45, 212, 191, 0.1); }
.contact-card:nth-child(3) .contact-icon-wrap svg { color: #2dd4bf; }
.contact-card:nth-child(3) .contact-label { color: #2dd4bf; }
.contact-card:nth-child(3) .contact-arrow { color: #2dd4bf; }
.contact-card:nth-child(3):hover { border-color: rgba(45, 212, 191, 0.4); border-left-color: #2dd4bf; box-shadow: 0 8px 24px rgba(0,0,0,0.2), 0 0 16px rgba(45,212,191,0.08); }

/* ===== Footer ===== */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Custom Cursor Glow ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.visible {
  opacity: 1;
}

/* ===== Enhanced Nav Links ===== */
.nav-links a {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

/* ===== Animated Section Title Underline ===== */
.section-title::after {
  transition: width 0.6s ease;
  width: 0;
}

.section-title.visible::after {
  width: 100%;
}

/* ===== Timeline Dot Pulse ===== */
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px var(--accent-glow), 0 0 12px var(--accent-glow); }
}

.timeline-dot {
  animation: dotPulse 3s ease-in-out infinite;
}

/* ===== Project Card Glow on Hover ===== */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-card:hover::after {
  opacity: 1;
}

/* ===== Skill Tag Stagger Animation ===== */
.skill-tag {
  opacity: 0;
  transform: translateY(10px);
  animation: tagFadeIn 0.4s ease forwards;
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.15s; }
.skill-tag:nth-child(3) { animation-delay: 0.2s; }
.skill-tag:nth-child(4) { animation-delay: 0.25s; }
.skill-tag:nth-child(5) { animation-delay: 0.3s; }
.skill-tag:nth-child(6) { animation-delay: 0.35s; }
.skill-tag:nth-child(7) { animation-delay: 0.4s; }
.skill-tag:nth-child(8) { animation-delay: 0.45s; }

@keyframes tagFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero Content Card Border ===== */
.hero-content-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.hero-panel.active .hero-content-card {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(108, 99, 255, 0.1);
}

/* ===== Award Card Hover Glow ===== */
.award-startup:hover .award-icon svg { filter: drop-shadow(0 0 8px rgba(56,189,248,0.5)); }
.award-uiux:hover .award-icon svg { filter: drop-shadow(0 0 8px rgba(45,212,191,0.5)); }
.award-cs50-2022:hover .award-icon svg { filter: drop-shadow(0 0 8px rgba(251,191,36,0.5)); }
.award-cs50-2023:hover .award-icon svg { filter: drop-shadow(0 0 8px rgba(163,113,247,0.5)); }

/* ===== Education Card Top Accent ===== */
.edu-card {
  position: relative;
  overflow: hidden;
}

.edu-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.edu-card:hover::after {
  transform: scaleX(1);
}


/* ===== Smooth Text Selection ===== */
::selection {
  background: rgba(108, 99, 255, 0.3);
  color: #fff;
}

/* ===== Footer Hover ===== */
.footer p {
  transition: color 0.3s;
}

.footer:hover p {
  color: var(--text);
}

/* ===== Reveal Animation ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content-card {
    padding: 2rem;
    max-width: 100%;
  }

  .hero-content-card h2 {
    font-size: 1.5rem;
  }

  .highlight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .highlight-number {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
  }
}

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

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .hero-panel {
    padding-left: 2rem;
  }
  .about-grid {
    gap: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* Mobile — fill gaps missing from existing 768px block */
@media (max-width: 768px) {
  .hero-panel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .hero-content {
    padding: 0;
  }
  .hero-content-card {
    padding: 1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-title {
    font-size: clamp(1.1rem, 4.5vw, 1.75rem);
    letter-spacing: -0.01em;
  }
  .edu-grid,
  .awards-grid {
    max-width: 100%;
  }
  .contact-links {
    max-width: 100%;
  }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .hero-panel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    align-items: flex-start;
    padding-top: 24rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .hero-content-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .section-title {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }
  .highlight-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .highlight-number {
    font-size: 1.75rem;
  }
  .nav {
    padding: 0 1rem;
    padding-right: 1.25rem;
  }
  .timeline-content {
    padding: 1rem 1.25rem;
  }
  .project-card {
    padding: 1.25rem;
  }
}

/* Very small (≤ 360px) */
@media (max-width: 360px) {
  .hero-name {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1rem;
  }
  .hero-content-card {
    padding: 1rem;
  }
}
