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

img {
  max-width: 100%;
  height: auto;
}

:root {
  --bg-1: #f6fbff;
  --bg-2: #f0f8f4;
  --bg-3: #edf2ff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --text-main: #101a27;
  --text-soft: #53657b;
  --line: rgba(16, 26, 39, 0.16);
  --accent: #0b8f77;
  --accent-2: #1d6cff;
  --accent-3: #4fc3f7;
  --radius: 20px;
  --shadow: 0 14px 40px rgba(9, 24, 42, 0.14);
  --site-top-glow: rgba(29, 108, 255, 0.14);
  --site-left-glow: rgba(11, 143, 119, 0.1);
  --site-grad-1: var(--bg-1);
  --site-grad-2: var(--bg-2);
  --site-grad-3: var(--bg-3);
  --home-accent: #1e88e5;
  --home-tint-a: rgba(30, 136, 229, 0.12);
  --home-tint-b: rgba(100, 181, 246, 0.08);
}

body[data-theme="dark"] {
  --bg-1: #08111b;
  --bg-2: #0a1a23;
  --bg-3: #11182b;
  --surface: rgba(18, 28, 43, 0.78);
  --surface-strong: #162033;
  --text-main: #e9f2ff;
  --text-soft: #a7b7cf;
  --line: rgba(233, 242, 255, 0.2);
  --accent: #2fddbc;
  --accent-2: #76a6ff;
  --accent-3: #ffc85f;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  --site-top-glow: rgba(66, 165, 245, 0.22);
  --site-left-glow: rgba(38, 166, 154, 0.18);
  --site-grad-1: #08111b;
  --site-grad-2: #0a1a23;
  --site-grad-3: #11182b;
}

#home {
  --section-accent: var(--home-accent);
  --section-tint-a: var(--home-tint-a);
  --section-tint-b: var(--home-tint-b);
}

#about {
  --section-accent: #1a73e8;
  --section-tint-a: rgba(26, 115, 232, 0.14);
  --section-tint-b: rgba(129, 178, 255, 0.1);
}

#skills {
  --section-accent: #a1887f;
  /* Light Brown */
  --section-tint-a: rgba(161, 136, 127, 0.18);
  --section-tint-b: rgba(188, 170, 164, 0.12);
}

#projects {
  --section-accent: #90a4ae;
  /* Light Silver / White-ish */
  --section-tint-a: rgba(144, 164, 174, 0.18);
  --section-tint-b: rgba(176, 190, 197, 0.12);
}

#achievements {
  --section-accent: #7c4dff;
  --section-tint-a: rgba(124, 77, 255, 0.16);
  --section-tint-b: rgba(179, 157, 219, 0.11);
}

#contact {
  --section-accent: #3f51b5;
  --section-tint-a: rgba(63, 81, 181, 0.16);
  --section-tint-b: rgba(159, 168, 218, 0.11);
}

body[data-theme="dark"] #home {
  --section-accent: var(--home-accent);
  --section-tint-a: var(--home-tint-a);
  --section-tint-b: var(--home-tint-b);
}

body[data-theme="dark"] #about {
  --section-accent: #8ab4f8;
  --section-tint-a: rgba(138, 180, 248, 0.24);
  --section-tint-b: rgba(30, 64, 175, 0.22);
}

body[data-theme="dark"] #skills {
  --section-accent: #bcaaa4;
  /* Lighter Brown for dark mode */
  --section-tint-a: rgba(188, 170, 164, 0.25);
  --section-tint-b: rgba(161, 136, 127, 0.2);
}

body[data-theme="dark"] #projects {
  --section-accent: #cfd8dc;
  /* Crisp Light White / Silver for dark mode */
  --section-tint-a: rgba(207, 216, 220, 0.25);
  --section-tint-b: rgba(144, 164, 174, 0.2);
}

body[data-theme="dark"] #achievements {
  --section-accent: #b388ff;
  --section-tint-a: rgba(179, 136, 255, 0.28);
  --section-tint-b: rgba(94, 53, 177, 0.22);
}

body[data-theme="dark"] #contact {
  --section-accent: #9fa8da;
  --section-tint-a: rgba(159, 168, 218, 0.28);
  --section-tint-b: rgba(63, 81, 181, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  background: radial-gradient(circle at top right, var(--site-top-glow), transparent 42%),
    radial-gradient(circle at left 80%, var(--site-left-glow), transparent 42%),
    linear-gradient(140deg, var(--site-grad-1), var(--site-grad-2), var(--site-grad-3));
  transition: background 0.35s ease, color 0.3s ease;
  overflow-x: hidden;
  perspective: 1200px;
}

/* Visibility Fallback */
main {
  opacity: 1;
  /* Ensure visible even if JS fails */
  transform: none;
}

body.loaded main {
  opacity: 1;
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(56px);
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -120px;
  left: -80px;
  background: rgba(11, 143, 119, 0.24);
  animation: floatA 20s ease-in-out infinite alternate;
}

body::after {
  right: -90px;
  bottom: -110px;
  background: rgba(29, 108, 255, 0.24);
  animation: floatB 25s ease-in-out infinite alternate;
}

.site-wrap {
  width: 100%;
  margin: 0;
  padding-bottom: 0;
}

.header-main {
  position: relative;
  top: 0;
  z-index: 30;
  margin-top: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(16px, 4vw, 64px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 0%;
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent-2)) 35%, transparent);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--section-tint-b, rgba(29, 108, 255, 0.2)) 50%, transparent);
}

.nav-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text-main);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  padding: 8px 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.22s ease, color 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(29, 108, 255, 0.12);
  color: var(--accent-2);
  box-shadow: inset 0 -2px 0 var(--accent-2);
}

.header-btn,
.btn {
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-btn,
.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--text-main);
  background: var(--surface-strong);
}

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

main {
  padding-top: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.loaded main {
  opacity: 1;
  transform: translateY(0);
}

.page-head {
  display: grid;
  gap: 16px;
  min-height: calc(100svh - 74px);
  padding: clamp(26px, 6vw, 78px) clamp(16px, 6vw, 86px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  align-content: center;
}

main>section {
  position: relative;
  overflow: hidden;
}

main>section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, var(--section-tint-a, rgba(11, 143, 119, 0.08)), var(--section-tint-b, rgba(29, 108, 255, 0.08)));
  z-index: -2;
}

main>section::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--section-tint-a, rgba(11, 143, 119, 0.12)) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.page-tag {
  width: fit-content;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--section-accent, var(--accent));
  background: var(--section-tint-a, rgba(11, 143, 119, 0.12));
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent)) 35%, transparent);
  border-radius: 999px;
  padding: 5px 10px;
}

.page-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.page-subtitle {
  color: var(--text-soft);
  max-width: 66ch;
  font-size: 1.35rem;
  /* Increased size */
  line-height: 1.6;
  /* More pleasant spacing */
  margin-top: 10px;
  /* Spacing from title */
  min-height: 3.3em;
}

.typing-text {
  display: inline;
  min-width: 0;
  white-space: nowrap;
  font-weight: 600;
  color: var(--section-accent, var(--accent-2));
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typing-wrap {
  display: inline;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: baseline;
}

.typing-cursor {
  display: inline-block;
  width: 1.5px;
  background-color: var(--section-accent, var(--accent-2));
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  height: 1.1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  border-radius: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.band {
  margin-top: 0;
  min-height: calc(100svh - 74px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: none;
  padding: clamp(24px, 6vw, 78px) clamp(16px, 6vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.band h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 12px;
  color: var(--section-accent, var(--text-main));
}

.band p {
  color: var(--text-soft);
}

.split>div>p+p {
  margin-top: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}

.list-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.list-item {
  border-left: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  padding: 12px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat-block {
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.skills-list,
.timeline,
.projects-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.projects-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.skills-intro {
  max-width: 64ch;
  margin-bottom: 14px;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-cluster,
.skill-map {
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent-2)) 26%, transparent);
  background: color-mix(in srgb, var(--section-tint-a, rgba(41, 121, 255, 0.08)) 36%, transparent);
  border-radius: 14px;
  padding: 14px;
}

.skill-cluster h3,
.skill-map h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--section-accent, var(--accent-2));
}

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

.skill-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent-2)) 28%, transparent);
  background: color-mix(in srgb, var(--section-tint-b, rgba(130, 177, 255, 0.12)) 52%, transparent);
}

.skill-pill.strong {
  font-weight: 700;
  background: color-mix(in srgb, var(--section-tint-a, rgba(41, 121, 255, 0.14)) 62%, transparent);
}

.skill-pill.medium {
  font-weight: 600;
}

.skill-map {
  display: grid;
  gap: 10px;
  align-content: start;
}

.skill-map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.skill-map-row span {
  font-weight: 600;
}

.dot-level {
  display: inline-flex;
  gap: 6px;
}

.dot-level i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--section-tint-a, rgba(41, 121, 255, 0.18)) 80%, transparent);
}

.dot-level i.on {
  background: var(--section-accent, var(--accent-2));
}

.skill-row {
  display: grid;
  gap: 6px;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.skill-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(29, 108, 255, 0.14);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: width 1.1s ease;
}

body.loaded .skill-fill {
  width: var(--level, 0%);
}

/* ── Old project-row (kept for compatibility) ── */
.time-row {
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  padding: 16px;
  border-radius: 0;
}

.time-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.time-top h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.time-meta {
  color: var(--section-accent, var(--accent-2));
  font-size: 0.92rem;
  font-weight: 600;
}

.inline-link {
  color: var(--section-accent, var(--accent-2));
  font-weight: 600;
  text-decoration: none;
}

/* ── Section header (shared) ── */
.section-header {
  margin-bottom: 28px;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-top: 6px;
  max-width: 62ch;
}

/* ── Projects card grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--section-accent, var(--accent-2)) 25%, var(--line));
  background: color-mix(in srgb, var(--section-tint-a, rgba(38, 166, 154, 0.07)) 50%, var(--surface));
  backdrop-filter: blur(12px);
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.28s ease, border-color 0.28s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--section-accent, var(--accent-2));
  box-shadow: 0 22px 45px color-mix(in srgb, var(--section-accent, var(--accent-2)) 22%, transparent);
  background: color-mix(in srgb, var(--section-tint-a, rgba(38, 166, 154, 0.09)) 65%, var(--surface-strong));
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--section-accent, var(--accent-2)) 30%, transparent);
}

.project-status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--section-accent, var(--accent-2)) 14%, transparent);
  color: var(--section-accent, var(--accent-2));
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent-2)) 30%, transparent);
}

.project-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
}

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

.project-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--section-accent, var(--accent-2)) 10%, transparent);
  color: var(--section-accent, var(--accent-2));
  border: 1px solid color-mix(in srgb, var(--section-accent, var(--accent-2)) 25%, transparent);
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.proj-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

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

.proj-primary {
  background: linear-gradient(135deg, var(--section-accent, var(--accent)), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--section-accent, var(--accent-2)) 30%, transparent);
}

.proj-primary:hover {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--section-accent, var(--accent-2)) 40%, transparent);
}

.proj-secondary {
  background: color-mix(in srgb, var(--section-tint-a, rgba(38, 166, 154, 0.1)) 60%, var(--surface-strong));
  color: var(--text-main);
  border: 1.5px solid color-mix(in srgb, var(--section-accent, var(--accent-2)) 28%, transparent);
}

.proj-secondary:hover {
  border-color: var(--section-accent, var(--accent-2));
  color: var(--section-accent, var(--accent-2));
}



.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-image {
  justify-self: center;
  width: min(360px, 100%);
  display: grid;
  place-items: center;
}

.image-shell {
  position: relative;
  width: clamp(220px, 30vw, 340px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 30px;
  background:
    linear-gradient(var(--surface-strong), var(--surface-strong)) padding-box,
    linear-gradient(145deg,
      color-mix(in srgb, var(--section-accent, var(--accent-2)) 55%, white 45%),
      color-mix(in srgb, var(--section-tint-b, rgba(29, 108, 255, 0.2)) 70%, transparent)) border-box;
  box-shadow: 0 18px 36px color-mix(in srgb, var(--section-tint-b, rgba(29, 108, 255, 0.24)) 65%, transparent);
}

.image-shell::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 34px;
  background: radial-gradient(circle,
      color-mix(in srgb, var(--section-tint-a, rgba(30, 136, 229, 0.18)) 80%, transparent) 0%,
      transparent 70%);
  z-index: -1;
  filter: blur(4px);
}

.image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 22px;
  border: 0;
  box-shadow: none;
  transform: translateZ(0);
  -webkit-mask-image: none;
  mask-image: none;
}

.image-fallback {
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: color-mix(in srgb, var(--section-accent, var(--accent-2)) 76%, white 24%);
  border-radius: 22px;
  background: linear-gradient(150deg,
      color-mix(in srgb, var(--section-tint-a, rgba(30, 136, 229, 0.22)) 82%, transparent),
      color-mix(in srgb, var(--section-tint-b, rgba(29, 108, 255, 0.16)) 68%, transparent));
  opacity: 0;
}

.image-shell.is-missing img {
  display: none;
}

.image-shell.is-missing .image-fallback {
  opacity: 1;
}

.image-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.contact-header {
  margin-bottom: 28px;
}

.contact-subtitle {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin-top: 6px;
  max-width: 58ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.contact-form label,
.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text-main);
  font: inherit;
  font-size: 0.97rem;
  padding: 11px 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--section-accent, var(--accent-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--section-accent, var(--accent-2)) 18%, transparent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.send-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 1rem;
  margin-top: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--section-accent, var(--accent-2)) 35%, transparent);
}

/* Right side contact info */
.contact-info {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  backdrop-filter: blur(12px);
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-card-body {
  flex: 1;
  min-width: 0;
}

.gmail-card {
  border-color: rgba(234, 67, 53, 0.4);
  background: color-mix(in srgb, rgba(234, 67, 53, 0.08) 60%, var(--surface));
}

.gmail-card:hover {
  border-color: #ea4335;
  background: color-mix(in srgb, rgba(234, 67, 53, 0.13) 60%, var(--surface));
  box-shadow: 0 12px 32px rgba(234, 67, 53, 0.22);
}

.linkedin-card {
  border-color: rgba(0, 119, 181, 0.4);
  background: color-mix(in srgb, rgba(0, 119, 181, 0.08) 60%, var(--surface));
}

.linkedin-card:hover {
  border-color: #0077b5;
  background: color-mix(in srgb, rgba(0, 119, 181, 0.13) 60%, var(--surface));
  box-shadow: 0 12px 32px rgba(0, 119, 181, 0.22);
}

.github-card {
  border-color: rgba(100, 100, 100, 0.3);
  background: color-mix(in srgb, rgba(100, 100, 100, 0.07) 60%, var(--surface));
}

.github-card:hover {
  border-color: #333;
  background: color-mix(in srgb, rgba(100, 100, 100, 0.13) 60%, var(--surface));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, #ea4335 16%, transparent);
  color: #ea4335;
}

.gmail-icon {
  background: color-mix(in srgb, #ea4335 16%, transparent);
  color: #ea4335;
}

.linkedin-icon {
  background: color-mix(in srgb, #0077b5 16%, transparent);
  color: #0077b5;
}

.github-icon {
  background: color-mix(in srgb, var(--text-main) 12%, transparent);
  color: var(--text-main);
}

.contact-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-soft);
  margin-bottom: 3px;
}

.contact-card-value {
  font-size: 0.97rem;
  font-weight: 600;
  word-break: break-all;
}

.contact-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-soft);
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-card:hover .contact-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.contact-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--section-accent, var(--accent)) 40%, transparent);
  background: color-mix(in srgb, var(--section-tint-a, rgba(11, 143, 119, 0.08)) 50%, transparent);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--section-accent, var(--accent));
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--section-accent, var(--accent));
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

/* ── Simplified Activity Chart ── */
.github-activity {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.gh-chart-simple {
  width: 100%;
  max-width: 1100px;
  overflow-x: auto;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  justify-content: center;
  scrollbar-width: thin;
  box-shadow: var(--shadow);
}

.gh-chart-only {
  display: block;
  min-width: 1000px;
  /* Increased size significantly */
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.06));
}



footer {
  margin-top: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 26px clamp(16px, 6vw, 86px);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
}

.reveal {
  opacity: 0.1;
  /* Slight visible baseline */
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

@media (max-width: 1100px) {
  nav {
    padding-inline: 20px;
    gap: 8px;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 0.9rem;
  }

  .page-head,
  .band {
    min-height: auto;
    padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 40px);
  }
}

@media (max-width: 980px) {

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-image {
    justify-self: start;
    width: min(300px, 100%);
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-wrap {
    width: 100%;
  }

  nav {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    gap: 8px;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .header-btn {
    display: none;
    order: 4;
    width: auto;
    align-self: flex-start;
    margin-top: 8px;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px;
  }

  body.nav-open .header-btn {
    display: inline-flex;
  }

  .page-head,
  .band {
    min-height: auto;
    padding: 24px 18px;
  }

  .page-subtitle {
    font-size: 1.06rem;
    line-height: 1.55;
    min-height: 4.8em;
  }

  /* Empty ruleset removed */

  .project-row,
  .time-row {
    padding: 14px 0;
  }

  .contact-form {
    padding: 18px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .logo {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 10px 14px;
  }

  .hero-image {
    width: min(240px, 100%);
    justify-self: center;
  }

  .page-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-actions .btn,
  .header-btn {
    width: 100%;
    justify-content: center;
  }

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

  .project-top,
  .time-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-grid {
    gap: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-form {
    padding: 16px;
    gap: 10px;
  }

  .contact-form .send-btn {
    width: 100%;
  }

  .gh-chart-card {
    padding: 14px;
  }

  .gh-chart-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gh-legend {
    font-size: 0.85rem;
  }

  .footer-links {
    gap: 8px;
  }

  .contact-card {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .contact-card-value {
    font-size: 0.9rem;
  }

  .contact-subtitle {
    font-size: 0.96rem;
  }

  .gh-chart-card {
    padding: 14px;
  }

  .gh-chart-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gh-stats-row {
    align-items: flex-start;
  }

  .gh-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gh-btn {
    width: 100%;
    justify-content: center;
  }

  .typing-wrap {
    width: auto;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
  }

  .typing-cursor {
    height: 1.05em;
  }
}

@keyframes floatA {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(24px, 34px);
  }
}

@keyframes floatB {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-26px, -30px);
  }
}

/* Mobile Hero Subtitle Optimization */
@media (max-width: 768px) {

  .hero-intro,
  .hero-focus {
    display: block;
    width: 100%;
  }

  .hero-focus {
    margin-top: 8px;
  }
}