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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d0e12;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 2.5rem 1.5rem;
}

.page-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  max-width: 800px;
  width: 100%;
}

.spotify-box {
  background: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.4rem;
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.spotify-box:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 185, 84, 0.35);
}

.spotify-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.spotify-logo-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spotify-logo {
  width: 22px;
  height: 22px;
  display: block;
}

.spotify-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.spotify-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.spotify-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.spotify-pill.active {
  background: rgba(29, 185, 84, 0.15);
  border-color: rgba(29, 185, 84, 0.3);
  color: #1db954;
}

.spotify-pill.active .spotify-pill-dot {
  background-color: #1db954;
  box-shadow: 0 0 8px #1db954;
}

.spotify-idle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
  gap: 0.85rem;
}

.spotify-idle-art {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
}

.idle-music-icon {
  opacity: 0.5;
}

.spotify-idle-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.spotify-track-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  gap: 0.85rem;
  width: 100%;
}

.spotify-art-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.spotify-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotify-art-equalizer {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 5px 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.spotify-track-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.spotify-now-playing-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #1db954;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spotify-track-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-track-artist {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-btn-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem;
  border-radius: 10px;
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.25);
  color: #1db954;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.spotify-track-card:hover .spotify-btn-open {
  background: #1db954;
  color: #000000;
  border-color: #1db954;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.equalizer-bar {
  width: 2px;
  background-color: #1db954;
  border-radius: 1px;
  animation: equalize 1.1s ease-in-out infinite;
}

.equalizer-bar:nth-child(1) { height: 50%; animation-delay: 0.2s; }
.equalizer-bar:nth-child(2) { height: 100%; animation-delay: 0.4s; }
.equalizer-bar:nth-child(3) { height: 40%; animation-delay: 0.1s; }

@keyframes equalize {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

.bio-card {
  background: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.thought-bubble {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1c26;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatThought 3s ease-in-out infinite;
}

.thought-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 46%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #1a1c26;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.thought-bubble::before {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 48%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #1a1c26;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@keyframes floatThought {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #16171d;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.status-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: -6px;
  background-color: #111218;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 20;
  transform: translateY(4px);
}

.status-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 12px;
  border-width: 5px;
  border-style: solid;
  border-color: #111218 transparent transparent transparent;
}

.status-indicator:hover .status-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.status-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.status-indicator.online .status-svg {
  filter: drop-shadow(0 0 6px rgba(35, 165, 90, 0.5));
}

.status-indicator.idle .status-svg {
  filter: drop-shadow(0 0 6px rgba(240, 178, 50, 0.5));
}

.status-indicator.dnd .status-svg {
  filter: drop-shadow(0 0 6px rgba(242, 63, 67, 0.5));
}

.status-indicator.offline .status-svg {
  filter: none;
}

.bio-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: block;
}

.bio-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.bio-desc {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  min-height: 3.2em;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  color: #ffffff;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.section {
  width: 100%;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.1rem;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.stack-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.stack-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.stack-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 32px;
}

.stack-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stack-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.link-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.link-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.85rem;
  display: block;
}

.link-text {
  flex-grow: 1;
  text-align: left;
}

.external-icon {
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-item:hover .external-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

.projects-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.projects-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.soon-badge {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 780px) {
  .page-container {
    flex-direction: column;
    align-items: center;
  }
  .spotify-box {
    width: 100%;
    max-width: 480px;
  }
  .bio-card {
    width: 100%;
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .stack-item {
    flex-direction: row;
    padding: 0.75rem 1rem;
    gap: 0.85rem;
  }
}
