/* Gamification Elements */
.floating-element {
  position: absolute;
  pointer-events: none;
  animation: float-random 10s ease-in-out infinite;
  z-index: 10;
  opacity: 0.9;
}

.floating-streak {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-streak span {
  font-size: 1.25rem;
}

@keyframes float-random {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(5deg);
  }
  50% {
    transform: translateY(-5px) rotate(-5deg);
  }
  75% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Penguin Parade Section */
.penguin-parade {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2a4a 100%);
  position: relative;
  overflow: hidden;
}

.penguin-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.penguin-wave-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px;
}

.penguin-wave-top .shape-fill {
  fill: var(--bg-light);
}

.parade-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.parade-header {
  margin-bottom: 4rem;
}

.parade-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.parade-header p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.parade-slider {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.penguin-card {
  flex: 0 1 220px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.penguin-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(135, 206, 235, 0.2);
  border-color: rgba(135, 206, 235, 0.3);
}

.penguin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: radial-gradient(
    circle at center,
    rgba(135, 206, 235, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.penguin-card:hover::before {
  opacity: 1;
}

.penguin-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s ease;
}

.penguin-card:hover .penguin-image {
  transform: translateY(-5px) scale(1.1);
}

.penguin-card h4 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.penguin-rarity {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.rarity-common {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.rarity-uncommon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399; /* Emerald/Green */
}

.rarity-rare {
  background: rgba(135, 206, 235, 0.2);
  color: var(--secondary);
}

.rarity-epic {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.rarity-legendary {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.rarity-mythical {
  background: linear-gradient(90deg, rgba(255,0,0,0.2) 0%, rgba(255,154,0,0.2) 10%, rgba(208,222,33,0.2) 20%, rgba(79,220,74,0.2) 30%, rgba(63,218,216,0.2) 40%, rgba(47,201,226,0.2) 50%, rgba(28,127,238,0.2) 60%, rgba(95,21,242,0.2) 70%, rgba(186,12,248,0.2) 80%, rgba(251,7,217,0.2) 90%, rgba(255,0,0,0.2) 100%);
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 0, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Background blob */
.bg-blob {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  border-radius: 50%;
  animation: blob-bounce 20s infinite alternate;
}

.blob-1 {
  top: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--primary);
}

.blob-2 {
  bottom: 10%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: #4a90a4;
}

@keyframes blob-bounce {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.2) translate(50px, -50px);
  }
  100% {
    transform: scale(0.9) translate(-20px, 20px);
  }
}

@media (max-width: 768px) {
  .parade-header h2 {
    font-size: 2.25rem;
  }
  .parade-slider {
    gap: 1rem;
  }
  .penguin-card {
    flex: 0 1 160px;
    padding: 1.5rem 1rem;
  }
  .penguin-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
  .penguin-card h4 {
    font-size: 1.1rem;
  }
}

/* Additional Glassmorphism & Hover Elements */
.glass-effect {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 6s infinite;
  opacity: 0.5;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Enhancing CTA Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 4s infinite 1s;
}

