:root {
  color-scheme: dark;
  --bg: #07070f;
  --bg-soft: #0c0d1c;
  --panel: rgba(13, 16, 32, 0.52);
  --panel-strong: rgba(10, 12, 26, 0.85);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.25);
  --text: #f8fafc;
  --muted: #a3b3cc;
  --accent: #b482ff;
  --accent-warm: #38bdf8;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --hero-title: "Bahnschrift", "Arial Narrow", sans-serif;
  --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
}

/* View Transition */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
}

body[data-theme="dawn"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --bg-soft: #eef2f6;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-strong: rgba(243, 244, 246, 0.95);
  --line: rgba(15, 23, 42, 0.06);
  --line-strong: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --muted: #475569;
  --accent: #4f46e5;
  --accent-warm: #f43f5e;
  --shadow: 0 30px 60px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

.learning-tree {
  position: fixed;
  margin: inherit;
  padding: inherit;
  
  height: 100vh;
  overflow: hidden;
}

.section-heading.reveal {
  padding-top: 1.5rem;
}

/* Header */

.site-header {

  position: fixed;

  top: 18px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 1000;

  width: min(1100px, calc(100% - 32px));

  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 12px;

  background: rgba(10, 12, 18, 0);

  border: 1px solid transparent;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  box-shadow: none;

  transition:
    width .35s ease,
    padding .35s ease,
    transform .35s ease,
    background .35s ease,
    border-color .35s ease,
    backdrop-filter .35s ease,
    -webkit-backdrop-filter .35s ease,
    top .35s ease,
    box-shadow .35s ease;
}

/* SCROLL EFFECT */

.site-header.scrolled {
  top: 16px;
  width: min(850px, calc(100% - 32px));
  padding: 8px 24px;
  background: rgba(13, 16, 32, 0.48);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body[data-theme="dawn"] .site-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 10px 30px rgba(31, 38, 135, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

body[data-theme="dawn"] .site-header.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  box-shadow:
    0 12px 35px rgba(31, 38, 135, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(255, 255, 255, 0.2);
}

/* Logo */

.brand {
  text-decoration: none;
  color: var(--text);

  font-size: 1.05rem;
  font-weight: 700;

  letter-spacing: 0.3px;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, color 0.35s ease;
}

/* Navigation links */

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.desktop-nav a {
  position: relative;

  text-decoration: none;
  color: var(--muted);

  font-size: 0.95rem;
  font-weight: 500;

  transition: all 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

/* smooth underline */

.desktop-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -6px;

  width: 0%;
  height: 2px;

  border-radius: 999px;

  background: var(--text);

  transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

/* Navigation actions */

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border-radius: 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

body[data-theme="dawn"] .icon-button {
  background: transparent;
  border-color: transparent;
  color: var(--text);
  box-shadow: none;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

body[data-theme="dawn"] .icon-button:hover {
  background: rgba(18, 21, 31, 0.12);
}

/* scrolled button overrides to blend with glass header */
.site-header.scrolled .icon-button {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}


/* github button */

.gitHub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  color: var(--text);
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gitHub:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

body[data-theme="dawn"] .gitHub:hover {
  background: rgba(18, 21, 31, 0.12);
}

.gitHub:active {
  transform: scale(0.95);
}

/* Responsive Header & Nav */
@media (max-width: 768px) {
  .desktop-nav {
    display: flex;
    gap: 16px;
  }

  .desktop-nav a {
    font-size: 0.88rem;
  }

  .site-header {
    width: calc(100% - 16px);
    padding: 10px 16px;
  }

  .site-header.scrolled {
    width: calc(100% - 16px);
    padding: 8px 14px;
  }

  .brand {
    font-size: 0.92rem;
  }
}

@media (max-width: 520px) {
  .desktop-nav {
    gap: 10px;
  }

  .desktop-nav a {
    font-size: 0.8rem;
    padding: 2px 2px;
  }

  .gitHub {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #07070f;
  background-image: url('../assets/ChatGPT%20Image%20Sep%2025,%202026,%2001_13_46%20AM.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body-font);
  /* transition: background 300ms ease, color 300ms ease; */
}

body[data-theme="dawn"] {
  background: #ffffff;
  background-image: none;
}

/* heading switching with name  */
#typing {
  color: #ffffff;
  border-right: 3px solid;
  padding-right: 5px;
  animation: blink 0.8s infinite;
}

body[data-theme="dawn"] #typing {
  color: #000000;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Transition  so we have to remove body transition  */

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.progress-track {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 22px rgba(125, 233, 255, 0.5);
}

.starfield,
.noise,
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.starfield {
  z-index: -4;
}

body:not([data-theme="dawn"]) .starfield,
body:not([data-theme="dawn"]) .ambient,
body:not([data-theme="dawn"]) .noise {
  display: none !important;
}

.star {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.65;
  animation: twinkle linear infinite;
}

.noise {
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: soft-light;
}

.ambient {
  pointer-events: none;
  position: fixed;
  z-index: -3;
  filter: blur(90px);
  opacity: 0.12;
  border-radius: 50%;
  /* CLS FIX: GPU-only transition, fully isolated from layout tree */
  will-change: transform;
  contain: layout style paint;
  transition: transform 4s ease-in-out;
}

.ambient-left {
  width: 500px;
  height: 500px;
  background: #00c5ff; /* Cyan */
  left: -100px;
  top: -200px;
  animation: move1 8s ease-in-out infinite alternate;
}

.ambient-right {
  width: 600px;
  height: 600px;
  background: #7b6cff; /* Purple */
  right: -150px;
  top: -100px;
  animation: move2 10s ease-in-out infinite alternate;
}

.ambient-bottom {
  width: 450px;
  height: 450px;
  background: #ffb553; /* Orange/Gold */
  left: 40%;
  top: -150px;
  animation: move3 12s ease-in-out infinite alternate;
}

.ambient-fourth {
  width: 550px;
  height: 550px;
  background: #ec4899; /* Vibrant Pink/Rose */
  left: 20vw;
  top: -150px;
  animation: move4 14s ease-in-out infinite alternate;
}

.ambient-fifth {
  width: 500px;
  height: 500px;
  background: #10b981; /* Emerald Green */
  left: 70vw;
  top: -100px;
  animation: move5 16s ease-in-out infinite alternate;
}

/* Light mode  (softer pastel tints & liquid animations) */
body[data-theme="dawn"] .ambient {
  filter: blur(0px);
  opacity: 1;
  border-radius: 50%;
  will-change: transform;
  contain: layout style paint;
  transition: transform 4s ease-in-out;
}

body[data-theme="dawn"] .ambient-left {
  width: 500px;
  height: 500px;
  background: #F8DCEB;
  left: -100px;
  top: -200px;
  right: auto;
  bottom: auto;
  animation: move1 8s ease-in-out infinite alternate;
}

body[data-theme="dawn"] .ambient-right {
  width: 600px;
  height: 600px;
  background: #DCEAFF;
  right: -150px;
  top: -100px;
  left: auto;
  bottom: auto;
  animation: move2 10s ease-in-out infinite alternate;
}

body[data-theme="dawn"] .ambient-bottom {
  width: 450px;
  height: 450px;
  background: #E6DFFF;
  left: 40%;
  top: -150px;
  right: auto;
  bottom: auto;
  animation: move3 12s ease-in-out infinite alternate;
}

body[data-theme="dawn"] .ambient-fourth {
  display: block;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #FEF3C7 0%, #DCEAFF 70%, transparent 100%);
  left: 20vw;
  top: -150px;
  right: auto;
  bottom: auto;
  animation: move4 14s ease-in-out infinite alternate;
}

body[data-theme="dawn"] .ambient-fifth {
  display: block;
  width: 500px;
  height: 500px;
  background: #D4F6DC;
  left: 70vw;
  top: -100px;
  right: auto;
  bottom: auto;
  animation: move5 16s ease-in-out infinite alternate;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}



.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 44px;
  height: 44px;
}

.icon-button {
  position: relative;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

body[data-theme="dawn"] .icon-button {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

/* Glow effect */
.icon-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.icon-button:hover::before {
  opacity: 1;
}


/* Transition from moon to sun */

.icon {
  border-radius: 10px;
  border-color: gray;
  background-color: transparent;
  font-size: 20px;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

/* Sun */
.icon-sun::before {
  content: "☀️";
}

/* Moon */
.icon-moon::before {
  content: "🌙";
}

/* Animation while switching */
.icon.switch-out {
  transform: rotate(120deg) scale(0.6);
  opacity: 0;
}

/* When switching in dark mode */
.icon.switch-in {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* click effect */
.icon-button:active {
  transform: scale(0.95);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: rgba(18, 22, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(120%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  font-size: 1.5rem;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast.toast-error .toast-icon {
  color: #ef4444;
}

.toast-message {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.toast-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

body[data-theme="dawn"] .toast {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.1);
  color: #12151f;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-theme="dawn"] .toast-title {
  color: #12151f;
}

body[data-theme="dawn"] .toast-text {
  color: rgba(18, 21, 31, 0.75);
}

@media (max-width: 600px) {
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
  }
}

.section {
  width: min(1450px, 100%);
  margin-inline: auto;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.2rem, 5vw, 2.5rem);
  scroll-margin-top: 90px;
}

.hero {
  display: grid;
  margin-top: 60px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: calc(100vh - 5rem);
}

.eyebrow,
.card-label,
.project-type {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
}

.hero h1 {
  display: grid;
  margin: 0;
  font-family: var(--hero-title);
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-size: clamp(4rem, 10vw, 7.4rem);
  /* Keep the full two-line title area even while the text is being erased. */
  min-height: 1.8em;
  contain: layout;
}

.hero-title-text,
.hero-title-space {
  grid-area: 1 / 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* All complete titles reserve their natural height at the current screen width. */
.hero-title-space {
  display: grid;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.hero-title-space > span {
  grid-area: 1 / 1;
  min-width: 0;
  padding-right: 8px;
}

.section-heading h2,
.contact-card h2,
.contact-title {
  margin: 0;
  font-family: var(--hero-title);
  font-size: clamp(2.4rem, 4.5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
  -webkit-text-fill-color: initial;
  background: none;
}

body[data-theme="dawn"] .section-heading h2,
body[data-theme="dawn"] .contact-card h2,
body[data-theme="dawn"] .contact-title {
  color: #0f172a;
  -webkit-text-fill-color: initial;
  background: none;
}

@media (max-width: 768px) {
  .hero h1 {
    min-height: 2.2em;
  }
}

.hero-role,
.about-copy,
.glass-card p,
.project-copy p,
.timeline-item p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.hero-role {
  max-width: 32rem;
  margin: 1.4rem 0 0;
  min-height: 3.5rem;
  contain: layout;
}

.hero-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  width: 100%;
  max-width: 420px;
  margin-top: 2rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
}

.primary-button {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #07070f;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.06);
}

body[data-theme="dawn"] .primary-button {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body[data-theme="dawn"] .secondary-button {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.resume-btn {
  grid-column: span 2;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.resume-btn i {
  transition: transform 0.3s ease;
  color: #ffffff;
}

.resume-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.resume-btn:hover i {
  animation: bounceDown 0.8s infinite;
  color: #ffffff;
}

.resume-btn:active {
  transform: translateY(-1px) scale(0.97);
}

body[data-theme="dawn"] .resume-btn {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
  color: #000000;
}

body[data-theme="dawn"] .resume-btn i {
  color: #000000;
}

body[data-theme="dawn"] .resume-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
  color: #000000;
}

body[data-theme="dawn"] .resume-btn:hover i {
  color: #000000;
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.primary-button:hover,
.secondary-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.icon-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 0 6px 26px rgba(255, 255, 255, 0.15);
}

body[data-theme="dawn"] .primary-button:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 6px 26px rgba(15, 23, 42, 0.18);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

body[data-theme="dawn"] .secondary-button:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.quick-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

body[data-theme="dawn"] .quick-links a {
  background: rgba(15, 23, 42, 0.02);
  border-color: var(--line);
  color: var(--muted);
}

body[data-theme="dawn"] .quick-links a:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.skill-board-shell {
  position: relative;
  width: min(100%, 42rem);
  aspect-ratio: 16 / 13;
  perspective: 1600px;
  --tilt-x: 0deg;
  --tilt-z: 0deg;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Glow overlay for skill board */
.skill-board-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,215,0,0.6), transparent);
  opacity: 0;
}

.skill-board-shell.glow-active::after {
  animation: glow-sweep 2s ease-out forwards;
}

@keyframes glow-sweep {
  0% { opacity: 0; transform: translateY(-100%); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(100%); }
}

.skill-board {
  position: relative;
  width: 550px;
  height: 450px;
  padding: 1.5rem;
  border-radius: 2.2rem;
  background: linear-gradient(145deg, #fdfbf7 0%, #f4eee2 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -10px 20px rgba(15, 23, 42, 0.01),
    /* Vintage Ivory/Beige 3D Sides */
    0 1px 0 #f4eee2,
    0 2px 0 #eae3d4,
    0 3px 0 #eae3d4,
    0 4px 0 #ded6c3,
    0 5px 0 #ded6c3,
    0 6px 0 #d2cbb8,
    0 7px 0 #c7bfac,
    0 8px 0 #bcae9a,
    /* Soft ambient drop shadows */
    0 15px 30px -10px rgba(244, 238, 226, 0.05),
    0 30px 60px -15px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    rotateX(calc(55deg + var(--tilt-x))) rotateZ(calc(-25deg + var(--tilt-z))) translateZ(0);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background 0.35s ease, box-shadow 0.35s ease;
}

.skill-board-shell:hover .skill-board {
  transition: transform 50ms linear, background 0.35s ease, box-shadow 0.35s ease;
}

.skill-board::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2.2rem;
  transform: translateZ(-18px);
  background: linear-gradient(180deg, #eae3d4, #bcae9a);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.skill-board::after {
  content: "";
  position: absolute;
  inset: auto 10% -11%;
  height: 16%;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45), transparent 70%);
  filter: blur(20px);
  display: none; /* hidden for white board */
}

.keys {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 90px);
  grid-template-rows: repeat(4, 90px);
  justify-content: center;
  align-content: center;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 5 / 4;
  margin: auto;
  perspective: 1200px;
  transform-style: preserve-3d;
  background: linear-gradient(180deg, #f5efe3, #e7ddca);
  border-radius: 1.5rem;
  box-shadow: 
    inset 0 3px 8px rgba(15, 23, 42, 0.08), 
    0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.key {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #fdfbf7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    transform-style: preserve-3d;
    transform: translateZ(16px);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--key-color, #94a3b8);
    text-shadow: var(--key-glow, none);
    
    transition:
        transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1.15),
        box-shadow 0.15s cubic-bezier(0.25, 0.8, 0.25, 1.15),
        background 0.15s ease,
        color 0.2s ease,
        text-shadow 0.2s ease;
        
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(0, 0, 0, 0.03),
        inset 0 -2px 4px rgba(255, 255, 255, 0.8),
        /* 3D sides - Warm beige-ivory custom mechanical keycap aesthetics */
        0 1px 0 #f0e9dc,
        0 2px 0 #f0e9dc,
        0 3px 0 #e2d9ca,
        0 4px 0 #e2d9ca,
        0 5px 0 #d5cbb8,
        0 6px 0 #c8bca6,
        0 7px 0 #baac94,
        0 8px 0 #ab9a82,
        0 9px 0 #9b8a70,
        0 10px 0 #8b795e,
        0 11px 0 #7b694f,
        0 12px 0 #6c5a41,
        /* Drop shadow on cream board */
        0 12px 20px rgba(0, 0, 0, 0.06);
}

.key i {
  font-size: 2rem;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.key i.key-typescript {
  font-family: var(--body-font);
  font-style: normal;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.key-vector-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.graphql-key {
  --key-color: #e535ab;
  --key-glow-color: #f472b6;
  --key-underglow: rgba(229, 53, 171, 0.22);
}

.key i.fa-terminal.cursor-active {
  animation: terminal-cursor-blink 1.2s infinite step-end;
}

body:not([data-theme="dawn"]) .key.is-lit {
    background: linear-gradient(135deg, #fffcf0, #f8ebd0);
}


.key:hover {
    transform: translateZ(20px);
    background: linear-gradient(135deg, #ffffff, #faf6ee);
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 -2px 4px rgba(255, 255, 255, 0.9),
        /* Taller 3D sides */
        0 1px 0 #f0e9dc,
        0 2px 0 #f0e9dc,
        0 3px 0 #e2d9ca,
        0 4px 0 #e2d9ca,
        0 5px 0 #d5cbb8,
        0 6px 0 #c8bca6,
        0 7px 0 #baac94,
        0 8px 0 #ab9a82,
        0 9px 0 #9b8a70,
        0 10px 0 #8b795e,
        0 11px 0 #7b694f,
        0 12px 0 #6c5a41,
        0 13px 0 #5c4b34,
        0 14px 0 #4d3d28,
        0 15px 0 #3f301d,
        0 16px 0 #302312,
        0 16px 26px rgba(0, 0, 0, 0.1);
}

.key:active,
.key.is-pressed {
    transition:
        transform 0.05s cubic-bezier(0.15, 0.85, 0.35, 1),
        box-shadow 0.05s cubic-bezier(0.15, 0.85, 0.35, 1);
    transform: translateZ(4px);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.7),
        inset 0 3px 4px rgba(0, 0, 0, 0.06),
        /* Shorter 3D sides */
        0 1px 0 #e2d9ca,
        0 2px 0 #e2d9ca,
        0 3px 0 #baac94,
        0 4px 0 #8b795e,
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.key::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: #ded6c3;
    transform: translateZ(-16px);
    z-index: -1;
    transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1.15), background 0.15s ease, box-shadow 0.15s ease;
}

.key:hover::before {
    transform: translateZ(-20px);
    box-shadow: 0 0 18px 2px var(--key-underglow, transparent);
}

.key:active::before,
.key.is-pressed::before {
    transition: transform 0.05s cubic-bezier(0.15, 0.85, 0.35, 1);
    transform: translateZ(-4px);
}

/* QWERTY legend styling */
.key-legend-qwerty {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0.55;
  color: #475569;
  transition: opacity 0.15s ease, text-shadow 0.15s ease;
}

.key:hover .key-legend-qwerty {
  opacity: 0.95;
}

.key-legend-long {
  font-size: 0.5rem;
}

.graphite .key-legend-qwerty {
  color: var(--key-color);
}
/* Base key colors for Cream Keyboard (Default / Dark Mode) */
.amber {
  --key-color: #d97706;
  --key-glow-color: #fbbf24;
  --key-underglow: rgba(251, 191, 36, 0.22);
}

.blue {
  --key-color: #2563eb;
  --key-glow-color: #60a5fa;
  --key-underglow: rgba(96, 105, 250, 0.22);
}

.coral {
  --key-color: #e11d48;
  --key-glow-color: #fb7185;
  --key-underglow: rgba(251, 113, 133, 0.22);
}

.purple {
  --key-color: #9333ea;
  --key-glow-color: #c084fc;
  --key-underglow: rgba(192, 132, 252, 0.22);
}

.teal {
  --key-color: #0d9488;
  --key-glow-color: #2dd4bf;
  --key-underglow: rgba(45, 212, 191, 0.22);
}

.slate {
  --key-color: #475569;
  --key-glow-color: #94a3b8;
  --key-underglow: rgba(148, 163, 184, 0.1);
}

.cyan {
  --key-color: #0891b2;
  --key-glow-color: #22d3ee;
  --key-underglow: rgba(34, 211, 238, 0.22);
}

.green {
  --key-color: #059669;
  --key-glow-color: #34d399;
  --key-underglow: rgba(52, 211, 153, 0.22);
}

.graphite {
  --key-color: #374151;
  --key-glow-color: #6b7280;
  --key-underglow: rgba(107, 114, 128, 0.08);
}

.white {
  --key-color: #1e293b;
  --key-glow-color: #cbd5e1;
  --key-underglow: rgba(203, 213, 225, 0.1);
}

.gold {
  --key-color: #b45309;
  --key-glow-color: #f59e0b;
  --key-underglow: rgba(245, 158, 11, 0.22);
}

.deep {
  --key-color: #0f172a;
  --key-glow-color: #475569;
  --key-underglow: rgba(71, 85, 105, 0.08);
}

.aqua {
  --key-color: #0284c7;
  --key-glow-color: #38bdf8;
  --key-underglow: rgba(56, 189, 248, 0.22);
}

.lime {
  --key-color: #4d7c0f;
  --key-glow-color: #a3e635;
  --key-underglow: rgba(163, 230, 53, 0.22);
}

/* Light Theme (Dawn) overrides - Black/Carbon Keyboard */
body[data-theme="dawn"] .skill-board {
  background: linear-gradient(165deg, rgba(40, 43, 52, 0.98), rgba(16, 18, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 26px rgba(0, 0, 0, 0.28),
    /* 3D sides of the keyboard tray */
    0 1px 0 #181b24,
    0 2px 0 #161920,
    0 3px 0 #13151b,
    0 4px 0 #101216,
    0 5px 0 #0d0f12,
    0 6px 0 #0b0c0e,
    0 7px 0 #08090a,
    0 8px 0 #050607,
    /* Soft shadow below the board */
    0 20px 40px rgba(0, 0, 0, 0.55);
}

body[data-theme="dawn"] .skill-board::before {
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.98), rgba(20, 23, 32, 0.98));
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

body[data-theme="dawn"] .skill-board::after {
  display: block; /* restore black shadow in light theme */
}

body[data-theme="dawn"] .keys {
  background: linear-gradient(180deg, #181a21, #0f1015);
  box-shadow: 
    inset 0 3px 8px rgba(0, 0, 0, 0.5), 
    0 1px 0 rgba(255, 255, 255, 0.05);
}

body[data-theme="dawn"] .key {
  background: linear-gradient(135deg, #2d323f, #1c1f28);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--key-color);
  text-shadow: var(--key-glow, none);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.06),
    inset 0 -2px 5px rgba(0, 0, 0, 0.35),
    /* Solid 3D Sides */
    0 1px 0 #1c1f28,
    0 2px 0 #181b23,
    0 3px 0 #15171e,
    0 4px 0 #12141a,
    0 5px 0 #0f1115,
    0 6px 0 #0c0d10,
    0 7px 0 #090a0c,
    0 8px 0 #060708,
    /* Realistic ambient occlusion shadow */
    0 12px 20px rgba(0, 0, 0, 0.5);
}

body[data-theme="dawn"] .key:hover {
  background: linear-gradient(135deg, #373d4d, #222631);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3),
    /* Solid 3D Sides */
    0 1px 0 #1c1f28,
    0 2px 0 #1c1f28,
    0 3px 0 #181b23,
    0 4px 0 #181b23,
    0 5px 0 #15171e,
    0 6px 0 #12141a,
    0 7px 0 #0f1115,
    0 8px 0 #0c0d10,
    0 9px 0 #090a0c,
    0 10px 0 #060708,
    0 16px 26px rgba(0, 0, 0, 0.55);
}

body[data-theme="dawn"] .key:active,
body[data-theme="dawn"] .key.is-pressed {
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.03),
    inset 0 3px 5px rgba(0, 0, 0, 0.45),
    /* Solid 3D Sides */
    0 1px 0 #1c1f28,
    0 2px 0 #15171e,
    0 3px 0 #0c0d10,
    0 4px 0 #060708,
    0 4px 8px rgba(0, 0, 0, 0.55);
}

body[data-theme="dawn"] .key::before {
  background: #0f1115;
}

body[data-theme="dawn"] .key-legend-qwerty {
  color: #ffffff; /* white text for dark keycaps in light theme */
}

/* Light mode key colors for Black/Carbon keyboard (active in Dawn theme) */
body[data-theme="dawn"] .amber {
  --key-color: #fbbf24;
  --key-glow-color: #fbbf24;
  --key-underglow: rgba(251, 191, 36, 0.2);
}

body[data-theme="dawn"] .blue {
  --key-color: #60a5fa;
  --key-glow-color: #60a5fa;
  --key-underglow: rgba(96, 165, 250, 0.2);
}

body[data-theme="dawn"] .coral {
  --key-color: #fb7185;
  --key-glow-color: #fb7185;
  --key-underglow: rgba(251, 113, 133, 0.2);
}

body[data-theme="dawn"] .purple {
  --key-color: #c084fc;
  --key-glow-color: #c084fc;
  --key-underglow: rgba(192, 132, 252, 0.2);
}

body[data-theme="dawn"] .teal {
  --key-color: #2dd4bf;
  /* --key-glow-color: #2dd4bf; */
  --key-underglow: rgba(45, 212, 191, 0.2);
}

body[data-theme="dawn"] .slate {
  --key-color: #ffffff;
  --key-glow-color: #ffffff;
  --key-underglow: rgba(255, 255, 255, 0.15);
}

body[data-theme="dawn"] .cyan {
  --key-color: #22d3ee;
  --key-glow-color: #22d3ee;
  --key-underglow: rgba(34, 211, 238, 0.2);
}

body[data-theme="dawn"] .green {
  --key-color: #34d399;
  --key-glow-color: #34d399;
  --key-underglow: rgba(52, 211, 153, 0.2);
}

body[data-theme="dawn"] .graphite {
  --key-color: #ffffff;
  --key-glow-color: #ffffff;
  --key-underglow: rgba(255, 255, 255, 0.15);
}

body[data-theme="dawn"] .white {
  --key-color: #ffffff;
  --key-glow-color: #ffffff;
  --key-underglow: rgba(255, 255, 255, 0.15);
}

body[data-theme="dawn"] .gold {
  --key-color: #fbbf24;
  --key-glow-color: #fbbf24;
  --key-underglow: rgba(251, 191, 36, 0.2);
}

body[data-theme="dawn"] .deep {
  --key-color: #ffffff;
  --key-glow-color: #ffffff;
  --key-underglow: rgba(255, 255, 255, 0.15);
}

body[data-theme="dawn"] .aqua {
  --key-color: #38bdf8;
  --key-glow-color: #38bdf8;
  --key-underglow: rgba(56, 189, 248, 0.2);
}

body[data-theme="dawn"] .lime {
  --key-color: #a3e635;
  --key-glow-color: #a3e635;
  --key-underglow: rgba(163, 230, 53, 0.2);
}



.section-heading {
  max-width: 52rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

#stats-panel-section .coding-profiles-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profiles-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.profiles-refresh-button:hover:not(:disabled) {
  color: var(--accent);
}

.profiles-refresh-button:active:not(:disabled) {
  transform: scale(0.9);
}

.profiles-refresh-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

.profiles-refresh-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.profiles-refresh-button svg {
  display: block;
}

.profiles-refresh-button[aria-busy="true"] svg {
  animation: profiles-refresh-spin 0.85s linear infinite;
}

.profiles-refresh-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes profiles-refresh-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  #stats-panel-section .coding-profiles-heading h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

}

@media (prefers-reduced-motion: reduce) {
  .profiles-refresh-button[aria-busy="true"] svg {
    animation: none;
  }

  .profiles-refresh-button {
    transition: none;
  }
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  max-width: 44rem;
}

.insight-grid,
.projects-grid,
.about-layout {
  display: grid;
  gap: 1.25rem;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(25px) saturate(190%);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.glass-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

body[data-theme="dawn"] .glass-card:hover,
body[data-theme="dawn"] .project-card:hover {
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.glass-card {
  padding: 1.5rem;
}

.glass-card h3,
.project-copy h3,
.timeline-item h3 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  line-height: 1.15;
  font-family: var(--hero-title);
  letter-spacing: -0.01em;
}

.glass-card p:last-child,
.project-copy p:last-child {
  margin-bottom: 0;
}


.projects-section {
  position: relative;
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 20% -10% auto auto;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(125, 233, 255, 0.08), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.projects-section {
  position: relative;
}

.projects-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* 1. HERO PROJECT CARD (FLAGSHIP: VIDYUT) */
.project-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding: clamp(2rem, 3vw, 2.75rem);
  border-radius: 22px;
  background: rgba(13, 16, 32, 0.76);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(180, 130, 255, 0.1) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.project-hero-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 130, 255, 0.35);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.65), 0 0 25px rgba(180, 130, 255, 0.08);
}

body[data-theme="dawn"] .project-hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

body[data-theme="dawn"] .project-hero-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 20px 48px rgba(124, 58, 237, 0.08);
}

.project-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  z-index: 1;
}

.project-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-flagship-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vidyut-project .project-startup-pill {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

body[data-theme="dawn"] .vidyut-project .project-startup-pill {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
}

body[data-theme="dawn"] .vidyut-project .project-flagship-pill {
  color: #92400e;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(180, 83, 9, 0.22);
}

.project-year-pill {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.project-title {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 800;
  font-family: var(--hero-title);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project-tagline {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent-warm);
  line-height: 1.35;
}

.project-description {
  margin: 0;
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.58;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tech-tag i {
  color: var(--accent);
  font-size: 0.82rem;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

body[data-theme="dawn"] .tech-tag {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.vidyut-project .project-actions a {
  gap: 0.45rem;
}

/* Flagship product preview */
.project-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 1;
}

.vidyut-preview {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(13, 16, 32, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.vidyut-preview-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.vidyut-preview-bar img {
  flex: 0 0 20px;
  object-fit: contain;
}

.vidyut-preview-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 49 / 29;
}

.vidyut-preview-caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}

.vidyut-preview-caption a {
  color: inherit;
  text-underline-offset: 2px;
}

.vidyut-preview-caption a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

body[data-theme="dawn"] .vidyut-preview {
  background: #f8fafc;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.hero-brand-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 1.25rem 1rem;
  /* Borderless presentation - no bounding box */
  border: none;
  background: transparent;
  box-shadow: none;
}

.brand-logo-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(163, 230, 53, 0.16) 0%, rgba(34, 197, 94, 0.05) 50%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-hero-card:hover .brand-logo-glow {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

.hero-brand-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 125px;
  margin-bottom: 1rem;
}

.hero-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(163, 230, 53, 0.28));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.project-hero-card:hover .hero-brand-logo {
  transform: scale(1.05) translateY(-3px);
  filter: drop-shadow(0 12px 26px rgba(163, 230, 53, 0.42));
}

.hero-brand-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.hero-brand-name {
  font-family: var(--hero-title);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text);
}

.hero-brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #a3e635;
  text-transform: uppercase;
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

body[data-theme="dawn"] .brand-logo-glow {
  background: radial-gradient(circle, rgba(163, 230, 53, 0.2) 0%, rgba(34, 197, 94, 0.08) 50%, transparent 70%);
}

body[data-theme="dawn"] .hero-brand-logo {
  filter: drop-shadow(0 6px 16px rgba(34, 197, 94, 0.22));
}

body[data-theme="dawn"] .project-hero-card:hover .hero-brand-logo {
  filter: drop-shadow(0 10px 22px rgba(34, 197, 94, 0.35));
}

body[data-theme="dawn"] .hero-brand-tag {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

/* 2. SECONDARY PROJECTS SUBGRID (3 CARDS) */
.projects-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  width: 100%;
}

@media (max-width: 1060px) {
  .projects-subgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .projects-subgrid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.45rem, 2vw, 1.8rem);
  border-radius: 20px;
  background: rgba(13, 16, 32, 0.75);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(180, 130, 255, 0.15);
}

.project-card:hover::before {
  height: 100%;
}

body[data-theme="dawn"] .project-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body[data-theme="dawn"] .project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.12);
}

.project-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

/* Project Logo / Monogram Badge Support */
.project-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover .project-logo-badge,
.project-hero-card:hover .project-logo-badge {
  transform: scale(1.05);
  border-color: var(--accent-warm);
}

.project-logo-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.project-logo-badge i,
.project-logo-badge svg {
  font-size: 1.15rem;
  color: var(--accent-warm);
}

body[data-theme="dawn"] .project-logo-badge {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.project-card .project-title {
  font-size: 1.32rem;
}

.project-card .project-tagline {
  font-size: 0.86rem;
}

.project-card .project-description {
  margin-bottom: 0.8rem;
  font-size: 0.86rem;
  line-height: 1.54;
}

.project-card .project-tech-stack {
  margin-bottom: 0.95rem;
  gap: 0.4rem;
}

.urban-heat-project .project-evidence {
  margin: 0.1rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.urban-heat-project .project-evidence span {
  white-space: nowrap;
}

.urban-heat-project .project-evidence strong {
  color: var(--text);
  font-weight: 700;
}

.projects-subgrid .project-card {
  padding-bottom: 1.15rem;
}

.projects-subgrid .project-links {
  display: flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.projects-subgrid .project-links a {
  gap: 0.45rem;
  min-height: 44px;
  padding-inline: 1.1rem;
  font-size: 0.85rem;
  border-radius: 9px;
}

@media (max-width: 960px) {
  .project-hero-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.8rem 1.4rem;
  }
}

/* Horizontal journey timeline */
.journey-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.journey-desc {
  max-width: 46rem;
  margin: 0.9rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  text-align: center;
}

.horizontal-timeline-wrapper {
  width: 100%;
  margin-top: 1.5rem;
  position: relative;
}

/* Horizontal Axis Rail */
.timeline-axis-rail {
  position: absolute;
  top: 55px; /* Center aligned with the 22px milestone node ring */
  left: 5%;
  right: 1.5%;
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

/* Horizontal Milestone Grid */
.horizontal-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

.timeline-column {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Station & Exact Horizontal Rail */
.milestone-station {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 0.75rem;
  width: 100%;
}

.milestone-badge {
  font-family: var(--code-font, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(18, 22, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="dawn"] .milestone-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.milestone-badge-next {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

body[data-theme="dawn"] .milestone-badge-next {
  color: #9333ea;
  border-color: rgba(147, 51, 234, 0.35);
}

/* Mathematically centered horizontal track passing through node center */
.node-track-wrapper {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.node-track-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.45) 0%, rgba(99, 102, 241, 0.45) 50%, rgba(192, 132, 252, 0.45) 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2), 0 0 12px rgba(192, 132, 252, 0.15);
  z-index: 1;
  left: -0.75rem;
  right: -0.75rem;
}

body[data-theme="dawn"] .node-track-wrapper::before {
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.35) 0%, rgba(79, 70, 229, 0.35) 50%, rgba(147, 51, 234, 0.35) 100%);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.12);
}

/* First Column: Starts exactly at center of Node 1 */
.timeline-column:first-child .node-track-wrapper::before {
  left: 50%;
}

/* Last Column: Stops exactly at center of Node 4 */
.timeline-column:last-child .node-track-wrapper::before {
  right: 50%;
}

.milestone-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg, #0b0d14);
  border: 2px solid rgba(56, 189, 248, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  z-index: 3;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="dawn"] .milestone-node {
  background: #f6f8fb;
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.15);
}

.node-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  transition: all 0.3s ease;
}

body[data-theme="dawn"] .node-core {
  background: #0284c7;
}

.node-next {
  border-color: rgba(192, 132, 252, 0.65);
  border-style: dashed;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}

body[data-theme="dawn"] .node-next {
  border-color: rgba(147, 51, 234, 0.55);
  box-shadow: 0 0 8px rgba(147, 51, 234, 0.15);
}

.node-next .node-core {
  background: #c084fc;
}

body[data-theme="dawn"] .node-next .node-core {
  background: #9333ea;
}

.milestone-stem {
  width: 1.5px;
  height: 24px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
  margin-top: 3px;
  transition: all 0.3s ease;
}

body[data-theme="dawn"] .milestone-stem {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.35) 0%, rgba(15, 23, 42, 0.04) 100%);
}

.stem-next {
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.4) 0%, rgba(255, 255, 255, 0.05) 100%);
}

body[data-theme="dawn"] .stem-next {
  background: linear-gradient(180deg, rgba(147, 51, 234, 0.35) 0%, rgba(15, 23, 42, 0.04) 100%);
}

/* Milestone Cards */
.timeline-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(13, 16, 32, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 1.35rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
}

body[data-theme="dawn"] .timeline-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Hover & Active Interactions */
.timeline-column:hover .timeline-card,
.timeline-column.active .timeline-card {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(18, 22, 44, 0.6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.55);
}

body[data-theme="dawn"] .timeline-column:hover .timeline-card,
body[data-theme="dawn"] .timeline-column.active .timeline-card {
  border-color: rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 16px 36px rgba(15, 23, 42, 0.09);
}

.timeline-column:hover .milestone-badge,
.timeline-column.active .milestone-badge {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

body[data-theme="dawn"] .timeline-column:hover .milestone-badge,
body[data-theme="dawn"] .timeline-column.active .milestone-badge {
  border-color: rgba(15, 23, 42, 0.35);
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.timeline-column:hover .milestone-node,
.timeline-column.active .milestone-node {
  transform: scale(1.25);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

body[data-theme="dawn"] .timeline-column:hover .milestone-node,
body[data-theme="dawn"] .timeline-column.active .milestone-node {
  border-color: #0f172a;
  box-shadow: 0 0 8px rgba(15, 23, 42, 0.2);
}

.timeline-column-next:hover .milestone-badge,
.timeline-column-next.active .milestone-badge {
  border-color: rgba(192, 132, 252, 0.6);
  color: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.25);
}

body[data-theme="dawn"] .timeline-column-next:hover .milestone-badge,
body[data-theme="dawn"] .timeline-column-next.active .milestone-badge {
  border-color: rgba(147, 51, 234, 0.5);
  color: #9333ea;
}

.timeline-column-next:hover .milestone-node,
.timeline-column-next.active .milestone-node {
  border-style: solid;
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}

.timeline-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.schedule-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-item h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  font-family: var(--body-font);
  letter-spacing: -0.01em;
}

body[data-theme="dawn"] .schedule-item h4 {
  color: var(--text);
}

.schedule-tech {
  font-size: 0.83rem;
  color: var(--text);
  margin: 0;
  opacity: 0.88;
  font-weight: 500;
  line-height: 1.45;
}

body[data-theme="dawn"] .schedule-tech {
  color: #1e293b;
  opacity: 0.92;
}

.schedule-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
}

.schedule-meta i {
  font-size: 0.72rem;
  opacity: 0.75;
}

.schedule-item + .schedule-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

body[data-theme="dawn"] .schedule-item + .schedule-item {
  border-top-color: rgba(15, 23, 42, 0.06);
}

/* Status Badges */
.track-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px 3px 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  line-height: 1;
  text-transform: uppercase;
}

.badge-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

/* Ongoing - Cyan */
.badge-ongoing {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-ongoing .badge-dot {
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
  animation: pulse-badge-cyan 2s infinite;
}

/* Active - Green */
.badge-active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-active .badge-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-badge-green 2s infinite;
}

/* Learning - Amber */
.badge-learning {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-learning .badge-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: pulse-badge-amber 2s infinite;
}

/* Next/Exploring - Purple */
.badge-next {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.badge-next .badge-dot {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
}

/* Light Theme Badge adjustments */
body[data-theme="dawn"] .badge-ongoing {
  background: rgba(8, 145, 178, 0.1);
  color: #0891b2;
  border-color: rgba(8, 145, 178, 0.25);
}
body[data-theme="dawn"] .badge-active {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.25);
}
body[data-theme="dawn"] .badge-learning {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.25);
}
body[data-theme="dawn"] .badge-next {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
  border-color: rgba(147, 51, 234, 0.25);
}

@keyframes pulse-badge-green {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #22c55e; }
}

@keyframes pulse-badge-cyan {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #06b6d4; }
}

@keyframes pulse-badge-amber {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #f59e0b; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .horizontal-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .timeline-column:first-child .node-track-wrapper::before {
    left: 50%;
    right: -0.75rem;
  }

  .timeline-column:nth-child(2) .node-track-wrapper::before {
    left: -0.75rem;
    right: 50%;
  }

  .timeline-column:nth-child(3) .node-track-wrapper::before {
    left: 50%;
    right: -0.75rem;
  }

  .timeline-column:last-child .node-track-wrapper::before {
    left: -0.75rem;
    right: 50%;
  }
}

@media (max-width: 640px) {
  .horizontal-timeline-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .node-track-wrapper::before {
    display: none;
  }
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.contact-card p {
  max-width: 42rem;
  margin-inline: auto;
}

.site-footer {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 0 clamp(1.2rem, 5vw, 2.5rem) 2rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) translateZ(0);
  will-change: opacity, transform;
  transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.8;
  }
}

@media (max-width: 980px) {
  .hero,
  .about-layout,
  .insight-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .skill-board-shell {
    width: min(100%, 42rem);
  }
}

@media (max-width: 720px) {

  .site-header,
  .section,
  .site-footer {
    width: min(1180px, calc(100% - 1.2rem));
    margin-inline: auto;
  }

  .site-header {
    padding: 0.95rem 0;
  }

  .skill-board {
    width: 100%;
    height: auto;
    padding: 1rem;
    aspect-ratio: auto;
  }


  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.4rem);
  }

  .section-heading h2,
  .contact-card h2 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }

  .keys {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .key {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    transform: translateZ(8px);
    font-size: 0.95rem;
    background: linear-gradient(135deg, #ffffff, #fdfbf7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(0, 0, 0, 0.03),
        inset 0 -1.5px 3px rgba(255, 255, 255, 0.8),
        /* Volumetric 3D sides - warm beige-ivory */
        0 1px 0 #f0e9dc,
        0 2px 0 #f0e9dc,
        0 3px 0 #e2d9ca,
        0 4px 0 #c8bca6,
        0 5px 0 #ab9a82,
        0 6px 0 #8b795e,
        0 6px 12px rgba(0, 0, 0, 0.06);
  }

  .key:hover {
    transform: translateZ(10px);
    background: linear-gradient(135deg, #ffffff, #faf6ee);
    box-shadow:
        inset 0 1.5px 2px rgba(255, 255, 255, 0.95),
        inset 0 1px 2px rgba(0, 0, 0, 0.02),
        inset 0 -1.5px 3px rgba(255, 255, 255, 0.85),
        0 1px 0 #f0e9dc,
        0 2px 0 #f0e9dc,
        0 3px 0 #e2d9ca,
        0 4px 0 #d5cbb8,
        0 5px 0 #c8bca6,
        0 6px 0 #baac94,
        0 7px 0 #aab982,
        0 8px 0 #8b795e,
        0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .key:active,
  .key.is-pressed {
    transform: translateZ(2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.7),
        inset 0 2px 3px rgba(0, 0, 0, 0.06),
        0 1px 0 #e2d9ca,
        0 2px 0 #baac94,
        0 2px 4px rgba(0, 0, 0, 0.06);
  }

  .key::before {
    border-radius: 8px;
    transform: translateZ(-8px);
    background: #ded6c3;
  }

  .key:hover::before {
    transform: translateZ(-10px);
    box-shadow: 0 0 12px 1px var(--key-underglow, transparent);
  }

  .key:active::before,
  .key.is-pressed::before {
    transform: translateZ(-2px);
  }

  .key-legend-qwerty {
    top: 4px;
    left: 6px;
    font-size: 0.46rem;
    color: #475569;
  }

  .key-legend-long {
    font-size: 0.37rem;
  }

  /* Mobile Dawn Theme Overrides - Black/Carbon keys */
  body[data-theme="dawn"] .key {
    background: linear-gradient(135deg, #2d323f, #1c1f28);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 3px rgba(0, 0, 0, 0.35),
        /* Shorter volumetric 3D sides */
        0 1px 0 #1c1f28,
        0 2px 0 #181b23,
        0 3px 0 #15171e,
        0 4px 0 #12141a,
        0 5px 0 #0f1115,
        0 6px 0 #060708,
        0 6px 12px rgba(0, 0, 0, 0.45);
  }

  body[data-theme="dawn"] .key:hover {
    background: linear-gradient(135deg, #373d4d, #222631);
    box-shadow:
        inset 0 1.5px 2px rgba(255, 255, 255, 0.08),
        inset 0 -1.5px 4px rgba(0, 0, 0, 0.3),
        0 1px 0 #1c1f28,
        0 2px 0 #1c1f28,
        0 3px 0 #181b23,
        0 4px 0 #151820,
        0 5px 0 #14161e,
        0 6px 0 #0f1115,
        0 7px 0 #0c0d10,
        0 8px 0 #060708,
        0 8px 16px rgba(0, 0, 0, 0.5);
  }

  body[data-theme="dawn"] .key:active,
  body[data-theme="dawn"] .key.is-pressed {
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.03),
        inset 0 2px 3px rgba(0, 0, 0, 0.45),
        0 1px 0 #1c1f28,
        0 2px 0 #12141c,
        0 2px 4px rgba(0, 0, 0, 0.55);
  }

  body[data-theme="dawn"] .key::before {
    background: #0f1115;
  }

  body[data-theme="dawn"] .key-legend-qwerty {
    color: #ffffff;
  }



  .mobile-menu {
    left: 0.6rem;
    right: 0.6rem;
    top: 4.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keyboard boot loading animations */
@keyframes retro-flicker-legend {
  0% { opacity: 0; }
  10% { opacity: 0.4; }
  15% { opacity: 0; }
  25% { opacity: 0.55; }
  30% { opacity: 0.1; }
  35% { opacity: 0; }
  45% { opacity: 0.55; }
  55% { opacity: 0.15; }
  65% { opacity: 0.55; }
  100% { opacity: 0.55; }
}

@keyframes retro-flicker-logo {
  0% { opacity: 0; }
  10% { opacity: 0.6; }
  15% { opacity: 0; }
  25% { opacity: 0.85; }
  30% { opacity: 0.2; }
  35% { opacity: 0; }
  45% { opacity: 1; }
  55% { opacity: 0.3; }
  65% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes terminal-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}


/* About section */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

#about .personal-story-card {
  padding: clamp(1.25rem, 2.6vw, 2rem);
}

#about .story-paragraphs {
  display: grid;
  gap: 0.85rem;
  max-width: 60rem;
}

#about .story-paragraphs p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

#about .about-details {
  display: block;
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

#about .about-detail-label {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

#about .education-details {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

#about .education-details p {
  margin: 0;
}

#about .education-details strong {
  color: var(--text);
  font-weight: 600;
}

#about .education-details .education-duration {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Technical skills tree diagram */

.stack-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0 3rem;
  gap: 0;
  overflow-x: auto;
}

/* Root pill node */
.stack-root {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.2rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(var(--accent-rgb, 225 29 72) / 0.25);
}

/* Vertical line from root down to horizontal branch */
.stack-root-line {
  width: 2px;
  height: 2.5rem;
  background: var(--accent);
  margin: 0 auto;
}

/* Horizontal line spanning all 5 columns */
.stack-branch-line {
  width: 84%;
  height: 2px;
  background: var(--accent);
}

/* 5-column grid */
.stack-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 84%;
  gap: 0;
}

/* Each column */
.stack-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Vertical tick down from branch to circle */
.stack-col-line {
  width: 2px;
  height: 2.2rem;
  background: var(--accent);
}

/* Category circle node */
.stack-category-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  background: rgba(13, 16, 32, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid var(--accent);
  border-radius: 50%;
  width: 7.5rem;
  height: 7.5rem;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 16px rgba(180, 130, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stack-category-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 28px rgba(180, 130, 255, 0.45);
}

.stack-category-node i {
  font-size: 1.85rem;
  color: var(--accent);
}

.stack-category-node span {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

/* Chevron arrow */
.stack-chevron {
  font-size: 1.2rem;
  color: var(--accent);
}

/* Tech chip badges */
.stack-tech-chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 1rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 16, 34, 0.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(180, 130, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tech-chip:hover {
  background: rgba(180, 130, 255, 0.18);
  border-color: var(--accent);
}

.tech-chip i {
  font-size: 0.9rem;
  color: var(--accent);
}

/* Dawn / Light Theme Overrides for Stack Tree */
body[data-theme="dawn"] .stack-category-node {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12), 0 2px 8px rgba(15, 23, 42, 0.05);
}

body[data-theme="dawn"] .stack-category-node span {
  color: #0f172a;
}

body[data-theme="dawn"] .stack-category-node:hover {
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.22);
}

body[data-theme="dawn"] .tech-chip {
  background: #ffffff;
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

body[data-theme="dawn"] .tech-chip:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: var(--accent);
}

/* Responsive — collapse to 2 or 1 col on mobile */
@media (max-width: 900px) {
  .stack-categories {
    grid-template-columns: repeat(2, 1fr);
    width: 95%;
    gap: 2rem;
  }
  .stack-branch-line { display: none; }
  .stack-col-line { display: none; }
}

@media (max-width: 520px) {
  .stack-categories {
    grid-template-columns: 1fr;
  }
  .stack-category-node {
    width: 6rem;
    height: 6rem;
  }
}



/* GitHub activity section */
.github-section {
  position: relative;
}

.github-compact-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* 1. TOP SPLIT: DEVELOPER IDENTITY + LANGUAGE ECOSYSTEM */
.github-overview-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.github-identity-card,
.github-languages-card {
  padding: 1.6rem 2rem;
  border-radius: 20px;
  background: rgba(13, 16, 32, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.github-identity-card:hover,
.github-languages-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

body[data-theme="dawn"] .github-identity-card,
body[data-theme="dawn"] .github-languages-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

/* Identity Badge Inner */
.gh-compact-user {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.gh-compact-avatar-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  flex-shrink: 0;
}

.gh-compact-avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(180, 130, 255, 0.35);
  transition: transform 0.3s ease;
}

.gh-compact-avatar-wrap:hover .gh-compact-avatar {
  transform: scale(1.05);
}

.gh-pulse-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 8px #10b981;
}

.gh-compact-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.gh-name-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gh-name-line h4 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--hero-title);
  letter-spacing: -0.01em;
}

.gh-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(180, 130, 255, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(180, 130, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gh-user-pill:hover {
  background: rgba(180, 130, 255, 0.2);
  border-color: var(--accent);
}

.gh-role-sub {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.gh-quick-tags {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.gh-quick-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gh-quick-tags strong {
  color: var(--text);
  font-weight: 700;
}

.gh-identity-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.1rem;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.gh-identity-actions .secondary-button {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* 2. LANGUAGE ECOSYSTEM CARD */
.gh-card-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.gh-hdr-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.gh-hdr-title i {
  color: var(--accent);
}

.gh-hdr-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gh-languages-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.lang-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lang-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.lang-name-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.lang-bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body[data-theme="dawn"] .lang-bar-track {
  background: rgba(15, 23, 42, 0.08);
}

.lang-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 3. THREE FEATURED REPOSITORIES GRID */
.github-featured-repos-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gh-repos-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0.25rem;
}

.gh-repos-hdr span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gh-status-indicator {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.sync-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.github-compact-repos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.compact-repo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: rgba(13, 16, 32, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.compact-repo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.25s ease;
}

.compact-repo-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.compact-repo-card:hover::before {
  height: 100%;
}

body[data-theme="dawn"] .compact-repo-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

body[data-theme="dawn"] .compact-repo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.1);
}

.compact-repo-top {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.compact-repo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.compact-repo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--hero-title);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
  transition: color 0.2s ease;
}

.compact-repo-title:hover {
  color: var(--accent);
}

.compact-repo-title i {
  color: var(--accent);
  font-size: 0.95rem;
}

.compact-repo-badge {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.compact-repo-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-repo-footer {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.compact-repo-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.compact-repo-meta .repo-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.compact-repo-meta .repo-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.compact-repo-meta .repo-stat-item i {
  color: var(--accent);
  font-size: 0.78rem;
}

.compact-repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.compact-repo-link:hover {
  transform: translateX(3px);
}

/* 4. BOTTOM ACTION */
.github-bottom-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .github-overview-split {
    grid-template-columns: 1fr;
  }
  .github-compact-repos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .gh-compact-user {
    flex-direction: column;
    align-items: flex-start;
  }
  .github-identity-card,
  .github-languages-card {
    padding: 1.25rem 1.4rem;
  }
}

/* Contact section */
.contact-section {
  min-height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(4.5rem, 7vw, 6rem);
  padding-bottom: 2rem;
  scroll-margin-top: 75px;
  position: relative;
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
  }
}

.contact-info {
  position: relative;
  left: var(--contact-column-offset, 0px);
  flex: 1;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.9rem;
}

.contact-title {
  margin: 0;
  font-family: var(--hero-title);
  font-size: clamp(2.4rem, 4.5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
}

body[data-theme="dawn"] .contact-title {
  color: #0f172a;
}

.contact-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.contact-connections {
  width: 100%;
  margin-top: 32px;
}

.connect-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.connect-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.connect-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.connect-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.connect-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.connect-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  font-size: 1.3rem;
  line-height: 22px;
  text-align: center;
}

.connect-icon-youtube { color: #ff6169; }

.connect-card-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.connect-card-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.connect-card-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.connect-card-action {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
}

body[data-theme="dawn"] .connect-card {
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="dawn"] .connect-card:hover {
  background: rgba(255, 255, 255, 0.8);
}

body[data-theme="dawn"] .connect-icon-youtube { color: #c92031; }

@media (max-width: 360px) {
  .connect-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-card {
    transition: none;
  }

  .connect-card:hover {
    transform: none;
  }
}

/* Contact Form Card */
.contact-form-card,
.personal-story-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(13, 16, 32, 0.6) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(35px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(35px) saturate(200%) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.4) !important;
  border-radius: 20px !important;
}

body[data-theme="dawn"] .contact-form-card,
body[data-theme="dawn"] .personal-story-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.35) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 32px rgba(31, 38, 135, 0.07) !important;
}

.contact-form-card {
  flex: 0 1 500px;
  max-width: 500px;
  width: 100%;
  padding: 1.9rem 2.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 1.4rem 1.25rem;
  }
}

.personal-story-card {
  grid-column: 1 / -1;
  padding: 2.2rem 2.5rem;
}

.waving-hand {
  display: inline-block;
  animation: wave-animation 2.5s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave-animation {
  0% { transform: rotate( 0.0deg) }
  10% { transform: rotate(14.0deg) }
  20% { transform: rotate(-8.0deg) }
  30% { transform: rotate(14.0deg) }
  40% { transform: rotate(-4.0deg) }
  50% { transform: rotate(10.0deg) }
  60% { transform: rotate( 0.0deg) }
  100% { transform: rotate( 0.0deg) }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.textarea-icon {
  top: 0.75rem;
}

.contact-input {
  width: 100%;
  padding: 0.78rem 0.95rem 0.78rem 2.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 13, 26, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

body[data-theme="dawn"] .contact-input {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.contact-input:focus {
  border-color: var(--accent);
  background: rgba(13, 16, 32, 0.75);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 0 20px rgba(168, 85, 247, 0.2);
}

.input-wrapper:focus-within .input-icon {
  color: var(--accent);
}

body[data-theme="dawn"] .contact-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.contact-input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
  padding-top: 0.8rem;
}

/* Glowing Cosmic Submit Button */
.contact-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.5rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 0.45rem;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(147, 51, 234, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  filter: brightness(1.08);
}

.contact-submit-btn:active {
  transform: translateY(0) scale(0.99);
}

body[data-theme="dawn"] .contact-submit-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.32) !important;
}

/* Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  margin-top: 0;
}

.footer-grid {
  width: min(1450px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.footer-info {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  text-align: center;
  gap: 0.35rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-tech-stack {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.75;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(180, 130, 255, 0.3);
  transform: translateY(-2px);
}

body[data-theme="dawn"] .footer-socials a {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--muted);
}

body[data-theme="dawn"] .footer-socials a:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.2);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-info {
    justify-self: center;
  }
  
  .footer-socials {
    justify-content: center;
  }
}

@keyframes move1 {
  0% {
    transform: translate3d(0px, 0px, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate3d(40px, 250px, 0) scale(1.1) rotate(60deg);
  }
  66% {
    transform: translate3d(-30px, 550px, 0) scale(0.9) rotate(120deg);
  }
  100% {
    transform: translate3d(0px, 800px, 0) scale(1) rotate(180deg);
  }
}

@keyframes move2 {
  0% {
    transform: translate3d(0px, -100px, 0) scale(1.1) rotate(0deg);
  }
  33% {
    transform: translate3d(-50px, 150px, 0) scale(0.9) rotate(-60deg);
  }
  66% {
    transform: translate3d(30px, 450px, 0) scale(1.05) rotate(-120deg);
  }
  100% {
    transform: translate3d(0px, 700px, 0) scale(1.1) rotate(-180deg);
  }
}

@keyframes move3 {
  0% {
    transform: translate3d(0px, 50px, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate3d(-30px, 350px, 0) scale(1.15) rotate(45deg);
  }
  66% {
    transform: translate3d(40px, 650px, 0) scale(0.95) rotate(90deg);
  }
  100% {
    transform: translate3d(0px, 900px, 0) scale(1) rotate(135deg);
  }
}

@keyframes move4 {
  0% {
    transform: translate3d(0px, 100px, 0) scale(0.9) rotate(0deg);
  }
  33% {
    transform: translate3d(60px, 400px, 0) scale(1.1) rotate(45deg);
  }
  66% {
    transform: translate3d(-40px, 700px, 0) scale(0.95) rotate(90deg);
  }
  100% {
    transform: translate3d(0px, 1000px, 0) scale(0.9) rotate(180deg);
  }
}

@keyframes move5 {
  0% {
    transform: translate3d(0px, 150px, 0) scale(1.05) rotate(0deg);
  }
  33% {
    transform: translate3d(-50px, 450px, 0) scale(0.9) rotate(50deg);
  }
  66% {
    transform: translate3d(50px, 750px, 0) scale(1.1) rotate(100deg);
  }
  100% {
    transform: translate3d(0px, 1050px, 0) scale(1.05) rotate(150deg);
  }
}

/* Interactive terminal popup */
.terminal-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.terminal-popup.is-dragging {
  transition: none !important;
}

.terminal-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.terminal-window {
  background: rgba(12, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  overflow: hidden;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
  width: min(550px, 90vw);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(8, 9, 18, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 8px;
  z-index: 10;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.terminal-body {
  padding: 20px;
  min-height: 220px;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  line-height: 1.5;
}

.terminal-row {
  word-break: break-all;
}

.terminal-row .prompt {
  color: #38bdf8;
  font-weight: bold;
}

.terminal-row .output {
  color: rgb(4, 255, 24);
}

.popup-scrim {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(4, 6, 12, 0.6);
  backdrop-filter: blur(4px);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.popup-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

body[data-theme="dawn"] .terminal-window {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #0f172a;
}

body[data-theme="dawn"] .terminal-header {
  background: rgba(243, 244, 246, 0.8);
  border-bottom-color: rgba(15, 23, 42, 0.05);
}

body[data-theme="dawn"] .terminal-row .prompt {
  color: #4f46e5;
}

.terminal-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.25) 50%);
  border-bottom-right-radius: 16px;
  z-index: 100;
}

body[data-theme="dawn"] .terminal-resize-handle {
  background: linear-gradient(135deg, transparent 50%, rgba(15, 23, 42, 0.15) 50%);
}


.contact-grid .reveal.is-visible{
  
}
