* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #08080c;
  color: #d4d4d8;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: #6d28d9; color: #fff; }

/* ─── Falling Rain ─── */
#rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.phrase {
  position: absolute;
  top: -30px;
  color: #6d28d9;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0;
  white-space: nowrap;
  animation: fall linear infinite;
  letter-spacing: 0.08em;
}

@keyframes fall {
  0%   { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  5%   { opacity: 0.35; }
  90%  { opacity: 0.35; }
  100% { transform: translateY(100vh) rotate(4deg); opacity: 0; }
}

/* ─── Vines ─── */
.vine {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

.vine-left  { left: 0; background: repeating-linear-gradient(180deg, #6d28d9 0px, #6d28d9 2px, transparent 2px, transparent 20px); mask-image: linear-gradient(180deg, transparent 5%, #000 25%, #000 75%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 25%, #000 75%, transparent 95%); }
.vine-right { right: 0; background: repeating-linear-gradient(180deg, #6d28d9 0px, #6d28d9 2px, transparent 2px, transparent 20px); mask-image: linear-gradient(180deg, transparent 5%, #000 25%, #000 75%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 25%, #000 75%, transparent 95%); }

/* ─── Nav ─── */
nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #1a1a22;
  background: #08080c / .8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e8e8ec;
  background: linear-gradient(135deg, #c4b5fd, #6d28d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { font-size: 0.82rem; color: #888890; transition: color 0.2s; }
.nav-links a:hover { color: #c4b5fd; }

/* ─── Main ─── */
main {
  position: relative;
  z-index: 5;
  max-width: 600px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Avatar ─── */
.avatar-section {
  position: relative;
  margin-bottom: 1.25rem;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #6d28d955 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.avatar-ring {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: #12121a;
  box-shadow: 0 0 0 2px #6d28d9, 0 0 0 4px #08080c, 0 0 30px #6d28d944;
}

.avatar-img { width: 100%; height: 100%; object-fit: cover; }

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #55555e;
  padding: 18px;
}

.avatar-fallback svg { width: 100%; height: 100%; }

/* ─── Bio ─── */
.bio { text-align: center; margin-bottom: 1rem; width: 100%; }

.bio h1 {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e8e8ec, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.bio-line { font-size: 0.9rem; color: #a0a0aa; margin-bottom: 0.75rem; }

.interests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  color: #c4b5fd;
  border: 1px solid #6d28d944;
  background: #6d28d915;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* ─── Links ─── */
.links { display: flex; gap: 0.65rem; margin-bottom: 2rem; }

.link-btn {
  font-size: 0.82rem;
  color: #888890;
  border: 1px solid #1e1e26;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  transition: border-color 0.15s, color 0.15s;
}

.link-btn:hover { border-color: #6d28d9; color: #c4b5fd; }

/* ─── Accordion ─── */
.accordion { width: 100%; display: flex; flex-direction: column; gap: 0.5rem; }

.acc-item {
  border: 1px solid #1a1a22;
  border-radius: 8px;
  overflow: hidden;
  background: #0e0e14;
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: none;
  border: none;
  color: #e8e8ec;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.acc-head:hover { background: #12121e; }

.acc-chev {
  transition: transform 0.25s ease;
  color: #55555e;
}

.acc-item.open .acc-chev { transform: rotate(180deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1rem;
}

.acc-item.open .acc-body {
  max-height: 500px;
  padding: 0 1rem 1rem;
}

.acc-body p {
  font-size: 0.85rem;
  color: #888890;
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.acc-body p:last-child { margin-bottom: 0; }

/* ─── Project Cards (inside accordion) ─── */
.p-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #1a1a22;
  border-radius: 6px;
  transition: border-color 0.15s;
  margin-bottom: 0.4rem;
}

.p-card:last-child { margin-bottom: 0; }
.p-card:hover { border-color: #3b3b4a; }

.p-icon { font-size: 1rem; flex-shrink: 0; }
.p-name { font-size: 0.85rem; font-weight: 600; color: #e8e8ec; min-width: 82px; }
.p-desc { font-size: 0.78rem; color: #72727a; flex: 1; }
.p-arrow { color: #55555e; flex-shrink: 0; display: flex; transition: color 0.2s; }
.p-card:hover .p-arrow { color: #c4b5fd; }

.p-card.dim { opacity: 0.35; cursor: default; }
.p-card.dim:hover { border-color: #1a1a22; }

/* ─── Spotify ─── */
.spotify-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0e0e16;
  border: 1px solid #1a1a22;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
}

.spotify-left { display: flex; align-items: center; gap: 0.65rem; }

.spotify-info { display: flex; flex-direction: column; }
.spotify-title { font-size: 0.85rem; color: #e8e8ec; font-weight: 500; }
.spotify-artist { font-size: 0.75rem; color: #72727a; }
.spotify-status { font-size: 0.7rem; color: #22c55e; border: 1px solid #22c55e44; padding: 0.15rem 0.5rem; border-radius: 4px; }
.spotify-hint { font-size: 0.72rem; color: #55555e; font-style: italic; }

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid #1a1a22;
  background: #08080c / .8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #55555e;
}

.footer-quote {
  text-align: center;
  font-style: italic;
  color: #6d28d966;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-inner a { color: #888890; transition: color 0.2s; }
.footer-inner a:hover { color: #c4b5fd; }

/* ─── Responsive ─── */
@media (max-width: 520px) {
  .nav-links a { font-size: 0.75rem; }
  .vine { display: none; }
  .footer-quote { max-width: 120px; }
}

@media (max-width: 400px) {
  .nav-inner { padding: 0 1rem; }
  main { padding: 1.5rem 1rem; }
}
