* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c48d2, #391574);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #703ec2, #2a0c5a);
}

::selection {
  background: rgb(116 49 214 / 30%);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(102, 126, 234, 0.3);
  color: #2c3e50;
}

body, html {
  min-height: 100%;
  font-family: 'Arial', sans-serif;
  transition: background-color 0.5s, color 0.5s;
  background: #000;
  position: relative;
}

#toggle-theme {
  display: none;
}

.toggle-label {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1000;
  color: white;
}

.toggle-label:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.toggle-label i {
  display: none;
  transition: color 0.3s ease;
}

#toggle-theme:not(:checked) + .toggle-label .fa-moon {
  display: block;
  color: white;
}

#toggle-theme:checked + .toggle-label .fa-sun {
  display: block;
  color: #FE9900;
}

.wrapper {
  position: relative;
  background: url('background.gif') no-repeat center center / cover;
  min-height: 100vh;
  color: #fff;
  transition: background-color 0.5s, color 0.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px 20px 20px;
  text-align: center;
  flex-direction: column;
  z-index: 1;
}

.wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: 0;
}

#toggle-theme:checked ~ .wrapper::before {
  opacity: 0;
}

#toggle-theme:checked ~ .wrapper {
  background-color: #f5f5f5;
  color: #fff;
}

#toggle-theme:checked + .toggle-label {
  background: rgba(0, 0, 0, 0.1);
  color: #111;
}

.container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.avatar-border {
  pointer-events: none;
  padding: 6px;
  border: 4px solid #111;
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
  background: #111;
  display: inline-block;
  position: relative;
  z-index: 2;
}

#toggle-theme:checked ~ .wrapper .avatar-border {
  border-color: white;
  background: #fff;
  animation-name: pulseLight;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@keyframes pulseLight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.nome {
  font-size: 35px;
  font-weight: bold;
  margin-top: 20px;
  color: inherit;
  position: relative;
  z-index: 2;
  animation:flicker 0.2s infinite alternate;
}

.bio {
  font-size: 20px;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid currentColor;
  margin: 10px 0 30px;
  color: inherit;
  animation: typing 10s steps(48, end) infinite, blink 0.8s step-end infinite;
  position: relative;
  z-index: 2;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.social-icons a {
  color: inherit;
  font-size: 40px;
  transition: transform 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.social-icons a:hover {
  transform: scale(1.4);
}

.kick-icon:hover {
  color: #53fc18;
}

.facebook-icon:hover {
  color: #1877f2;
}

.instagram-icon:hover {
  color: #e4405f;
}

.tiktok-icon:hover {
  color: #817d7b;
}

.whatsapp-icon:hover {
  color: #25d366;
}

.youtube-icon:hover {
  color: #ff0000;
}

.discord-icon:hover {
  color: #5865f2;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
}

.footer b {
  font-size: 12px;
  background: linear-gradient(90deg, #b36bff, #d68cff, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer a {
  font-size: 12px;
  background: linear-gradient(90deg, #b36bff, #d68cff, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #b36bff, #d68cff, #ffffff);
  transition: width 0.3s ease;
}

.footer a:hover {
  background-position: 100% center;
  text-shadow: 0 0 10px rgba(179, 107, 255, 0.6);
  transform: translateY(-1px);
}

.footer a:hover::after {
  width: 100%;
}

#toggle-theme:checked ~ .wrapper .footer {
  color: rgba(255, 255, 255, 0.7);
}

#toggle-theme:checked ~ .wrapper .footer a {
  background: linear-gradient(90deg, #b36bff, #d68cff, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes flicker {
  0% {
    text-shadow: 0 0 5px #d580ff, 0 0 10px #d580ff;
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 3px rgba(213, 128, 255, 0.7), 0 0 6px #d580ff;
    opacity: 0.95;
  }
  100% {
    text-shadow: 0 0 6px #d580ff, 0 0 12px rgba(213, 128, 255, 0.9);
    opacity: 1;
  }
}

@keyframes typing {
  0% {
    width: 0;
  }
  45% {
    width: 100%;
  }
  55% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: currentColor;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(83, 252, 24, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.7);
  transition: transform 0.3s ease;
  animation: modalSlideIn 0.3s ease forwards;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.7) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-content h2 i {
  font-size: 32px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.close:hover {
  color: #ff4444;
  transform: rotate(90deg);
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modal-btn i {
  font-size: 20px;
}

.modal-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.modal-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modal-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2, #0d65d9);
  border: 2px solid #1877f2;
}

.facebook-btn:hover {
  background: linear-gradient(135deg, #2d88ff, #1877f2);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.instagram-btn {
  background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
  border: 2px solid #e4405f;
}

.instagram-btn:hover {
  background: linear-gradient(135deg, #f15075, #d63fa1, #9446c4);
  box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.tiktok-btn {
  background: linear-gradient(135deg, #000000, #222222);
  border: 2px solid #ffffff;
  color: #ffffff;
}

.tiktok-btn:hover {
  background: linear-gradient(135deg, #333333, #000000);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@media (max-width: 768px) {
  .toggle-label {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .nome {
    font-size: 28px;
    margin-top: 15px;
   }

  .bio {
    font-size: 16px !important;
    max-width: 200px !important;
  }

  html[dir="rtl"] .bio {
    font-size: 16px !important;
    max-width: 125px !important;
  }

  .social-icons {
    gap: 15px;
    margin-top: 15px;
  }

  .social-icons a {
    font-size: 32px;
  }

  .footer {
    font-size: 11px;
    padding: 15px;
  }

  .footer a {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 80px 15px 15px 15px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }

  .avatar-border {
    padding: 4px;
    border: 3px solid #111;
  }

  .nome {
    font-size: 24px;
  }

  .bio {
    font-size: 14px !important;
    max-width: 175px !important;
  }

  html[dir="rtl"] .bio {
    font-size: 14px !important;
    max-width: 110px !important;
  }

  .social-icons {
    gap: 12px;
  }

  .social-icons a {
    font-size: 28px;
  }

  .modal-content {
    padding: 30px 20px;
    max-width: 95%;
  }

  .modal-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .modal-content h2 i {
    font-size: 26px;
  }

  .modal-btn {
    padding: 15px 20px;
    font-size: 14px;
  }

  .close {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .wrapper {
    padding: 40px 20px 10px 20px;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .nome {
    font-size: 22px;
    margin-top: 10px;
  }

  .bio {
    font-size: 14px !important;
    margin: 8px 0 15px !important;
  }

  html[dir="rtl"] .bio {
    font-size: 14px !important;
    margin: 8px 0 15px !important;
  }

  .social-icons {
    margin-top: 10px;
    gap: 10px;
  }

  .social-icons a {
    font-size: 24px;
  }

  .footer {
    padding: 10px;
    font-size: 10px;
  }
}

.language-toggle {
  position: fixed;
  top: 20px;
  right: 80px;
  cursor: pointer;
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1000;
  color: white;
}

.language-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#toggle-theme:checked ~ .language-toggle {
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
}

@media (max-width: 768px) {
  .language-toggle {
    top: 15px;
    right: 65px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .language-toggle {
    right: 60px;
  }
}

html[dir="rtl"] .bio {
  max-width: 150px;
  border-right: none;
  border-left: 2px solid currentColor;
}

.language-toggle.active {
  color: #b592f3;
}

#toggle-theme:checked ~ .language-toggle.active {
  color: #b592f3;
}
