/* Kingsuk Majumder — Modern Portfolio */

:root {
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --bg: #08080d;
  --bg-elevated: #111118;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f0f0f5;
  --text-muted: #9494a8;
  --text-subtle: #6b6b7d;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-glow: rgba(94, 234, 212, 0.15);
  --gradient: linear-gradient(135deg, #5eead4 0%, #818cf8 50%, #c084fc 100%);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 64px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-bg: rgba(8, 8, 13, 0.72);
}

[data-theme="light"] {
  --bg: #f8f8fc;
  --bg-elevated: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --text: #12121a;
  --text-muted: #5c5c6e;
  --text-subtle: #8888a0;
  --accent: #0d9488;
  --accent-2: #6366f1;
  --accent-glow: rgba(13, 148, 136, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  --header-bg: rgba(248, 248, 252, 0.82);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.gradient-orb--1 {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}
.gradient-orb--2 {
  width: 500px; height: 500px;
  bottom: 10%; left: -200px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
}

[data-theme="light"] .gradient-orb { opacity: 0.2; }

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  pointer-events: none;
}

.nav-dock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  pointer-events: auto;
  box-shadow: var(--shadow);
}

.nav-dock__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-dock__links {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-dock__links::-webkit-scrollbar { display: none; }

.nav-dock__links a {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dock__links a:hover,
.nav-dock__links a.is-active {
  color: var(--text);
  background: var(--bg-card-hover);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-dock__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
}
.nav-dock__menu span {
  display: block;
  width: 14px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-dock__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-dock__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero__role {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.hero__intro {
  max-width: 52ch;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--gradient);
  color: #08080d;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn--primary:hover { color: #08080d; box-shadow: 0 12px 40px var(--accent-glow); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-card-hover); color: var(--text); }

.social-links {
  display: flex;
  gap: 0.5rem;
}
.social-links a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }

/* Profile frame */
.hero__visual { display: flex; justify-content: center; }

.profile-frame {
  position: relative;
  width: min(320px, 80vw);
}

.profile-frame__ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2), #c084fc, var(--accent));
  animation: spin 12s linear infinite;
  opacity: 0.7;
}
.profile-frame__ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spin { to { transform: rotate(360deg); } }

.profile-frame__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
}

.profile-frame__badge {
  position: absolute;
  bottom: 1rem;
  right: -1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.profile-frame__badge .mono {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}
.section--alt { background: var(--bg-elevated); }

.section__header { margin-bottom: 3rem; }
.section__label {
  display: block;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section__lede {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.insight-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.insight-card__meta {
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.insight-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.insight-card__title a { color: var(--text); }
.insight-card__title a:hover { color: var(--accent); }
.insight-card__excerpt {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.insight-card .tag-list { margin-bottom: 1.25rem; }
.insight-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
}
.insight-card__link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.insight-card__link:hover svg { transform: translate(2px, -2px); }

.insights-cta {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.insights-cta a { font-weight: 600; }

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

.prose p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.prose p:last-child { margin-bottom: 0; }

.info-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.info-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.info-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-list__label {
  color: var(--text-subtle);
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Projects */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.project-card__media {
  position: relative;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 280px;
}
.project-card__media img {
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.project-card__media--brand {
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.08), rgba(129, 140, 248, 0.12));
}
.project-card__media--brand img {
  max-height: 180px;
  border-radius: 24px;
}

.project-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient);
  color: #08080d;
  border-radius: 999px;
  font-weight: 500;
}

.project-card__body { padding: 2.5rem; }
.project-card__meta {
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.project-card__title a { color: var(--text); }
.project-card__title a:hover { color: var(--accent); }
.project-card__summary {
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.project-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.tag {
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.project-card__link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.project-card__link:hover svg { transform: translate(2px, -2px); }

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-card--compact {
  display: block;
  grid-template-columns: unset;
}
.project-card--compact .project-card__body {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card--compact .project-card__desc {
  flex: 1;
}
.project-card--compact .project-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: calc(-2rem - 5px);
  top: 0.4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline__content {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.timeline__item:hover .timeline__content {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.timeline__meta {
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.timeline__title a { color: var(--text); }
.timeline__title a:hover { color: var(--accent); }

.timeline__stack li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
}
.timeline__stack li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-subtle);
  font-size: 0.8rem;
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.bento__card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}
.bento__card:hover { border-color: var(--border-strong); }
.bento__card--wide { grid-column: 1 / -1; }

.bento__label {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 1.25rem;
}

.skill-grid { display: flex; flex-direction: column; gap: 1rem; }

.skill-item__name { font-weight: 500; font-size: 0.92rem; }
.skill-item__level {
  float: right;
  color: var(--text-subtle);
  font-size: 0.68rem;
}
.skill-item__bar {
  clear: both;
  margin-top: 0.5rem;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skill-item__fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 1s var(--ease);
}

.edu-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.edu-list li:last-child { border-bottom: none; }
.edu-list strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.edu-list span { display: block; color: var(--text-muted); font-size: 0.88rem; }
.edu-list__year { color: var(--accent) !important; margin-top: 0.25rem; }

.lang-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.lang-list li:last-child { border-bottom: none; }
.lang-list .mono { color: var(--text-subtle); }

.linkedin-skills__intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}
.linkedin-skills__intro a { font-weight: 600; }
.linkedin-skills__intro code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.linkedin-skills__certs { margin-bottom: 1.5rem; }
.linkedin-skills__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.linkedin-skills__group .tag-list { margin-bottom: 0; }
.linkedin-skills__subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 0.75rem;
}

.cert-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.cert-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cert-list strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.cert-list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.conf-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.conf-list li:last-child { border-bottom: none; }
.conf-list .mono { color: var(--text-subtle); margin-left: auto; }

/* GitHub */
.github-panel {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.github-panel .calendar {
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.github-panel .text-muted,
.github-panel .contrib-number {
  color: var(--text-muted) !important;
  fill: var(--text-muted) !important;
}

.github-activity {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg) !important;
}
.github-activity h2 {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--border) !important;
  font-family: var(--font-display) !important;
}
.github-activity .gha-header,
.github-activity .gha-footer {
  background: var(--bg-elevated) !important;
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
}
.github-activity .gha-feed { background: var(--bg) !important; }
.github-activity .gha-feed .gha-event {
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}
.github-activity a { color: var(--accent) !important; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.site-footer__copy { color: var(--text-subtle); }
.site-footer__note { font-size: 0.85rem; color: var(--text-subtle); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .profile-frame__ring { animation: none; }
  .status-dot, .hero__scroll-line { animation: none; }
  .btn:hover, .social-links a:hover, .timeline__item:hover .timeline__content, .insight-card:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero__visual { order: -1; }
  .hero__intro { margin-inline: auto; }
  .hero__actions, .social-links { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: auto; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  .nav-dock__links {
    display: none;
    position: fixed;
    top: calc(var(--nav-height) + 0.5rem);
    left: 1rem; right: 1rem;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  .nav-dock__links.is-open { display: flex; }
  .nav-dock__links a { padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
  .nav-dock__menu { display: flex; }
  .timeline { padding-left: 1.5rem; }
  .timeline__marker { left: calc(-1.5rem - 5px); }
  .project-card__body { padding: 1.5rem; }
  .section { padding: 4rem 0; }
}
