@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

@media screen and (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
  }

  input, select, textarea {
    font-size: 16px !important; /* avoids iOS zooming */
  }
}

body {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  color: #fff;
  position: relative;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 40%, #111 100%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    background: linear-gradient(135deg, #000 0%, #0a0a0a 40%, #111 100%);
  }
  50% {
    background: linear-gradient(135deg, #000 0%, #1a1400 40%, #2a1f00 100%);
  }
  100% {
    background: linear-gradient(135deg, #000 0%, #0a0a0a 40%, #111 100%);
  }
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 1%, transparent 2%) repeat;
  background-size: 120px 120px;
  animation: sparkle 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

body::after {
  animation-duration: 90s;
  opacity: 0.4;
}

@keyframes sparkle {
  from { transform: translate(0, 0); }
  to { transform: translate(-60px, -90px); }
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  width: 100%;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 215, 0, 0.05), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.home .home-content h1 {
  font-size: 6vw;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(90deg, #ffd700, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.3);
  animation: goldShine 6s ease-in-out infinite;
}

@keyframes goldShine {
  0%, 100% {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2);
  }
  50% {
    text-shadow: 0 0 60px rgba(255, 215, 0, 0.9), 0 0 120px rgba(255, 255, 200, 0.3);
  }
}

span {
  color: #ffd700;
}

.home-content h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.typing-text {
  font-size: clamp(4rem, 5vw, 6rem);
  font-weight: 800;
  margin-bottom: 3rem;
  line-height: 1.3;
  height: auto;
  display: inline-block;
  background: linear-gradient(90deg, #fff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  animation: glowPulse 3s ease-in-out infinite;
}

.typing-text span {
  border-right: 3px solid #ffd700;
  padding-right: 6px;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
  50% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.9); }
}

.home-content p {
  font-size: 1.8rem;
  margin-top: 2rem;
  max-width: 60ch;
  line-height: 1.6;
  color: #d8d8d8;
}

.home-img {
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-bottom: 5rem;
  position: relative;
}

.home-img img {
  width: 26vw;
  max-width: 260px;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 70px rgba(255, 215, 0, 0.4);
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3.5rem;
  position: relative;
}

.social-icons::before {
  content: "";
  position: absolute;
  inset: -100px;
  background: radial-gradient(circle, rgba(255, 183, 197, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(120px);
  z-index: 0;
  animation: rainbowGlow 10s infinite alternate ease-in-out;
}

@keyframes rainbowGlow {
  0% { background: radial-gradient(circle, rgba(255, 0, 80, 0.25), transparent 70%); }
  25% { background: radial-gradient(circle, rgba(0, 242, 234, 0.25), transparent 70%); }
  50% { background: radial-gradient(circle, rgba(225, 48, 108, 0.25), transparent 70%); }
  75% { background: radial-gradient(circle, rgba(252, 175, 69, 0.25), transparent 70%); }
  100% { background: radial-gradient(circle, rgba(88, 101, 242, 0.25), transparent 70%); }
}

.social-icons a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  font-size: 3rem;
  transition: all 0.3s ease;
  background-color: transparent;
  border: 0.35rem solid #ffd700;
  color: #ffd700;
  animation: pulseGlow 2.5s infinite ease-in-out;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
}

.social-icons a.tiktok { border-color: #ff0050; color: #ff0050; animation: pulseTikTok 2.5s infinite; }
.social-icons a.instagram { border-color: #e1306c; color: #e1306c; animation: pulseInsta 2.5s infinite; }
.social-icons a.discord { border-color: #5865f2; color: #5865f2; animation: pulseDiscord 2.5s infinite; }

.social-icons a:hover {
  transform: scale(1.25) rotate(10deg) translateY(-8px);
  background-color: white;
  color: black;
  box-shadow: 0 0 80px white, 0 0 100px currentColor;
  animation: none;
}

@keyframes pulseTikTok {
  0%,100% { box-shadow: 0 0 30px rgba(255, 0, 80, 0.6); }
  50% { box-shadow: 0 0 80px rgba(0, 242, 234, 1); }
}
@keyframes pulseInsta {
  0%,100% { box-shadow: 0 0 30px rgba(225, 48, 108, 0.6); }
  50% { box-shadow: 0 0 80px rgba(252, 175, 69, 1); }
}
@keyframes pulseDiscord {
  0%,100% { box-shadow: 0 0 30px rgba(88, 101, 242, 0.6); }
  50% { box-shadow: 0 0 80px rgba(114, 137, 218, 1); }
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
  50% { box-shadow: 0 0 70px rgba(255, 215, 0, 1); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .home-content h1 {
    font-size: 7vw;
  }

  .typing-text {
    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
  }

  .home-img img {
    width: 50vw;
    max-width: 250px;
  }

  .home-content p {
    font-size: 2.2rem;
    line-height: 1.7;
  }

  .social-icons a {
    width: 6.5rem;
    height: 6.5rem;
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 58%;
  }

  .home-content h1 {
    font-size: 8vw;
  }

  .typing-text {
    font-size: clamp(4rem, 7vw, 7rem);
  }

  .home-content p {
    font-size: 2.4rem;
  }

  .social-icons a {
    width: 6rem;
    height: 6rem;
    font-size: 2.6rem;
  }
}

.copyright {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  color: #bdbdbd;
  letter-spacing: 0.05em;
  z-index: 2;
  opacity: 0.8;
}

.copyright:hover {
  color: #de3163;
  opacity: 1;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.home-content,
.home-img,
.typing-text,
.social-icons,
.copyright {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideIn 1.2s ease forwards;
}

.home-img {
  animation-delay: 0.2s;
}
.home-content h1 {
  animation-delay: 0.4s;
}
.typing-text {
  animation-delay: 0.6s;
}
.social-icons {
  animation-delay: 0.9s;
}
.copyright {
  animation-delay: 1.4s;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
