/* =========================
   BASE STYLES
   ========================= */

:root {
  --discord: #5865F2;
}

body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at center, #0b1430, #000);
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  color: #00bfff;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* =========================
   HERO SCENE
   ========================= */

.scene {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform: translateY(-40px);
}

.logo-group {
  transform-style: preserve-3d;
  text-align: center;
}

.logo {
  width: min(70vw, 900px);
  filter:
    drop-shadow(0 0 35px rgba(0,191,255,0.9))
    drop-shadow(0 0 90px rgba(0,191,255,0.4));
  transform: translateZ(80px);
  position: relative;
  animation: idleFloat 6s ease-in-out infinite;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

/* =========================
   HERO TEXT (SAFE)
   ========================= */

.text {
  margin-top: -150px;
  transform: translateZ(120px);
}

.text h1 {
  font-size: clamp(72px, 6vw, 104px);
  margin: 0;
  text-shadow:
    0 0 30px rgba(0,191,255,0.7),
    0 0 70px rgba(0,191,255,0.35);
}

.text h2 {
  font-size: clamp(30px, 3vw, 44px);
  letter-spacing: 12px;
  margin: 6px 0 0;
  opacity: 0.9;
}

.text p {
  margin-top: 18px;
  letter-spacing: 9px;
  font-size: 14px;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

/* =========================
   ANIMATIONS
   ========================= */

@keyframes pulse {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes sweep {
  0% { transform: translateX(-120%); }
  40% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes idleFloat {
  0%, 100% {
    transform: translateZ(80px) translateY(0);
  }
  50% {
    transform: translateZ(80px) translateY(-10px);
  }
}

@keyframes fadeInBtn {
  to { opacity: 1; }
}

/* =========================
   MAIN DISCORD CARD
   ========================= */

.discord-card {
  position: relative;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  display: inline-block;
  text-decoration: none;
  color: #bff4ff;
  background: linear-gradient(135deg,
    rgba(79,70,229,0.35),
    rgba(0,0,0,0.65)
  );
  border: 2px solid rgba(99,102,241,0.35);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(99,102,241,0.25);
  overflow: hidden;
  opacity: 0;
  animation: fadeInBtn 1.4s ease forwards;
  animation-delay: 1.2s;
  transition: all 0.4s ease;
}

.discord-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(129,140,248,0.6);
  box-shadow: 0 30px 80px rgba(99,102,241,0.45);
}

.discord-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-icon {
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(99,102,241,0.35),
    rgba(99,102,241,0.15)
  );
}

.discord-icon svg {
  width: 28px;
  height: 28px;
  fill: #a5b4fc;
  filter: drop-shadow(0 0 10px rgba(99,102,241,0.6));
  transition: transform 0.3s ease;
}

.discord-card:hover .discord-icon svg {
  transform: scale(1.1);
}

.discord-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  color: #c7d2fe;
}

.discord-text span {
  font-size: 12px;
  line-height: 1.1;
  color: rgba(199,210,254,0.7);
}

.discord-arrow {
  margin-left: auto;
  font-size: 22px;
  color: #a5b4fc;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.discord-card:hover .discord-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* =========================
   DISCORD TOOLTIP BUTTON
   ========================= */

.tooltip-container {
  position: relative;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  border-radius: 15px;
  background: #1e1f22;
  border: 1px solid rgba(88,101,242,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.tooltip-container:hover .tooltip {
  top: -150px;
  opacity: 1;
  pointer-events: auto;
}

.icon {
  display: block;
  position: relative;
  color: white;
}

.layer {
  width: 55px;
  height: 55px;
  transition: transform 0.3s;
}

.icon:hover .layer {
  transform: rotate(-35deg) skew(20deg);
}

.layer span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--discord);
  border-radius: 15px;
  transition: all 0.3s;
}

.icon:hover .layer span:nth-child(1) { opacity: 0.2; }
.icon:hover .layer span:nth-child(2) { opacity: 0.4; transform: translate(5px,-5px); }
.icon:hover .layer span:nth-child(3) { opacity: 0.6; transform: translate(10px,-10px); }
.icon:hover .layer span:nth-child(4) { opacity: 0.8; transform: translate(15px,-15px); }
.icon:hover .layer span:nth-child(5) { opacity: 1; transform: translate(20px,-20px); }

.discordSVG {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #7289da, #5865F2);
  color: white;
}

/* SAFE tooltip label — DOES NOT TOUCH HERO */
.tooltip-label {
  position: absolute;
  left: 50%;
  bottom: -5px;
  opacity: 0;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  color: var(--discord);
}

.icon:hover .tooltip-label {
  bottom: -35px;
  opacity: 1;
}

/* =========================
   FONT
   ========================= */

.luckiest-guy-regular {
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  font-style: normal;
}
/* =========================
   MOBILE FIX — NETFLUX HERO
   ========================= */
@media (max-width: 768px) {

  .scene {
    transform: translateY(-10px); /* less lift on mobile */
  }

  .logo {
    width: min(85vw, 600px); /* slightly smaller so text never overlaps */
    transform: translateZ(60px);
  }

  .text {
    margin-top: -60px; /* was -150px — this prevents overlap */
    transform: translateZ(90px);
  }

  .text h1 {
    font-size: clamp(48px, 10vw, 72px);
  }

  .text h2 {
    font-size: clamp(20px, 4vw, 32px);
    letter-spacing: 8px;
  }

  .text p {
    font-size: 12px;
    letter-spacing: 6px;
  }

  .discord-card {
    margin-top: 18px;
    padding: 14px 18px;
  }
}
