/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__vanta {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(7,7,14,0.75) 30%,
    rgba(7,7,14,0.96) 65%
  );
  z-index: 1;
  pointer-events: none;
}
.hero__pulses {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
.hero__content {
  position: relative;
  z-index: 3;
  margin-left: auto;
  padding-right: 80px;
  width: min(640px, 50%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: var(--accent-cyan);
}
.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
}
.hero__location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ── ABOUT ── */
#about { background: #0a0a14; padding-top: 100px; padding-bottom: 100px; }
.about__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__visual { position: sticky; top: 96px; }
.about__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}
.about__accent-bar {
  width: 52px;
  height: 2px;
  background: var(--accent-pink);
}
.about__bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(240, 240, 240, 0.82);
}
.about__bio p { margin: 0; }
.about__bio-heading {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.about__bio-heading::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent-pink);
  flex-shrink: 0;
}
.about__bio-outro {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.about__visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6),
              0 0 0 1px rgba(0,229,255,0.08) inset;
}
.about__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgba(0,229,255,0.12) 0%,
    transparent 35%,
    transparent 65%,
    rgba(224,64,251,0.18) 100%);
  mix-blend-mode: screen;
}
.about__photo {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.05) saturate(0.92);
}

/* ── MUSIC ── */
#music { background: var(--bg); padding-top: 100px; padding-bottom: 100px; }
.music__sub-heading {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.music__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.music__releases { margin-bottom: 2rem; }
.music__more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.music__more .btn[disabled] { opacity: 0.5; cursor: wait; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.12); }
.card__cover-link { display: block; }
.card__cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.card__cover-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2);
}
.card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.card__title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.card__link {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-top: 0.5rem;
}
.card--skeleton {
  height: 340px;
}
.card--skeleton,
.track--skeleton,
.repo-card--skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}

/* ── TRACKS ── */
.tracks-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.track {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.track:hover { background: var(--surface); }
.track__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.track__info { display: flex; flex-direction: column; gap: 0.125rem; }
.track__name {
  font-size: 0.875rem;
  font-weight: 500;
}
.track__album { font-size: 0.75rem; color: var(--text-muted); }
.track__duration {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.track--skeleton { height: 52px; }

/* ── WORK ── */
#work { background: #0a0a14; padding-top: 100px; padding-bottom: 100px; }
.work__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.filter-chip--active {
  background: var(--accent-pink);
  color: #fff;
  border-color: transparent;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.repo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.repo-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }
.repo-card__top {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.repo-card__name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-badge {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.lang-badge--Python     { background: rgba(0,229,255,0.1);  color: var(--accent-cyan); }
.lang-badge--TypeScript { background: rgba(224,64,251,0.1); color: var(--accent-pink); }
.lang-badge--other      { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.repo-card__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.repo-card__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.repo-card__link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-pink);
  margin-left: auto;
  transition: opacity 0.2s;
}
.repo-card__link:hover { opacity: 0.75; }
.repo-card--skeleton { height: 160px; }

/* ── CONTACT ── */
#contact { background: var(--bg); padding-top: 100px; padding-bottom: 100px; }
.contact__body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contact__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}
.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact__form-wrap { position: relative; }
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Contact success state ── */
.contact__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, rgba(0,229,255,0.04), rgba(15,15,26,0.6));
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: var(--radius-md);
  animation: success-rise 0.45s ease-out;
}
@keyframes success-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.contact__success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}
.contact__success-msg {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Animated checkmark */
.success-check {
  width: 64px;
  height: 64px;
}
.success-check svg { width: 100%; height: 100%; overflow: visible; }
.success-check__circle {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: check-circle 0.55s 0.05s ease-out forwards;
  filter: drop-shadow(0 0 6px rgba(0,229,255,0.5));
}
.success-check__path {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check-path 0.35s 0.55s ease-out forwards;
}
@keyframes check-circle { to { stroke-dashoffset: 0; } }
@keyframes check-path   { to { stroke-dashoffset: 0; } }
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-pink);
}
.form-field select option { background: var(--surface); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav { padding: 0 40px; }
  .section__header,
  #about .about__body,
  #music .music__releases,
  #music .music__tracks,
  #work .work__filters,
  #work .work__grid,
  #contact .contact__body { padding: 0 40px; }
  .footer { padding: 1.5rem 40px; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav { padding: 0 20px; }
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7,7,14,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; text-align: center; }
  .nav__link { display: block; padding: 1rem 0; font-size: 0.875rem; }
  .nav__hamburger { display: flex; }

  /* Hero mobile */
  .hero { align-items: flex-end; }
  .hero__overlay {
    width: 100%;
    background: linear-gradient(to top,
      rgba(7,7,14,0.97) 0%,
      rgba(7,7,14,0.7) 50%,
      transparent 100%
    );
  }
  .hero__content {
    width: 100%;
    padding: 0 20px 60px;
    margin: 0;
    text-align: center;
    align-items: center;
  }
  .hero__ctas { justify-content: center; }
  .hero__ctas .btn { flex: 1; min-width: 140px; }

  /* Sections */
  .section__header,
  #about .about__body,
  #music .music__releases,
  #music .music__tracks,
  #work .work__filters,
  #work .work__grid,
  #contact .contact__body { padding: 0 20px; }
  #about, #music, #work, #contact { padding-top: 72px; padding-bottom: 72px; }
  .footer { padding: 1.5rem 20px; }

  /* About */
  .about__body { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__visual { position: static; max-width: 480px; }

  /* Contact */
  .contact__body { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 2.5rem; }
  .music__cards { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
}
