/* ==========================================================================
   THE GEM VAULT — Roshdy Nehru, Mobile Developer
   Design tokens
   ========================================================================== */

:root {
  /* Surfaces */
  --void: #05060e;
  --void-soft: #0a0c1a;
  --panel: #0e1122;
  --panel-2: #131634;

  /* Gem tones */
  --violet: #9b5cff;
  --violet-soft: #c9aaff;
  --pink: #ff5da2;
  --mint: #35f0c2;
  --sapphire: #4fb8ff;
  --citrine: #ffcf4d;

  /* Text */
  --paper: #f4f1ff;
  --dim: #8b8ab0;
  --dimmer: #5f5e82;

  /* Lines / glass */
  --line: rgba(155, 92, 255, 0.22);
  --line-soft: rgba(244, 241, 255, 0.08);
  --glass: rgba(244, 241, 255, 0.045);
  --glass-strong: rgba(244, 241, 255, 0.08);

  /* Type */
  --f-display: "Unbounded", sans-serif;
  --f-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--f-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
}

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

::selection {
  background: var(--violet);
  color: var(--void);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--void);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--pink));
  border-radius: 6px;
}

/* ==========================================================================
   Ambient background canvas (fixed, behind everything)
   ========================================================================== */

#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   Progress HUD bar
   ========================================================================== */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--mint));
  z-index: 1000;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(155, 92, 255, 0.6);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  background: rgba(14, 17, 34, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  max-width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo img {
  height: 26px;
  width: auto;
}

.logo-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--mint);
  text-transform: uppercase;
  display: none;
}

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

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dim);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  transition: color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--paper);
  background: var(--glass-strong);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(120deg, var(--violet), var(--pink));
  color: var(--void) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 100px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --shadow-color: rgba(155, 92, 255, 0.35);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease,
    border-color 0.3s ease, background 0.3s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--violet-soft), var(--violet) 55%, var(--pink));
  color: #14081f;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03) rotate(-0.5deg);
  box-shadow: 0 16px 40px var(--shadow-color);
}

.btn-ghost {
  background: var(--glass);
  color: var(--paper);
  border: 1.5px solid var(--line-soft);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-4px) scale(1.03) rotate(0.5deg);
  background: rgba(53, 240, 194, 0.08);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ==========================================================================
   Eyebrow / labels
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 9rem 2rem 4rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow {
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: rise 0.7s ease 0.05s forwards;
}

.hero-copy h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.hero-copy h1 .grad {
  background: linear-gradient(100deg, var(--violet-soft), var(--pink) 55%, var(--citrine));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy > p {
  font-size: 1.08rem;
  color: var(--dim);
  max-width: 480px;
  margin-bottom: 2.1rem;
  opacity: 0;
  animation: rise 0.8s ease 0.28s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
  opacity: 0;
  animation: rise 0.8s ease 0.4s forwards;
}

.stat-strip {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s ease 0.52s forwards;
}

.stat-chip {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
}

.stat-chip strong {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--paper);
}

.stat-chip span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-transform: uppercase;
}

.stat-chip:nth-child(1) strong {
  color: var(--violet-soft);
}
.stat-chip:nth-child(2) strong {
  color: var(--mint);
}
.stat-chip:nth-child(3) strong {
  color: var(--pink);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-gem-stage {
  position: relative;
  height: min(560px, 70vh);
}

#hero-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#hero-canvas:active {
  cursor: grabbing;
}

.gem-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dimmer);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimmer);
  z-index: 2;
}

.scroll-cue span {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--violet), transparent);
  animation: pulseLine 2s ease-in-out infinite;
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

section {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.6rem;
}

.section-head .eyebrow {
  justify-content: center;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 0.8rem;
}

.section-head p {
  color: var(--dim);
  font-size: 1.02rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   About / Character sheet
   ========================================================================== */

.sheet {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 3.5rem;
  align-items: start;
}

.sheet-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.gem-frame {
  --gf-color: var(--violet);
  position: relative;
  width: 220px;
  height: 220px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  background: linear-gradient(160deg, var(--gf-color), var(--panel-2));
  padding: 3px;
}

.gem-frame .inner {
  width: 100%;
  height: 100%;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  overflow: hidden;
  background: var(--panel);
}

.gem-frame .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gem-frame::after {
  content: "";
  position: absolute;
  inset: -14px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  background: var(--gf-color);
  opacity: 0.18;
  filter: blur(18px);
  z-index: -1;
}

.level-badge {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--void);
  background: linear-gradient(120deg, var(--mint), var(--sapphire));
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-weight: 700;
}

.sheet-text > p {
  color: var(--dim);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
  max-width: 60ch;
}

.stat-wheel {
  margin-top: 2rem;
}

.stat-wheel-title {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 1.1rem;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.skill-group {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
}

.skill-group h4 {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group h4::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sg-color);
  transform: rotate(45deg);
}

.skill-group .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-group .tags span {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--dim);
  background: rgba(244, 241, 255, 0.04);
  border: 1px solid var(--line-soft);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.skill-group .tags span:hover {
  color: var(--paper);
  border-color: var(--sg-color);
  transform: translateY(-2px);
}

/* ==========================================================================
   Experience — The Quest Log
   ========================================================================== */

.quest-log {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2.6rem;
}

.quest-log::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--violet), var(--sapphire), var(--mint), var(--citrine));
  opacity: 0.35;
}

.quest-item {
  position: relative;
  padding-bottom: 2.2rem;
}

.quest-item:last-child {
  padding-bottom: 0;
}

.quest-marker {
  --qm-color: var(--violet);
  position: absolute;
  left: -2.6rem;
  top: 0.35rem;
  width: 17px;
  height: 17px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  background: var(--qm-color);
  box-shadow: 0 0 12px var(--qm-color);
}

.quest-card {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.7rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.quest-card:hover {
  border-color: var(--qm-color, var(--violet));
  background: rgba(244, 241, 255, 0.06);
}

.quest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.quest-role {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
}

.quest-dates {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dimmer);
  white-space: nowrap;
}

.quest-company {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--dim);
  margin-bottom: 0.9rem;
}

.quest-company strong {
  color: var(--paper);
  font-style: normal;
}

.quest-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quest-bullets li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

.quest-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--qm-color, var(--violet));
}

/* ==========================================================================
   Projects — The Vault
   ========================================================================== */

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

.gem-card {
  --gc-color: var(--violet);
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.9rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.35s ease, background 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.gem-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 60%;
  height: 220%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(244, 241, 255, 0.12),
    transparent
  );
  transform: rotate(20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.gem-card:hover::before {
  left: 130%;
}

.gem-card:hover {
  border-color: var(--gc-color);
  background: rgba(244, 241, 255, 0.06);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.icon-frame {
  position: relative;
  width: 62px;
  height: 62px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  background: linear-gradient(150deg, var(--gc-color), var(--panel-2));
  padding: 2px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gem-card:hover .icon-frame {
  transform: scale(1.1) rotate(-4deg);
}

.icon-frame .inner {
  width: 100%;
  height: 100%;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  overflow: hidden;
  background: var(--panel);
  display: flex;
}

.icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-links {
  display: flex;
  gap: 0.45rem;
}

.card-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 241, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--dim);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card-links a:hover {
  background: var(--gc-color);
  color: var(--void);
  border-color: var(--gc-color);
  transform: translateY(-3px);
}

.gem-card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
  color: var(--paper);
}

.gem-card p {
  color: var(--dim);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  min-height: 3em;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-row span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--gc-color);
  background: color-mix(in srgb, var(--gc-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gc-color) 30%, transparent);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
}

/* ==========================================================================
   Certifications — The Trophy Case
   ========================================================================== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
}

.cert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.icon-frame.cert-icon .inner {
  align-items: center;
  justify-content: center;
}

.icon-frame.cert-icon i {
  font-size: 1.4rem;
  color: var(--paper);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gc-color);
  background: color-mix(in srgb, var(--gc-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gc-color) 30%, transparent);
  padding: 0.32rem 0.6rem;
  border-radius: 100px;
  white-space: nowrap;
}

.cert-card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
  margin-bottom: 0.4rem;
}

.cert-issuer {
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.cert-verify {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--paper);
  text-decoration: none;
  padding: 0.6rem 1.05rem;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: rgba(244, 241, 255, 0.03);
  transition: all 0.3s ease;
}

.cert-verify:hover {
  background: var(--gc-color);
  color: var(--void);
  border-color: var(--gc-color);
  transform: translateY(-3px);
}

.cert-verify i {
  font-size: 0.7rem;
}

/* ==========================================================================
   Contact — Send a Signal
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.75rem;
}

.contact-info,
.contact-form {
  background: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2.3rem;
}

.contact-info h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.contact-info > p {
  color: var(--dim);
  margin-bottom: 1.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.contact-item .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 241, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--mint);
  flex-shrink: 0;
}

.contact-item a,
.contact-item span {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--violet-soft);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dimmer);
  margin-bottom: 0.55rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(244, 241, 255, 0.03);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 0.96rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.15);
  background: rgba(244, 241, 255, 0.06);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
}

.form-status.success {
  background: rgba(53, 240, 194, 0.12);
  color: var(--mint);
  border: 1px solid rgba(53, 240, 194, 0.3);
}

.form-status.error {
  background: rgba(255, 93, 162, 0.12);
  color: var(--pink);
  border: 1px solid rgba(255, 93, 162, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  border-top: 1px solid var(--line-soft);
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--line-soft);
  color: var(--dim);
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.social-row a:hover {
  color: var(--void);
  background: linear-gradient(120deg, var(--violet), var(--pink));
  border-color: transparent;
  transform: translateY(-3px) rotate(-6deg);
}

footer p {
  color: var(--dimmer);
  font-size: 0.82rem;
  font-family: var(--f-mono);
}

/* ==========================================================================
   Confetti canvas (contact success)
   ========================================================================== */

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

/* ==========================================================================
   Focus visibility
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 8rem;
    text-align: center;
  }
  .hero-copy > p {
    margin-inline: auto;
  }
  .hero-ctas,
  .stat-strip {
    justify-content: center;
  }
  .hero-gem-stage {
    height: 380px;
    order: -1;
  }
  .sheet {
    grid-template-columns: 1fr;
  }
  .sheet-portrait {
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .logo-tag {
    display: inline;
  }
  section {
    padding: 5rem 1.4rem;
  }
  .skill-groups {
    grid-template-columns: 1fr;
  }
  .stat-chip {
    flex: 1 1 auto;
  }
  .quest-log {
    padding-left: 1.9rem;
  }
  .quest-marker {
    left: -1.9rem;
  }
  .quest-card {
    padding: 1.25rem 1.3rem;
  }
  .quest-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
