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

body {
  background: url('images/backrola.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family: 'Noto Sans Mono', monospace;
  position: relative;
}

/* Animated Background Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(103, 137, 204, 0.1) 0%,
    rgba(88, 101, 242, 0.1) 25%,
    rgba(231, 191, 143, 0.1) 50%,
    rgba(103, 137, 204, 0.1) 75%,
    rgba(88, 101, 242, 0.1) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.click-text {
  color: white;
  font-size: 2em;
  animation: glow 0.5s ease-in-out infinite alternate;
  font-family: 'Sintony', sans-serif;
}

.fade-out {
  animation: fadeOut 1s forwards;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
  }
  to {
    text-shadow: 0 0 20px white, 0 0 30px white, 0 0 40px white;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Avatar */
.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.2) drop-shadow(0 0 15px rgba(103, 137, 204, 0.8));
}

/* Status Indicator */
.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.685);
  background-color: #747f8d;
  transition: all 0.3s ease;
}

.status-indicator.online {
  background-color: #43b581;
  box-shadow: 0 0 10px #43b581, 0 0 20px rgba(67, 181, 129, 0.5);
  animation: pulse-online 2s ease-in-out infinite;
}

.status-indicator.idle {
  background-color: #faa61a;
  box-shadow: 0 0 10px #faa61a, 0 0 20px rgba(250, 166, 26, 0.5);
}

.status-indicator.dnd {
  background-color: #f04747;
  box-shadow: 0 0 10px #f04747, 0 0 20px rgba(240, 71, 71, 0.5);
}

.status-indicator.offline {
  background-color: #747f8d;
}

@keyframes pulse-online {
  0%, 100% {
    box-shadow: 0 0 10px #43b581, 0 0 20px rgba(67, 181, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 20px #43b581, 0 0 30px rgba(67, 181, 129, 0.8);
  }
}

/* Profile Info */
.profile-info {
  margin: 10px;
}

.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wrapper h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  font-family: 'Sintony', sans-serif;
  background: linear-gradient(to right, #6789cc 10%, #ffffff 50%);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 1.5s linear infinite;
  display: inline-block;
  margin: 0;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

/* Badges */
.badges-container {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.3s; }
.badge:nth-child(4) { animation-delay: 0.4s; }
.badge:nth-child(5) { animation-delay: 0.5s; }

/* Tooltip */
.badge .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.badge:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Display Name */
.display-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 5px 0;
}

/* Custom Status */
.custom-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.status-emoji {
  font-size: 20px;
}

.status-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* Description/Bio */
.description-text {
  color: white;
  font-family: 'Noto Sans Mono', monospace;
  margin: 10px 0;
  font-size: 14px;
}

/* Activities Section */
.activities-section {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Spotify Card */
.spotify-card {
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.spotify-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #1ed760;
  font-size: 14px;
  font-weight: bold;
}

.spotify-header i {
  font-size: 18px;
}

.spotify-content {
  display: flex;
  gap: 12px;
}

.spotify-album {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  flex-shrink: 0;
}

.spotify-info {
  flex: 1;
  min-width: 0;
}

.spotify-song {
  font-weight: bold;
  font-size: 14px;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotify-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotify-progress {
  margin-top: 8px;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: #1ed760;
  width: 0%;
  transition: width 1s linear;
}

.spotify-time {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

/* Activity Card (Games, VS Code, etc) */
.activity-card {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.activity-header {
  font-size: 14px;
  font-weight: bold;
  color: #5865f2;
  margin-bottom: 10px;
}

.activity-content {
  display: flex;
  gap: 12px;
}

.activity-image {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: cover;
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-name {
  font-weight: bold;
  font-size: 14px;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-details,
.activity-state {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Social Icons */
.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.social-icons li {
  display: inline;
}

/* Line Separator */
.line {
  display: block;
  width: 155px;
  height: 2px;
  background-color: #fff;
  margin: 15px auto;
}

/* Visitor Counter */
.ip-display {
  margin-top: 15px;
}

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(103, 137, 204, 0.2), rgba(88, 101, 242, 0.2));
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: counterGlow 3s ease-in-out infinite;
}

.visitor-counter:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(103, 137, 204, 0.5);
}

.visitor-counter i {
  font-size: 16px;
  animation: eyeBlink 4s ease-in-out infinite;
}

@keyframes counterGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(103, 137, 204, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(103, 137, 204, 0.6);
  }
}

@keyframes eyeBlink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

/* Sparkle Divs */
div[style*="position: absolute"] {
  pointer-events: none;
  z-index: 9999;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .profile-container {
    max-width: 90%;
    padding: 15px;
  }

  .wrapper h1 {
    font-size: 28px;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .status-indicator {
    width: 25px;
    height: 25px;
    border-width: 2px;
  }

  .click-text {
    font-size: 1.5em;
    padding: 0 20px;
  }

  .spotify-content,
  .activity-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .spotify-album,
  .activity-image {
    width: 80px;
    height: 80px;
  }
}

/* Loading Animation */
.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========================================
   ANIMAÇÕES IMPORTADAS DO SLIDE_IN_FADE
   ======================================== */

/* Badge Flip Animation - Vira o badge no hover */
.badge {
  width: 22px;
  height: 22px;
  transition: transform 0.6s ease, filter 0.2s;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
  animation: badgeFadeIn 0.5s ease-out backwards;
}

.badge:hover {
  transform: scale(1.3) rotateY(180deg);
  filter: drop-shadow(0 0 8px rgba(103, 137, 204, 0.8));
}

.badge img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  backface-visibility: hidden;
}

/* Social Icon 3D Hover Effect */
.social-icons li a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.social-icons li a:hover {
  transform: scale(1.4) rotateY(15deg);
  color: #6789cc;
  filter: drop-shadow(0 0 10px rgba(103, 137, 204, 0.8));
}

/* Shine Effect para Social Icons */
.social-icons li a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    0deg, 
    transparent, 
    rgba(103, 137, 204, 0.5), 
    rgba(88, 101, 242, 0.5)
  );
  transform-origin: bottom right;
  animation: shine 3s linear infinite;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.social-icons li a:hover::before {
  opacity: 0.4;
}

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

/* Orbit Animation para Avatar - Aplicado ao avatar-wrapper existente */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin: 20px auto;
  filter: drop-shadow(0 0 20px rgba(103, 137, 204, 0.5));
  transform-style: preserve-3d;
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #6789cc, #5865f2, #e7bf8f, #6789cc);
  background-size: 300% 300%;
  animation: gradientRotate 4s ease infinite;
  z-index: -1;
  opacity: 0.7;
}

/* Orbit particles effect */
.avatar-wrapper::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 10px 10px,
    #6789cc 8%,
    transparent 12%
  );
  animation: orbit 3s linear infinite;
  z-index: -1;
  filter: blur(1px);
  box-shadow: 0 0 15px rgba(103, 137, 204, 0.6);
}

.avatar-wrapper:hover::after {
  animation: fast-orbit 0.5s linear forwards;
}

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

@keyframes fast-orbit {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* LED Glow Border Animation - Aplicado ao profile-container */
.profile-container {
  text-align: center;
  position: relative;
  background: rgba(0, 0, 0, 0.685);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(103, 137, 204, 0.37),
              0 4px 8px rgba(0, 0, 0, 0.6);
  max-width: 340px;
  width: 100%;
  border: 2px solid transparent;
  animation: slideIn 0.8s ease-out, floatCard 6s ease-in-out infinite;
  transition: transform 0.5s ease-out,
              box-shadow 0.5s ease-out,
              background 0.5s ease-out,
              border-color 0.5s ease-out;
  transform-style: preserve-3d;
  isolation: isolate;
  z-index: 1;
}

/* LED Border Effect */
.profile-container::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 17px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #6789cc 20%,
    #5865f2 40%,
    #e7bf8f 60%,
    transparent 80%
  );
  background-size: 400%;
  animation: led-glow 4s ease-in-out infinite;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

.profile-container:hover {
  transform: translateY(-15px) scale(1.02) perspective(1000px) rotateX(2deg);
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 20px 60px 0 rgba(103, 137, 204, 0.7),
              0 10px 20px rgba(0, 0, 0, 0.8),
              0 0 50px rgba(103, 137, 204, 0.5);
  border-color: rgba(103, 137, 204, 0.6);
}

.profile-container:hover::before {
  opacity: 1;
  animation: led-glow 2s ease-in-out infinite;
}

@keyframes led-glow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 400% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Animated Conic Border */
.animated-border {
  position: relative;
}

.animated-border::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid transparent;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    #6789cc 0.8,
    #5865f2 0.8,
    #6789cc 0.8
  );
  animation: border-spin 2s linear infinite;
  z-index: -1;
}

@keyframes border-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Slide In Fade Animation */
.slide-in-fade {
  animation: slideInFade 1s ease-out forwards;
}

@keyframes slideInFade {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glitch Effect */
.glitch-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  z-index: 20;
  mix-blend-mode: color-dodge;
}

.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 #ff00ff;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -2px 0 #00ffff;
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(39px, 9999px, 15px, 0); }
  5% { clip: rect(29px, 9999px, 10px, 0); }
  10% { clip: rect(50px, 9999px, 20px, 0); }
  15% { clip: rect(35px, 9999px, 25px, 0); }
  20% { clip: rect(45px, 9999px, 30px, 0); }
  25% { clip: rect(55px, 9999px, 40px, 0); }
  30% { clip: rect(60px, 9999px, 45px, 0); }
  35% { clip: rect(65px, 9999px, 50px, 0); }
  40% { clip: rect(70px, 9999px, 55px, 0); }
  45% { clip: rect(75px, 9999px, 60px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(25px, 9999px, 10px, 0); }
  5% { clip: rect(35px, 9999px, 20px, 0); }
  10% { clip: rect(40px, 9999px, 25px, 0); }
  15% { clip: rect(50px, 9999px, 30px, 0); }
  20% { clip: rect(55px, 9999px, 35px, 0); }
  25% { clip: rect(60px, 9999px, 40px, 0); }
  30% { clip: rect(65px, 9999px, 45px, 0); }
}

/* Cursor Trail Effect */
.cursor-trail {
  background: radial-gradient(circle, #6789cc 20%, #5865f2 80%);
  opacity: 0.8;
  border-radius: 50%;
  pointer-events: none;
  position: fixed;
  z-index: 10000;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  background: url('assets/custom_cursor.png') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease-out;
}

/* Profile Container 3D Transform */
.profile-container-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease-out, 
              background 0.3s ease, 
              backdrop-filter 0.3s ease, 
              opacity 0.3s ease, 
              border-color 0.3s ease;
}

/* Hover Card Tilt Effect - Adicione ao JS para funcionar */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}