/* ============================================================
   MYNOBIPORT — ULTRA PREMIUM SPACE THEME v4.0
   "Beyond the Stars"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg:             #020409;
  --space:          #030611;
  --panel:          #080c1a;

  --violet:         #7b5ea7;
  --indigo:         #6366f1;
  --purple:         #8b5cf6;
  --purple-bright:  #a78bfa;
  --cyan:           #06b6d4;
  --cyan-bright:    #22d3ee;
  --teal:           #0d9488;
  --gold:           #f59e0b;
  --gold-bright:    #fbbf24;
  --rose:           #f43f5e;
  --white:          #f0f4ff;
  --off-white:      #c8d4f5;
  --muted:          #64748b;
  --muted-bright:   #94a3b8;

  --glass-1:   rgba(255,255,255,0.025);
  --glass-2:   rgba(255,255,255,0.045);
  --border-1:  rgba(139,148,189,0.07);
  --border-2:  rgba(139,148,189,0.13);
  --border-accent: rgba(139,92,246,0.28);

  --glow-purple: rgba(139,92,246,0.35);
  --glow-cyan:   rgba(6,182,212,0.28);
  --glow-gold:   rgba(245,158,11,0.35);

  --shadow-deep: 0 25px 80px rgba(0,0,0,0.85);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.75);
  --shadow-sm:   0 4px 16px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--white);
  line-height: 1.65;
  padding: 32px 40px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

a { color: var(--purple-bright); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan-bright); }

/* ════════════════════════════════════════════
   COSMIC BACKGROUND SYSTEM
   ════════════════════════════════════════════ */

/* Deep space base gradient */
.space-base {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 15% 90%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60%  at 85% 10%, rgba(6,182,212,0.07)  0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, #030611 30%, #020409 100%);
  z-index: 0;
  pointer-events: none;
}

.three-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Aurora nebula orbs */
.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.nebula-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, rgba(139,92,246,0.06) 40%, transparent 70%);
  top: -300px; left: -250px;
  animation: nebulaDrift 35s ease-in-out infinite alternate;
}
.nebula-2 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, rgba(13,148,136,0.04) 40%, transparent 70%);
  bottom: -200px; right: -200px;
  animation: nebulaDrift 28s ease-in-out infinite alternate-reverse;
}
.nebula-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 70%);
  top: 45%; left: 45%;
  animation: nebulaDrift 22s ease-in-out infinite alternate;
  animation-delay: -12s;
}
.nebula-4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  top: 20%; right: 15%;
  animation: nebulaDrift 18s ease-in-out infinite alternate-reverse;
  animation-delay: -6s;
}

@keyframes nebulaDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(50px, -40px) scale(1.07); }
  66%  { transform: translate(-30px, 60px) scale(0.94); }
  100% { transform: translate(20px, -20px) scale(1.03); }
}

/* Star Field */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.star-dot {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: starTwinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.05; transform: scale(0.7); }
  50%       { opacity: var(--op, 0.85); transform: scale(1.15); }
}

/* Shooting Stars */
.shooting-stars-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  transform: rotateZ(32deg);
  z-index: 1;
  pointer-events: none;
}

.sstar {
  position: absolute;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,1), rgba(6,182,212,0.9), transparent);
  filter: drop-shadow(0 0 5px rgba(139,92,246,0.9)) drop-shadow(0 0 10px rgba(6,182,212,0.7));
  animation: sshoot 8s ease-in-out infinite;
  opacity: 0;
}
.sstar:nth-child(1) { width: 200px; top: 10%; left: 3%;  animation-delay: 0.3s; }
.sstar:nth-child(2) { width: 140px; top: 30%; left: 18%; animation-delay: 2.8s; }
.sstar:nth-child(3) { width: 220px; top: 58%; left: 55%; animation-delay: 5.1s; }
.sstar:nth-child(4) { width: 170px; top: 78%; left: 28%; animation-delay: 1.6s; }
.sstar:nth-child(5) { width: 110px; top: 18%; left: 72%; animation-delay: 3.7s; }
.sstar:nth-child(6) { width: 180px; top: 88%; left: 78%; animation-delay: 6.2s; }
.sstar:nth-child(7) { width: 130px; top: 42%; left: 8%;  animation-delay: 4.4s; }

@keyframes sshoot {
  0%         { transform: translateX(0); opacity: 0; }
  4%, 55%    { opacity: 1; }
  100%       { transform: translateX(600px); opacity: 0; }
}

/* Floating cosmic particles */
.particles-wrap { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) translateX(0) rotate(0deg);   opacity: 0; }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.3; }
  100% { transform: translateY(-120px) translateX(80px) rotate(360deg); opacity: 0; }
}

/* ════════════════════════════════════════════
   GRID LAYOUT
   ════════════════════════════════════════════ */
.container {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 22px;
  align-items: start;
}

/* Cursor glow */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.055) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.06s linear, top 0.06s linear;
  left: -9999px; top: -9999px;
}

/* ════════════════════════════════════════════
   SIDEBAR — ULTRA PREMIUM
   ════════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 32px;
  background: linear-gradient(160deg, rgba(10,12,26,0.82), rgba(8,10,20,0.9));
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-radius: 24px;
  padding: 0 0 22px;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.sidebar:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-deep), 0 0 60px rgba(139,92,246,0.08), inset 0 1px 0 rgba(255,255,255,0.07);
}

/* Top glow line on sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(99,102,241,0.7) 30%, rgba(6,182,212,0.6) 60%, transparent 95%);
  z-index: 2;
}

/* ── Avatar Banner ── */
.avatar-wrap { position: relative; }

.avatar-bg {
  height: 120px;
  background: linear-gradient(135deg, #06040f 0%, #0f0a2a 35%, #0a1628 70%, #031020 100%);
  position: relative;
  overflow: hidden;
}

/* Aurora shimmer across the banner */
.avatar-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 20% 50%, rgba(99,102,241,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80%  at 75% 40%, rgba(6,182,212,0.18)  0%, transparent 60%);
  animation: auroraShimmer 8s ease-in-out infinite alternate;
}

@keyframes auroraShimmer {
  0%   { opacity: 0.7; transform: scale(1) translateX(0); }
  50%  { opacity: 1;   transform: scale(1.05) translateX(10px); }
  100% { opacity: 0.8; transform: scale(0.97) translateX(-5px); }
}

.avatar-bg-stars { position: absolute; inset: 0; z-index: 1; }

/* Grid-scan line overlay */
.avatar-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

.avatar {
  position: absolute;
  bottom: -24px;
  left: 22px;
  cursor: pointer;
  z-index: 3;
}

.avatar-ring {
  width: 84px; height: 84px;
  border-radius: 50%;
  padding: 2.5px;
  background: conic-gradient(
    from 0deg,
    var(--purple), var(--cyan-bright), var(--gold), var(--purple-bright), var(--cyan), var(--purple)
  );
  animation: ringRotate 8s linear infinite;
  box-shadow: 0 0 22px var(--glow-purple), 0 0 44px rgba(139,92,246,0.12);
  transition: box-shadow 0.3s;
}

.avatar-ring:hover {
  box-shadow: 0 0 32px var(--glow-purple), 0 0 70px rgba(139,92,246,0.22);
}

@keyframes ringRotate {
  to { background: conic-gradient(from 360deg, var(--purple), var(--cyan-bright), var(--gold), var(--purple-bright), var(--cyan), var(--purple)); }
}

.avatar img {
  width: 79px; height: 79px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(8,10,20,0.9);
  display: block;
}

.avatar-online {
  position: absolute;
  bottom: 3px; right: 3px;
  width: 14px; height: 14px;
  background: #10b981;
  border-radius: 50%;
  border: 2.5px solid var(--panel);
  box-shadow: 0 0 10px rgba(16,185,129,0.7), 0 0 20px rgba(16,185,129,0.3);
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(16,185,129,0.7), 0 0 20px rgba(16,185,129,0.3); }
  50%       { box-shadow: 0 0 16px rgba(16,185,129,0.9), 0 0 32px rgba(16,185,129,0.5); }
}

/* ── Name Block ── */
.name-wrap {
  padding: 34px 22px 0;
}

.name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--white);
  margin-bottom: 0;
  line-height: 1.2;
}

.name-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px;
  margin-bottom: 14px;
}

/* ── Roles ── */
.roles-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 22px 16px;
}

.role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.14);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-bright);
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}

.role:hover {
  background: rgba(139,92,246,0.14);
  border-color: rgba(139,92,246,0.32);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
}

/* ── Info ── */
.info {
  border-top: 1px solid var(--border-1);
  padding: 14px 22px 0;
}

.row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-1);
  transition: background 0.2s;
}

.row:last-child { border-bottom: 0; }

.ico {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(6,182,212,0.08));
  border: 1px solid rgba(99,102,241,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.meta { font-size: 13px; }

.meta .label {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.meta .value {
  font-weight: 600;
  color: var(--off-white);
  font-size: 13px;
}

/* ── Socials ── */
.socials {
  display: flex;
  gap: 8px;
  margin: 14px 22px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-1);
}

.socials a {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--glass-1);
  border: 1px solid var(--border-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.24s cubic-bezier(0.34,1.56,0.64,1);
  color: var(--muted);
}

.socials a:hover {
  background: rgba(139,92,246,0.13);
  border-color: rgba(139,92,246,0.32);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 20px rgba(139,92,246,0.22);
}

/* ── Contributor ── */
.contributor-section {
  margin: 14px 22px 0;
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.11);
  border-radius: 13px;
  padding: 11px 14px;
}

.contributor-label {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
}

.contributor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.contributor-empty { font-size: 12px; color: rgba(168,168,168,0.35); }

.contributor-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(139,92,246,0.3);
  transition: transform 0.2s;
}

.contributor-avatar:hover { transform: scale(1.3); border-color: var(--purple-bright); z-index: 2; }

@keyframes lightwipe {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.contrib-total-num {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg,
    #3b3b6e 0%, #6366f1 25%, #a78bfa 45%, #e0f2fe 55%, #a78bfa 70%, #06b6d4 85%, #2a2a5e 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lightwipe 3.5s linear infinite;
}

/* ── Like button ── */
.sidebar-bottom-row {
  display: flex;
  gap: 8px;
  margin: 14px 22px 0;
  align-items: stretch;
}

.like-section { flex: 0 0 auto; }

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass-1);
  border: 1px solid var(--border-1);
  border-radius: 11px;
  cursor: pointer;
  color: var(--muted-bright);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.24s cubic-bezier(0.34,1.56,0.64,1);
  height: 100%;
  min-height: 40px;
}

.like-btn:hover {
  background: rgba(244,63,94,0.1);
  border-color: rgba(244,63,94,0.28);
  color: #fb7185;
  transform: scale(1.05);
}

.like-btn.liked {
  background: rgba(244,63,94,0.12);
  border-color: rgba(244,63,94,0.38);
  color: #fb7185;
}

.like-icon {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill 0.25s, transform 0.25s;
}

.like-btn.liked .like-icon {
  stroke: #fb7185;
  fill: #fb7185;
  transform: scale(1.18);
}

.like-count { font-size: 13px; min-width: 12px; text-align: center; }

/* ════════════════════════════════════════════
   MAIN CARD — LUXURY GLASS
   ════════════════════════════════════════════ */
.card {
  background: linear-gradient(160deg, rgba(10,12,26,0.78), rgba(6,8,18,0.88));
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,255,255,0.045);
  position: relative;
  z-index: 5;
  transition: border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-deep), 0 0 80px rgba(99,102,241,0.07);
}

/* Luxury top gradient bar */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 3%, rgba(99,102,241,0.75) 25%, rgba(139,92,246,0.6) 50%, rgba(6,182,212,0.5) 75%, transparent 97%);
}

/* Subtle corner accents */
.card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at 100% 0%, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ════════════════════════════════════════════
   TABS — PREMIUM PILL STYLE
   ════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  padding: 5px;
  width: fit-content;
}

.tabs button {
  position: relative;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  background: transparent;
  color: var(--muted-bright);
  padding: 9px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.22s ease;
  letter-spacing: 0.15px;
  white-space: nowrap;
}

.tabs button span { position: relative; z-index: 2; }

.tabs button:hover:not(.active) {
  color: var(--white);
  background: rgba(139,92,246,0.09);
}

.tabs button.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(139,92,246,0.22), rgba(6,182,212,0.14));
  color: var(--white);
  box-shadow: 0 2px 16px rgba(99,102,241,0.22), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(139,92,246,0.32);
}

/* Shine sweep */
.tabs button::before {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  z-index: 1;
}
.tabs button:hover::before { left: 140%; }

/* ════════════════════════════════════════════
   TAB CONTENT
   ════════════════════════════════════════════ */
#tab-content {
  animation: fadeUp 0.38s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   ABOUT SECTION
   ════════════════════════════════════════════ */
h1, .glitch-text {
  font-family: 'Syne', sans-serif;
  position: relative;
  margin: 0;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--white) 20%, var(--purple-bright) 60%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.2px;
  filter: drop-shadow(0 4px 12px rgba(139,92,246,0.15));
  cursor: default;
}

.about-header {
  margin-bottom: 24px;
  position: relative;
}

.header-line {
  margin-top: 12px;
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, var(--purple-bright), var(--cyan));
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(139,92,246,0.3);
}

.intro-box {
  margin-bottom: 32px;
  position: relative;
  padding: 10px 0;
}

.intro-para {
  font-family: 'DM Sans', sans-serif;
  color: var(--off-white);
  margin-bottom: 20px;
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.2px;
  max-width: 680px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.intro-para:first-letter {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--purple-bright);
}

.intro-para:hover {
  opacity: 1;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(139,92,246,0.3), transparent);
}

/* Services grid */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.service {
  background: rgba(99,102,241,0.04);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border-1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service:hover { 
  background: rgba(99,102,241,0.09);
  border-color: rgba(139,92,246,0.22);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.14);
}
.service:hover::before { opacity: 1; }

.service .sico {
  min-width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service h3 {
  margin: 0 0 5px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* ════════════════════════════════════════════
   EXPERIENCE SECTION
   ════════════════════════════════════════════ */
.exp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.nav-btn {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  color: var(--muted-bright);
  padding: 8px 22px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
}

.nav-btn:hover:not(:disabled) {
  background: rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.4);
  color: var(--white);
  transform: scale(1.07);
  box-shadow: 0 4px 18px rgba(139,92,246,0.22);
}

.nav-btn:disabled { opacity: 0.2; cursor: not-allowed; transform: none; }


/* Server card grid */
.server-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ── SERVER CARD — Ultra Premium Vertical Layout ── */
.server-card {
  background: linear-gradient(160deg, rgba(12,14,30,0.92) 0%, rgba(6,8,18,0.96) 100%);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: 22px;
  overflow: hidden;
  font-family: 'Space Grotesk', sans-serif;
  border: 1px solid rgba(139,148,189,0.08);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.04) inset,
    0 30px 60px rgba(0,0,0,0.85),
    0 0 0 0.5px rgba(139,148,189,0.06);
  transform-style: preserve-3d;
  position: relative;
  transition:
    border-color 0.40s ease,
    box-shadow   0.40s ease,
    transform    0.18s ease;
}

/* Top glow line */
.server-card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.55), rgba(6,182,212,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  pointer-events: none;
}

/* Light sweep on hover */
.server-card::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-12deg);
  transition: left 0.7s ease;
  z-index: 5;
  pointer-events: none;
}

.server-card:hover {
  border-color: rgba(139,92,246,0.25);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    0 40px 80px rgba(0,0,0,0.9),
    0 0 60px rgba(99,102,241,0.12),
    0 0 0 0.5px rgba(139,92,246,0.18);
}
.server-card:hover::after  { opacity: 1; }
.server-card:hover::before { left: 120%; }

/* ── Banner header ── */
.header {
  height: 140px; /* Slightly taller banner */
  display: flex;
  align-items: flex-end;
  padding: 0 0 0 20px;
  position: relative;
  /* Removed overflow: hidden so logo can pop out into content area */
}

/* Base banner bg */
.server-card .header {
  background: var(--server-bg);
  background-size: cover;
  background-position: center;
}

/* Vignette overlay */
.header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,4,14,0.1) 0%, rgba(6,8,18,0.72) 70%, rgba(6,8,18,0.95) 100%),
    linear-gradient(to right,  rgba(4,4,14,0.25) 0%, transparent 50%);
  z-index: 1;
}

/* Scan-line shimmer on banner */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  z-index: 2;
  pointer-events: none;
}

/* ── Server logo ── */
.server-logo {
  width: 96px; height: 96px; /* Huge profile! */
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.85),
    0 0 0 1.5px rgba(139,92,246,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(38px); /* Pop down out of the banner into the content */
  position: relative;
  z-index: 15; /* Put it above the overlays and content */
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}

.server-card:hover .server-logo {
  transform: translateY(32px) scale(1.08); /* Lift up slightly and scale */
  box-shadow:
    0 16px 42px rgba(0,0,0,0.9),
    0 0 0 2px rgba(139,92,246,0.45),
    0 0 24px rgba(139,92,246,0.22),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ── Card content area ── */
.content {
  padding: 44px 22px 22px; /* Large top padding so text goes under the overlapping logo */
  text-align: left;
  position: relative;
  z-index: 10;
}

/* Subtle inner gradient ceiling */
.content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(139,92,246,0.03), transparent);
  pointer-events: none;
}

.server-name {
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  background: linear-gradient(135deg, #f0f4ff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: -webkit-text-fill-color 0.3s;
}

/* tags row */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

/* ── Tags ── */
.platform-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.14);
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted-bright);
  font-size: 11px;
  font-weight: 600;
  margin: 0 4px 7px 0;
  letter-spacing: 0.3px;
  transition: all 0.22s ease;
  backdrop-filter: blur(4px);
}

.platform-tag:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.28);
  color: var(--white);
  transform: translateY(-1px);
}

.platform-tag.tag-hidden { display: none !important; }

.tag-counter {
  background: rgba(245,158,11,0.08);
  color: var(--gold-bright);
  font-weight: 700;
  border: 1px solid rgba(245,158,11,0.2);
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  min-width: 38px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}
.tag-counter:hover {
  background: rgba(245,158,11,0.16);
  border-color: rgba(245,158,11,0.36);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(245,158,11,0.15);
}

/* ── Divider ── */
.card-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.2), rgba(6,182,212,0.15), transparent);
  margin: 12px 0 14px;
}

/* ── Contributor badge ── */
.card-contrib-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(99,102,241,0.04));
  border: 1px solid rgba(6,182,212,0.14);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--cyan-bright);
  margin-bottom: 14px;
  cursor: default;
  position: relative;
  transition: all 0.25s ease;
  width: fit-content;
}

.card-contrib-badge:hover {
  background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(99,102,241,0.08));
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 4px 16px rgba(6,182,212,0.1);
  transform: translateY(-1px);
}

.card-contrib-num  { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; }
.card-contrib-text { color: rgba(34,211,238,0.55); font-size: 11px; font-weight: 500; }

.contrib-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(4,6,16,0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan-bright);
  pointer-events: none;
  opacity: 0;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 20px rgba(6,182,212,0.12);
}

.card-contrib-badge:hover .contrib-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ── Playing badge ── */
.card-playing-badge {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(4,120,87,0.04));
  border-color: rgba(16,185,129,0.14);
  color: #34d399;
}
.card-playing-badge:hover {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(4,120,87,0.08));
  border-color: rgba(16,185,129,0.3);
  box-shadow: 0 4px 16px rgba(16,185,129,0.1);
}
.card-playing-badge .card-contrib-text { color: rgba(52,211,153,0.55); }
.card-playing-badge .contrib-tooltip { 
  border-color: rgba(16,185,129,0.3); 
  color: #34d399; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 20px rgba(16,185,129,0.12);
}

/* ── Badge Row Container ── */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

/* ── Button group ── */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

/* Play button — luxe green */
.cta-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(16,185,129,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(5,150,105,0.85), rgba(16,185,129,0.75));
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.26s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(16,185,129,0.18), inset 0 1px 0 rgba(255,255,255,0.1);
}

.cta-button:hover {
  background: linear-gradient(135deg, rgba(16,185,129,0.95), rgba(52,211,153,0.85));
  border-color: rgba(16,185,129,0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,185,129,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Shine sweep for play button */
.cta-button::before {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  z-index: 1;
  pointer-events: none;
}
.cta-button:hover::before { left: 140%; }
.cta-button > * { position: relative; z-index: 2; }

/* Discord button */
.cta-button-discord {
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid rgba(88,101,242,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(66,69,181,0.8), rgba(88,101,242,0.7));
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.26s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(88,101,242,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.cta-button-discord:hover {
  background: linear-gradient(135deg, rgba(88,101,242,0.95), rgba(104,117,245,0.9));
  border-color: rgba(88,101,242,0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(88,101,242,0.32), inset 0 1px 0 rgba(255,255,255,0.15);
}

.cta-button-discord::before {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
  z-index: 1;
  pointer-events: none;
}
.cta-button-discord:hover::before { left: 140%; }
.cta-button-discord > * { position: relative; z-index: 2; }

/* ════════════════════════════════════════════
   RIPPLE
   ════════════════════════════════════════════ */
.ripple-host { position: relative; overflow: hidden; }

.ripple-circle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleAnim 0.55s linear forwards;
  pointer-events: none;
  z-index: 10;
}
@keyframes rippleAnim {
  to { transform: translate(-50%, -50%) scale(65); opacity: 0; }
}

/* ════════════════════════════════════════════
   BIRTHDAY COUNTDOWN
   ════════════════════════════════════════════ */
.bd-countdown-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 5px;
  vertical-align: middle;
}
.bd-bar   { color: rgba(255,255,255,0.12); font-size: 11px; }
.bd-until { font-size: 9.5px; color: rgba(168,168,168,0.4); font-weight: 400; white-space: nowrap; }
.bd-countdown { display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.bd-unit { display: inline-flex; align-items: baseline; gap: 1px; }
.bd-num {
  font-size: 12px; font-weight: 700;
  color: var(--purple-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(167,139,250,0.5);
}
.bd-lbl  { font-size: 9px; color: rgba(168,168,168,0.55); letter-spacing: 0.3px; }
.bd-dot  { color: rgba(167,139,250,0.35); font-size: 9px; margin: 0 1px; align-self: center; }

@keyframes bdFlip {
  0%   { opacity: 0.3; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}
.bd-num.changed { animation: bdFlip 0.18s ease-out forwards; }

.bd-today {
  font-size: 11px; font-weight: 600;
  color: var(--gold-bright);
  text-shadow: 0 0 12px var(--glow-gold);
  animation: bdPulse 1.2s ease-in-out infinite alternate;
}
@keyframes bdPulse {
  from { opacity: 0.6; text-shadow: 0 0 6px rgba(245,158,11,0.4); }
  to   { opacity: 1;   text-shadow: 0 0 18px rgba(245,158,11,0.9); }
}

/* ════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible, .reveal-left.visible { opacity: 1; transform: translate(0,0); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 960px) {
  body { padding: 16px; }
  .container { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .tabs { overflow-x: auto; }
  .services { grid-template-columns: 1fr; }
  .server-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .card { padding: 18px; }
}

/* ════════════════════════════════════════════
   CAROUSEL ANIMATIONS & NAVIGATION
   ════════════════════════════════════════════ */
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.exp-header h1 { margin-bottom: 0; }
.carousel-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border-1);
}
.nav-btn {
  width: 48px; height: 36px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted-bright);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-btn:hover:not(:disabled) {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.5);
  box-shadow: 0 0 15px rgba(139,92,246,0.3);
  color: var(--white);
  transform: scale(1.08);
}
.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(0.95);
}
.page-indicator {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  min-width: 28px;
  text-align: center;
  user-select: none;
}
.server-wrapper {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

@keyframes slideInFromRight {
  0%   { opacity: 0; transform: perspective(1000px) translateZ(-60px) translateX(60px) rotateY(-10deg) scale(0.92); }
  100% { opacity: 1; transform: perspective(1000px) translateZ(0) translateX(0) rotateY(0deg) scale(1); }
}
@keyframes slideInFromLeft {
  0%   { opacity: 0; transform: perspective(1000px) translateZ(-60px) translateX(-60px) rotateY(10deg) scale(0.92); }
  100% { opacity: 1; transform: perspective(1000px) translateZ(0) translateX(0) rotateY(0deg) scale(1); }
}
@keyframes fadeOutCard {
  0%   { opacity: 1; transform: perspective(1000px) translateZ(0) scale(1); }
  100% { opacity: 0; transform: perspective(1000px) translateZ(-40px) scale(0.94); }
}

/* ════════════════════════════════════════════
   ██████████  3D & ANIMATION SYSTEM  ██████████
   ════════════════════════════════════════════ */

/* ── 3D Scene wrapper ── */
.scene-3d {
  perspective: 1800px;
  perspective-origin: 50% 40%;
  transform-style: preserve-3d;
}

/* ── Sidebar float — translateY only (compositor-friendly) ── */
.sidebar {
  transform-style: preserve-3d;
  will-change: transform;
}
@keyframes sidebarFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-6px); }
}

/* ── Card entrance only — JS handles realtime tilt ── */
.card {
  transform-style: preserve-3d;
  animation: cardEntrance 0.8s cubic-bezier(0.22,1,0.36,1) both;
  will-change: transform;
}
@keyframes cardEntrance {
  0%   { opacity: 0; transform: perspective(1200px) translateZ(-60px) scale(0.96); }
  100% { opacity: 1; transform: perspective(1200px) translateZ(0) scale(1); }
}

/* ── Holographic animated border on cards ── */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.server-card {
  --border-angle: 0deg;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.server-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    rgba(99,102,241,0.55) 15%,
    rgba(139,92,246,0.75) 30%,
    rgba(6,182,212,0.6) 45%,
    rgba(245,158,11,0.45) 60%,
    rgba(139,92,246,0.7) 75%,
    rgba(99,102,241,0.5) 85%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: holoBorderSpin 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.server-card:hover::before { opacity: 1; }

@keyframes holoBorderSpin {
  to { --border-angle: 360deg; }
}

/* ── Service card 3D flip on hover ── */
.service {
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1), background 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.service:hover {
  transform: translateY(-6px) rotateX(4deg) rotateY(-3deg) scale(1.03);
  box-shadow: 0 20px 48px rgba(99,102,241,0.2), 0 8px 16px rgba(0,0,0,0.5);
}

/* ── Role badge bounce-in ── */
.role {
  animation: roleBounceIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes roleBounceIn {
  0%   { opacity:0; transform: scale(0.5) translateY(10px); }
  100% { opacity:1; transform: scale(1) translateY(0); }
}

/* ── Avatar ring animation (override to 3D spin) ── */
.avatar-ring {
  animation: ringRotate3d 6s linear infinite !important;
}
@keyframes ringRotate3d {
  0%   { background-image: conic-gradient(from 0deg, var(--purple), var(--cyan-bright), var(--gold-bright), var(--purple-bright), var(--cyan), var(--purple)); transform: rotateY(0deg); }
  50%  { transform: rotateY(6deg); }
  100% { background-image: conic-gradient(from 360deg, var(--purple), var(--cyan-bright), var(--gold-bright), var(--purple-bright), var(--cyan), var(--purple)); transform: rotateY(0deg); }
}

/* ── Orbital ring around avatar wrap ── */
.avatar-orbit {
  position: absolute;
  bottom: -36px;
  left: 10px;
  width: 104px;
  height: 104px;
  pointer-events: none;
  transform-style: preserve-3d;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  animation: orbitSpin var(--speed,4s) linear infinite;
}
.orbit-ring::before {
  content:'';
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--col, #8b5cf6);
  box-shadow: 0 0 8px 2px var(--col, #8b5cf6);
  top: -4px; left: 50%;
  transform: translateX(-50%);
}
.orbit-1 { --speed:3.2s; --col:#8b5cf6; transform: rotateX(70deg); }
.orbit-2 { --speed:4.8s; --col:#06b6d4; transform: rotateX(70deg) rotateZ(60deg); }
.orbit-3 { --speed:6.4s; --col:#f59e0b; transform: rotateX(70deg) rotateZ(120deg); }

@keyframes orbitSpin {
  from { transform: rotateX(70deg) rotateZ(var(--rz,0deg)); }
  to   { transform: rotateX(70deg) rotateZ(calc(var(--rz,0deg) + 360deg)); }
}
/* individual orbits need different base rotations */
.orbit-1 { animation: orbitSpin1 3.2s linear infinite; }
.orbit-2 { animation: orbitSpin2 4.8s linear infinite; }
.orbit-3 { animation: orbitSpin3 6.4s linear infinite; }

@keyframes orbitSpin1 {
  0%   { transform: rotateX(70deg) rotateZ(0deg); }
  100% { transform: rotateX(70deg) rotateZ(360deg); }
}
@keyframes orbitSpin2 {
  0%   { transform: rotateX(70deg) rotateZ(60deg); }
  100% { transform: rotateX(70deg) rotateZ(420deg); }
}
@keyframes orbitSpin3 {
  0%   { transform: rotateX(70deg) rotateZ(120deg); }
  100% { transform: rotateX(70deg) rotateZ(480deg); }
}

/* ── Warp-speed tunnel (background overlay) ── */
.warp-tunnel {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.warp-tunnel.active { opacity: 1; }

.warp-line {
  position: absolute;
  top: 50%; left: 50%;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  transform-origin: 0 0;
  animation: warpLine var(--dur,1s) linear infinite;
  animation-delay: var(--del,0s);
  opacity: 0;
}

@keyframes warpLine {
  0%   { transform: translate(0,0) scale(0); opacity: 0; }
  5%   { opacity: 0.9; }
  85%  { opacity: 0.6; }
  100% { transform: translate(calc(var(--dx)*100vw), calc(var(--dy)*100vh)) scale(16); width: 80px; opacity: 0; }
}

/* h1 styles merged above */
h1.glitch::before,
h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1.glitch::before {
  background-image: linear-gradient(135deg, var(--cyan-bright), var(--purple-bright));
  background-clip: text;
  -webkit-background-clip: text;
  animation: glitchTop 0.3s steps(2,end) both;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
h1.glitch::after {
  background-image: linear-gradient(135deg, var(--gold-bright), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  animation: glitchBot 0.3s steps(2,end) both;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitchTop {
  0%   { transform: translate(-3px, -1px); opacity:0.8; }
  33%  { transform: translate(3px, 1px);  opacity:0.6; }
  66%  { transform: translate(-2px,0);    opacity:0.9; }
  100% { transform: translate(0,0);       opacity:0; }
}
@keyframes glitchBot {
  0%   { transform: translate(3px, 1px);  opacity:0.7; }
  33%  { transform: translate(-3px,-1px); opacity:0.5; }
  66%  { transform: translate(2px, 0);    opacity:0.8; }
  100% { transform: translate(0,0);       opacity:0; }
}

/* ── Magnetic pull on tabs ── */
.tabs button {
  transition: all 0.18s cubic-bezier(0.25,0.46,0.45,0.94), transform 0.08s ease;
}

/* ── 3D depth on name ── */
.name {
  text-shadow:
    1px 1px 0 rgba(99,102,241,0.18),
    2px 2px 0 rgba(99,102,241,0.1),
    3px 3px 0 rgba(99,102,241,0.05);
  transition: text-shadow 0.3s;
}
.name:hover {
  text-shadow:
    2px 2px 0 rgba(99,102,241,0.3),
    4px 4px 0 rgba(99,102,241,0.18),
    6px 6px 10px rgba(99,102,241,0.15);
}

/* ── Entrance animation for sidebar ── */
.sidebar {
  animation: sidebarEntrance 0.8s cubic-bezier(0.22,1,0.36,1) both, sidebarFloat 7s ease-in-out 0.8s infinite;
}
@keyframes sidebarEntrance {
  0%   { opacity:0; transform: perspective(1200px) translateX(-60px) rotateY(12deg); }
  100% { opacity:1; transform: perspective(1200px) translateX(0) rotateY(0deg); }
}

/* ── Shimmer scan line across avatar banner ── */
.avatar-bg::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 60%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(139,92,246,0.12) 40%,
    rgba(6,182,212,0.1) 50%,
    transparent 100%
  );
  animation: bannerScan 4s linear infinite;
  z-index: 3;
}
@keyframes bannerScan {
  0%   { top: -60%; }
  100% { top: 160%; }
}

/* ── Tab content 3D flip entrance ── */
#tab-content {
  transform-style: preserve-3d;
  animation: tabFlipIn 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes tabFlipIn {
  0%   { opacity:0; transform: perspective(900px) rotateX(12deg) translateY(20px) scale(0.97); }
  100% { opacity:1; transform: perspective(900px) rotateX(0deg) translateY(0) scale(1); }
}

/* ── Button 3D press ── */
.cta-button:active {
  transform: translateY(1px) scale(0.97) rotateX(4deg);
}
.cta-button-discord:active {
  transform: translateY(1px) scale(0.97) rotateX(4deg);
}
.nav-btn:active {
  transform: scale(0.92) rotateX(6deg);
}

/* ── Server card 3D entrance from cards below ── */
.server-card.reveal {
  opacity: 0;
  transform: perspective(800px) translateZ(-80px) rotateX(10deg) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.server-card.reveal.visible {
  opacity: 1;
  transform: perspective(800px) translateZ(0) rotateX(0deg) scale(1);
}

/* ── Service card 3D entrance ── */
.service.reveal {
  opacity: 0;
  transform: perspective(600px) translateZ(-50px) rotateY(8deg) scale(0.92);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.service.reveal.visible {
  opacity: 1;
  transform: perspective(600px) translateZ(0) rotateY(0) scale(1);
}

/* ── Contributor section pulse glow ── */
.contributor-section {
  animation: contribGlow 4s ease-in-out infinite alternate;
}
@keyframes contribGlow {
  0%   { box-shadow: 0 0 0px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 14px rgba(99,102,241,0.15), inset 0 0 8px rgba(99,102,241,0.06); }
}

/* ── DNA helix particle trail (sidebar info rows) ── */
.row {
  transition: background 0.2s, transform 0.2s;
  transform-style: preserve-3d;
}
.row:hover {
  background: rgba(99,102,241,0.04);
  transform: translateX(4px) translateZ(4px);
}

/* nebulaPulse removed — filter animation forces full repaint every frame */

/* cursor glow — static size, no animation */

/* ── Holographic shimmer on sidebar ::before glow line ── */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.9), rgba(6,182,212,0.7), transparent);
  animation: sidebarSweep 5s ease-in-out infinite;
  z-index: 3;
}
@keyframes sidebarSweep {
  0%   { left: -50%; }
  50%  { left: 120%; }
  100% { left: 120%; }
}

/* ── 3D card depth shadow on hover (server-card already has tilt via JS) ── */
.server-card {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.15s ease;
}

/* ── prefers-reduced-motion: kill all animations on low-perf / accessibility devices ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* warp-tunnel (unused — removed from HTML) */
.warp-tunnel { display: none !important; }

/* ════════════════════════════════════════════
   REAL-TIME VISIT INDICATOR
   ════════════════════════════════════════════ */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: livePulse 2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* Flash badge on update */
.card-contrib-badge.live-update {
  animation: liveFlash 0.8s ease forwards;
}
@keyframes liveFlash {
  0%   { border-color: rgba(6,182,212,0.14); box-shadow: none; }
  30%  { border-color: rgba(6,182,212,0.6);  box-shadow: 0 0 18px rgba(6,182,212,0.25); }
  100% { border-color: rgba(6,182,212,0.14); box-shadow: none; }
}