/* ============================================================
   HERO — Hero section, popup card, profile toggle
   ============================================================ */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 8% 4rem;
  pointer-events: none; /* Let clicks pass to canvas by default */
}

/* Profile Toggle Button (Always Fixed Left) */
.profile-toggle {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--purple-1);
  background: var(--bg-card);
  cursor: pointer;
  z-index: 100;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  pointer-events: auto;
}

.profile-toggle:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--purple-glow);
}

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

.toggle-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--purple-1);
  opacity: 0.5;
  animation: hotspotPulse 2s infinite ease-in-out;
}

/* Hero Popup Container */
.hero-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  pointer-events: none;
}

.hero-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-card {
  position: relative;
  max-width: 500px;
  opacity: 0;
  width: 90%;
  text-align: center;
  padding: 3rem 2rem;
  margin-left: 0.8rem;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-popup.active .hero-card {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Close Button inside Card */
.hero-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.hero-close:hover {
  color: var(--purple-1);
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--purple-1);
  box-shadow: 0 0 20px var(--purple-glow);
}

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-card-socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  margin: 1.5rem auto 0;
  width: min(100%, 320px);
}

.hero-card-socials a {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid hsla(0, 0%, 100%, 0.18);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.hero-card-socials a:hover {
  background: rgba(147, 100, 255, 0.12);
  border-color: rgba(147, 100, 255, 0.35);
  color: var(--purple-1);
  transform: translateY(-1px);
}

/* Social Links (Fixed Left) */
.social-links {
  position: fixed;
  left: 2.5rem;
  bottom: 2.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  pointer-events: auto;
}
.social-links::after {
  content: "";
  display: block;
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to bottom, var(--purple-1), transparent);
  margin: 0.5rem auto 0;
}

.social-icon {
  color: var(--text-muted);
  transition: var(--transition);
}
.social-icon svg {
  width: 20px;
  height: 20px;
}
.social-icon:hover {
  color: var(--purple-1);
  transform: translateY(-3px);
}
