:root {
  color-scheme: light;
  --bg-top: #f8fbff;
  --bg: #eef4ff;
  --bg-deep: #dbe7ff;
  --surface: rgba(248, 251, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-card: rgba(255, 255, 255, 0.66);
  --surface-card-muted: rgba(243, 247, 255, 0.72);
  --text: #122132;
  --muted: #5b6b7d;
  --line: rgba(18, 33, 50, 0.1);
  --line-strong: rgba(18, 33, 50, 0.18);
  --accent: #2563eb;
  --accent-dark: #1537a8;
  --accent-bright: #15c8ff;
  --accent-warm: #ffb648;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --surface-border: rgba(255, 255, 255, 0.72);
  --header-bg: rgba(248, 251, 255, 0.8);
  --header-shadow: 0 18px 42px rgba(24, 50, 122, 0.12);
  --button-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
  --icon-ink: #f5fbff;
  --shadow: 0 28px 80px rgba(24, 50, 122, 0.14);
  --grid-line: rgba(255, 255, 255, 0.12);
  --landing-card-bg: linear-gradient(180deg, rgba(243, 248, 255, 0.98) 0%, rgba(231, 240, 255, 0.96) 100%);
  --ink: var(--text);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --max-width: 1360px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-top: #08111f;
  --bg: #091423;
  --bg-deep: #040a14;
  --surface: rgba(10, 18, 33, 0.84);
  --surface-strong: rgba(13, 22, 40, 0.96);
  --surface-card: rgba(14, 24, 43, 0.72);
  --surface-card-muted: rgba(12, 21, 40, 0.82);
  --text: #e7eefc;
  --muted: #9db0ca;
  --line: rgba(148, 175, 255, 0.14);
  --line-strong: rgba(148, 175, 255, 0.28);
  --accent: #5f8eff;
  --accent-dark: #a9c0ff;
  --accent-bright: #54d8ff;
  --accent-warm: #ffc561;
  --accent-soft: rgba(95, 142, 255, 0.2);
  --surface-border: rgba(104, 129, 204, 0.26);
  --header-bg: rgba(8, 14, 27, 0.76);
  --header-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
  --button-shadow: 0 18px 38px rgba(44, 98, 255, 0.28);
  --icon-ink: #f6fbff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --grid-line: rgba(130, 153, 211, 0.12);
  --landing-card-bg: linear-gradient(180deg, rgba(11, 18, 34, 0.98) 0%, rgba(8, 15, 29, 0.97) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(21, 200, 255, 0.22), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 76% 74%, rgba(255, 182, 72, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 44%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 92%);
}

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

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 0 0 52px;
}

.landing-card {
  position: relative;
  display: block;
  padding: 18px 26px 24px;
  min-height: min(calc(100svh - 260px), 680px);
  border: 1px solid var(--surface-border);
  border-radius: 36px;
  background: var(--landing-card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.landing-card::before,
.landing-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.landing-card::before {
  width: 420px;
  height: 420px;
  top: -210px;
  right: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
}

.landing-card::after {
  width: 300px;
  height: 300px;
  bottom: -170px;
  left: -110px;
  background: radial-gradient(circle, rgba(21, 200, 255, 0.16), transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid var(--surface-border);
  border-radius: 0 0 26px 26px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  box-shadow: var(--header-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-mark {
  display: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-text span,
.site-nav a,
.role,
.timeline-meta span,
.timeline-meta p,
.stack,
.card-label,
.contact-links a,
.site-footer p,
.section-note,
.app-platform {
  color: var(--muted);
}

.brand-text span {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  appearance: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(24, 50, 122, 0.08);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(21, 200, 255, 0.2));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(18, 33, 50, 0.2);
  transition: transform 180ms ease, background-color 180ms ease;
}

.theme-toggle-label {
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 180ms ease, color 180ms ease;
}

.nav-cta {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 28px;
  align-items: start;
  min-height: 0;
  height: auto;
  padding: 14px 0 0;
}

.section,
.contact-panel {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.section,
.contact-panel {
  padding: 36px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  padding: 0 0 8px;
}

.hero h1,
.showcase-copy h2,
.section h2,
.contact-panel h2,
.showcase-card h3,
.timeline-content h3,
.app-card h3,
.platform-overview h3,
.skill-group h3 {
  margin: 0;
  line-height: 0.98;
}

.hero h1 {
  max-width: 10.5ch;
  margin-top: 0;
  font-size: clamp(3.4rem, 6vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: var(--accent-dark);
  font-weight: 800;
}

.hero h1 .hero-line-primary {
  color: var(--text);
  white-space: nowrap;
}

.hero-title-type.is-typing .hero-type-char {
  display: inline-block;
  color: inherit;
  opacity: 0;
  transform: translateY(0.28em);
  animation: typewriterChar 420ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--char-delay);
}

.section h2 span {
  display: block;
  font-weight: 800;
}

.section h2 .section-line-primary {
  margin-bottom: 10px;
}

.section h2 .section-line-primary {
  color: var(--text);
  white-space: nowrap;
}

.section h2 .section-line-accent {
  color: var(--accent-dark);
  white-space: nowrap;
}

.section h2 em {
  display: inline-block;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-bright);
}

.hero-summary {
  max-width: 33rem;
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.68;
  color: var(--muted);
}

.hero-actions,
.app-links,
.tag-row,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions {
  margin-top: 20px;
}

.button,
.app-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 62%, #6c8fff 100%);
  color: var(--icon-ink);
  box-shadow: var(--button-shadow);
}

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

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  min-width: 170px;
  max-width: 210px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-card);
  backdrop-filter: blur(10px);
}

.platform-overview article,
.app-card,
.skill-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-card);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-metrics span {
  display: block;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 0;
  height: auto;
  display: grid;
  align-items: start;
}

.portrait-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0;
  overflow: visible;
  padding-top: 0;
  border-radius: 32px;
  background:
    radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.44), transparent 24%),
    radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(221, 233, 255, 0.24) 100%);
}

.portrait-stage::before {
  content: "";
  position: absolute;
  inset: 8% 12% auto 12%;
  height: 56%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 200, 255, 0.18), transparent 68%);
  filter: blur(24px);
}

.portrait-stage::after {
  content: "";
  position: absolute;
  inset: auto 8% 10% 8%;
  height: 32%;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.24));
}

.portrait-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  height: auto;
  display: grid;
  align-items: start;
  justify-items: center;
  overflow: hidden;
  background: none;
  aspect-ratio: 5 / 6;
  border-radius: 36px;
  padding-top: 0;
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.14);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.about-grid p,
.platform-overview p,
.timeline-content p,
.timeline-content li,
.app-card p,
.skill-group p,
.contact-panel p {
  margin: 0;
  line-height: 1.75;
}

.hero-links {
  margin-top: 28px;
  margin-bottom: 28px;
}

.hero-links a {
  color: var(--muted);
  font-weight: 600;
}

.timeline-content ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.timeline-content li {
  margin-top: 10px;
}

.hero-links a,
.contact-links a,
.section-note a {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
}

.section {
  margin-top: 28px;
  scroll-margin-top: 108px;
}

.showcase-band {
  position: relative;
  display: block;
  margin-top: 28px;
  padding: 32px;
  border: 1px solid rgba(136, 162, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 88%, rgba(120, 104, 255, 0.14), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(21, 200, 255, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(232, 240, 255, 0.96) 54%, rgba(221, 233, 255, 0.92) 100%);
  box-shadow: 0 24px 56px rgba(24, 50, 122, 0.14);
  overflow: hidden;
}

.projects-showcase {
  margin-top: 0;
}

.showcase-band::before,
.showcase-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.showcase-band::before {
  width: 340px;
  height: 340px;
  left: -100px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(117, 98, 255, 0.42), transparent 68%);
}

.showcase-band::after {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -50px;
  background: radial-gradient(circle, rgba(21, 200, 255, 0.22), transparent 70%);
}

.project-directory-layout,
.project-directory-grid {
  position: relative;
  z-index: 1;
}

.project-directory-layout {
  display: grid;
  gap: 18px;
}

.project-directory-grid {
  display: grid;
  gap: 16px;
}

.project-directory-grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-directory-grid-rest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-directory-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 318px;
  padding: 0 0 16px;
  border: 1px solid rgba(149, 164, 255, 0.18);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 16px 32px rgba(24, 50, 122, 0.1);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-scroll-reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms ease;
  transition-delay: var(--project-reveal-delay, 0ms);
}

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

.project-directory-card.is-visible:hover,
.project-directory-card.is-visible:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(24, 50, 122, 0.16);
}

.project-card-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  isolation: isolate;
  min-height: 142px;
  padding: 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(149, 164, 255, 0.12);
}

.project-card-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -40% 12%;
  z-index: 0;
  height: 72%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 64%);
  filter: blur(24px);
  pointer-events: none;
}

.project-card-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  color: rgba(21, 43, 104, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card-art {
  position: relative;
  z-index: 1;
  width: 114px;
  height: 114px;
  margin-top: 12px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow:
    0 24px 46px rgba(8, 12, 28, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: rotate(8deg) translateY(6px);
}

.project-directory-detail-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: rgba(6, 12, 28, 0.58);
  color: #f8fbff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.project-directory-detail-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.46), rgba(5, 10, 24, 0.68));
}

.project-directory-detail-button span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.project-directory-card:hover .project-directory-detail-button,
.project-directory-card:focus-within .project-directory-detail-button {
  opacity: 1;
  pointer-events: auto;
}

.project-card-logo-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 114px;
  height: 114px;
  margin-top: 12px;
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow:
    0 20px 38px rgba(24, 50, 122, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transform: rotate(8deg) translateY(6px);
}

.project-card-logo-badge span {
  color: var(--accent-dark);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.project-directory-card h3,
.project-directory-card p {
  margin: 0;
}

.project-directory-card .card-label,
.project-directory-card h3,
.project-directory-card p,
.project-directory-card .project-directory-link {
  margin-left: 20px;
  margin-right: 20px;
}

.project-directory-card .card-label {
  color: var(--muted);
}

.project-directory-card h3 {
  font-size: 1.32rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.project-directory-card p {
  line-height: 1.7;
  color: var(--muted);
}

.project-directory-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(118, 136, 255, 0.34);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--accent-dark);
  font-weight: 700;
  transition: transform 180ms ease, color 180ms ease;
}

.project-directory-link::after {
  content: "↗";
  margin-left: 10px;
  font-size: 1rem;
}

.project-directory-card-orion .project-card-visual {
  background:
    radial-gradient(circle at 68% 32%, rgba(116, 151, 255, 0.44), transparent 24%),
    linear-gradient(135deg, rgba(41, 64, 152, 0.92), rgba(16, 27, 66, 0.96));
}

.project-directory-card-vpn .project-card-visual {
  background:
    radial-gradient(circle at 72% 24%, rgba(21, 200, 255, 0.38), transparent 24%),
    linear-gradient(135deg, rgba(0, 127, 146, 0.94), rgba(18, 42, 86, 0.96));
}

.project-directory-card-kids .project-card-visual {
  background:
    radial-gradient(circle at 76% 28%, rgba(185, 124, 255, 0.42), transparent 24%),
    linear-gradient(135deg, rgba(98, 54, 184, 0.96), rgba(40, 29, 106, 0.96));
}

.project-directory-card-doctoc .project-card-visual {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.38), transparent 26%),
    linear-gradient(135deg, rgba(196, 230, 255, 0.98), rgba(118, 173, 226, 0.88));
}

.project-directory-card-doctoc .project-card-chip {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(18, 33, 50, 0.08);
  color: rgba(18, 33, 50, 0.72);
}

.project-directory-card-anwaar .project-card-visual {
  background:
    radial-gradient(circle at 70% 26%, rgba(175, 140, 255, 0.38), transparent 26%),
    linear-gradient(135deg, rgba(102, 83, 211, 0.96), rgba(52, 49, 137, 0.96));
}

.project-directory-card-gridzilla .project-card-visual {
  background:
    radial-gradient(circle at 68% 26%, rgba(255, 183, 223, 0.42), transparent 24%),
    linear-gradient(135deg, rgba(233, 78, 149, 0.92), rgba(174, 79, 240, 0.92));
}

.project-directory-card-music .project-card-visual {
  background:
    radial-gradient(circle at 72% 24%, rgba(104, 235, 255, 0.36), transparent 24%),
    linear-gradient(135deg, rgba(18, 117, 158, 0.96), rgba(22, 55, 118, 0.96));
}

.project-directory-card-tvmart .project-card-visual {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 207, 116, 0.36), transparent 22%),
    linear-gradient(135deg, rgba(62, 82, 178, 0.96), rgba(27, 40, 102, 0.96));
}

.project-directory-card-musicbox .project-card-visual {
  background:
    radial-gradient(circle at 74% 24%, rgba(167, 162, 255, 0.38), transparent 24%),
    linear-gradient(135deg, rgba(72, 83, 196, 0.96), rgba(36, 42, 124, 0.96));
}

.project-showcase-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(145, 162, 255, 0.16);
  border-radius: 24px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(24, 50, 122, 0.1);
}

.project-showcase-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(197, 218, 255, 0.88));
  color: var(--accent-dark);
  font-weight: 800;
}

.project-showcase-footer-copy {
  line-height: 1.7;
}

.project-showcase-footer-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(145, 162, 255, 0.2);
  border-radius: 50%;
  background: var(--surface-card);
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.project-library-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.project-library-cta {
  min-width: 220px;
}

.project-library {
  margin-top: 28px;
}

.project-library .section-heading h2 {
  grid-column: 1 / -1;
  max-width: none;
}

.project-library-title span {
  display: block;
}

.project-platform-group + .project-platform-group {
  margin-top: 34px;
}

.project-platform-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.project-platform-copy h3,
.project-platform-copy p {
  margin: 0;
}

.project-platform-kicker {
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-platform-copy h3 {
  margin-bottom: 6px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.project-platform-note {
  max-width: 56ch;
  color: var(--muted);
}

.project-platform-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.project-detail-list {
  display: grid;
  gap: 28px;
}

.project-detail-card {
  scroll-margin-top: 108px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: 0 18px 38px rgba(24, 50, 122, 0.08);
}

.project-detail-header,
.project-detail-title {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.project-detail-header {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.project-detail-title {
  min-width: 0;
}

.project-detail-title > div:last-child {
  min-width: 0;
}

.project-detail-card h3,
.project-detail-card p {
  margin: 0;
}

.project-detail-card h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.project-detail-card .app-platform {
  color: var(--muted);
}

.project-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  margin: 26px 0;
}

.project-shot-grid img,
.project-shot-fallback {
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 20px;
  box-shadow: 0 16px 28px rgba(24, 50, 122, 0.1);
}

.project-shot-link {
  position: relative;
  display: block;
  justify-self: center;
  width: min(100%, 236px);
  border-radius: 22px;
  color: inherit;
  cursor: pointer;
  outline: none;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 220ms ease;
}

.project-shot-link::after {
  content: "Open App Store";
  position: absolute;
  inset: auto 14px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background: rgba(8, 15, 34, 0.68);
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.project-shot-link:hover,
.project-shot-link:focus-visible {
  transform: translateY(-8px) rotate(-1deg);
  filter: saturate(1.08);
}

.project-shot-link:hover::after,
.project-shot-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-shot-link:hover img,
.project-shot-link:focus-visible img {
  box-shadow: 0 24px 42px rgba(24, 50, 122, 0.18);
}

.project-shot-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.48);
  outline-offset: 5px;
}

.project-shot-grid img {
  display: block;
  width: min(100%, 236px);
  aspect-ratio: 9 / 19.5;
  justify-self: center;
  object-fit: cover;
  background: var(--bg-deep);
}

.project-shot-fallback {
  width: 100%;
  min-height: 220px;
}

.project-shot-grid-tv img,
.project-shot-grid-tv .project-shot-fallback {
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  justify-self: stretch;
  min-height: 170px;
}

.project-shot-grid-tv .project-shot-link {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.project-shot-grid-tv-quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-shot-grid-orion {
  grid-template-columns: repeat(5, minmax(0, 205px));
  justify-content: start;
  justify-items: start;
  gap: 14px;
}

.project-shot-grid-orion img {
  width: 100%;
  max-width: none;
  justify-self: start;
}

.project-shot-grid-orion .project-shot-link {
  width: 100%;
  max-width: none;
  justify-self: start;
}

.project-shot-grid-quad {
  grid-template-columns: repeat(4, minmax(0, 220px));
  justify-content: start;
  justify-items: start;
  gap: 14px;
}

.project-shot-grid-quad img {
  width: 100%;
  max-width: none;
  justify-self: start;
}

.project-shot-grid-quad .project-shot-link {
  width: 100%;
  max-width: none;
  justify-self: start;
}

.project-shot-fallback {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.project-shot-fallback-orion {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(11, 20, 53, 0.34)),
    linear-gradient(135deg, #5677ff, #162b78);
}

.project-shot-fallback-vpn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(4, 38, 55, 0.28)),
    linear-gradient(135deg, #14bfd8, #1555a8);
}

.project-shot-fallback-anwaar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(42, 29, 88, 0.28)),
    linear-gradient(135deg, #8b7cff, #5f45c7);
}

.project-shot-fallback-grid {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(72, 21, 67, 0.22)),
    linear-gradient(135deg, #ff82bb, #a35fff);
}

.project-shot-fallback-music {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(10, 33, 80, 0.22)),
    linear-gradient(135deg, #37c1ff, #2456c9);
}

.project-shot-fallback-tv {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(27, 35, 88, 0.24)),
    linear-gradient(135deg, #7f9bff, #3550b8);
}

.project-card-logo-badge-static {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  margin-top: 0;
  border-radius: 22px;
  transform: none;
}

.project-card-logo-badge-static span {
  font-size: 1.45rem;
}

.showcase-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "primary secondary"
    "primary tertiary"
    "wide wide";
  align-self: start;
  gap: 14px;
}

.showcase-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 32px rgba(24, 50, 122, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.showcase-card:hover,
.showcase-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(24, 50, 122, 0.12);
}

.showcase-card-primary {
  grid-area: primary;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(21, 200, 255, 0.14), rgba(37, 99, 235, 0.12) 56%, rgba(255, 255, 255, 0.96) 100%);
}

.showcase-card-secondary {
  grid-area: secondary;
}

.showcase-card-tertiary {
  grid-area: tertiary;
}

.showcase-card-wide {
  grid-area: wide;
  background:
    linear-gradient(135deg, rgba(255, 182, 72, 0.1), rgba(255, 255, 255, 0.82) 42%, rgba(21, 200, 255, 0.08) 100%);
}

.showcase-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 20px;
  box-shadow: 0 14px 24px rgba(24, 50, 122, 0.14);
}

.showcase-card-primary .showcase-icon {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.showcase-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.showcase-card h3 {
  margin-bottom: 6px;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.showcase-card .card-label {
  margin-bottom: 8px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section h2,
.contact-panel h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.05em;
}

.section-title-blue {
  color: var(--accent-dark);
}

.section-title-inline {
  max-width: none;
  white-space: nowrap;
}

.section-title-inline span {
  display: inline;
}

.upwork-section-title {
  color: #14a800;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: lowercase;
}

.eyebrow,
.card-label {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.about-grid,
.platform-overview,
.upwork-grid,
.upwork-metrics-grid,
.skill-groups,
.contact-panel {
  display: grid;
  gap: 18px;
}

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

.about-bio-panel,
.about-skills-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.about-bio-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.94)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 38px rgba(24, 50, 122, 0.08);
}

.about-skills-panel {
  background:
    radial-gradient(circle at 14% 18%, rgba(21, 200, 255, 0.14), transparent 22%),
    radial-gradient(circle at 88% 0%, rgba(117, 98, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(228, 238, 255, 0.96) 100%);
  box-shadow: 0 22px 44px rgba(24, 50, 122, 0.12);
}

.about-skills-panel::before {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  pointer-events: none;
}

.about-skills-header,
.about-skills-cloud {
  position: relative;
  z-index: 1;
}

.about-skills-header h3 {
  margin: 8px 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.about-skills-cloud {
  margin-top: 18px;
}

.about-skills-cloud span {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 255, 0.96));
  box-shadow: 0 10px 22px rgba(24, 50, 122, 0.08);
  color: var(--accent-dark);
  font-weight: 600;
}

.platform-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

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

.upwork-metrics-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.platform-overview h3,
.upwork-profile-card h3,
.upwork-metric-card h3,
.subsection-header h3,
.skill-group h3,
.app-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.upwork-profile-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-card);
}

.upwork-metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 238px;
  padding: 18px;
  border: 1px solid rgba(20, 168, 0, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 255, 239, 0.9)),
    var(--surface-card);
  box-shadow: 0 18px 38px rgba(24, 50, 122, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.upwork-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #14a800, rgba(42, 94, 240, 0.75));
}

.upwork-metric-card.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 168, 0, 0.28);
  box-shadow: 0 24px 52px rgba(24, 50, 122, 0.12);
}

.upwork-showcase {
  position: relative;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(118, 136, 255, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 14%, rgba(21, 200, 255, 0.12), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(37, 99, 235, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(250, 252, 255, 0.98) 0%, rgba(239, 245, 255, 0.98) 100%);
  box-shadow: 0 26px 60px rgba(24, 50, 122, 0.12);
  overflow: hidden;
}

.upwork-dot-grid {
  position: absolute;
  top: 36px;
  right: 34px;
  width: 150px;
  height: 96px;
  opacity: 0.5;
  background-image: radial-gradient(rgba(37, 99, 235, 0.26) 1.4px, transparent 1.4px);
  background-size: 12px 12px;
  pointer-events: none;
}

.upwork-main-column,
.upwork-metrics-grid {
  position: relative;
  z-index: 1;
}

.upwork-main-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.upwork-profile-card {
  justify-self: start;
  width: min(100%, 760px);
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(24, 50, 122, 0.08);
}

.upwork-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upwork-profile-avatar {
  flex: 0 0 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f53db 0%, #3b82ff 100%);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.24);
}

.upwork-profile-copy {
  display: grid;
  gap: 6px;
}

.upwork-profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.upwork-profile-name-row h3 {
  margin: 0;
}

.upwork-profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upwork-profile-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.upwork-profile-summary {
  margin-top: 18px;
  color: var(--muted);
}

.upwork-brand-row,
.upwork-stat-strip,
.upwork-stars {
  display: flex;
  align-items: center;
}

.upwork-brand-row {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.upwork-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 10px;
  border-radius: 999px;
  background: #14a800;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(20, 168, 0, 0.22);
}

.upwork-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  font-weight: 800;
  text-transform: lowercase;
}

.upwork-logo-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.upwork-profile-card p,
.upwork-metric-card p {
  margin: 0;
  line-height: 1.7;
}

.upwork-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.upwork-stat-pill {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 20px;
  background: var(--surface-strong);
}

.upwork-stat-pill strong {
  color: var(--accent-dark);
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.upwork-rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upwork-rating-stars {
  color: #ffb648;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.upwork-stat-pill span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.upwork-stat-pill .upwork-rating-stars {
  color: #ffb648;
}

.upwork-stars {
  gap: 4px;
  color: #ffb648;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.upwork-profile-actions {
  margin-top: 20px;
}

.upwork-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.upwork-score {
  color: #2a5ef0;
  font-size: 0.92rem;
  font-weight: 800;
}

.upwork-metric-card h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.upwork-quote-mark {
  position: absolute;
  right: 16px;
  bottom: 8px;
  margin: 2px 0 6px;
  color: rgba(20, 168, 0, 0.12);
  font-size: 4.6rem;
  line-height: 0.7;
  font-weight: 800;
}

.upwork-metric-card p:not(.upwork-quote-mark) {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-card-muted);
}

.timeline-item.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(24, 50, 122, 0.12);
}

.timeline-meta p {
  margin: 0;
  font-weight: 500;
}

.qualification-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-card-muted);
}

.qualification-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.qualification-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.role {
  margin-top: 4px;
  font-size: 0.96rem;
}

.section-note {
  margin: -8px 0 24px;
  max-width: 68ch;
  line-height: 1.75;
}

.subsection + .subsection {
  margin-top: 30px;
}

.subsection-header {
  margin-bottom: 16px;
}

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

.app-grid-single {
  grid-template-columns: 1fr;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-card-featured {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(21, 200, 255, 0.08), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.66);
}

.app-card-wide {
  background:
    linear-gradient(135deg, rgba(255, 182, 72, 0.08), rgba(18, 33, 50, 0.06), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.62);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 22px;
  box-shadow: 0 12px 22px rgba(13, 44, 68, 0.16);
}

.app-platform {
  margin-top: 4px;
  font-size: 0.95rem;
}

.stack {
  font-size: 0.95rem;
}

.tag-row span,
.skills-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  font-size: 0.9rem;
}

.app-links {
  margin-top: auto;
}

.app-links a {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.skill-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.contact-panel {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-links {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.contact-links a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px 0;
}

:root[data-theme="dark"] .landing-card::before {
  background: radial-gradient(circle, rgba(95, 142, 255, 0.18), transparent 70%);
}

:root[data-theme="dark"] .landing-card::after {
  background: radial-gradient(circle, rgba(84, 216, 255, 0.14), transparent 72%);
}

:root[data-theme="dark"] .theme-toggle {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, rgba(28, 47, 94, 0.92), rgba(18, 112, 159, 0.9));
  box-shadow: inset 0 0 0 1px rgba(148, 175, 255, 0.12);
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(18px);
  background: #e6eefc;
}

:root[data-theme="dark"] .portrait-stage {
  background:
    radial-gradient(circle at 52% 18%, rgba(148, 175, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 40%, rgba(21, 200, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(10, 17, 30, 0.84) 0%, rgba(8, 14, 25, 0.46) 100%);
}

:root[data-theme="dark"] .portrait-stage::before {
  background: radial-gradient(circle, rgba(84, 216, 255, 0.14), transparent 68%);
}

:root[data-theme="dark"] .portrait-stage::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(8, 14, 27, 0.36));
}

:root[data-theme="dark"] .portrait-frame {
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .portrait-frame img {
  border-color: rgba(148, 175, 255, 0.18);
}

:root[data-theme="dark"] .showcase-band {
  border-color: rgba(104, 129, 204, 0.18);
  background:
    radial-gradient(circle at 14% 88%, rgba(120, 104, 255, 0.1), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(21, 200, 255, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(12, 21, 38, 0.98) 0%, rgba(8, 15, 29, 0.96) 54%, rgba(6, 11, 21, 0.92) 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .project-card-visual::after {
  background: radial-gradient(circle, rgba(148, 175, 255, 0.12), transparent 64%);
}

:root[data-theme="dark"] .project-card-chip {
  border-color: rgba(148, 175, 255, 0.18);
  color: #d2def7;
}

:root[data-theme="dark"] .project-directory-card-doctoc .project-card-chip {
  background: rgba(15, 24, 41, 0.54);
  border-color: rgba(214, 232, 255, 0.12);
  color: #dce9ff;
}

:root[data-theme="dark"] .project-card-logo-badge {
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .project-showcase-footer-icon {
  background: linear-gradient(135deg, rgba(17, 28, 50, 0.96), rgba(27, 44, 84, 0.88));
}

:root[data-theme="dark"] .showcase-card-primary {
  background:
    linear-gradient(160deg, rgba(21, 200, 255, 0.08), rgba(37, 99, 235, 0.12) 56%, rgba(14, 24, 43, 0.96) 100%);
}

:root[data-theme="dark"] .showcase-card-wide {
  background:
    linear-gradient(135deg, rgba(255, 182, 72, 0.08), rgba(18, 33, 50, 0.12), rgba(14, 24, 43, 0.94) 72%);
}

:root[data-theme="dark"] .about-bio-panel {
  background:
    linear-gradient(135deg, rgba(14, 24, 43, 0.96), rgba(9, 17, 31, 0.94)),
    rgba(14, 24, 43, 0.76);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .about-skills-panel {
  background:
    radial-gradient(circle at 14% 18%, rgba(21, 200, 255, 0.1), transparent 22%),
    radial-gradient(circle at 88% 0%, rgba(117, 98, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(11, 19, 35, 0.98) 0%, rgba(8, 15, 29, 0.96) 100%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .about-skills-cloud span {
  border-color: rgba(148, 175, 255, 0.12);
  background: rgba(15, 25, 46, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .upwork-showcase {
  border-color: rgba(104, 129, 204, 0.18);
  background:
    radial-gradient(circle at 12% 14%, rgba(21, 200, 255, 0.08), transparent 18%),
    radial-gradient(circle at 84% 10%, rgba(37, 99, 235, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(12, 20, 36, 0.98) 0%, rgba(8, 15, 29, 0.98) 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .upwork-dot-grid {
  opacity: 0.28;
  background-image: radial-gradient(rgba(148, 175, 255, 0.28) 1.4px, transparent 1.4px);
}

:root[data-theme="dark"] .upwork-profile-card {
  background:
    linear-gradient(145deg, rgba(20, 34, 60, 0.92), rgba(11, 20, 36, 0.94)),
    rgba(14, 24, 43, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .upwork-metric-card {
  background:
    linear-gradient(145deg, rgba(16, 28, 49, 0.96), rgba(11, 24, 32, 0.9)),
    var(--surface-card);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .upwork-profile-badge {
  background: rgba(95, 142, 255, 0.14);
  border-color: rgba(95, 142, 255, 0.22);
}

:root[data-theme="dark"] .upwork-score {
  color: #8fb2ff;
}

:root[data-theme="dark"] .app-card-featured {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(21, 200, 255, 0.08), rgba(14, 24, 43, 0.74)),
    rgba(14, 24, 43, 0.66);
}

:root[data-theme="dark"] .app-card-wide {
  background:
    linear-gradient(135deg, rgba(255, 182, 72, 0.08), rgba(18, 33, 50, 0.18), rgba(14, 24, 43, 0.72)),
    rgba(14, 24, 43, 0.62);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.button:hover,
.button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible,
.hero-links a:hover,
.hero-links a:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible,
.section-note a:hover,
.section-note a:focus-visible,
.app-links a:hover,
.app-links a:focus-visible,
.project-directory-link:hover,
.project-directory-link:focus-visible {
  transform: translateY(-2px);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.hero-links a:hover,
.hero-links a:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible,
.section-note a:hover,
.section-note a:focus-visible,
.app-links a:hover,
.app-links a:focus-visible,
.project-directory-link:hover,
.project-directory-link:focus-visible,
.project-directory-detail-button:hover,
.project-directory-detail-button:focus-visible {
  color: var(--accent-dark);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
}

.project-directory-detail-button:hover,
.project-directory-detail-button:focus-visible {
  color: #f8fbff;
}

.project-directory-detail-button:hover span,
.project-directory-detail-button:focus-visible span {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.56);
}

@media (min-width: 1041px) and (min-height: 900px) {
  .landing-card {
    min-height: auto;
  }
}

@media (max-width: 1040px) {
  .landing-card {
    min-height: auto;
  }

  .hero,
  .showcase-band,
  .about-grid,
  .platform-overview,
  .upwork-grid,
  .upwork-metrics-grid,
  .skill-groups,
  .contact-panel,
  .timeline-item,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
  }

  .site-nav {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    height: auto;
  }

  .hero h1,
  .showcase-copy h2,
  .section h2,
  .contact-panel h2 {
    max-width: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-metrics {
    width: 100%;
  }

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

  .showcase-visual {
    grid-template-areas:
      "primary primary"
      "secondary tertiary"
      "wide wide";
  }

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

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

  .upwork-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-shot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-shot-grid-orion {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .project-shot-grid-tv-quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-platform-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-detail-header {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: hidden;
  }

  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 0;
  }

  .landing-card,
  .showcase-band,
  .section,
  .contact-panel {
    padding: 22px;
  }

  .site-header {
    position: static;
    top: 0;
    padding: 12px 14px;
  }

  .section,
  .project-detail-card {
    scroll-margin-top: 24px;
  }

  .hero {
    padding-top: 24px;
    gap: 28px;
    height: auto;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .hero h1 .hero-line-primary,
  .section h2 .section-line-primary,
  .section h2 .section-line-accent {
    white-space: normal;
  }

  .portrait-frame {
    padding-top: 0;
  }

  .portrait-stage {
    padding-top: 0;
  }

  .showcase-visual {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .project-directory-grid {
    grid-template-columns: 1fr;
  }

  .showcase-band {
    padding: 24px;
  }

  .project-directory-card {
    min-height: 320px;
  }

  .upwork-showcase {
    padding: 20px;
  }

  .upwork-dot-grid {
    display: none;
  }

  .upwork-metrics-grid {
    display: flex;
    gap: 14px;
    margin-inline: -20px;
    padding: 0 20px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .upwork-metric-card {
    flex: 0 0 min(82vw, 320px);
    min-height: 224px;
    scroll-snap-align: start;
  }

  .upwork-profile-card {
    padding: 22px;
  }

  .upwork-profile-header {
    align-items: flex-start;
  }

  .upwork-profile-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    min-width: 64px;
    font-size: 1.7rem;
  }

  .upwork-stat-strip {
    grid-template-columns: 1fr;
  }

  .project-card-visual {
    min-height: 148px;
  }

  .project-card-art {
    width: 102px;
    height: 102px;
  }

  .project-card-logo-badge {
    width: 102px;
    height: 102px;
  }

  .project-showcase-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-detail-card {
    padding: 20px;
    overflow: hidden;
  }

  .project-detail-header {
    width: 100%;
    min-width: 0;
  }

  .project-detail-title {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .project-detail-title > div:last-child {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .project-detail-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .project-detail-card .app-platform {
    white-space: normal;
  }

  .project-shot-grid {
    display: flex;
    gap: 14px;
    max-width: 100%;
    margin: 22px 0;
    padding: 0 0 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .project-shot-grid::-webkit-scrollbar {
    height: 8px;
  }

  .project-shot-grid::-webkit-scrollbar-track {
    background: rgba(148, 175, 255, 0.12);
    border-radius: 999px;
  }

  .project-shot-grid::-webkit-scrollbar-thumb {
    background: rgba(95, 142, 255, 0.44);
    border-radius: 999px;
  }

  .project-shot-grid img,
  .project-shot-fallback {
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 9 / 19.5;
    justify-self: stretch;
  }

  .project-shot-link,
  .project-shot-grid-orion .project-shot-link,
  .project-shot-grid-quad .project-shot-link,
  .project-shot-grid-tv .project-shot-link {
    flex: 0 0 min(68vw, 248px);
    width: auto;
    max-width: none;
    justify-self: stretch;
    scroll-snap-align: start;
  }

  .project-shot-grid-tv .project-shot-link {
    flex-basis: min(84vw, 360px);
  }

  .project-shot-grid-tv img,
  .project-shot-grid-tv .project-shot-fallback {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .project-shot-fallback {
    flex: 0 0 min(68vw, 248px);
    scroll-snap-align: start;
  }

  .showcase-card,
  .showcase-card-primary,
  .showcase-card-secondary,
  .showcase-card-tertiary,
  .showcase-card-wide {
    grid-area: auto;
  }

  .showcase-card-primary {
    min-height: auto;
  }

  .site-nav {
    gap: 14px;
  }

  .theme-toggle {
    min-height: 42px;
  }

  .button {
    width: 100%;
  }

  .hero-links {
    gap: 18px;
  }

  .hero-visual,
  .portrait-stage {
    min-height: 360px;
  }

  .app-card-top {
    align-items: flex-start;
  }

  .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .showcase-card,
  .site-nav a,
  .hero-links a,
  .contact-links a,
  .section-note a,
  .app-links a,
  .project-shot-link,
  .project-shot-link::after {
    transition: none;
  }

  .reveal,
  .project-shot-link:hover,
  .project-shot-link:focus-visible {
    opacity: 1;
    transform: none;
  }
}
