@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --glass-bg: rgba(20, 20, 20, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-color: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.5);
  --neon-1: #ff00ff;
  --neon-2: #00ffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ===== SPLASH SCREEN ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-text {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  animation: fadeInOut 2.5s infinite ease-in-out;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== BACKGROUND VIDEO ===== */
.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) translateZ(0);
  z-index: -3;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.2) saturate(0.85) sepia(0.1);
  will-change: transform;
  pointer-events: none;
}

/* ===== OVERLAY / VIGNETTE ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: -2;
  pointer-events: none;
}

/* ===== PARTICLES (removed) ===== */

/* ===== VCR OVERLAY ===== */
.vcr-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* CRT Scanlines */
.vcr-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0, 0, 0, 0.15) 1px,
    rgba(0, 0, 0, 0.15) 2px
  );
  animation: scanlineShift 0.05s infinite linear;
  will-change: transform;
  transform: translateZ(0);
  pointer-events: none;
}

@keyframes scanlineShift {
  0% { transform: translateY(0) translateZ(0); }
  100% { transform: translateY(2px) translateZ(0); }
}

/* Static noise */
.vcr-noise {
  position: absolute;
  inset: 0;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: noiseShift 0.1s infinite steps(5);
  will-change: transform;
  transform: translateZ(0);
  pointer-events: none;
}

@keyframes noiseShift {
  0% { transform: translate(0, 0) translateZ(0); }
  20% { transform: translate(-2px, 1px) translateZ(0); }
  40% { transform: translate(1px, -1px) translateZ(0); }
  60% { transform: translate(-1px, 2px) translateZ(0); }
  80% { transform: translate(2px, -2px) translateZ(0); }
  100% { transform: translate(0, 0) translateZ(0); }
}

/* VCR flicker / tracking distortion */
.vcr-flicker {
  position: absolute;
  inset: 0;
  animation: vcrFlicker 3s infinite;
  opacity: 0;
  will-change: opacity;
  transform: translateZ(0);
  pointer-events: none;
}

@keyframes vcrFlicker {
  0%, 85%, 100% { opacity: 0; }
  86% {
    opacity: 1;
    background: linear-gradient(
      transparent 0%,
      transparent 40%,
      rgba(255, 255, 255, 0.05) 40.5%,
      rgba(255, 255, 255, 0.05) 42%,
      transparent 42.5%,
      transparent 100%
    );
  }
  88% {
    opacity: 1;
    background: linear-gradient(
      transparent 0%,
      transparent 60%,
      rgba(255, 255, 255, 0.08) 60.5%,
      rgba(255, 255, 255, 0.08) 63%,
      transparent 63.5%,
      transparent 100%
    );
  }
  90% { opacity: 0; }
}

/* VCR Timestamp */
.vcr-timestamp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 10;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 rgba(255, 0, 0, 0.4), -1px -1px 0 rgba(0, 255, 255, 0.4);
  animation: vcrTextGlitch 4s infinite;
}

@keyframes vcrTextGlitch {
  0%, 92%, 100% { transform: translate(0); opacity: 0.6; }
  93% { transform: translate(-2px, 1px); opacity: 0.9; }
  94% { transform: translate(2px, -1px); opacity: 0.3; }
  95% { transform: translate(-1px, 0); opacity: 0.8; }
  96% { transform: translate(0); opacity: 0.6; }
}

/* VCR REC dot */
.vcr-timestamp::before {
  content: '●';
  color: #ff0000;
  margin-right: 8px;
  animation: recBlink 1.5s infinite;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.8);
}

@keyframes recBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ===== MAIN CONTAINER ===== */
.container {
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  z-index: 1;
  animation: bounceIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(50px);
}

.container.hidden {
  display: none;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(50px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-10px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== GLASS CARD (Apple Liquid Glass + Glitch) ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease-out, filter 0.05s, box-shadow 0.05s, background 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Subtle top highlight for liquid glass refraction */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 50%;
}



/* ===== AVATAR ===== */
.avatar-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.5),
    0 0 30px rgba(255, 255, 255, 0.3),
    0 0 45px rgba(255, 255, 255, 0.15);
  animation: avatarGlow 2.5s infinite alternate ease-in-out;
  transition: transform 0.05s, filter 0.05s, box-shadow 0.1s;
}

@keyframes avatarGlow {
  0% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.4),
      0 0 30px rgba(255, 255, 255, 0.2),
      0 0 45px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow:
      0 0 25px rgba(255, 255, 255, 0.85),
      0 0 50px rgba(255, 255, 255, 0.45),
      0 0 75px rgba(255, 255, 255, 0.25);
  }
}



.status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-color: #747f8d;
  border-radius: 50%;
  border: 3px solid #1a1a1a;
  box-shadow: 0 0 10px #747f8d;
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* ===== STATUS TEXT ===== */
.status-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  transition: color 0.3s;
}

/* ===== STATUS BADGE ===== */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.2rem;
}

.status-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #747f8d;
  box-shadow: 0 0 6px #747f8d;
  transition: background 0.3s, box-shadow 0.3s;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.status-badge-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #747f8d;
  transition: color 0.3s;
}

/* ===== ACTIVITY CARD ===== */
.activity-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-top: 0.2rem;
  transition: all 0.3s ease;
}

.activity-card.hidden {
  display: none;
}

.activity-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.7rem;
}

.activity-icon {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.activity-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
}

.activity-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.activity-image[src=""] {
  display: none;
}

.activity-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.activity-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-detail {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* ===== USERNAME / WHITE LIGHTNING SPARKLE ===== */
.username {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
  position: relative;
}

.lightning-sparkle {
  animation: whiteLightning 3s infinite;
}

.lightning-sparkle::before,
.lightning-sparkle::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  z-index: -1;
  pointer-events: none;
}

/* Electric lightning flash splits in pure white */
.lightning-sparkle::before {
  left: 1px;
  text-shadow: -1px 0 #ffffff, 0 0 12px #ffffff;
  animation: lightningFlash1 2.5s infinite steps(1);
}

.lightning-sparkle::after {
  left: -1px;
  text-shadow: 1px 0 #ffffff, 0 0 16px #ffffff;
  animation: lightningFlash2 3.5s infinite steps(1);
}

@keyframes whiteLightning {
  0%, 88%, 92%, 96%, 100% {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.4);
    transform: scale(1);
  }
  89% {
    color: #ffffff;
    text-shadow: 0 0 18px #ffffff, 0 0 32px #ffffff;
    transform: scale(1.02) skewX(-2deg);
  }
  90% {
    color: #e0f2fe;
    text-shadow: 0 0 4px #ffffff;
    transform: scale(0.99);
  }
  91% {
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff, 0 0 40px #ffffff;
    transform: scale(1.03) skewX(2deg);
  }
  93%, 95% {
    color: #ffffff;
    text-shadow: 0 0 14px #ffffff, 0 0 28px #ffffff;
    transform: scale(1.01);
  }
}

@keyframes lightningFlash1 {
  0%, 75%, 78%, 82%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); }
  76% { opacity: 1; clip-path: inset(15% 0 65% 0); transform: translate(-3px, 1px); }
  77% { opacity: 1; clip-path: inset(70% 0 10% 0); transform: translate(3px, -1px); }
  80% { opacity: 1; clip-path: inset(40% 0 35% 0); transform: translate(-2px, -2px); }
  81% { opacity: 0; }
}

@keyframes lightningFlash2 {
  0%, 60%, 63%, 68%, 100% { opacity: 0; clip-path: inset(100% 0 0 0); }
  61% { opacity: 1; clip-path: inset(50% 0 30% 0); transform: translate(3px, -2px); }
  62% { opacity: 1; clip-path: inset(10% 0 80% 0); transform: translate(-3px, 1px); }
  65% { opacity: 1; clip-path: inset(80% 0 5% 0); transform: translate(2px, 2px); }
  66% { opacity: 0; }
}

/* ===== BIO / TYPEWRITER ===== */
.bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 1.5rem;
  min-height: 1.5rem;
  line-height: 1.5;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.bio .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--text-secondary);
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}





/* ===== SOCIAL ICONS ===== */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icon-link {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.social-icon-link svg {
  width: 100%;
  height: 100%;
}

.social-icon-link:hover {
  color: #fff;
  transform: scale(1.2) translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.4));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
  }

  .username {
    font-size: 1.4rem;
  }

  .splash-text {
    font-size: 1.4rem;
  }
}
