* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
  z-index: -1;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

#stars, #stars2, #stars3 {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  direction: ltr !important;
}

#stars:before, #stars:after {
  content: '';
  width: 1px;
  height: 1px;
  background: transparent;
  position: absolute;
  box-shadow: 
    5vw 90vh #FFF, 10vw 56vh #FFF, 15vw 8vh #FFF, 20vw 63vh #FFF,
    25vw 25vh #FFF, 30vw 70vh #FFF, 35vw 11vh #FFF, 40vw 92vh #FFF,
    45vw 65vh #FFF, 50vw 40vh #FFF, 55vw 99vh #FFF, 60vw 76vh #FFF,
    65vw 88vh #FFF, 70vw 70vh #FFF, 75vw 94vh #FFF, 80vw 61vh #FFF,
    85vw 53vh #FFF, 90vw 74vh #FFF, 95vw 93vh #FFF, 98vw 98vh #FFF,
    8vw 8vh #FFF, 18vw 18vh #FFF, 28vw 28vh #FFF, 38vw 38vh #FFF,
    48vw 48vh #FFF, 58vw 58vh #FFF, 68vw 68vh #FFF, 78vw 78vh #FFF,
    88vw 88vh #FFF, 98vw 98vh #FFF;
}
#stars:after {
  box-shadow: 
    1979px 807px #FFF, 170px 2123px #FFF, 991px 1163px #FFF, 1530px 261px #FFF,
    569px 1500px #FFF, 1324px 409px #FFF, 2016px 1215px #FFF, 201px 844px #FFF,
    2036px 291px #FFF, 588px 1798px #FFF, 1168px 989px #FFF, 929px 2513px #FFF,
    2075px 765px #FFF, 392px 2396px #FFF, 2073px 874px #FFF, 30px 2221px #FFF,
    1151px 2053px #FFF, 948px 483px #FFF, 1332px 862px #FFF, 1584px 953px #FFF,
    1100px 1100px #FFF, 1200px 1200px #FFF, 1300px 1300px #FFF, 1400px 1400px #FFF,
    1500px 1500px #FFF, 1600px 1600px #FFF, 1700px 1700px #FFF, 1800px 1800px #FFF;
}

#stars2:before, #stars2:after {
  content: '';
  width: 2px;
  height: 2px;
  background: transparent;
  position: absolute;
  box-shadow: 
    7vw 88vh #FFF, 12vw 80vh #FFF, 17vw 85vh #FFF, 22vw 58vh #FFF,
    27vw 90vh #FFF, 32vw 52vh #FFF, 37vw 58vh #FFF, 42vw 88vh #FFF,
    47vw 90vh #FFF, 52vw 55vh #FFF, 57vw 63vh #FFF, 62vw 73vh #FFF,
    72vw 72vh #FFF, 77vw 77vh #FFF, 82vw 82vh #FFF, 87vw 87vh #FFF,
    92vw 92vh #FFF, 97vw 97vh #FFF;
}
#stars2:after {
  box-shadow:
    270px 761px #FFF, 465px 599px #FFF, 298px 704px #FFF, 894px 168px #FFF,
    274px 801px #FFF, 744px 32px #FFF, 324px 161px #FFF, 707px 766px #FFF,
    384px 809px #FFF, 600px 104px #FFF, 979px 259px #FFF, 161px 467px #FFF,
    250px 250px #FFF, 550px 550px #FFF, 850px 850px #FFF, 1150px 1150px #FFF,
    1450px 1450px #FFF, 1750px 1750px #FFF, 1850px 1850px #FFF;
}

#stars3:before, #stars3:after {
  content: '';
  width: 3px;
  height: 3px;
  background: transparent;
  position: absolute;
  box-shadow: 
    15vw 66vh #FFF, 25vw 96vh #FFF, 35vw 23vh #FFF, 45vw 69vh #FFF,
    55vw 86vh #FFF, 65vw 87vh #FFF, 75vw 53vh #FFF, 85vw 86vh #FFF,
    10vw 10vh #FFF, 30vw 30vh #FFF, 50vw 50vh #FFF, 70vw 70vh #FFF,
    90vw 90vh #FFF;
}
#stars3:after {
  box-shadow:
    994px 315px #FFF, 961px 928px #FFF, 459px 459px #FFF, 109px 378px #FFF,
    859px 711px #FFF, 893px 732px #FFF, 850px 61px #FFF, 781px 711px #FFF,
    400px 400px #FFF, 800px 800px #FFF, 1200px 1200px #FFF, 1600px 1600px #FFF,
    2000px 2000px #FFF;
}

@keyframes animStar {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-2000px);
  }
}

.profile-img {
  width: min(200px, 15vw);
  height: min(200px, 15vw);
  border-radius: 50%;
  margin-top: min(80px, 8vh);
  border: clamp(3px, 0.4vw, 6px) solid white;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.about {
  text-align: center;
  margin: clamp(20px, 3vh, 40px) 0;
  color: #ffffff;
  max-width: 90vw;
}

.about h2 {
  margin: clamp(10px, 1.5vh, 25px) 0;
  color: #FFF;
  text-align: center;
  font-family: 'lato',sans-serif;
  font-weight: bold;
  font-size: 50px;
  letter-spacing: 10px;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  background: -webkit-linear-gradient(white, #38495a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about p {
  margin: clamp(5px, 1vh, 15px) 0;
  color: #b8b8b8;
  text-shadow: 0 0 8px rgba(255,255,255,0.1);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
}

.container-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 2vw, 40px);
  padding: clamp(20px, 2vw, 40px);
  direction: ltr;
  max-width: 90vw;
  margin: 0 auto;
}

.card-wrapper {
  position: relative;
  width: 280px;
  margin: 20px;
  display: flex;
  justify-content: center;
}

.card {
  position: relative;
  height: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1rem;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.25);
  overflow: hidden;
  z-index: 10;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: scale(1);
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.15);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: all 0.5s ease;
}

.card::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.1);
  filter: blur(50px);
  animation: animation-card-shadow 10s linear infinite;
}

.card::after {
  inset: 1.5px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
}

.platform-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.card:hover .platform-logo {
  transform: translate(-50%, -50%) scale(1.1);
}

.platform-name {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.platform-name p {
  margin: 0;
}

.platform-desc {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1rem;
  color: #666;
  transition: color 0.3s ease;
  padding: 0 1rem;
}

.platform-desc p {
  margin: 0;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  color: #1f2937;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(229, 231, 235, 1);
  z-index: 20;
  pointer-events: none;
  transform: translateY(10px);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.card:hover + .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tooltip strong {
  font-weight: 600;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.tooltip i {
  margin-right: 6px;
  color: #6366f1;
}

.kick:hover {
  background-color: #53FC18;
}

.kick:hover .platform-logo,
.kick:hover .platform-name,
.kick:hover .platform-desc {
  color: #111111;
}

.twitter:hover {
  background-color: #1DA1F2;
}

.twitter:hover .platform-logo,
.twitter:hover .platform-name,
.twitter:hover .platform-desc {
  color: #111111;
}

.instagram:hover {
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.instagram:hover .platform-logo,
.instagram:hover .platform-name,
.instagram:hover .platform-desc {
  color: #111111;
}

.snapchat:hover {
  background-color: #FFFC00;
}

.snapchat:hover .platform-logo,
.snapchat:hover .platform-name,
.snapchat:hover .platform-desc {
  color: #111111;
}

.youtube:hover {
  background-color: #FE0000;
}

.youtube:hover .platform-logo,
.youtube:hover .platform-name,
.youtube:hover .platform-desc {
  color: #111111;
}

.discord:hover {
  background-color: #5865F2;
}

.discord:hover .platform-logo,
.discord:hover .platform-name,
.discord:hover .platform-desc {
  color: #111111;
}

.donate:hover {
  background-color: #df084c;
}

.donate:hover .platform-logo,
.donate:hover .platform-name,
.donate:hover .platform-desc {
  color: #111111;
}

.language-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  transition: all 0.3s ease;
}

[dir="ltr"] .language-switch {
  flex-direction: row;
}

[dir="rtl"] .language-switch {
  flex-direction: row-reverse;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.scroll-arrow {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  z-index: 1000;
  animation: bounceArrow 2s ease-in-out infinite;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-arrow:hover {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

#stars:before, #stars:after {
  animation: animStar 120s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
  will-change: transform;
}

#stars2:before, #stars2:after {
  animation: animStar 180s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
  will-change: transform;
}

#stars3:before, #stars3:after {
  animation: animStar 240s linear infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  #stars:before, #stars:after,
  #stars2:before, #stars2:after,
  #stars3:before, #stars3:after {
    animation: none;
  }
}
