/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: #0d0221;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

html.no-smooth {
  scroll-behavior: auto !important;
}

/* Background */
.grid-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(
      to top,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 20px
    ),
    radial-gradient(
      ellipse at center bottom,
      rgba(255, 0, 204, 0.2) 0%,
      rgba(13, 2, 33, 0) 100%
    );
  background-blend-mode: screen;
  transform-origin: bottom center;
  transform: perspective(800px) rotateX(60deg) scaleX(2.5);
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.grid-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(13, 2, 33, 0) 20%,
    rgba(13, 2, 33, 0.5) 60%,
    rgba(13, 2, 33, 1) 90%
  );
  pointer-events: none;
}

/* Layout containers */
.container {
  max-width: 600px;
  margin: 180px auto 140px;
  text-align: center;
  padding: 0 20px;
  gap: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* text glow */
h1.glow {
  font-size: 3rem;
  color: #ff00cc;
  text-shadow: 0 0 10px #ff00cc, 0 0 20px #ff00cc, 0 0 30px #ff00cc;
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1.3rem;
  color: #0ff;
  margin-bottom: 3rem;
}

/* buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(90deg, #ff00cc, #3333ff);
  border: none;
  border-radius: 30px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px #ff00cc;
  transition: transform 0.3s;
  cursor: pointer;
  font-size: 1.2rem;
}

.btn:hover {
  transform: scale(1.1);
}

/* Twitch */
.twitch-wrapper {
  max-width: 1200px;
  margin: 0 auto 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 0 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.twitch-wrapper.visible {
  opacity: 1;
  visibility: visible;
}

.twitch-main {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1150px;
}

.twitch-main iframe {
  border-radius: 8px;
  box-shadow: 0 0 20px #0ff;
  max-width: 100%;
  height: 480px;
}

/* neon text */
.twitch-text {
  font-size: 1.3rem;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #00ffff;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 10px #0ff, 0 0 20px #00ffff;
  }
  50% {
    text-shadow: 0 0 20px #00ffff, 0 0 30px #0ff;
  }
}

/* fade out */
.fade-out-up {
  animation: fadeOutUp 1s forwards;
  will-change: transform, opacity;
}

@keyframes fadeOutUp {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* other */
.contact-section {
  max-width: 700px;
  margin: 0 auto 140px;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-section.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-section h2 {
  font-size: 2.2rem;
  color: #ff00cc;
  text-shadow: 0 0 10px #ff00cc, 0 0 20px #ff00cc;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-section label {
  font-size: 1.1rem;
  text-align: left;
  color: #0ff;
  text-shadow: 0 0 8px #0ff;
}

.contact-section input,
.contact-section textarea {
  padding: 1rem;
  border-radius: 8px;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  background: #1a0f3f;
  color: #0ff;
  box-shadow: 0 0 5px #0ff inset;
  resize: vertical;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
  color: #0ff9;
}

.contact-section button.btn {
  align-self: center;
  max-width: 220px;
  font-weight: 700;
  margin-top: 0.6rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* image links */
.links {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.link-image img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 15px #ff00cc;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.link-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #ff00cc;
}

/* responsinve style */
@media (max-width: 900px) {
  h1.glow {
    font-size: 2rem;
  }

  .container {
    margin: 140px 20px 100px;
    gap: 1.2rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
  }

  .tagline {
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
  }

  .twitch-main {
    flex-direction: column;
    gap: 1.5rem;
  }

  .twitch-main iframe {
    width: 90vw !important;
    height: 240px !important;
  }

  .twitch-text {
    font-size: 1rem;
  }

  .contact-section {
    padding: 0 15px;
    margin-bottom: 120px;
    gap: 2.5rem;
  }

  .links {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .link-image img {
    max-width: 90vw;
  }
}


.twitch-text.top {
  margin-top: 40px; 
}

.link-description {
  font-size: 1.1rem;
  color: #0ff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px #0ff;
}

.link-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.link-title {
  font-size: 1.1rem;
  color: #ff00cc;
  text-shadow: 0 0 6px #ff00cc;
  margin-bottom: 0.3rem;
  text-align: center;
}

.extra-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.extra-title {
  font-size: 1.4rem;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

.extra-textarea {
  width: 90%;
  max-width: 600px;
  padding: 1rem;
  border-radius: 10px;
  border: none;
  background: #1a0f3f;
  color: #0ff;
  font-size: 1rem;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 10px #0ff inset;
  resize: vertical;
}

.extra-text {
  width: 90%;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.6;
  color: #0ff;
  background: #1a0f3f;
  padding: 1rem;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 0 10px #0ff inset;
}

#links-and-info {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#links-and-info.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* mobile */
@media (max-width: 800px) {
  .twitch-main {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .twitch-main iframe {
    width: 100% !important;
    height: 220px !important;
  }
}

@media (max-width: 600px) {
  .container,
  .contact-section {
    padding: 1rem;
  }

  h1.glow {
    font-size: 2rem;
  }

  .tagline,
  .twitch-text,
  .link-description {
    font-size: 1rem;
  }

  .links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .link-image img {
    max-width: 90vw;
  }

  .extra-info {
    margin-bottom: 3rem;
  }

  .contact-section {
    margin-bottom: 5rem;
  }

  .extra-text {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

/* fix for grid */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0221;
  background-image:
    repeating-linear-gradient(
      to top,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px,
      transparent 20px
    ),
    radial-gradient(
      ellipse at center,
      rgba(13, 2, 33, 1) 60%,
      rgba(13, 2, 33, 0) 100%
    );
  background-blend-mode: screen;
  z-index: -1;
}
