:root {
  --accent:  #00d4ff;
  --white:   #ffffff;
  --dim:     rgba(255, 255, 255, 0.55);
  --glass:   rgba(255, 255, 255, 0.06);
  --border:  rgba(255, 255, 255, 0.12);
}

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

body {
  min-height: 100vh;
  padding: 1.5rem 0;
  overflow-x: hidden;
  background: #000;
  font-family: 'Exo 2', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══ BG VIDEO ══ */
.video-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2) brightness(0.55);
}

.video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(0, 212, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.85) 0%, transparent 70%),
    radial-gradient(ellipse at center,   transparent 20%, rgba(0, 0, 0, 0.75) 100%);
}

/* ══ GRAIN OVERLAY ══ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}

/* ══ MAIN CARD ══ */
.page {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2.5rem 2rem 2rem;
  width: min(420px, 95vw);
  animation: pageIn 1s cubic-bezier(.16, 1, .3, 1) both;
}

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

/* ══ PROFILE PHOTO ══ */
.profile-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 1.2rem;
  animation: profilePop 1s cubic-bezier(.34, 1.56, .64, 1) 0.15s both;
}

.profile-wrap img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.1);
  border: 2.5px solid rgba(0, 212, 255, 0.5);
  box-shadow:
    0 0 0 5px rgba(0, 212, 255, 0.08),
    0 0 30px rgba(0, 212, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.7);
  transition: filter 0.4s, transform 0.4s;
}

.profile-wrap:hover img {
  filter: grayscale(0%) contrast(1.1) brightness(1.05);
  transform: scale(1.06);
}

/* Spinning dashed ring */
.profile-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 212, 255, 0.55);
  animation: spinRing 6s linear infinite;
}

/* Outer glow pulse */
.profile-wrap::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.12);
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes profilePop {
  0%   { opacity: 0; transform: scale(0.3) rotate(-18deg); }
  65%  { transform: scale(1.1) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes floatPhoto {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

/* ══ NAME ══ */
.name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
  position: relative;
  animation: nameIn 0.8s ease 0.4s both;
  text-shadow:
    0 0 20px rgba(0, 212, 255, 0.4),
    0 0 60px rgba(0, 212, 255, 0.15);
}

/* Glitch effect */
.name::before,
.name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
}

.name::before {
  color: rgba(0, 212, 255, 0.7);
  animation: glitch1 4s infinite step-end;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}

.name::after {
  color: rgba(255, 50, 50, 0.55);
  animation: glitch2 4s infinite step-end;
  clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
}

@keyframes glitch1 {
  0%, 90%, 100% { transform: none; opacity: 0; }
  91%           { transform: translate(-3px, 1px); opacity: 1; }
  93%           { transform: translate(3px, -1px); opacity: 1; }
  95%           { transform: none; opacity: 0; }
}

@keyframes glitch2 {
  0%, 92%, 100% { transform: none; opacity: 0; }
  93%           { transform: translate(4px, 0); opacity: 1; }
  95%           { transform: translate(-3px, 2px); opacity: 1; }
  97%           { transform: none; opacity: 0; }
}

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

/* ══ BIO (typing effect) ══ */
.bio {
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--dim);
  text-align: center;
  line-height: 1.6;
  margin: 0.5rem 0 0.6rem;
  max-width: 320px;
  min-height: 1.6em;
  animation: nameIn 0.8s ease 0.55s both;
}

.bio .typed {
  color: var(--accent);
  font-weight: 400;
}

.bio .cursor {
  display: inline-block;
  width: 2px;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 0.9s step-end infinite;
}

/* ══ LOCATION ══ */
.location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 1.2rem;
  animation: nameIn 0.8s ease 0.65s both;
}

.location svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ══ STATUS CARD ══ */
.status-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.1rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: nameIn 0.8s ease 0.75s both;
}

.status-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(30%);
  border: 1.5px solid rgba(0, 212, 255, 0.4);
  flex-shrink: 0;
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.status-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
}

.badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge svg {
  width: 9px;
  height: 9px;
  fill: #000;
}

.status-time {
  font-size: 0.7rem;
  color: var(--dim);
  font-style: italic;
  font-weight: 300;
}

/* Online dot — color driven by Discord status */
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
  animation: blink 1.8s ease-in-out infinite;
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}

.online-dot.idle {
  background: #f1c40f;
  box-shadow: 0 0 6px #f1c40f;
}

.online-dot.dnd {
  background: #e74c3c;
  box-shadow: 0 0 6px #e74c3c;
}

.online-dot.offline {
  background: #747f8d;
  box-shadow: 0 0 6px #747f8d;
  animation: none;
  opacity: 0.7;
}

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

/* ══ SOCIAL ICONS ══ */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  animation: nameIn 0.8s ease 0.9s both;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 14, 20, 0.88);
  border: 1px solid rgba(0, 212, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.6);
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.15);
  background: rgba(0, 212, 255, 0.14);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.45), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.social-btn svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.85);
  transition: fill 0.25s, transform 0.25s;
}

.social-btn:hover svg {
  fill: #fff;
  transform: scale(1.08);
}

/* Individual brand colors on hover with enhanced neon glow */
.social-btn.yt:hover { border-color: #ff0000; box-shadow: 0 0 24px rgba(255, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.6); background: rgba(255, 0, 0, 0.12); }
.social-btn.dc:hover { border-color: #5865f2; box-shadow: 0 0 24px rgba(88, 101, 242, 0.45), 0 8px 24px rgba(0, 0, 0, 0.6); background: rgba(88, 101, 242, 0.12); }
.social-btn.ig:hover { border-color: #e1306c; box-shadow: 0 0 24px rgba(225, 48, 108, 0.45), 0 8px 24px rgba(0, 0, 0, 0.6); background: rgba(225, 48, 108, 0.12); }
.social-btn.gm:hover { border-color: #ea4335; box-shadow: 0 0 24px rgba(234, 67, 53, 0.45), 0 8px 24px rgba(0, 0, 0, 0.6); background: rgba(234, 67, 53, 0.12); }
.social-btn.tw:hover { border-color: #ffffff; box-shadow: 0 0 24px rgba(255, 255, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.6); background: rgba(255, 255, 255, 0.12); }
.social-btn.sp:hover { border-color: #1db954; box-shadow: 0 0 24px rgba(29, 185, 84, 0.45), 0 8px 24px rgba(0, 0, 0, 0.6); background: rgba(29, 185, 84, 0.12); }

/* ══ VIEW PROFILE BUTTON ══ */
.view-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(.34, 1.56, .64, 1);
  animation: nameIn 0.8s ease 1s both;
}

.view-profile-btn span {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s;
}

.view-profile-btn svg {
  width: 15px;
  height: 15px;
  fill: var(--accent);
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1), fill 0.25s;
}

.view-profile-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.view-profile-btn:hover span {
  color: #fff;
}

.view-profile-btn:hover svg {
  transform: translateX(4px);
  fill: #fff;
}

/* ══ TOAST NOTIFICATION ══ */
.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 50;
  padding: 0.6rem 1.3rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ══ MUSIC BUTTON ══ */
.music-btn {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.3s, box-shadow 0.3s;
  animation: nameIn 1s ease 1.3s both;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.music-btn:hover {
  transform: scale(1.1);
}

.music-btn.playing {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25), 0 4px 20px rgba(0, 0, 0, 0.5);
}

.music-btn svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.8);
}

.music-btn.playing svg {
  animation: spin 4s linear infinite;
}

/* ══ EQ BARS ══ */
.eq-bars {
  position: fixed;
  bottom: 1.9rem;
  right: 4.6rem;
  z-index: 30;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.eq-bars.visible {
  display: flex;
}

.eq-bars span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.7;
  animation: eq 0.7s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(1) { height: 6px;  animation-delay: 0s;    animation-duration: 0.55s; }
.eq-bars span:nth-child(2) { height: 14px; animation-delay: 0.12s; animation-duration: 0.8s;  }
.eq-bars span:nth-child(3) { height: 8px;  animation-delay: 0.25s; animation-duration: 0.65s; }
.eq-bars span:nth-child(4) { height: 14px; animation-delay: 0.08s; animation-duration: 1s;    }
.eq-bars span:nth-child(5) { height: 5px;  animation-delay: 0.2s;  animation-duration: 0.6s;  }

@keyframes eq {
  from { transform: scaleY(0.2); }
  to   { transform: scaleY(1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ══ ENTER OVERLAY ══ */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn 0.5s ease-out;
}

.enter-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  animation: fadeOut 0.5s ease-out forwards;
}

.enter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: slideUp 0.8s cubic-bezier(.34, 1.56, .64, 1) both;
}

.enter-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.15em;
  text-align: center;
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

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

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 212, 255, 0.3); }
  50%      { text-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}
