* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95, #7c3aed);
  color: #f5f5f5;
  overflow-x: hidden;
  position: relative;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}

.blob1 {
  width: 320px;
  height: 320px;
  background: #f472b6;
  top: -80px;
  left: -80px;
}

.blob2 {
  width: 280px;
  height: 280px;
  background: #22d3ee;
  bottom: -60px;
  right: -60px;
}

.blob3 {
  width: 260px;
  height: 260px;
  background: #facc15;
  top: 40%;
  left: 60%;
}

header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem 2rem;
}

h1 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 1.1rem;
  opacity: 0.85;
  margin: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  background: rgba(255, 255, 255, 0.14);
}

.emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.card h2 {
  font-family: 'Baloo 2', cursive;
  margin: 0 0 0.75rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
}

.jokes {
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
}

.jokes h2 {
  font-family: 'Baloo 2', cursive;
  margin-top: 0;
}

#joke {
  min-height: 3rem;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 1rem auto 1.5rem;
  line-height: 1.5;
}

#jokeBtn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #facc15);
  color: #1e1b4b;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#jokeBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#jokeBtn:active {
  transform: scale(0.97);
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  opacity: 0.7;
}
