/* =========================================================
   Kachní Ráj - Stylesheet (style.css)
   ========================================================= */

:root {
  --primary-yellow: #FFCA28;
  --dark-yellow: #FFA000;
  --beak-orange: #FF6D00;
  --water-light: #E0F7FA;
  --water-cyan: #26C6DA;
  --water-blue: #0288D1;
  --water-deep: #006064;
  --reed-green: #66BB6A;
  --dark-green: #2E7D32;
  --bg-gradient-top: #E0F7FA;
  --bg-gradient-bottom: #B2EBF2;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.6);
  --text-main: #263238;
  --text-muted: #546E7A;
  --shadow-sm: 0 4px 12px rgba(0, 96, 100, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 96, 100, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 96, 100, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, .logo-text, .btn {
  font-family: 'Fredoka', cursive, sans-serif;
}

/* Background floating bubbles */
.water-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(38, 198, 218, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: floatUp 14s infinite linear;
}

.b1 { width: 40px; height: 40px; left: 10%; bottom: -50px; animation-duration: 12s; }
.b2 { width: 60px; height: 60px; left: 30%; bottom: -70px; animation-duration: 16s; animation-delay: 2s; }
.b3 { width: 25px; height: 25px; left: 55%; bottom: -30px; animation-duration: 10s; animation-delay: 4s; }
.b4 { width: 70px; height: 70px; left: 80%; bottom: -80px; animation-duration: 18s; animation-delay: 1s; }
.b5 { width: 35px; height: 35px; left: 92%; bottom: -40px; animation-duration: 13s; animation-delay: 3s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-120vh) scale(1.2); opacity: 0; }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(38, 198, 218, 0.2);
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--water-deep);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
  display: inline-block;
  animation: duckWiggle 3s infinite ease-in-out;
}

.logo .highlight {
  color: var(--dark-yellow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  background: rgba(38, 198, 218, 0.15);
  color: var(--water-blue);
  transform: translateY(-2px);
}

.btn-party {
  background: linear-gradient(135deg, #FF4081, #7C4DFF);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
  transition: var(--transition-normal);
}

.btn-party:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.5);
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-yellow), var(--dark-yellow));
  color: #5D4037;
  box-shadow: 0 6px 16px rgba(255, 160, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 22px rgba(255, 160, 0, 0.45);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-secondary {
  background: white;
  color: var(--water-blue);
  border: 2px solid var(--water-cyan);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--water-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1.15rem;
}

/* Common Section Layout */
.section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(38, 198, 218, 0.15);
  color: var(--water-deep);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--water-deep);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 2rem auto 4rem auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #FFF9C4;
  color: #F57F17;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(245, 127, 23, 0.15);
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--water-deep);
  margin-bottom: 1.25rem;
}

.duck-text {
  color: #F57F17;
  position: relative;
  display: inline-block;
}

.duck-text::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 202, 40, 0.5);
  border-radius: 4px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.quack-counter-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed var(--dark-yellow);
  border-radius: 50px;
  font-weight: 700;
}

.counter-number {
  font-family: 'Fredoka', cursive;
  font-size: 1.5rem;
  color: var(--beak-orange);
  min-width: 30px;
  text-align: center;
}

/* Hero Duck Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.duck-stage {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-duck-container {
  position: relative;
  cursor: pointer;
  animation: duckBob 3s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.hero-duck-container:hover {
  transform: scale(1.05);
}

.hero-duck-container:active {
  transform: scale(0.92) rotate(-5deg);
}

.duck-svg {
  width: 260px;
  height: 240px;
  filter: drop-shadow(0 12px 16px rgba(0, 96, 100, 0.15));
}

.duck-wing {
  transform-origin: 70px 115px;
  animation: wingFlap 4s ease-in-out infinite;
}

.duck-shadow {
  animation: shadowScale 3s ease-in-out infinite;
  transform-origin: center;
}

.duck-speech-bubble {
  position: absolute;
  top: -25px;
  right: 10px;
  background: white;
  color: var(--water-deep);
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-yellow);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5) translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.duck-speech-bubble.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.duck-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: white transparent;
  display: block;
  width: 0;
}

/* Water Waves under hero duck */
.water-waves {
  position: absolute;
  bottom: 30px;
  width: 280px;
  height: 40px;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(38, 198, 218, 0.3);
  border-radius: 20px;
  animation: waveMotion 2.5s ease-in-out infinite alternate;
}

.wave2 {
  bottom: -8px;
  height: 10px;
  background: rgba(2, 136, 209, 0.2);
  animation-delay: -1.25s;
}

@keyframes duckBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes wingFlap {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-15deg); }
  90% { transform: rotate(8deg); }
  95% { transform: rotate(-10deg); }
}

@keyframes shadowScale {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(0.85); opacity: 0.2; }
}

@keyframes waveMotion {
  0% { transform: scaleX(0.9) translateY(0); }
  100% { transform: scaleX(1.1) translateY(6px); }
}

@keyframes duckWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

/* Interactive Pond Section */
.pond-game-wrapper {
  background: var(--card-bg);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.pond-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(38, 198, 218, 0.2);
}

.food-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.control-label {
  font-weight: 700;
  color: var(--water-deep);
  font-size: 0.95rem;
}

.btn-food {
  padding: 0.45rem 0.9rem;
  border-radius: 50px;
  border: 2px solid #B2EBF2;
  background: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-food:hover {
  background: var(--water-light);
  transform: translateY(-2px);
}

.btn-food.active {
  background: var(--primary-yellow);
  border-color: var(--dark-yellow);
  box-shadow: 0 3px 8px rgba(255, 160, 0, 0.3);
}

.pond-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(224, 247, 250, 0.7);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

.progress-bar {
  width: 80px;
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF7043, #66BB6A);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.pond-canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(180deg, #4DD0E1 0%, #0097A7 100%);
  cursor: crosshair;
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.15);
}

#pondCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pond-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity 0.5s ease;
}

/* Soundboard Section */
.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sound-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sound-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-yellow);
}

.sound-card.playing {
  animation: pulseCard 0.4s ease;
  border-color: var(--beak-orange);
  background: #FFF9C4;
}

@keyframes pulseCard {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.sound-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.sound-name {
  font-family: 'Fredoka', cursive;
  font-size: 1.3rem;
  color: var(--water-deep);
  margin-bottom: 0.5rem;
}

.sound-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.btn-sound {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, var(--water-cyan), var(--water-blue));
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sound:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-sound:active {
  transform: translateY(1px);
}

.visualizer-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.visualizer-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

#visualizerCanvas {
  width: 100%;
  height: 80px;
  background: #E0F2F1;
  border-radius: var(--radius-sm);
}

/* Rubber Duck Counseling Section */
.counseling-box {
  background: var(--card-bg);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 850px;
  margin: 0 auto;
}

.duck-therapist {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid rgba(38, 198, 218, 0.2);
  margin-bottom: 1.5rem;
}

.therapist-avatar {
  position: relative;
  width: 70px;
  height: 70px;
  background: #FFF9C4;
  border: 3px solid var(--primary-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.therapist-glasses {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 1.2rem;
  transform: rotate(-10deg);
}

.therapist-info h3 {
  color: var(--water-deep);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.therapist-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chat-history {
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: rgba(224, 247, 250, 0.4);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: fadeInMsg 0.3s ease;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.message-bubble {
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-message.bot .message-bubble {
  background: white;
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--primary-yellow);
}

.chat-message.user .message-bubble {
  background: linear-gradient(135deg, var(--water-cyan), var(--water-blue));
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(2, 136, 209, 0.2);
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-input-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

#chatInput {
  flex-grow: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 50px;
  border: 2px solid #B2EBF2;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

#chatInput:focus {
  border-color: var(--water-cyan);
  box-shadow: 0 0 0 4px rgba(38, 198, 218, 0.15);
}

.quick-questions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quick-btn {
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(38, 198, 218, 0.4);
  background: white;
  color: var(--water-deep);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-btn:hover {
  background: var(--water-light);
  border-color: var(--water-cyan);
  transform: translateY(-1px);
}

/* Facts Section */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.fact-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--water-cyan);
}

.fact-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.fact-card h3 {
  font-size: 1.25rem;
  color: var(--water-deep);
  margin-bottom: 0.5rem;
}

.fact-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.fact-generator-box {
  background: linear-gradient(135deg, #FFF9C4, #FFF176);
  border: 2px solid #FBC02D;
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.gen-badge {
  font-weight: 800;
  font-size: 0.9rem;
  color: #F57F17;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.random-fact {
  font-size: 1.25rem;
  font-weight: 700;
  color: #5D4037;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

/* Species Section */
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.species-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--card-border);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.species-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.species-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--water-deep);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 2;
}

.species-emoji {
  height: 140px;
  background: linear-gradient(135deg, #B2EBF2, #80DEEA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  transition: transform 0.3s ease;
}

.species-card:hover .species-emoji {
  transform: scale(1.1);
}

.species-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.species-body h3 {
  font-size: 1.25rem;
  color: var(--water-deep);
  margin-bottom: 0.2rem;
}

.latin-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.species-info {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.species-traits {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.trait {
  background: #E0F2F1;
  color: var(--dark-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

/* Quiz Section */
.quiz-container {
  background: var(--card-bg);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeInMsg 0.4s ease;
}

.quiz-progress {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--water-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.quiz-question {
  font-size: 1.6rem;
  color: var(--water-deep);
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-opt {
  background: white;
  border: 2px solid #B2EBF2;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.quiz-opt:hover {
  background: #FFF9C4;
  border-color: var(--primary-yellow);
  transform: translateX(6px);
}

.quiz-result {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-badge {
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.result-icon {
  font-size: 5rem;
  margin-bottom: 0.75rem;
  animation: duckWiggle 2s infinite ease-in-out;
}

.result-title {
  font-size: 2rem;
  color: var(--water-deep);
  margin-bottom: 0.75rem;
}

.result-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: #004D40;
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 5rem;
}

.footer-logo {
  font-family: 'Fredoka', cursive;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.footer-quote {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  opacity: 0.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Party Mode Animation */
body.party-mode {
  animation: rainbowBg 5s infinite alternate;
}

@keyframes rainbowBg {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Floating Duck Quack Bubbles */
.floating-quack {
  position: fixed;
  font-family: 'Fredoka', cursive;
  font-weight: 800;
  color: var(--beak-orange);
  background: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-yellow);
  pointer-events: none;
  z-index: 9999;
  animation: floatQuack 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes floatQuack {
  0% { transform: scale(0.4) translateY(0); opacity: 1; }
  50% { transform: scale(1.1) translateY(-30px); opacity: 1; }
  100% { transform: scale(0.9) translateY(-70px); opacity: 0; }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}
