/* ══════════════════════════════════════════
   FELTZER - Bio Page Styles
   ══════════════════════════════════════════ */

/* ── Reset & Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0a0a0f;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

/* ── Intro Cinematográfica ── */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0f;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.intro-terminal {
  width: 500px;
  max-width: 90vw;
  background: rgba(15, 15, 25, 0.95);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f57;
}
.terminal-dot.yellow {
  background: #febc2e;
}
.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  margin-left: auto;
  font-size: 0.7rem;
  color: #6b7280;
  font-family: "Courier New", monospace;
}

.terminal-body {
  padding: 16px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #22c55e;
  text-align: left;
  min-height: 180px;
  line-height: 1.7;
}

.terminal-body .line {
  opacity: 0;
  animation: terminalLine 0.3s ease forwards;
}

.terminal-body .line.command {
  color: #a78bfa;
}

.terminal-body .line.success {
  color: #22c55e;
}

.terminal-body .line.info {
  color: #60a5fa;
}

.terminal-body .line.warning {
  color: #fbbf24;
}

.terminal-body .cursor-blink {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #22c55e;
  animation: termBlink 0.6s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes termBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes terminalLine {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-logo {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #60a5fa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 12px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-logo.show {
  opacity: 1;
  transform: scale(1);
}

.intro-tagline {
  font-size: 1rem;
  color: #6b7280;
  margin-top: 12px;
  letter-spacing: 3px;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
}

.intro-tagline.show {
  opacity: 1;
}

.intro-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.1) 2px,
    rgba(0, 0, 0, 0.1) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* ── Cursor personalizado ── */
.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7c3aed;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    background 0.2s;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.3);
  border: 2px solid #7c3aed;
}

.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.4);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

/* ── Matrix Rain Canvas ── */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

/* ── Vídeo de fundo ── */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* ── Fundo animado ── */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.bg-animation .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.bg-animation .orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: #7c3aed;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.bg-animation .orb:nth-child(2) {
  width: 300px;
  height: 300px;
  background: #2563eb;
  top: 50%;
  right: -80px;
  animation-delay: -3s;
}

.bg-animation .orb:nth-child(3) {
  width: 350px;
  height: 350px;
  background: #db2777;
  bottom: -80px;
  left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ── Partículas ── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── Container principal ── */
.container {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ── Banner ── */
.banner {
  width: 100%;
  height: 200px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ── Avatar ── */
.avatar-wrapper {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #7c3aed, #2563eb, #db2777);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.avatar-wrapper:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow:
    0 0 30px rgba(124, 58, 237, 0.6),
    0 0 60px rgba(124, 58, 237, 0.3);
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0a0a0f;
}

.avatar-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.4);
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.avatar-wrapper .status-dot {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 50%;
  border: 4px solid #0a0a0f;
}

/* ── Badges ── */
.badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.2);
}

/* ── Info do perfil ── */
.profile-info {
  text-align: center;
  margin-bottom: 25px;
}

/* ── Glitch no nome ── */
.profile-info .display-name {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #60a5fa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  animation: glitch 3s infinite;
}

.profile-info .display-name::before,
.profile-info .display-name::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #c084fc, #60a5fa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-info .display-name::before {
  animation: glitchTop 2s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.profile-info .display-name::after {
  animation: glitchBottom 1.5s infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchTop {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-3px, -1px);
  }
  94% {
    transform: translate(3px, 1px);
  }
  96% {
    transform: translate(-2px, 0);
  }
}

@keyframes glitchBottom {
  0%,
  88%,
  100% {
    transform: translate(0);
  }
  90% {
    transform: translate(3px, 1px);
  }
  93% {
    transform: translate(-3px, -1px);
  }
  96% {
    transform: translate(2px, 0);
  }
}

@keyframes glitch {
  0%,
  95%,
  100% {
    filter: none;
  }
  96% {
    filter: hue-rotate(90deg);
  }
  97% {
    filter: hue-rotate(-90deg);
  }
  98% {
    filter: none;
  }
}

/* ── Typewriter cursor ── */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #7c3aed;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.profile-info .username {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 2px;
}

.profile-info .bio {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.5;
  padding: 0 10px;
}

/* ── Seções ── */
.section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  transition: transform 0.15s ease;
}

/* ── Profile Card ── */
.profile-card {
  background: rgba(15, 15, 25, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 20px 20px;
  padding: 80px 30px 30px;
  position: relative;
  transition: transform 0.15s ease;
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #7c3aed;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  font-size: 0.9rem;
}

/* ── Sobre mim ── */
.about-text {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Discord Info ── */
.discord-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.discord-info:hover {
  background: rgba(88, 101, 242, 0.2);
  transform: scale(1.02);
}

.discord-info .discord-icon {
  width: 45px;
  height: 45px;
  background: #5865f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.discord-info .discord-details .discord-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.discord-info .discord-details .discord-tag {
  color: #6b7280;
  font-size: 0.8rem;
}

.discord-info .copy-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.3s;
}

.discord-info .copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Specs do PC ── */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s;
}

.spec-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.08);
}

.spec-item .spec-icon {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #7c3aed;
}

.spec-item .spec-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 4px;
}

.spec-item .spec-value {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Links sociais ── */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateX(5px);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.1);
}

.social-link .link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.social-link .link-icon.discord {
  background: rgba(88, 101, 242, 0.2);
  color: #5865f2;
}
.social-link .link-icon.github {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.social-link .link-icon.twitter {
  background: rgba(29, 161, 242, 0.2);
  color: #1da1f2;
}
.social-link .link-icon.instagram {
  background: rgba(225, 48, 108, 0.2);
  color: #e1306c;
}
.social-link .link-icon.youtube {
  background: rgba(255, 0, 0, 0.15);
  color: #ff0000;
}
.social-link .link-icon.steam {
  background: rgba(102, 192, 244, 0.15);
  color: #66c0f4;
}
.social-link .link-icon.spotify {
  background: rgba(30, 215, 96, 0.15);
  color: #1ed760;
}
.social-link .link-icon.tiktok {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── Cyberpunk Glitch (randomizado via JS) ── */
.cyber-glitch-active {
  animation: cyberGlitch 0.3s steps(1) forwards;
}

@keyframes cyberGlitch {
  0% {
    text-shadow: none;
  }
  20% {
    text-shadow:
      -2px 0 #0ff,
      2px 0 #f0f;
  }
  40% {
    text-shadow:
      2px 0 #0ff,
      -2px 0 #f0f;
  }
  60% {
    text-shadow:
      -1px 0 #f0f,
      1px 0 #0ff;
  }
  80% {
    text-shadow:
      1px 0 #f0f,
      -1px 0 #0ff;
  }
  100% {
    text-shadow: none;
  }
}

.social-link .link-arrow {
  margin-left: auto;
  color: #4b5563;
  transition: transform 0.3s;
}

.social-link:hover .link-arrow {
  transform: translateX(4px);
  color: #7c3aed;
}

/* ── Timestamp / Criado ── */
.created-info {
  text-align: center;
  margin-top: 30px;
  color: #374151;
  font-size: 0.7rem;
}

/* ── Tooltip ── */
.tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: #22c55e;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  pointer-events: none;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
}

.tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animações de entrada ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.5s;
}
.fade-in:nth-child(6) {
  animation-delay: 0.6s;
}
.fade-in:nth-child(7) {
  animation-delay: 0.7s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Glow do cursor ── */
.cursor-glow {
  position: fixed;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.12),
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 3px;
}

/* ── Responsivo ── */
@media (max-width: 540px) {
  .container {
    padding: 20px 12px;
  }
  .profile-card {
    padding: 70px 20px 20px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}
