:root {
  --bg: #08111a;
  --surface: #111c27;
  --surface-2: #172635;
  --ink: #f4f8fb;
  --text: #d8e2ea;
  --muted: #94a5b4;
  --line: rgba(217, 229, 238, 0.13);
  --blue: #55b1ff;
  --blue-deep: #49a8ff;
  --cyan: #2bd6f0;
  --code: #0f1722;
  --silver: #b9c8d6;
  --accent: #d8e2ea;
  --shadow: 0 28px 84px rgba(0, 0, 0, 0.34);
  --font-body: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

[data-theme="light"] {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-2: #edf4fa;
  --ink: #17212b;
  --text: #24313d;
  --muted: #687583;
  --line: rgba(23, 33, 43, 0.12);
  --blue: #1877c9;
  --blue-deep: #0d4e8c;
  --cyan: #16b8d9;
  --shadow: 0 24px 70px rgba(16, 32, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 96px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(85, 177, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 74% 28%, rgba(43, 214, 240, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.06), transparent 28rem),
    linear-gradient(115deg, transparent 0%, rgba(85, 177, 255, 0.08) 42%, transparent 72%),
    linear-gradient(rgba(85, 177, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 177, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #08111a 0%, #101b27 46%, #071018 100%);
  background-size: auto, auto, auto, auto, 44px 44px, 44px 44px, auto;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(43, 214, 240, 0.48);
  transform: scaleX(0);
  transform-origin: left;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 16% 0%, rgba(24, 119, 201, 0.14), transparent 30rem),
    radial-gradient(circle at 74% 28%, rgba(22, 184, 217, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(42, 47, 53, 0.07), transparent 28rem),
    linear-gradient(115deg, transparent 0%, rgba(24, 119, 201, 0.05) 42%, transparent 72%),
    linear-gradient(rgba(13, 78, 140, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 78, 140, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(235, 243, 250, 0.76) 46%, rgba(255, 255, 255, 0.98) 100%);
  background-size: auto, auto, auto, auto, 44px 44px, 44px 44px, auto;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(85, 177, 255, 0.4);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  background: rgba(8, 17, 26, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.72);
}

.site-header.scrolled {
  background: rgba(8, 17, 26, 0.94);
  border-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-logo {
  width: 7.8rem;
  height: 3rem;
  border: 1px solid rgba(85, 177, 255, 0.22);
  border-radius: 8px;
  background: #f8fbfd;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), 0 0 0 4px rgba(85, 177, 255, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.theme-logo-dark {
  display: block;
}

.theme-logo-light {
  display: none;
}

[data-theme="light"] .theme-logo-dark {
  display: none;
}

[data-theme="light"] .theme-logo-light {
  display: block;
}

.site-logo-visual {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 34px rgba(85, 177, 255, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  color: #a8b6c4;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--blue);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 3.75rem;
  height: 2.05rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transition: transform 180ms ease, background 180ms ease;
}

.theme-toggle-icon::before {
  content: "☾";
  color: #fff;
  font-size: 0.86rem;
  line-height: 1;
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(16, 32, 47, 0.12);
}

[data-theme="light"] .theme-toggle-icon {
  transform: translateX(1.65rem);
  background: linear-gradient(135deg, #f8c14a, #1877c9);
}

[data-theme="light"] .theme-toggle-icon::before {
  content: "☀";
}

.site-nav a {
  position: relative;
  transition: color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(3rem, 7vw, 6rem) 6vw 4rem;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy::before {
  content: "</>";
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 2rem;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(85, 177, 255, 0.24);
  border-radius: 8px;
  background: rgba(17, 28, 39, 0.74);
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 5.3rem);
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.45vw, 3.45rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.hero-text {
  max-width: 690px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.28vw, 1.14rem);
}

.hero-actions,
.cta-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.05rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 177, 255, 0.4);
}

.button.primary {
  border-color: rgba(85, 177, 255, 0.42);
  background: linear-gradient(135deg, #55b1ff, #1d74c7 64%, #0f1722);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .button.secondary {
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 32, 47, 0.07);
}

.button.large {
  min-width: 10.8rem;
}

.button-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
  font-weight: 700;
}

.button.secondary .button-icon {
  background: rgba(85, 177, 255, 0.13);
  color: var(--cyan);
}

.snapshot-section {
  padding-top: clamp(1.8rem, 4vw, 3.2rem);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.snapshot-grid article {
  min-height: 13rem;
  padding: 1.25rem;
  border: 1px solid rgba(85, 177, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(85, 177, 255, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .snapshot-grid article {
  background:
    linear-gradient(135deg, rgba(24, 119, 201, 0.11), transparent 62%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(16, 32, 47, 0.08);
}

.snapshot-number {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(85, 177, 255, 0.26);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.snapshot-grid h3 {
  margin-bottom: 0.45rem;
}

.snapshot-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
  color: var(--muted);
}

.hero-metrics span {
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
}

[data-theme="light"] .hero-metrics span {
  background: rgba(255, 255, 255, 0.78);
}

.hero-metrics strong {
  color: var(--ink);
}

.code-panel {
  max-width: 520px;
  margin-top: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 11, 18, 0.58);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.code-panel-bar {
  display: flex;
  gap: 0.38rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.code-panel-bar span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--blue);
}

.code-panel-bar span:nth-child(2) {
  background: var(--cyan);
}

.code-panel-bar span:nth-child(3) {
  background: var(--muted);
}

.code-panel code {
  display: block;
  min-height: 3rem;
  padding: 0.85rem 0.95rem;
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
}

[data-theme="light"] .code-panel {
  background: rgba(255, 255, 255, 0.78);
}

.hero-visual {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 177, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(rgba(85, 177, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 177, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 28% 24%, rgba(43, 214, 240, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(17, 28, 39, 0.96), rgba(10, 20, 30, 0.92)),
    var(--surface);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  box-shadow: var(--shadow);
}

[data-theme="light"] .hero-visual {
  background:
    linear-gradient(rgba(24, 119, 201, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 119, 201, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 28% 24%, rgba(22, 184, 217, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 249, 0.9)),
    var(--surface);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0%, rgba(85, 177, 255, 0.12) 100%),
    linear-gradient(90deg, transparent 0%, rgba(43, 214, 240, 0.13) 50%, transparent 100%);
  pointer-events: none;
}

.profile-panel {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(86%, 330px);
  padding: 0.8rem;
  border: 1px solid rgba(85, 177, 255, 0.26);
  border-radius: 14px;
  background: rgba(8, 17, 26, 0.78);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .profile-panel {
  background: rgba(255, 255, 255, 0.9);
}

.profile-panel img {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 18px;
  object-fit: cover;
}

.profile-panel strong,
.profile-panel span {
  display: block;
}

.profile-panel span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section,
.split-section,
.cta,
.site-footer {
  padding-right: 6vw;
  padding-left: 6vw;
}

.section,
.split-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

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

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tech-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 28, 39, 0.76);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(85, 177, 255, 0.72), rgba(43, 214, 240, 0.5), transparent);
}

.tech-card p {
  color: var(--muted);
}

[data-theme="light"] .tech-card {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(16, 32, 47, 0.065);
}

.tech-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(85, 177, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(85, 177, 255, 0.17), rgba(43, 214, 240, 0.1));
  color: var(--cyan);
}

.tech-icon::before {
  font-weight: 700;
}

.python-icon::before {
  content: "Py";
}

.bot-icon::before {
  content: "/";
}

.studio-icon::before {
  content: "{}";
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.ai-icon::before {
  content: "AI";
}

.text-card,
.project-card,
.certificate-card,
.interest-list article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 28, 39, 0.76);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .text-card,
[data-theme="light"] .project-card,
[data-theme="light"] .certificate-card,
[data-theme="light"] .interest-list article {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(16, 32, 47, 0.065);
}

.text-card::before,
.project-card::before,
.certificate-card::before,
.interest-list article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(85, 177, 255, 0.72), rgba(43, 214, 240, 0.5), transparent);
  opacity: 0.78;
}

.text-card,
.project-card {
  padding: 1.35rem;
}

.text-card,
.project-card,
.interest-list article {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.text-card:hover,
.project-card:hover,
.interest-list article:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 177, 255, 0.34);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.32);
}

.text-card.wide {
  grid-row: span 2;
}

.text-card p,
.project-card p,
.certificate-card p,
.interest-list p,
.cta p {
  color: var(--muted);
}

.highlight-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(85, 177, 255, 0.055));
}

[data-theme="light"] .highlight-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(238, 246, 252, 0.46));
}

.certificate-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.certificate-preview {
  overflow: hidden;
  border: 1px solid rgba(85, 177, 255, 0.2);
  border-radius: 8px;
  background: #f5f8fb;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.certificate-preview img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag-row span,
.project-type {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-row span {
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(85, 177, 255, 0.24);
  border-radius: 8px;
  background: rgba(85, 177, 255, 0.1);
}

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

.featured-project {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 1.4rem;
  padding: 0;
  overflow: hidden;
}

.project-image {
  min-height: 300px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(85, 177, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 177, 255, 0.06) 1px, transparent 1px),
    #0b1621;
  background-size: 32px 32px;
}

[data-theme="light"] .project-image {
  background:
    linear-gradient(rgba(24, 119, 201, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 119, 201, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 32px 32px;
}

.project-image img {
  width: min(82%, 520px);
  height: auto;
  object-fit: contain;
  border-radius: 24px;
}

.project-content {
  padding: 1.4rem;
}

.project-actions {
  margin-top: 1.1rem;
}

.project-detail-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: center;
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.detail-list span {
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(85, 177, 255, 0.24);
  border-radius: 8px;
  background: rgba(85, 177, 255, 0.1);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 28, 39, 0.76);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.timeline article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(85, 177, 255, 0.72), rgba(43, 214, 240, 0.5), transparent);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(85, 177, 255, 0.17), rgba(43, 214, 240, 0.1));
  color: var(--blue);
  font-weight: 700;
}

.timeline p {
  color: var(--muted);
  margin-bottom: 0;
}

[data-theme="light"] .timeline article {
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 46px rgba(16, 32, 47, 0.065);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(43, 214, 240, 0.045));
}

[data-theme="light"] .split-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(238, 246, 252, 0.38));
}

.reference-section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.reference-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(85, 177, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 177, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(85, 177, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--surface);
  background-size: 38px 38px, 38px 38px, auto, auto;
  box-shadow: var(--shadow);
}

.reference-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(85, 177, 255, 0.72), rgba(43, 214, 240, 0.5), transparent);
}

.reference-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(85, 177, 255, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 58%),
    linear-gradient(135deg, rgba(85, 177, 255, 0.18), rgba(43, 214, 240, 0.08)),
    rgba(5, 11, 18, 0.42);
  box-shadow: inset 0 0 42px rgba(85, 177, 255, 0.08);
}

.reference-mark img {
  width: min(72%, 180px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.reference-content p {
  color: var(--muted);
}

.reference-content .button {
  margin-top: 0.15rem;
}

.reference-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.2rem;
}

.reference-points span {
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(85, 177, 255, 0.24);
  border-radius: 8px;
  background: rgba(85, 177, 255, 0.1);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.reference-note {
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(85, 177, 255, 0.18);
  border-radius: 8px;
  background: rgba(85, 177, 255, 0.07);
}

.reference-note h3 {
  margin-bottom: 0.35rem;
}

.reference-note p {
  margin: 0;
}

.mentor-note {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(43, 214, 240, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(43, 214, 240, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.045);
}

.mentor-note > span {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.08;
}

.mentor-note h3 {
  margin-bottom: 0.3rem;
}

.mentor-note p {
  margin: 0;
}

[data-theme="light"] .mentor-note {
  background:
    linear-gradient(135deg, rgba(24, 119, 201, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.74);
}

[data-theme="light"] .reference-card {
  background:
    linear-gradient(rgba(24, 119, 201, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 119, 201, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(24, 119, 201, 0.09), rgba(23, 33, 43, 0.04)),
    var(--surface);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

[data-theme="light"] .reference-mark {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.86), transparent 58%),
    linear-gradient(135deg, rgba(24, 119, 201, 0.11), rgba(22, 184, 217, 0.06)),
    #f8fbfd;
}

[data-theme="light"] .reference-mark img {
  filter: drop-shadow(0 16px 24px rgba(16, 32, 47, 0.16));
}

.interest-list {
  display: grid;
  gap: 1rem;
}

.interest-list article {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 1rem;
  padding: 1.15rem;
}

.interest-list span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(85, 177, 255, 0.17), rgba(43, 214, 240, 0.1));
  color: var(--blue);
  font-weight: 700;
}

.interest-list p {
  margin-bottom: 0;
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 6vw;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(85, 177, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(85, 177, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 177, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(85, 177, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--surface);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

[data-theme="light"] .cta {
  background:
    linear-gradient(rgba(24, 119, 201, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 119, 201, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(24, 119, 201, 0.09), rgba(23, 33, 43, 0.04)),
    var(--surface);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.cta h2 {
  max-width: 780px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 420px;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 28, 39, 0.72);
}

[data-theme="light"] .contact-card {
  background: rgba(255, 255, 255, 0.74);
}

.contact-card strong,
.contact-card a {
  display: block;
}

.contact-card a {
  color: var(--blue);
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-quote {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  max-width: 560px;
  min-height: 5.4rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(85, 177, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(85, 177, 255, 0.1), transparent 62%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.footer-quote::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  width: 5.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 214, 240, 0.7));
}

[data-theme="light"] .footer-quote {
  background:
    linear-gradient(135deg, rgba(24, 119, 201, 0.08), transparent 62%),
    rgba(255, 255, 255, 0.76);
}

.quote-mark {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.85;
}

.footer-quote p {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.35;
}

.footer-quote strong {
  color: var(--blue);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-quote.is-changing p,
.footer-quote.is-changing strong {
  animation: quoteFade 520ms ease both;
}

@keyframes quoteFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(85, 177, 255, 0.24);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(85, 177, 255, 0.16), rgba(43, 214, 240, 0.08));
  color: var(--cyan);
}

.footer-icon::before {
  content: "";
  width: 0.92rem;
  height: 0.92rem;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.user-icon::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a4.25 4.25 0 1 0 0-8.5 4.25 4.25 0 0 0 0 8.5Zm0 2c-4.42 0-8 2.24-8 5v1.2c0 .44.36.8.8.8h14.4c.44 0 .8-.36.8-.8V19c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a4.25 4.25 0 1 0 0-8.5 4.25 4.25 0 0 0 0 8.5Zm0 2c-4.42 0-8 2.24-8 5v1.2c0 .44.36.8.8.8h14.4c.44 0 .8-.36.8-.8V19c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
}

.code-icon::before {
  width: 1.05rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.8 6.3 3.1 12l5.7 5.7 1.4-1.4L5.9 12l4.3-4.3-1.4-1.4Zm6.4 0-1.4 1.4 4.3 4.3-4.3 4.3 1.4 1.4 5.7-5.7-5.7-5.7ZM12.9 4 9.2 20h2L14.9 4h-2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8.8 6.3 3.1 12l5.7 5.7 1.4-1.4L5.9 12l4.3-4.3-1.4-1.4Zm6.4 0-1.4 1.4 4.3 4.3-4.3 4.3 1.4 1.4 5.7-5.7-5.7-5.7ZM12.9 4 9.2 20h2L14.9 4h-2Z'/%3E%3C/svg%3E");
}

.mail-icon::before {
  width: 1rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5h16c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2Zm8 8.15L4.45 7H4v.74l8 6.51 8-6.51V7h-.45L12 13.15Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 5h16c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2Zm8 8.15L4.45 7H4v.74l8 6.51 8-6.51V7h-.45L12 13.15Z'/%3E%3C/svg%3E");
}

.discord-icon::before {
  width: 1.05rem;
  height: 0.82rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M22.2 2.2A22 22 0 0 0 17.2.7l-.5 1A18.8 18.8 0 0 0 14 1.5c-1 0-1.9.1-2.7.2l-.5-1a22 22 0 0 0-5 1.5C2.6 6.8 1.8 11.2 2.2 15.6a20 20 0 0 0 6.1 3.1l1.2-1.6c-.7-.2-1.4-.6-2-.9l.5-.4c3.8 1.8 8.2 1.8 12 0l.5.4c-.6.3-1.3.7-2 .9l1.2 1.6a20 20 0 0 0 6.1-3.1c.5-5.1-.8-9.5-3.6-13.4ZM10 13.5c-1.1 0-2-1-2-2.2s.9-2.2 2-2.2 2 1 2 2.2-.9 2.2-2 2.2Zm8 0c-1.1 0-2-1-2-2.2s.9-2.2 2-2.2 2 1 2 2.2-.9 2.2-2 2.2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M22.2 2.2A22 22 0 0 0 17.2.7l-.5 1A18.8 18.8 0 0 0 14 1.5c-1 0-1.9.1-2.7.2l-.5-1a22 22 0 0 0-5 1.5C2.6 6.8 1.8 11.2 2.2 15.6a20 20 0 0 0 6.1 3.1l1.2-1.6c-.7-.2-1.4-.6-2-.9l.5-.4c3.8 1.8 8.2 1.8 12 0l.5.4c-.6.3-1.3.7-2 .9l1.2 1.6a20 20 0 0 0 6.1-3.1c.5-5.1-.8-9.5-3.6-13.4ZM10 13.5c-1.1 0-2-1-2-2.2s.9-2.2 2-2.2 2 1 2 2.2-.9 2.2-2 2.2Zm8 0c-1.1 0-2-1-2-2.2s.9-2.2 2-2.2 2 1 2 2.2-.9 2.2-2 2.2Z'/%3E%3C/svg%3E");
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(85, 177, 255, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(85, 177, 255, 0.2), rgba(43, 214, 240, 0.08)),
    rgba(17, 28, 39, 0.88);
  color: var(--ink);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(43, 214, 240, 0.6);
  transform: translateY(-2px);
}

[data-theme="light"] .back-to-top {
  background:
    linear-gradient(135deg, rgba(24, 119, 201, 0.16), rgba(22, 184, 217, 0.08)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(16, 32, 47, 0.12);
}

.not-found-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 6vw;
}

.not-found {
  width: min(680px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid rgba(85, 177, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(85, 177, 255, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.not-found img {
  width: min(190px, 52vw);
  margin-bottom: 1.6rem;
}

.not-found h1 {
  margin-bottom: 0.75rem;
}

.not-found p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .featured-project {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

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

  .hero-visual > img {
    min-height: 0;
  }

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

  .project-detail-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-list {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 4vw;
    left: 4vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 17, 26, 0.98);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  }

  .theme-toggle {
    margin-left: auto;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem;
  }

  .brand-logo {
    width: 6.4rem;
    height: 2.5rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero-visual {
    min-height: 290px;
  }

  .hero-visual > img {
    min-height: 290px;
  }

  .profile-panel {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .profile-panel img {
    width: 3.3rem;
    height: 3.3rem;
  }

  .certificate-card,
  .reference-card,
  .timeline article,
  .interest-list article {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .mentor-note {
    grid-template-columns: 1fr;
  }

  .reference-mark {
    max-width: 240px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
