:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-soft: #0a1025;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.17);
  --text: #f7f9ff;
  --muted: #b8c3df;
  --blue: #19d9ff;
  --purple: #a855f7;
  --pink: #ff4fd8;
  --green: #42f59e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(25, 217, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(168, 85, 247, 0.2), transparent 30%),
    linear-gradient(135deg, #050816 0%, #090c1d 45%, #0c1228 100%);
  color: var(--text);
  overflow-x: hidden;
  --cursor-x: 50%;
  --cursor-y: 38%;
  animation: pageEnter 0.65s ease-out both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -2;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(5, 8, 22, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
  animation: headerEnter 0.7s ease-out both;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header:hover {
  background: rgba(5, 8, 22, 0.84);
  border-color: rgba(25, 217, 255, 0.2);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(25, 217, 255, 0.55);
  border-radius: var(--radius);
  font: 800 18px "Space Grotesk", sans-serif;
  box-shadow: 0 0 26px rgba(25, 217, 255, 0.24);
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

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

.nav-links a {
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #ff2f5d);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  position: relative;
  padding: 110px clamp(18px, 5vw, 72px);
  scroll-margin-top: 96px;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 120px;
}

.cinematic-hero {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(25, 217, 255, 0.22), transparent 24%),
    linear-gradient(125deg, rgba(4, 8, 20, 0.92), rgba(7, 19, 43, 0.88), rgba(29, 6, 24, 0.82));
  background-size: 180% 180%;
  animation: cinematicGradient 14s ease-in-out infinite alternate;
}

.hero-depth,
.hero-depth span {
  position: absolute;
  pointer-events: none;
}

.hero-depth {
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-glow-layer {
  width: 44vw;
  height: 44vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.52;
  mix-blend-mode: screen;
  animation: driftGlow 12s ease-in-out infinite alternate;
}

.layer-one {
  top: 2%;
  left: 4%;
  background: rgba(25, 217, 255, 0.45);
}

.layer-two {
  right: -8%;
  bottom: 8%;
  background: rgba(255, 41, 96, 0.42);
  animation-duration: 16s;
  animation-delay: -4s;
}

.hero-light-hotspot {
  inset: -20%;
  background: radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255, 255, 255, 0.14), transparent 28%);
  mix-blend-mode: screen;
}

.hero-noise {
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,0.22) 0 1px, transparent 1px 5px),
    linear-gradient(120deg, transparent, rgba(255,255,255,0.04), transparent);
  background-size: 160px 160px, 100% 100%;
}

.hero-streak {
  width: 58vw;
  height: 2px;
  right: -16vw;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(25, 217, 255, 0.88), rgba(255, 47, 93, 0.7), transparent);
  box-shadow: 0 0 22px rgba(25, 217, 255, 0.62);
  transform: rotate(-18deg);
  animation: speedStreak 3.8s linear infinite;
}

.streak-one { top: 24%; animation-delay: -1.2s; }
.streak-two { top: 48%; animation-duration: 4.8s; animation-delay: -2.8s; }
.streak-three { top: 70%; animation-duration: 3.2s; animation-delay: -0.4s; }

.hero-scanline {
  inset: 0;
  background: linear-gradient(180deg, transparent 0 48%, rgba(25, 217, 255, 0.11) 50%, transparent 52% 100%);
  animation: scanTravel 7s linear infinite;
}

.hero-main-layer {
  will-change: transform, opacity;
}

.hero-title {
  overflow: visible;
  line-height: 1;
  padding-bottom: 0.08em;
}

.hero-title .title-char {
  display: inline-block;
  transform: translateY(110%) scale(0.9);
  opacity: 0;
  will-change: transform, opacity;
}

.hero-title .title-word {
  display: inline-block;
  margin-right: 0.18em;
  white-space: nowrap;
}

.hero-title .title-word:last-child {
  margin-right: 0;
}

.hero-grid,
.story-layout,
.dream-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 96px;
  line-height: 1;
  text-shadow: 0 0 34px rgba(25, 217, 255, 0.25);
}

.page-hero {
  min-height: 62vh;
  display: grid;
  align-items: center;
  padding-top: 140px;
}

.page-hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
}

.page-hero .section-heading p:last-child {
  max-width: 850px;
  margin-inline: auto;
  font-size: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.hero-subtitle,
.hero-statement,
.section-heading p,
.glass-panel p,
.project-card p,
.brand-card p,
.code-card p,
.why-card p,
.edu-card p,
blockquote {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 24px 0 0;
  font-weight: 700;
}

.hero-subtitle span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
}

.hero-statement {
  max-width: 690px;
  font-size: 19px;
  margin: 26px 0;
}

.typing-line {
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 26px rgba(25, 217, 255, 0.08);
}

.typing-line strong {
  color: var(--green);
}

.hero-actions,
.link-row,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn,
.project-card a,
.brand-card a,
.code-card a,
.social-links a,
.filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover,
.project-card a:hover,
.brand-card a:hover,
.code-card a:hover,
.social-links a:hover,
.filters button:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 217, 255, 0.75);
}

.btn.primary,
.filters .active {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-color: transparent;
  color: #04101f;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
}

.btn.line {
  background: transparent;
}

.profile-orbit {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.profile-card {
  width: min(390px, 82vw);
  aspect-ratio: 0.78;
  padding: 10px;
  border: 1px solid rgba(25, 217, 255, 0.4);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  box-shadow: var(--shadow), 0 0 60px rgba(168, 85, 247, 0.28);
  transform: rotate(2deg);
  overflow: hidden;
}

.profile-photo,
.profile-placeholder {
  height: 100%;
  width: 100%;
  border-radius: 6px;
}

.profile-photo {
  display: block;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.05) contrast(1.02);
}

.profile-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.22), rgba(168, 85, 247, 0.22)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255,255,255,0.04) 19px 20px);
  color: var(--text);
  text-align: center;
}

.profile-placeholder span {
  font: 800 28px "Space Grotesk", sans-serif;
}

.profile-placeholder small {
  color: var(--muted);
}

.tech-chip {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 8, 22, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  color: var(--blue);
  font-weight: 800;
  animation: float 4s ease-in-out infinite;
}

.chip-1 { top: 8%; left: 13%; }
.chip-2 { top: 20%; right: 5%; animation-delay: .4s; }
.chip-3 { left: 0; bottom: 26%; animation-delay: .8s; }
.chip-4 { right: 0; bottom: 31%; animation-delay: 1.2s; }
.chip-5 { bottom: 8%; left: 28%; animation-delay: 1.6s; }
.chip-6 { top: 45%; right: 14%; animation-delay: 2s; }

.section-heading {
  max-width: 980px;
  margin: 0 auto 46px;
  text-align: center;
}

.glass-panel,
.skill-card,
.brand-card,
.project-card,
.code-card,
.counter-card,
.edu-card,
.why-card,
.contact-card,
.contact-form,
.manifesto-card,
.coding-intro,
.tech-stack,
.repo-highlights {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-panel {
  padding: clamp(24px, 4vw, 42px);
}

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

.timeline-item {
  position: relative;
  padding: 18px 18px 18px 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 14px;
  height: 14px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.timeline-item span {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.progress-stack {
  display: grid;
  gap: 18px;
}

.progress-item span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-weight: 800;
}

.progress-item div {
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress-item i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  transition: width 1.2s ease;
}

.counter-grid,
.skills-grid,
.brand-grid,
.project-grid,
.coding-grid,
.education-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

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

.impact-counters {
  max-width: 1000px;
}

.skill-card,
.brand-card,
.project-card,
.code-card,
.counter-card,
.edu-card,
.why-card,
.repo-grid article {
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-card:hover,
.brand-card:hover,
.project-card:hover,
.code-card:hover,
.edu-card:hover,
.why-card:hover,
.repo-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 217, 255, 0.58);
  background: var(--panel-strong);
}

.skill-card h3,
.brand-card h3,
.project-card h3,
.code-card h3,
.why-card h3 {
  color: var(--text);
}

.skill-card p,
.brand-card p,
.project-card p,
.code-card p,
.why-card p {
  margin-bottom: 0;
}

.counter-card strong {
  display: block;
  color: var(--blue);
  font: 800 46px "Space Grotesk", sans-serif;
}

.counter-card span,
.code-card span,
.edu-card span {
  color: var(--muted);
  font-weight: 800;
}

.work,
.coding,
.contact {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.signal-section {
  padding-block: 40px 80px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1220px;
  margin: 0 auto;
}

.signal-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(25, 217, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.08), rgba(168, 85, 247, 0.12)),
    rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 217, 255, 0.22), transparent 68%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.signal-card i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid rgba(66, 245, 158, 0.34);
  border-radius: var(--radius);
  background: rgba(66, 245, 158, 0.1);
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.signal-card h3 {
  margin-bottom: 10px;
}

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

.coding-intro,
.tech-stack,
.repo-highlights {
  max-width: 1220px;
  margin: 0 auto 18px;
  padding: clamp(24px, 4vw, 36px);
}

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

.coding-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.code-card.featured {
  border-color: rgba(25, 217, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.1), rgba(168, 85, 247, 0.12)),
    var(--panel);
}

.code-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.code-card li,
.stack-cloud span {
  border: 1px solid rgba(25, 217, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(25, 217, 255, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.code-card li {
  padding: 7px 9px;
}

.tech-stack {
  margin-top: 18px;
}

.tech-stack h3,
.repo-highlights h3 {
  margin-bottom: 18px;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  padding: 9px 11px;
}

.repo-highlights {
  margin-top: 18px;
}

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

.repo-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.repo-grid b {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
}

.repo-grid span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.preview-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.preview-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(25, 217, 255, 0.58);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42), 0 0 32px rgba(25, 217, 255, 0.12);
}

.preview-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #081124;
  transition: transform 0.55s ease, filter 0.45s ease;
}

.preview-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.preview-card h3,
.preview-card p {
  padding-inline: 20px;
}

.preview-card h3 {
  margin-top: 18px;
}

.preview-card p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.design-preview-strip {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.design-preview-strip img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: #081124;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.design-preview-strip img:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 217, 255, 0.58);
}

.design-hero {
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.09), rgba(255, 79, 216, 0.08)),
    transparent;
}

.design-service-grid,
.design-gallery {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.design-service-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.08), rgba(255, 79, 216, 0.08)),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.design-service-card:hover,
.design-item:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 217, 255, 0.58);
  background: var(--panel-strong);
}

.design-service-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border: 1px solid rgba(66, 245, 158, 0.34);
  border-radius: var(--radius);
  color: var(--green);
  font-weight: 900;
}

.design-service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.design-page-gallery .gallery-item {
  margin: 0;
}

.design-page-gallery .gallery-item img {
  aspect-ratio: 1 / 1;
}

.design-page-gallery .gallery-item.wide img {
  aspect-ratio: 16 / 10;
}

.design-page-gallery .masonry {
  columns: 4 240px;
}

.design-page-gallery .gallery-item {
  background:
    linear-gradient(145deg, rgba(25, 217, 255, 0.08), rgba(168, 85, 247, 0.08)),
    rgba(255, 255, 255, 0.07);
}

.video-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 47, 93, 0.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(25, 217, 255, 0.16), transparent 30%);
}

.video-grid,
.video-preview-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.video-card-link {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(25, 217, 255, 0.08), rgba(255, 47, 93, 0.08)),
    rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.video-card-link:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 217, 255, 0.6);
}

.video-card-link iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 6px;
  background: #050816;
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  background: #050816;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.4s ease;
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 6, 16, 0.72));
  transition: background 0.35s ease;
}

.video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 47, 93, 0.9);
  box-shadow: 0 0 34px rgba(255, 47, 93, 0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.video-play::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid white;
}

.video-thumb:hover img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04);
}

.video-thumb:hover .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(25, 217, 255, 0.92);
  box-shadow: 0 0 38px rgba(25, 217, 255, 0.5);
}

.video-card-link h3 {
  margin: 16px 4px 12px;
  font-size: 19px;
}

.video-card-link .btn {
  width: 100%;
}

.process-line {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.process-line span {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(25, 217, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(25, 217, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.compact-grid {
  max-width: 1100px;
}

.impact-strip {
  max-width: 1220px;
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.impact-strip span {
  padding: 10px 14px;
  border: 1px solid rgba(66, 245, 158, 0.38);
  border-radius: var(--radius);
  background: rgba(66, 245, 158, 0.08);
  color: var(--green);
  font-weight: 800;
}

.brand-card q {
  display: block;
  margin: 18px 0;
  color: var(--blue);
  line-height: 1.55;
}

.link-row {
  margin-top: 16px;
}

.gallery-section {
  overflow: hidden;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filters button {
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.masonry {
  max-width: 1220px;
  margin: 0 auto;
  columns: 3 280px;
  column-gap: 18px;
}

.gallery-item {
  width: 100%;
  min-height: 0;
  margin: 0 0 18px;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  break-inside: avoid;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-7px) scale(1.008);
  border-color: rgba(25, 217, 255, 0.58);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), 0 0 28px rgba(25, 217, 255, 0.1);
}

.gallery-item.tall {
  max-width: 360px;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #081124;
  transition: transform 0.55s ease, filter 0.45s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.gallery-item.tall img {
  aspect-ratio: 9 / 16;
}

.gallery-item video {
  min-height: 220px;
}

.gallery-item span {
  display: block;
  padding: 16px 16px 4px;
  font-weight: 900;
  font-size: 20px;
}

.gallery-item small {
  display: block;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.5;
}

.manifesto {
  padding-block: 80px;
}

.manifesto-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(30px, 7vw, 76px);
  background:
    linear-gradient(135deg, rgba(25, 217, 255, 0.16), rgba(168, 85, 247, 0.2)),
    rgba(255,255,255,0.08);
}

.manifesto-card h2 {
  min-height: 145px;
}

.final-hero {
  min-height: 75vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(25, 217, 255, 0.25), transparent 32%),
    linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(255, 79, 216, 0.1));
}

.final-copy {
  max-width: 860px;
}

.final-copy p {
  color: var(--blue);
  font-weight: 800;
}

.contact-card,
.contact-form {
  padding: 28px;
}

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

.contact-card strong {
  color: var(--text);
}

.contact-link-groups {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.contact-link-groups h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.social-links a span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(25, 217, 255, 0.14);
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 14px;
  font: inherit;
}

textarea {
  resize: vertical;
}

footer {
  padding: 36px 18px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.lightbox.active {
  display: grid;
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 28px;
}

.lightbox-content {
  width: min(760px, 92vw);
  max-height: 86vh;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071026;
  font: 800 34px "Space Grotesk", sans-serif;
  text-align: center;
  overflow: hidden;
}

.lightbox-content figure {
  width: 100%;
  margin: 0;
}

.lightbox-content img,
.lightbox-content video {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #050816;
}

.lightbox-content figcaption {
  padding: 14px 18px;
  color: var(--text);
  font: 800 16px "Inter", sans-serif;
  background: rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  filter: blur(5px);
  transition: opacity 0.85s cubic-bezier(.22,.61,.36,1), transform 0.85s cubic-bezier(.22,.61,.36,1), filter 0.75s ease;
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.brand-card,
.code-card,
.why-card,
.edu-card,
.signal-card,
.counter-card,
.contact-card,
.repo-grid article {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.brand-card:hover,
.code-card:hover,
.why-card:hover,
.edu-card:hover,
.signal-card:hover,
.counter-card:hover,
.contact-card:hover,
.repo-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(25, 217, 255, 0.52);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4), 0 0 28px rgba(25, 217, 255, 0.1);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes headerEnter {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes cinematicGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 45%; }
}

@keyframes driftGlow {
  0% { transform: translate3d(-2%, 2%, 0) scale(1); }
  100% { transform: translate3d(8%, -5%, 0) scale(1.18); }
}

@keyframes speedStreak {
  0% { transform: translate3d(22vw, 0, 0) rotate(-18deg); opacity: 0; }
  12% { opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { transform: translate3d(-130vw, 0, 0) rotate(-18deg); opacity: 0; }
}

@keyframes scanTravel {
  0% { transform: translateY(-110%); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: 0.55; }
  100% { transform: translateY(110%); opacity: 0; }
}

@media (max-width: 980px) {
  h1 {
    font-size: 76px;
  }

  .hero-grid,
  .story-layout,
  .dream-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .counter-grid,
  .skills-grid,
  .brand-grid,
  .project-grid,
  .coding-grid,
  .education-grid,
  .why-grid,
  .preview-grid,
  .video-preview-grid,
  .video-grid,
  .design-service-grid,
  .design-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .coding-intro,
  .repo-grid,
  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-streak {
    opacity: 0.65;
  }

  .profile-orbit {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(5, 8, 22, 0.94);
  }

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

  .section {
    padding: 86px 18px;
  }

  .hero {
    padding-top: 110px;
  }

  h1 {
    font-size: 56px;
  }

  .counter-grid,
  .skills-grid,
  .brand-grid,
  .project-grid,
  .coding-grid,
  .education-grid,
  .why-grid,
  .preview-grid,
  .video-preview-grid,
  .video-grid,
  .design-service-grid,
  .design-gallery,
  .design-preview-strip {
    grid-template-columns: 1fr;
  }

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

  .coding-intro,
  .repo-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .profile-orbit {
    min-height: 420px;
  }

  .hero-glow-layer {
    min-width: 260px;
    min-height: 260px;
  }

  .hero-streak,
  .hero-scanline {
    display: none;
  }

  .tech-chip {
    font-size: 12px;
    padding: 8px 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .manifesto-card h2 {
    min-height: 210px;
  }
}

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

  .cinematic-hero,
  .hero-glow-layer,
  .hero-streak,
  .hero-scanline {
    animation: none !important;
  }
}
