/* ==========================================================================
   PROTON VAULT - BESPOKE HIGH-TECH CYBER BIO
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-primary: #07040d;
  --proton-purple: #702afb;
  --proton-accent: #a855f7;
  --proton-glow: #c084fc;
  --proton-neon: #9333ea;
  --cyber-cyan: #38bdf8;
  --card-bg: rgba(14, 9, 26, 0.65);
  --card-border: rgba(168, 85, 247, 0.22);
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #64748b;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Protection */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  -webkit-touch-callout: none !important;
  cursor: none !important;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  font-family: var(--font-main);
  color: var(--text-main);
  cursor: none !important;
}

/* Subtle CRT Scanline & Grain Texture (Bespoke Non-AI Feel) */
.cyber-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(rgba(18, 16, 38, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
              radial-gradient(circle at 50% 50%, transparent 60%, rgba(5, 3, 10, 0.8) 100%);
  background-size: 100% 3px, 100% 100%;
  opacity: 0.65;
}

/* Custom Interactive Cursor (Desktop) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
  box-shadow: 0 0 14px 3px rgba(168, 85, 247, 0.9);
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(192, 132, 252, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, background 0.2s;
  background: rgba(112, 42, 251, 0.08);
  backdrop-filter: blur(1px);
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.8);
  background: var(--proton-glow);
}

.custom-cursor-follower.hover {
  transform: translate(-50%, -50%) scale(1.4);
  border-color: rgba(233, 213, 255, 0.9);
  background: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Parallax Background */
.bg-layer-wrapper {
  position: fixed;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background.jpg') center center / cover no-repeat;
  filter: brightness(0.65) contrast(1.15) saturate(1.1);
  transform: scale(1.04);
  transition: transform 0.25s ease-out;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 45%, rgba(15, 8, 30, 0.2) 0%, rgba(7, 4, 13, 0.88) 80%);
}

/* Cyber Particles Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ==========================================================================
   Click to Enter Overlay
   ========================================================================== */
.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(5, 3, 10, 0.97);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s;
}

.enter-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.enter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(112, 42, 251, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--proton-glow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.enter-badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.6s infinite ease-in-out;
}

.enter-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 20%, #c084fc 80%, #702afb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 45px rgba(192, 132, 252, 0.45);
}

.enter-prompt {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: pulsePrompt 2.2s infinite ease-in-out;
}

.enter-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--proton-glow), transparent);
  box-shadow: 0 0 10px var(--proton-glow);
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pulsePrompt {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ==========================================================================
   Main Wrapper & 3D Tilt Card
   ========================================================================== */
.main-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  perspective: 1200px;
  padding: 24px;
}

/* Profile Card with Animated Border & HUD Brackets */
.profile-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 36px 30px 32px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--card-border);
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.85),
              0 0 65px -10px rgba(112, 42, 251, 0.28),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.profile-card:hover {
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 32px 85px -12px rgba(0, 0, 0, 0.92),
              0 0 85px 0 rgba(168, 85, 247, 0.38),
              inset 0 1px 2px 0 rgba(255, 255, 255, 0.22);
}

/* HUD Corner Brackets (Tech Boutique Finish) */
.card-hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0.6;
}

.card-hud-corner.tl { top: 12px; left: 12px; border-top: 2px solid var(--proton-glow); border-left: 2px solid var(--proton-glow); border-top-left-radius: 6px; }
.card-hud-corner.tr { top: 12px; right: 12px; border-top: 2px solid var(--proton-glow); border-right: 2px solid var(--proton-glow); border-top-right-radius: 6px; }
.card-hud-corner.bl { bottom: 12px; left: 12px; border-bottom: 2px solid var(--proton-glow); border-left: 2px solid var(--proton-glow); border-bottom-left-radius: 6px; }
.card-hud-corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--proton-glow); border-right: 2px solid var(--proton-glow); border-bottom-right-radius: 6px; }

/* Specular Light Reflection */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  pointer-events: none;
  background: radial-gradient(circle 380px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.1), transparent 75%);
  z-index: 20;
}

/* Status Telemetry Pill */
.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(112, 42, 251, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #d8b4fe;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateZ(20px);
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

/* ==========================================================================
   Profile Header & Avatar
   ========================================================================== */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  transform: translateZ(28px);
}

.avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  cursor: pointer;
}

/* Animated Glowing Ring */
.avatar-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #702afb, #c084fc, #38bdf8, #702afb);
  animation: rotateRing 6s linear infinite;
  opacity: 0.75;
  filter: blur(2px);
  transition: opacity 0.3s;
}

.avatar-wrapper:hover .avatar-ring {
  opacity: 1;
  filter: blur(4px);
}

@keyframes rotateRing {
  100% { transform: rotate(360deg); }
}

.avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0f0a1c;
  box-shadow: 0 0 30px rgba(112, 42, 251, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.05);
}

.status-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  background: #0d0818;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  z-index: 3;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.status-icon {
  width: 13px;
  height: 13px;
  fill: #facc15;
}

/* User Identity */
.user-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.name-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.username {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(192, 132, 252, 0.4);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(112, 42, 251, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 8px;
  padding: 4px 8px;
  color: #e9d5ff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(112, 42, 251, 0.3);
}

.badge-tag svg {
  width: 13px;
  height: 13px;
}

/* Typewriter Quote Box */
.quote-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.typewriter-text {
  color: #f1f5f9;
  font-weight: 500;
}

.cursor-blink {
  display: inline-block;
  color: var(--proton-glow);
  font-weight: 700;
  margin-left: 2px;
  animation: blink 1s infinite step-start;
}

@keyframes blink {
  50% { opacity: 0; }
}

.joined-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Presence / Activity Card
   ========================================================================== */
.presence-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 20px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
  transform: translateZ(22px);
  transition: var(--transition-smooth);
}

.presence-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 30px rgba(112, 42, 251, 0.25);
  transform: translateZ(28px) translateY(-2px);
}

.presence-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.presence-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.presence-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #0d0818;
  box-shadow: 0 0 10px #10b981;
}

.presence-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.presence-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.presence-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
}

.presence-sub-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--proton-glow);
}

.presence-detail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Enhanced Social Media Floating Dock (TikTok, Instagram, WhatsApp)
   ========================================================================== */
.socials-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding-top: 6px;
  transform: translateZ(30px);
}

.social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: #f1f5f9;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.social-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, fill 0.3s ease;
  fill: currentColor;
}

/* Tooltip */
.social-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 6, 18, 0.94);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(112, 42, 251, 0.2);
  z-index: 50;
}

.social-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Glow States */
.social-btn.tiktok:hover {
  background: rgba(254, 44, 85, 0.2);
  border-color: rgba(254, 44, 85, 0.8);
  color: #ff2a5f;
  box-shadow: 0 0 30px rgba(254, 44, 85, 0.6), 0 0 60px rgba(254, 44, 85, 0.2);
  transform: translateY(-5px) scale(1.1);
}

.social-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.2);
  border-color: rgba(225, 48, 108, 0.8);
  color: #f43f5e;
  box-shadow: 0 0 30px rgba(225, 48, 108, 0.6), 0 0 60px rgba(225, 48, 108, 0.2);
  transform: translateY(-5px) scale(1.1);
}

.social-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.8);
  color: #22c55e;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.6), 0 0 60px rgba(37, 211, 102, 0.2);
  transform: translateY(-5px) scale(1.1);
}

/* ==========================================================================
   Encrypted Audio Pill (Top-Right)
   ========================================================================== */
.audio-control-pill {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 9, 26, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.audio-control-pill:hover {
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(14, 9, 26, 0.85);
  box-shadow: 0 0 25px rgba(112, 42, 251, 0.4);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.audio-bar {
  width: 3px;
  height: 100%;
  background: var(--proton-glow);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--proton-glow);
  transition: height 0.2s ease;
}

.audio-control-pill.playing .audio-bar:nth-child(1) { animation: bounceBar 0.9s infinite ease-in-out; }
.audio-control-pill.playing .audio-bar:nth-child(2) { animation: bounceBar 0.7s infinite 0.2s ease-in-out; }
.audio-control-pill.playing .audio-bar:nth-child(3) { animation: bounceBar 1.1s infinite 0.4s ease-in-out; }

.audio-control-pill.muted .audio-bar {
  height: 3px !important;
  animation: none !important;
  opacity: 0.35;
}

.audio-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

@keyframes bounceBar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 640px) {
  .profile-card {
    padding: 30px 22px 26px;
    border-radius: 24px;
    gap: 18px;
  }

  .avatar-wrapper {
    width: 88px;
    height: 88px;
  }

  .avatar-ring {
    width: 96px;
    height: 96px;
  }

  .username {
    font-size: 1.5rem;
  }

  .quote-box {
    font-size: 0.84rem;
  }

  .social-btn {
    width: 52px;
    height: 52px;
  }

  .social-btn svg {
    width: 21px;
    height: 21px;
  }

  .custom-cursor, .custom-cursor-follower {
    display: none !important;
  }
}
