/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f5f0e1;
  color: #333;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #2c003e, #8a2be2); /* Darker gradient for better text contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Allows clicking buttons through the canvas */
}

.hero-content {
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
  color: #eee;
  margin: 15px 0 30px;
  letter-spacing: 1px;
}

.feedback-text {
  font-size: 1rem;
  font-weight: 600;
  color: #ffdd59;
  text-shadow: 0 0 8px rgba(255, 221, 89, 0.6);
  animation: pulse 2s infinite alternate;
  margin-bottom: 25px;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.05); opacity: 1; }
}

.hero-buttons button {
  padding: 14px 28px;
  margin: 10px;
  border: none;
  border-radius: 30px;
  background: gold;
  color: #2c003e;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-buttons button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #fff;
}

/* Chapters */
.chapters {
  padding: 80px 20px;
  text-align: center;
  background: white;
}

.chapter-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.chapter-card {
  background: #fdf6f2;
  padding: 30px;
  width: 320px;
  border-radius: 20px;
  border: 1px solid #eee;
  transition: 0.3s;
}

.chapter-card h3 { color: #8a2be2; margin-bottom: 10px; }

.chapter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Review Section */
.review-section {
  padding: 80px 20px;
  background: #f5f0e1;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.review-section form {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.review-section input, .review-section textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.review-section button {
  width: 100%;
  padding: 15px;
  background: #8a2be2;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.modal-content {
  width: 90%;
  height: 85%;
  margin: 5% auto;
}

.modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  background: white;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
