@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg: #080a0f;
  --card: #10131a;
  --card-strong: #151923;
  --line: rgba(255,255,255,.11);
  --text: #f6f3ed;
  --muted: #8c929f;
  --acid: #c7ff3d;
  --violet: #8668ff;
  --cyan: #65f6e8;
  --warm: #ff8b5f;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(134,104,255,.13), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(199,255,61,.07), transparent 30%),
    var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
}

body.has-pointer-glow .ambient-glow {
  opacity: .16;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient-glow {
  position: fixed;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 28%);
  z-index: 0;
  width: 320px;
  height: 320px;
  pointer-events: none;
  opacity: .1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,255,61,.38), rgba(134,104,255,.14) 42%, transparent 70%);
  filter: blur(28px);
  transform: translate(-50%, -50%);
  animation: floatGlow 9s ease-in-out infinite alternate;
  transition: left .25s ease, top .25s ease, opacity .25s ease;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

header,
footer {
  width: min(1240px, calc(100% - 48px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header {
  height: 92px;
  border-bottom: 1px solid var(--line);
  animation: slideDown .7s ease both;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font: 700 17px "Syne", sans-serif;
  letter-spacing: 2.4px;
  white-space: nowrap;
}

.logo-mark {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 18px rgba(199,255,61,.18);
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.platforms {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #7c828e;
  font-size: 12px;
}

.platforms a {
  transition: color .2s ease;
}

.platforms a:hover {
  color: var(--acid);
}

.platforms b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #3f444e;
}

main {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 170px);
  margin: auto;
}

.intro {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 0 88px;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  color: #aeb4be;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  animation: fadeUp .7s .12s ease both;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
  animation: pulseGlow 1.8s ease-in-out infinite;
}

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

h1 {
  margin: 25px 0 18px;
  font: 800 clamp(54px, 7.2vw, 100px)/.86 "Syne", sans-serif;
  letter-spacing: -5px;
  animation: fadeUp .75s .22s ease both;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--acid);
  font-style: normal;
}

.name-line {
  white-space: nowrap;
  font-size: clamp(42px, 8.1vw, 112px);
  letter-spacing: -4px;
}

.intro > p {
  max-width: 660px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  animation: fadeUp .75s .34s ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(270px, 410px) 1fr;
  align-items: stretch;
  gap: 18px;
  text-align: left;
}

.portrait-card,
.quick-card,
.panel-section,
.contact {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(16,19,26,.78);
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
}

.portrait-card,
.quick-card {
  animation: fadeUp .8s .45s ease both;
}

.portrait-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 20%;
  opacity: .9;
  filter: saturate(.88) contrast(1.05);
  transition: transform .6s ease, filter .6s ease;
}

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

.portrait-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(8,10,15,.92));
}

.portrait-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 9px 13px;
  color: #0a0c10;
  border-radius: 999px;
  background: var(--acid);
  font: 800 12px "Syne", sans-serif;
}

.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 46px);
}

.eyebrow {
  color: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.quick-card h2,
.split-section h2,
.section-head h2,
.result-heading h2,
.contact h2 {
  margin: 14px 0 22px;
  font: 700 clamp(38px, 5vw, 64px)/1 "Syne", sans-serif;
  letter-spacing: -3px;
}

.mini-list,
.skill-grid,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-list span,
.skill-grid span {
  padding: 11px 13px;
  color: #b8bec8;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  font-size: 13px;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.mini-list span:hover,
.skill-grid span:hover {
  color: var(--acid);
  border-color: rgba(199,255,61,.45);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 15px;
  font: 800 14px "Syne", sans-serif;
  transition: .25s;
}

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

.primary {
  color: #0a0c10;
  background: var(--acid);
  box-shadow: 0 14px 40px rgba(199,255,61,.18);
}

.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.split-section p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.panel-section {
  padding: clamp(26px, 5vw, 42px);
  animation: fadeIn .8s ease both;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
  text-align: center;
}

.skill-grid {
  justify-content: center;
  margin-top: 22px;
}

.skill-grid span:nth-child(odd) {
  animation: softDrift 4.8s ease-in-out infinite;
}

.skill-grid span:nth-child(even) {
  animation: softDrift 5.4s ease-in-out infinite reverse;
}

.skill-grid span {
  color: var(--text);
  font-weight: 700;
}

.projects {
  padding: 80px 0 90px;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 18px;
  margin-bottom: 28px;
}

.result-heading h2 {
  margin-bottom: 0;
}

.match-count {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-count strong {
  font: 700 44px "Syne", sans-serif;
  color: var(--acid);
  min-width: 82px;
  text-align: right;
}

.match-count span {
  width: 70px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

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

.project-card {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(16,19,26,.8);
  animation: fadeUp .65s ease both;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}

.project-card:hover {
  border-color: rgba(199,255,61,.5);
  background: rgba(20,24,34,.92);
  transform: translateX(5px) translateY(-3px);
}

.project-card:nth-child(2) { animation-delay: .06s; }
.project-card:nth-child(3) { animation-delay: .12s; }
.project-card:nth-child(4) { animation-delay: .18s; }
.project-card:nth-child(5) { animation-delay: .24s; }

.project-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #0a0c10;
  border-radius: 14px;
  background: var(--acid);
  font: 800 15px "Syne", sans-serif;
}

.project-icon.violet {
  color: var(--text);
  background: var(--violet);
}

.project-icon.warm {
  color: #130b08;
  background: var(--warm);
}

.project-icon.blue {
  color: var(--text);
  background: #3b82f6;
}

.project-icon.green {
  color: #06120b;
  background: #22c55e;
}

.project-card h3 {
  margin: 0 0 5px;
  font: 700 17px "Syne", sans-serif;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.project-card a {
  color: var(--acid);
  font: 700 13px "Syne", sans-serif;
}

.contact {
  margin-bottom: 68px;
  padding: clamp(30px, 6vw, 58px);
  text-align: center;
  animation: fadeUp .7s ease both;
}

.contact h2 {
  max-width: 760px;
  margin-inline: auto;
}

.contact-title span {
  display: inline;
}

.contact-actions {
  justify-content: center;
  margin-top: 28px;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  font-weight: 700;
  transition: .2s;
}

.contact-actions a:hover {
  color: #0a0c10;
  background: var(--acid);
}

footer {
  height: 78px;
  color: #555b66;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1px;
}

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

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

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

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px var(--acid); }
  50% { box-shadow: 0 0 22px var(--acid); }
}

@keyframes floatGlow {
  from {
    transform: translate(-52%, -48%) scale(.92);
  }
  to {
    transform: translate(-46%, -54%) scale(1.12);
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  header,
  footer {
    width: calc(100% - 30px);
  }

  header {
    height: auto;
    align-items: center;
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
    text-align: center;
  }

  .platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .platforms b { display: none; }

  .intro {
    padding-top: 50px;
  }

  h1 {
    letter-spacing: -3px;
  }

  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-section {
    padding: 52px 0;
  }

  .project-card {
    grid-template-columns: 52px 1fr;
  }

  .project-icon {
    width: 48px;
    height: 48px;
  }

  .project-card a {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  main {
    width: calc(100% - 30px);
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
    letter-spacing: -2px;
  }

  .name-line {
    font-size: clamp(30px, 8.7vw, 42px);
    letter-spacing: -2px;
  }

  .quick-card h2,
  .split-section h2,
  .section-head h2,
  .result-heading h2,
  .contact h2 {
    letter-spacing: -2px;
  }

  .quick-card {
    text-align: center;
  }

  .quick-card .mini-list,
  .quick-card .hero-actions {
    justify-content: center;
  }

  .contact-title span {
    display: block;
    white-space: nowrap;
  }

  .contact h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(30px, 8.8vw, 36px);
  }

  .portrait-card,
  .portrait-card img {
    min-height: 360px;
  }

  .logo {
    font-size: 14px;
    letter-spacing: 1.8px;
  }

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

  .platforms a {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
  }

  .project-card {
    gap: 14px;
    padding: 16px;
  }

  .project-card h3 {
    font-size: 15px;
  }

  .action,
  .contact-actions a {
    width: 100%;
  }

  footer {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: #737986;
    line-height: 1.7;
  }
}
