:root {
  --bg: #05060a;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.2);
  --text: #ffffff;
  --muted: #cccccc;
  --accent: #00bcd4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
}

/* ===== BACKGROUND VIDEO ===== */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--bg);
  filter: saturate(0.8);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== BACKGROUND OVERLAY ===== */
#bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(2px);
  background: rgba(255,255,255,0.01);
}

/* ===== RAIN ===== */
#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}

/* ===== SCENE ===== */
.scene {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* ===== GLASS ===== */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  color: var(--text);
  text-shadow: var(--text-shadow);
}

/* ===== CENTER ===== */
.center-card {
  position: relative;
  z-index: 10;
  width: 340px;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(25px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.pfp {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 0 6px rgba(0,188,212,0.12);
}

.center-card h1 {
  margin: 16px 0 6px;
  font-size: 22px;
}

.center-card p {
  font-size: 14px;
  color: var(--muted);
}

.view-projects {
  margin: 16px 0;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.view-projects:hover {
  background: rgba(0,188,212,0.8);
}

/* ===== SOCIALS ===== */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}

.socials a:hover {
  background: rgba(255,255,255,0.1);
}

a:link {
  color: #77a0ff;
}

/* ===== ORBIT ===== */
.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-card a {
  pointer-events: auto;
}

.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 16px;
  border-radius: 12px;
  pointer-events: auto;
}

.orbit-card h3 {
  margin: 0;
  font-size: 14px;
}

.orbit-card span {
  font-size: 12px;
  color: var(--muted);
}


/* ================= CARD TYPES ================= */

/* --- SPOTIFY --- */
.card-spotify {
  background:
    linear-gradient(180deg, rgba(30,215,96,0.18), rgba(0,0,0,0.1)),
    var(--glass);
  border-color: rgba(30,215,96,0.35);
}

.spotify-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.spotify-header img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.spotify-header span {
  font-size: 12px;
  color: #bfffd9;
}

.spotify-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.spotify-controls button {
  background: none;
  border: none;
  color: #1ed760;
  font-size: 14px;
  cursor: pointer;
}

.volume {
  font-size: 14px;
  margin-left: 10px;
}

.spotify-bar {
  display: flex;
  justify-content: space-around;
  align-items: end;
  margin-top: 10px;
  height: 20px;
}

.spotify-bar div {
  width: 4px;
  background: #1ed760;
  border-radius: 2px;
  animation: soundwave 1s ease-in-out infinite;
}

.spotify-bar div:nth-child(1) { animation-delay: 0s; }
.spotify-bar div:nth-child(2) { animation-delay: 0.1s; }
.spotify-bar div:nth-child(3) { animation-delay: 0.2s; }
.spotify-bar div:nth-child(4) { animation-delay: 0.3s; }
.spotify-bar div:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundwave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.spotify-time {
  margin-top: 8px;
  font-size: 11px;
  color: #bfffd9;
  text-align: center;
}

/* --- GITHUB --- */
.card-github {
  background:
    linear-gradient(180deg, rgba(90,90,90,0.18), rgba(0,0,0,0.1)),
    var(--glass);
}

.github-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.github-header i {
  font-size: 16px;
}

.github-stats {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* --- PROJECT --- */
.card-project {
  background:
    linear-gradient(180deg, rgba(122,162,255,0.2), rgba(0,0,0,0.1)),
    var(--glass);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-header i {
  font-size: 16px;
}

.project-tags {
  margin-top: 8px;
}

.project-tags em {
  margin-right: 6px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: rgba(122,162,255,0.2);
}

.project-link {
  display: block;
  margin-top: 8px;
  color: #77a0ff;
  text-decoration: none;
  font-size: 12px;
}

/* --- DISCORD --- */
.card-discord {
  background:
    linear-gradient(180deg, rgba(88,101,242,0.25), rgba(0,0,0,0.1)),
    var(--glass);
}

.discord-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-header img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.card-discord button {
  margin-top: 8px;
  background: #5865f2;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  width: 100%;
}

/* --- QUOTE --- */
.card-quote {
  font-style: italic;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.08)),
    var(--glass);
  text-align: center;
}

.quote-icon {
  font-size: 24px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.card-quote .quote {
  font-size: 14px;
  line-height: 1.4;
}

.card-quote .author {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
}

/* ===== HOVER EFFECTS ===== */
.orbit-card:hover {
  background: rgba(255,255,255,0.05);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(25px);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}
