/* ==========================================================================
   FERB.SITE — Authentic Dark Glassmorphism Bio Hub
   Aesthetic: guns.lol/ferbsname + Aleph Studios & Awwwards Precision
   ========================================================================== */

:root {
  --bg-deep: #070510;
  --card-bg: rgba(13, 10, 28, 0.62);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(255, 255, 255, 0.14);
  
  --accent-amber: #ff9800;
  --accent-gold: #ffb703;
  --accent-purple: #6a11cb;
  --accent-discord: #5865F2;
  --accent-telegram: #229ED9;
  
  --text-white: #ffffff;
  --text-dim: #9490a8;
  --text-muted: #5e5975;
  
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Background Lighting (Guns.lol replica) ---------------- */
.bg-gradient-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, #15092e 0%, #080512 60%, #030207 100%);
  overflow: hidden;
}

.radial-amber {
  position: absolute;
  top: 15%;
  right: 18%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.42) 0%, rgba(255, 100, 0, 0.18) 40%, transparent 70%);
  filter: blur(90px);
  animation: pulseAmber 12s ease-in-out infinite alternate;
}

.radial-purple {
  position: absolute;
  bottom: 10%;
  left: 15%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 17, 203, 0.35) 0%, rgba(67, 24, 150, 0.15) 50%, transparent 70%);
  filter: blur(100px);
  animation: pulsePurple 14s ease-in-out infinite alternate;
}

@keyframes pulseAmber {
  0% { transform: scale(1) translate(0, 0); opacity: 0.85; }
  100% { transform: scale(1.1) translate(30px, -20px); opacity: 1; }
}

@keyframes pulsePurple {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.08) translate(-20px, 30px); opacity: 0.95; }
}

/* Subtle texture overlay */
.noise-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ---------------- Audio Toggle (Top Right) ---------------- */
.audio-control {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.audio-control:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.equalizer span {
  width: 2.5px;
  height: 3px;
  background-color: var(--text-dim);
  border-radius: 1px;
  transition: background-color 0.3s ease;
}

.equalizer.active span {
  background-color: var(--accent-amber);
  animation: bounceBar 0.85s ease-in-out infinite alternate;
}

.equalizer.active span:nth-child(1) { height: 11px; animation-delay: 0.1s; }
.equalizer.active span:nth-child(2) { height: 7px;  animation-delay: 0.3s; }
.equalizer.active span:nth-child(3) { height: 13px; animation-delay: 0.2s; }
.equalizer.active span:nth-child(4) { height: 8px;  animation-delay: 0.4s; }

@keyframes bounceBar {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.audio-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------------- Main Bio Card ---------------- */
.card-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 580px;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.bio-card {
  position: relative;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 38px 36px 28px;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 
    0 24px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(255, 154, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bio-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(255, 154, 0, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.16);
}

/* ---------------- Profile Row ---------------- */
.profile-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.avatar-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #100d20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.profile-name {
  font-family: var(--font-sans);
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
  line-height: 1.1;
}

.diamond-badge {
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.profile-sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #e4e2f0;
  letter-spacing: -0.01em;
}

.profile-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ---------------- Linked Identity (thapuppeter) ---------------- */
.linked-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  transition: all 0.25s ease;
}

.linked-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

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

.linked-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #110f22;
}

.status-indicator {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid #0d0a1c;
}

.linked-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.linked-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.linked-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------------- Links Section ---------------- */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-white);
  transition: all 0.25s ease;
  cursor: pointer;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.project-item {
  border-color: rgba(255, 183, 3, 0.2);
  background: linear-gradient(90deg, rgba(255, 183, 3, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.project-item:hover {
  border-color: rgba(255, 183, 3, 0.45);
  box-shadow: 0 8px 24px rgba(255, 183, 3, 0.1);
}

.link-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.veax-box {
  background: #000;
  border-color: rgba(255, 183, 3, 0.35);
}

.veax-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
}

.discord-box {
  background: rgba(88, 101, 242, 0.12);
  color: #7289da;
  border-color: rgba(88, 101, 242, 0.25);
}

.discord-box svg, .telegram-box svg {
  width: 20px;
  height: 20px;
}

.telegram-box {
  background: rgba(34, 158, 217, 0.12);
  color: #29b6f6;
  border-color: rgba(34, 158, 217, 0.25);
}

.link-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.link-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.link-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.url-hint {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
}

.copy-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.social-item:hover .copy-tag {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.external-svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.link-item:hover .external-svg {
  transform: translate(2px, -2px);
  stroke: #ffffff;
}

/* ---------------- Card Footer (guns.lol exact replica) ---------------- */
.card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #d1cde0;
}

.footer-views, .footer-location {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-views svg, .footer-location svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.85;
}

.footer-views svg {
  fill: none;
  stroke: currentColor;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ---------------- Toast Notification ---------------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: rgba(18, 14, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 100px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  z-index: 100;
}

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

/* ---------------- Responsive ---------------- */
@media (max-width: 540px) {
  .card-container {
    padding: 16px;
  }
  
  .bio-card {
    padding: 26px 20px 20px;
    border-radius: 22px;
  }
  
  .profile-row {
    gap: 16px;
  }
  
  .avatar-wrapper {
    width: 80px;
    height: 80px;
  }
  
  .profile-name {
    font-size: 1.7rem;
  }
}
