@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Poppins:wght@400;600&display=swap');

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

html, body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffe6f7, #e0f7ff);
  background-size: 300% 300%;
  animation: bgMove 10s ease infinite;
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Gen-Z Animated Background */
@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: slideDown 1s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

h1 {
  font-size: 2.5rem;
  letter-spacing: 1px;
}

nav {
  margin-top: 1rem;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  color: #fff;
  background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fbc2eb, #a1c4fd, #c2e9fb);
  background-size: 400%;
  padding: 10px 16px;
  border-radius: 12px;
  transition: background-position 0.5s, transform 0.2s;
  display: inline-block;
}

nav a:hover {
  background-position: right center;
  transform: scale(1.1);
}

section {
  padding: 2rem;
  text-align: center;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #6a11cb;
}

.card {
  background: white;
  padding: 1.5rem;
  margin: 1.5rem auto;
  border-radius: 20px;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

button {
  margin-top: 1rem;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  color: white;
  background: linear-gradient(270deg, #ff8a00, #e52e71, #9b00ff, #00c9ff);
  background-size: 600% 600%;
  animation: rainbow 6s ease infinite;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.1);
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

footer {
  background: #111827;
  color: #ccc;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
  border-top: 2px dashed #444;
  animation: slideUp 1s ease;
}

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

/* Mobile First */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  nav a {
    display: block;
    margin: 10px auto;
    width: 90%;
  }

  .card {
    margin: 1rem 10px;
  }

  button {
    width: 90%;
  }
}
