/* ===== CSS Variables & Reset ===== */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: rgba(22, 27, 34, 0.7);
  --bg-card-hover: rgba(33, 38, 45, 0.9);
  --border-color: #30363d;
  --border-hover: #484f58;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent-1: #e6edf3;
  --accent-2: #b1bac4;
  --accent-3: #8b949e;
  --gradient-primary: linear-gradient(135deg, #ffffff, #6e7681);
  --gradient-accent: linear-gradient(135deg, #e6edf3, #484f58);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-height: 72px;
  --container-max: 1100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Background Effects ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  z-index: -2;
  pointer-events: none;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ===== Utility ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-socials {
  display: flex;
  gap: 16px;
}

.nav-socials a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-socials a:hover {
  color: var(--text-primary);
}

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

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
}

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

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color var(--transition);
}

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

.mobile-socials {
  display: flex;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
}

.hero-split {
  max-width: var(--container-max);
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  width: 100%;
}

/* ===== Avatar ===== */
.hero-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.avatar-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  filter: blur(30px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

[data-theme="light"] .avatar-glow {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
}

.avatar-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, #ffffff, #484f58, #1f2328);
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

.avatar-ring:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .avatar-ring {
  background: linear-gradient(145deg, #1f2328, #8b949e, #d0d7de);
}

[data-theme="light"] .avatar-ring:hover {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter var(--transition);
}

.avatar-ring:hover .avatar-img {
  filter: grayscale(0%);
}

.avatar-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avatar-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.avatar-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.typewriter-wrapper {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
  height: 2em;
  display: flex;
  align-items: center;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.typewriter-prefix {
  color: var(--text-secondary);
}

.typewriter-text {
  color: var(--text-primary);
  font-weight: 600;
}

.typewriter-cursor {
  color: var(--accent-1);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #0d1117;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ===== Terminal ===== */
.hero-terminal {
  max-width: 520px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #6e7681; }
.dot.yellow { background: #8b949e; }
.dot.green { background: #b1bac4; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
}

.t-prompt { color: var(--accent-2); }
.t-cmd { color: var(--text-primary); }
.t-file { color: var(--accent-1); }
.t-brace { color: var(--text-muted); }
.t-key { color: var(--accent-1); }
.t-string { color: var(--accent-2); }
.t-array { color: var(--text-secondary); }

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Section Styles ===== */
.section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-1);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-number {
  opacity: 0.5;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-text strong {
  color: var(--text-primary);
}

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

.stat-card {
  padding: 24px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== Experience / Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 28px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-1);
  z-index: 1;
}

.timeline-card {
  padding: 32px;
}

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

.timeline-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-org {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.timeline-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.timeline-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
}

.project-links a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.project-links a:hover {
  color: var(--text-primary);
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-subtitle {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 500;
  font-family: var(--font-mono);
  margin-bottom: 16px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-highlights li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.project-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-1);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.skill-category {
  padding: 28px;
}

.skill-category:hover {
  transform: translateY(-4px);
}

.skill-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition);
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* ===== Education ===== */
.education-card {
  padding: 36px;
}

.edu-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  flex-shrink: 0;
}

.edu-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.edu-degree {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2px;
}

.edu-meta {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 500;
}

.edu-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edu-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edu-gpa {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gpa-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.gpa-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gpa-badge {
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 600;
}

.edu-courses h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-tags span {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ===== Contact ===== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-description {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text-primary);
}

.contact-card svg {
  color: var(--accent-1);
  flex-shrink: 0;
}

.contact-card:hover {
  transform: translateY(-2px);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

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

/* ===== Light Mode (Monochrome) ===== */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-card: rgba(246, 248, 250, 0.8);
  --bg-card-hover: rgba(234, 238, 242, 0.95);
  --border-color: #d0d7de;
  --border-hover: #afb8c1;
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-muted: #8b949e;
  --accent-1: #1f2328;
  --accent-2: #424a53;
  --accent-3: #656d76;
  --gradient-primary: linear-gradient(135deg, #1f2328, #656d76);
  --gradient-accent: linear-gradient(135deg, #1f2328, #8b949e);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(0, 0, 0, 0.025) 0%, transparent 50%),
                    radial-gradient(ellipse at 80% 20%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
                    radial-gradient(ellipse at 50% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.97);
}

[data-theme="light"] .hero-terminal {
  background: #f6f8fa;
}

[data-theme="light"] .terminal-header {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .grain-overlay {
  opacity: 0.08;
}

[data-theme="light"] .dot.red { background: #afb8c1; }
[data-theme="light"] .dot.yellow { background: #8b949e; }
[data-theme="light"] .dot.green { background: #656d76; }

[data-theme="light"] .hero-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .skill-pill,
[data-theme="light"] .course-tags span {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .project-icon,
[data-theme="light"] .skill-cat-icon,
[data-theme="light"] .edu-icon {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-tags span {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .gpa-badge {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .skill-pill:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .status-dot {
  background: var(--accent-1);
}

/* ===== Lamp Puller Toggle ===== */
.lamp-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  margin-left: 8px;
  position: relative;
  align-self: flex-start;
  margin-top: -1px;
}

.lamp-fixture {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lamp-bulb {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 40% 40%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

[data-theme="light"] .lamp-bulb {
  background: #ffffff;
  border-color: #1f2328;
  color: #1f2328;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.lamp-cord {
  width: 1.5px;
  height: 240px;
  background: var(--text-muted);
  transition: height 0.15s ease-in, background var(--transition);
  transform-origin: top center;
}

.lamp-handle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.15s ease-in, background var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Pull animation */
.lamp-toggle.pulling .lamp-cord {
  height: 300px;
  transition: height 0.15s ease-out;
}

.lamp-toggle.pulling .lamp-handle {
  transform: scale(1.15);
  transition: transform 0.15s ease-out;
}

/* Hover */
.lamp-toggle:hover .lamp-handle {
  background: var(--text-primary);
}

.lamp-toggle:hover .lamp-bulb {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

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

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-avatar-wrapper {
    order: -1;
  }

  .avatar-ring {
    width: 160px;
    height: 160px;
  }

  .avatar-glow {
    width: 200px;
    height: 200px;
  }

  .hero-name {
    letter-spacing: -1px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .timeline-header {
    flex-direction: column;
  }

  .timeline-meta {
    text-align: left;
  }

  .edu-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-meta {
    margin-left: 0;
    text-align: left;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-terminal {
    font-size: 0.75rem;
  }
}
