:root {
  --bg: #07070b;
  --bg-2: #0d0e16;
  --text: #f4f5fb;
  --muted: #9aa0b5;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --violet: #7c5cff;
  --cyan: #00d4ff;
  --pink: #ff5ca8;
  --radius: 22px;
  --max: 1120px;
  --nav-h: 72px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(124, 92, 255, 0.18), transparent 60%), var(--bg);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.7), transparent 70%);
}

.blob-2 {
  width: 380px;
  height: 380px;
  top: 30%;
  right: -10%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.45), transparent 70%);
  animation-delay: -4s;
}

.blob-3 {
  width: 460px;
  height: 460px;
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 92, 168, 0.28), transparent 70%);
  animation-delay: -7s;
}

.grid-mask {
  position: absolute;
  inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 72%);
  opacity: 0.5;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.25);
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  max-width: calc(var(--max) + 2rem);
  margin: 14px auto 0;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 999px;
  width: calc(100% - 1.5rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.8);
}

nav {
  display: flex;
  gap: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), #5a8cff);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.08);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dff9a;
  box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.5);
  animation: ping 2s ease infinite;
}

.hero h1 {
  margin: 0 auto;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 10%, var(--cyan) 45%, var(--violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 1.4rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--violet), #4f8cff);
  color: white;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.35);
}

.btn.ghost {
  border-color: var(--line);
  background: var(--glass);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--glass-strong);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.hero-stats div {
  padding: 0.9rem 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 3.5rem 0 1rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}

.about-card {
  padding: 1.5rem;
  border-radius: var(--radius);
}

.about-card p {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

.about-side {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 500;
}

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

.project {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
}

.project-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-glow {
  position: absolute;
  inset: -20%;
  filter: blur(20px);
  opacity: 0.9;
}

.v1 .project-glow { background: radial-gradient(circle at 30% 40%, #7c5cff, transparent 55%), radial-gradient(circle at 70% 70%, #00d4ff, transparent 50%); }
.v2 .project-glow { background: radial-gradient(circle at 40% 30%, #ff5ca8, transparent 55%), radial-gradient(circle at 70% 70%, #7c5cff, transparent 50%); }
.v3 .project-glow { background: radial-gradient(circle at 30% 50%, #00d4ff, transparent 55%), radial-gradient(circle at 80% 30%, #7c5cff, transparent 50%); }
.v4 .project-glow { background: radial-gradient(circle at 50% 40%, #ffb86b, transparent 55%), radial-gradient(circle at 20% 80%, #7c5cff, transparent 50%); }

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(7, 7, 11, 0.55)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
}

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 1.15rem 1.2rem 1.3rem;
}

.project-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.project-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.tags span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.skill {
  padding: 1.2rem;
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.skill:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.35);
}

.skill h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.skill p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact {
  padding-bottom: 2rem;
}

.contact-panel {
  padding: clamp(1.8rem, 5vw, 3rem);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 212, 255, 0.06)),
    var(--glass);
}

.contact-panel h2 {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.contact-text {
  margin: 0.8rem auto 0;
  color: var(--muted);
  max-width: 28rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

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

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

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 255, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 255, 154, 0); }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .about-grid,
  .work-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav nav {
    display: none;
  }

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

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

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