* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: radial-gradient(circle at top, #1a1a1a, #0f0f0f);
  color: white;
  background: #0f0f0f;
  color: white;
}

/* LOADER */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;

  padding: 0 80px;

  background: url("images/ash-pikachu.jpg") no-repeat center/cover;
  overflow: hidden;
  z-index: 1;
}

/* DARK + CINEMATIC OVERLAY */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(circle at center,
    rgba(0,0,0,0.4),
    rgba(0,0,0,0.85)
  );
}

/* LIGHT GLOW EFFECT */
.hero::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,217,61,0.2), transparent 70%);
  top: 20%;
  right: 10%;
  filter: blur(80px);
}

.hero-left {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

/* BUTTON */
.magnetic {
  margin-top: 10px;
}

/* RIGHT */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-right img {
  width: 380px;
  object-fit: contain;

  /* MAGIC FIX FOR BAD PNG */
  mix-blend-mode: lighten;
  filter: drop-shadow(0 20px 40px rgba(255,255,255,0.1));
}

.journey {
  position: relative;
  padding: 120px 80px;

  /* COLORFUL GRADIENT BASE */
  background: radial-gradient(circle at top left, #1e3a8a, #0f172a),
              radial-gradient(circle at bottom right, #7c3aed, #0f172a);

  overflow: hidden;
}

.journey::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;

  background: radial-gradient(circle, rgba(0,255,255,0.25), transparent 70%);
  top: -10%;
  left: -10%;

  filter: blur(120px);
}

.journey::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;

  background: radial-gradient(circle, rgba(255,0,150,0.25), transparent 70%);
  bottom: -10%;
  right: -10%;

  filter: blur(120px);
}

.journey h2 {
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.journey * {
  position: relative;
  z-index: 2;
}

.journey {
  background: #0f0f0f;
}

.journey h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.timeline {
  margin-top: 30px;
}

.journey {
  padding: 100px 80px;
}

.journey h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.journey-desc {
  max-width: 600px;
  margin-bottom: 60px;
  opacity: 0.8;
}

.timeline {
  position: relative;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 100px;
}


.timeline-item img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.timeline-item img:hover {
  transform: scale(1.05);
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.timeline-item.reverse {
  flex-direction: row-reverse;
}

.timeline-item img {
  width: 420px;
  border-radius: 20px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}


.text {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.text h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.text p {
  max-width: 450px;
  line-height: 1.7;
  opacity: 0.85;
}

/* SECTIONS */
section {
  padding: 100px 80px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;

}

section h2 {
  margin-bottom: 20px;
}

section p {
  margin-bottom: 40px;
}

section {
  position: relative;
  z-index: 2;
}

/* TEXT */
p {
  max-width: 500px;
  opacity: 0.8;
  line-height: 1.6;
}

/* GRID */
.grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* CARD */
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.poke-card {
  perspective: 1000px;
  border-radius: 20px;
}

.poke-card {
  position: relative;
  overflow: visible; /* allow glow outside */
}

.poke-inner {
  transform: scale(1);
  transition: all 0.3s ease;
}

/* IMAGE DEFAULT */
.poke-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* HIDDEN TEXT */
.poke-info {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-align: center;
  margin-top: 15px;
}

/* HOVER EFFECT */
.poke-card:hover .poke-inner {
  transform: scale(1.08);
}

/* IMAGE POP (3D FEEL) */
.poke-card:hover .poke-img {
  transform: translateY(-20px) scale(1.2);
}

/* SHOW TEXT */
.poke-card:hover .poke-info {
  opacity: 1;
  transform: translateY(0);
}

/* 🔥 360 GLOW FIX */
.electric:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;

  background: radial-gradient(circle, rgba(255,217,61,0.4), transparent 70%);
  animation: electricPulse 0.6s infinite alternate;
}

@keyframes electricPulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.fire:hover .poke-inner {
  animation: fireFlicker 1s infinite alternate;
}

@keyframes fireFlicker {
  0% {
    box-shadow:
      0 0 20px rgba(255,80,0,0.6),
      0 0 40px rgba(255,120,0,0.4);
  }
  50% {
    box-shadow:
      0 0 35px rgba(255,100,0,0.9),
      0 0 70px rgba(255,150,0,0.6);
  }
  100% {
    box-shadow:
      0 0 25px rgba(255,70,0,0.7),
      0 0 50px rgba(255,110,0,0.5);
  }
}

.water:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;

  background: radial-gradient(circle, rgba(0,150,255,0.3), transparent 70%);
  animation: waterWave 2s infinite;
}

@keyframes waterWave {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0; }
}

.grass:hover .poke-inner {
  animation: leafPulse 1.5s infinite ease-in-out;
}

@keyframes leafPulse {
  0% {
    box-shadow:
      0 0 20px rgba(0,255,120,0.6),
      0 0 40px rgba(0,255,120,0.3);
  }
  50% {
    box-shadow:
      0 0 35px rgba(0,255,120,0.9),
      0 0 70px rgba(0,255,120,0.5);
  }
  100% {
    box-shadow:
      0 0 20px rgba(0,255,120,0.6),
      0 0 40px rgba(0,255,120,0.3);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.poke-card {
  height: 300px; /* FIXED HEIGHT */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255,255,255,0.1);
}


.pokemon {
  position: relative;
  padding: 120px 80px;

  background: linear-gradient(
    to bottom,
    #0f172a,
    #1e293b,
    #0f172a
  );

  overflow: hidden;
}

.pokemon::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;

  background: radial-gradient(circle, rgba(255,217,61,0.15), transparent);
  top: -20%;
  left: -10%;
  filter: blur(120px);
}

.pokemon::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;

  background: radial-gradient(circle, rgba(0,150,255,0.15), transparent);
  bottom: -20%;
  right: -10%;
  filter: blur(120px);
}

.pokemon * {
  position: relative;
  z-index: 2;
}

.pokemon h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.pokemon p {
  margin-bottom: 40px;
}

/*companion*/

.companions {
  padding: 120px 80px;
  position: relative;

  background: linear-gradient(to bottom, #0f172a, #1e293b, #0f172a);
}

/* GRID */
.companions .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* CARD */
.comp-card {
  position: relative;
  perspective: 1000px;
}

.comp-inner {
  height: 280px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

/* IMAGE */
.comp-img {
  width: 120px;
  transition: transform 0.4s ease;
}

/* HIDDEN INFO */
.comp-info {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  text-align: center;
  padding: 10px;
}

/* HOVER */
.comp-card:hover .comp-inner {
  transform: scale(1.08);
}

.comp-card:hover .comp-img {
  transform: translateY(-20px) scale(1.2);
}

.comp-card:hover .comp-info {
  opacity: 1;
  transform: translateY(0);
}

.water:hover .comp-inner {
  animation: waterGlow 2s infinite;
}

@keyframes waterGlow {
  0% { box-shadow: 0 0 20px rgba(0,150,255,0.5); }
  50% { box-shadow: 0 0 50px rgba(0,150,255,0.9); }
  100% { box-shadow: 0 0 20px rgba(0,150,255,0.5); }
}

.earth:hover .comp-inner {
  animation: earthPulse 1.5s infinite;
}

@keyframes earthPulse {
  0% { box-shadow: 0 0 20px rgba(200,150,100,0.5); }
  50% { box-shadow: 0 0 40px rgba(200,150,100,0.8); }
  100% { box-shadow: 0 0 20px rgba(200,150,100,0.5); }
}

.fairy:hover .comp-inner {
  animation: fairyGlow 2s infinite;
}

@keyframes fairyGlow {
  0% { box-shadow: 0 0 20px rgba(255,150,255,0.5); }
  50% { box-shadow: 0 0 50px rgba(255,150,255,0.9); }
  100% { box-shadow: 0 0 20px rgba(255,150,255,0.5); }
}

.companions::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;

  background: radial-gradient(circle, rgba(255,150,255,0.2), transparent);
  top: -10%;
  left: -10%;
  filter: blur(120px);
}

/* BUTTON */
.magnetic {
  padding: 12px 25px;
  border: none;
  background: #FFD93D;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.magnetic:hover {
  transform: scale(1.05);
  background: #ffe66d;
}

/* TIMELINE */
.timeline div {
  margin: 15px 0;
}

/* MOBILE */
@media(max-width:768px){
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero img {
    width: 250px;
  }
}

@media(max-width:768px){
  .timeline-item {
    flex-direction: column !important;
    text-align: center;
  }

  .timeline-item img {
    width: 100%;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  z-index: 5; /* IMPORTANT */
}

@keyframes bounce {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

.footer {
  padding: 40px 20px;
  text-align: center;

  background: linear-gradient(to top, #0a0a0a, #0f172a);
  border-top: 1px solid rgba(255,255,255,0.05);

  font-size: 0.9rem;
  opacity: 0.8;
}

/* NAME STYLE */
.highlight {
  color: #FFD93D;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255,217,61,0.6);
}

.footer p {
  transition: 0.3s ease;
}

.footer p:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer::before {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  margin: 0 auto 20px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,217,61,0.6),
    transparent
  );
}
