/* CSS Reset and Global Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #ff9900;
  --secondary-color: #ffd700;
  --accent-color: #ff6666;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --font-family: "Baloo 2", cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Navbar & Footer */




/* Reusable Components */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Section Dividers */
.wave-divider {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background-color: var(--light-color);
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: white;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url("image/gameplay.jpeg");
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 1s ease-out;
}

/* 1. The Core Loop */
.core-loop {
  background-color: #fff8e1;
  text-align: center;
}

.core-loop h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.loop-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.loop-item {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.loop-item:hover {
  transform: scale(1.1);
}

.loop-item img {
  width: 100px;
  height: 100px;
  animation: pulse 2s infinite;
}

.arrow {
  width: 50px;
  height: 50px;
  animation: fly 3s infinite;
}

/* 2. Egg Hunting Mechanics */
.egg-hunting {
  background-color: var(--light-color);
}

.egg-hunting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.egg-hunting-card {
  background-color: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.egg-hunting-card img {
  width: 80%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* 3. The Hatchery */
.hatchery {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.hatchery .hatch-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
}

.hatch-egg {
  width: 200px;
  height: 250px;
  background: url("image/egg-main.png") no-repeat center;
  background-size: contain;
  position: relative;
  animation: wiggle 1s infinite;
}

.hatch-egg.cracked {
  animation: crack 0.5s steps(4) forwards;
}

/* 4. Chicken Skill Trees */
.skill-trees {
  background-color: #fff8e1;
  text-align: center;
}

.skill-tree-diagram {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.skill-node {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.skill-node:hover {
  transform: scale(1.1);
}

/* 5. Coop Customization */
.coop {
  background-color: var(--light-color);
  text-align: center;
}

.coop-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.coop-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.coop-item img:hover {
  transform: scale(1.05);
}

/* 6. Boss Battles */
.boss-battles {
  background: var(--accent-color);
  color: white;
  text-align: center;
}

.boss-card {
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 20px;
  max-width: 600px;
  margin: 3rem auto;
  position: relative;
  overflow: hidden;
  animation: pulse 4s infinite;
}

.boss-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid white;
  margin-bottom: 1rem;
}

/* 7. Daily & Weekly Quests */
.quests {
  background-color: #fff8e1;
  text-align: center;
}

.quest-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.quest-item {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 8. Global Events & Seasons */
.events {
  background-color: var(--light-color);
  text-align: center;
}

.event-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 3rem auto;
}

/* 9. Multiplayer & Trading */
.multiplayer {
  background: var(--primary-color);
  color: white;
  text-align: center;
}

.multiplayer-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.multiplayer-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  width: 300px;
}

/* 10. The World Map */
.world-map {
  background-color: #fff8e1;
  text-align: center;
}

.map-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.map-container img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}





/* 11. Hidden Secrets */
.secrets {
  background: var(--secondary-color);
  color: var(--dark-color);
  text-align: center;
}

.secret-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.secret-item {
  width: 300px;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.secret-item:hover {
  transform: rotate(-5deg);
}

/* 12. Call to Action */
.cta {
  background: linear-gradient(to right, #ff6666, #ff9900);
  color: white;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .loop-diagram {
    flex-direction: column;
  }

  .hatch-container {
    flex-direction: column;
  }

  .skill-tree-diagram {
    flex-direction: column;
  }

  .multiplayer-grid {
    flex-direction: column;
  }
}

/* Keyframe Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fly {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(20px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes wiggle {

  0%,
  7% {
    transform: rotateZ(0);
  }

  2% {
    transform: rotateZ(-5deg);
  }

  4% {
    transform: rotateZ(5deg);
  }

  6% {
    transform: rotateZ(-3deg);
  }
}


@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}