:root {
  --bg: #06110c;
  --bg-soft: rgba(10, 22, 16, 0.86);
  --panel: rgba(11, 18, 14, 0.76);
  --panel-strong: rgba(11, 19, 14, 0.92);
  --line: rgba(111, 255, 168, 0.16);
  --text: #f2fff6;
  --muted: #a0c8ac;
  --accent: #56ff9c;
  --accent-strong: #22d86f;
  --accent-glow: rgba(86, 255, 156, 0.34);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(71, 255, 135, 0.12), transparent 28%),
    linear-gradient(135deg, #030806 0%, #07140d 45%, #020504 100%);
}

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

.background-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.background-glow-a {
  top: 5%;
  right: -8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(56, 255, 136, 0.2);
}

.background-glow-b {
  bottom: 5%;
  left: -4rem;
  width: 22rem;
  height: 22rem;
  background: rgba(32, 166, 86, 0.16);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 255, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 255, 168, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  pointer-events: none;
  z-index: 0;
}

.cursor-aura,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease;
}

.cursor-aura {
  z-index: 2;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(111, 255, 168, 0.16) 0%, rgba(111, 255, 168, 0.07) 28%, rgba(111, 255, 168, 0.02) 48%, transparent 72%);
  filter: blur(8px);
  mix-blend-mode: screen;
}

.cursor-dot {
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(188, 255, 214, 0.7);
  box-shadow:
    0 0 0 1px rgba(111, 255, 168, 0.1) inset,
    0 0 18px rgba(86, 255, 156, 0.14);
}

.cursor-dot::before {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9fff1;
  box-shadow: 0 0 14px rgba(111, 255, 168, 0.85);
  transform: translate(calc(-50% + var(--inner-dot-x, 0px)), calc(-50% + var(--inner-dot-y, 0px)));
  transition: transform 0.08s linear;
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.4rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  margin-bottom: 2rem;
  background: rgba(9, 15, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
.eyebrow,
.section-tag,
.track-label,
.mini-label,
.project-index {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.topnav a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero-copy,
.hero-card,
.section-card,
.project-card,
.now-playing,
.player-dock {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.5rem;
  border-radius: 32px;
}

.eyebrow,
.section-tag,
.track-label,
.mini-label,
.project-index {
  color: var(--accent);
  font-size: 0.74rem;
}

h1,
h2,
h3,
.topnav,
.hero-actions,
.hero-card strong,
.track-meta h2 {
  font-family: "Sora", "Segoe UI", sans-serif;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 5.7rem);
  line-height: 0.98;
}

h1 span {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(86, 255, 156, 0.22);
}

.hero-text {
  max-width: 58ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #041009;
  box-shadow: 0 14px 34px rgba(46, 224, 112, 0.24);
}

.ghost-button {
  border: 1px solid rgba(111, 255, 168, 0.22);
  color: var(--text);
}

.primary-button:hover,
.ghost-button:hover,
.dock-button:hover {
  transform: translateY(-2px);
}

.hero-card,
.section-card {
  border-radius: 28px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(86, 255, 156, 0.75);
}

.hero-card-body {
  display: grid;
  gap: 1.2rem;
}

.hero-card strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.45;
}

.section-card,
.projects {
  margin-top: 1.5rem;
}

.section-card {
  padding: 1.8rem;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.split-content h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.08;
}

.split-content p,
.project-card p,
.contact-links {
  color: var(--muted);
  line-height: 1.8;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

.stack-list span {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 255, 168, 0.14);
  background: rgba(12, 23, 17, 0.84);
  color: #dcffe7;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.stack-list span:hover {
  transform: translateY(-3px) scale(1.03);
  color: #ffffff;
  border-color: rgba(111, 255, 168, 0.45);
  background: rgba(18, 38, 25, 0.96);
  box-shadow:
    0 0 0 1px rgba(111, 255, 168, 0.18) inset,
    0 0 22px rgba(86, 255, 156, 0.22),
    0 10px 24px rgba(8, 20, 12, 0.38);
}

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

.project-card {
  padding: 1.6rem;
  border-radius: 26px;
}

.project-card h3 {
  margin: 0.4rem 0 0.8rem;
  font-size: 1.4rem;
}

.contact-links {
  display: grid;
  gap: 0.7rem;
}

.player-dock {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 4;
  display: grid;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: 24px;
}

.dock-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 15px;
  color: var(--accent);
  background: rgba(18, 22, 20, 0.95);
  cursor: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dock-button.is-active {
  background: rgba(29, 41, 34, 1);
  box-shadow: inset 0 0 0 1px rgba(111, 255, 168, 0.12), 0 0 20px rgba(86, 255, 156, 0.08);
}

.dock-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.icon-play {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.icon-pause {
  width: 14px;
  height: 16px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}

.icon-volume {
  position: relative;
  width: 16px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
  clip-path: polygon(0 30%, 35% 30%, 62% 0, 62% 100%, 35% 70%, 0 70%);
}

.icon-volume::before,
.icon-volume::after {
  content: "";
  position: absolute;
  border: 2px solid transparent;
  border-right-color: currentColor;
  border-radius: 50%;
}

.icon-volume::before {
  width: 8px;
  height: 8px;
  right: -6px;
  top: 0;
}

.icon-volume::after {
  width: 12px;
  height: 12px;
  right: -9px;
  top: -1px;
}

.volume-button input {
  position: absolute;
  left: 60px;
  width: 96px;
  opacity: 0;
  pointer-events: none;
  cursor: none;
  transition: opacity 0.2s ease;
}

.volume-button:hover input,
.volume-button:focus-within input {
  opacity: 1;
  pointer-events: auto;
}

.now-playing {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(320px, calc(100% - 2rem));
  padding: 0.75rem 0.85rem;
  border-radius: 20px;
}

.cover-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #031008;
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, #76ffb0 0%, #26d46d 100%);
}

.track-meta {
  min-width: 0;
}

.track-meta h2 {
  margin: 0.1rem 0;
  font-size: 1.35rem;
}

.track-meta p:last-child {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.equalizer {
  display: flex;
  align-items: end;
  gap: 3px;
  margin-left: auto;
}

.equalizer span {
  width: 3px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(86, 255, 156, 0.2);
  animation: equalize 0.85s ease-in-out infinite;
  animation-play-state: paused;
}

.equalizer span:nth-child(2) {
  animation-delay: 0.15s;
}

.equalizer span:nth-child(3) {
  animation-delay: 0.3s;
}

.equalizer.is-playing span {
  animation-play-state: running;
}

@keyframes equalize {
  0%, 100% {
    height: 10px;
    opacity: 0.45;
  }
  50% {
    height: 24px;
    opacity: 1;
  }
}

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

  .layout {
    width: min(100% - 1.5rem, 1180px);
  }

  .hero-copy,
  .section-card,
  .project-card {
    padding: 1.4rem;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    gap: 0.7rem;
  }

  .now-playing {
    position: static;
    width: auto;
    margin: 0 0 1rem;
  }

  .layout {
    padding-top: 1rem;
  }

  .player-dock {
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    grid-auto-flow: column;
    align-items: center;
  }

  .volume-button input {
    left: 50%;
    bottom: 72px;
    width: 100px;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center;
  }

  h1 {
    max-width: 100%;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-aura,
  .cursor-dot {
    display: none;
  }
}
