/* The Vibrant Bloom Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --rose-magenta: #C2185B;
  --parkland-green: #2E7D32;
  --saffron-orange: #FF9800;
  --creamy-white: #FFF9F0;
  --text-dark: #333;
  --shadow-rose: rgba(194, 24, 91, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--creamy-white);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Navigation */
nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose-magenta);
  text-decoration: none;
}

.logo-emoji {
  font-size: 1.8rem;
}

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

.nav-links a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s;
  border-radius: 20px;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--rose-magenta);
  color: white;
}

.nav-links a.active {
  background: var(--rose-magenta);
  color: white;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--rose-magenta);
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: linear-gradient(135deg, var(--rose-magenta) 0%, var(--parkland-green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 20px var(--shadow-rose);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--text-dark);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px var(--shadow-rose);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--rose-magenta);
  margin-bottom: 0.5rem;
}

/* Content Box */
.content-box {
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 2rem 0;
  border-left: 5px solid var(--rose-magenta);
}

/* Population Counter */
.population-counter {
  background: linear-gradient(135deg, var(--saffron-orange), var(--rose-magenta));
  color: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  margin: 2rem 0;
}

.counter-number {
  font-size: 4rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin: 1rem 0;
}

/* Slider */
.comparison-slider {
  position: relative;
  margin: 2rem 0;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-before {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  background: linear-gradient(135deg, var(--parkland-green), var(--rose-magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.slider-after {
  background: linear-gradient(135deg, var(--saffron-orange), var(--parkland-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  cursor: ew-resize;
}

.slider-handle::before {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: var(--rose-magenta);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Masonry Layout */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.masonry-item {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.masonry-item h3 {
  color: var(--parkland-green);
  margin-bottom: 0.5rem;
}

.park-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Quiz */
.quiz-container {
  max-width: 700px;
  margin: 2rem auto;
}

.question-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.option-btn {
  padding: 1rem;
  border: 2px solid var(--rose-magenta);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: left;
}

.option-btn:hover {
  background: var(--rose-magenta);
  color: white;
}

.option-btn.correct {
  background: var(--parkland-green);
  color: white;
  border-color: var(--parkland-green);
}

.option-btn.incorrect {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
}

.quiz-result {
  background: linear-gradient(135deg, var(--rose-magenta), var(--saffron-orange));
  color: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  font-size: 1.5rem;
  margin-top: 2rem;
}

/* Footer */
footer {
  background: var(--rose-magenta);
  color: white;
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}