/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&family=Dancing+Script:wght@700&display=swap');

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

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: #faf9f6 url('background-pattern.jpg') repeat;
  background-attachment: fixed;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-family: 'Dancing Script', cursive; /* Hero branding only */
  font-size: 3rem;
  color: #C71585; /* Brand color */
  margin-bottom: 10px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #444;
}

p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

/* Sections */
section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fadein.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('flute-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 120px 20px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.hero h1 {
  color: #FFD700;
  font-size: 3.2rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
}

/* About Section */
#about p {
  text-align: center;
  max-width: 750px;
  margin: 15px auto;
  border-left: 4px solid #C71585;
  padding-left: 15px;
  background: rgba(255, 215, 0, 0.05);
  border-radius: 4px;
}

/* Works Section */
#works ul {
  list-style-type: none;
  padding: 0;
  margin: auto;
  max-width: 750px;
}

#works li {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 6px;
  border-left: 4px solid #FFD700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

#works li:hover {
  transform: translateX(5px);
  background: #fffbea;
}

/* Gurukulam Section */
#gurukulam p, #gurukulam ul {
  max-width: 750px;
  margin: auto;
  line-height: 1.7;
}

#gurukulam ul {
  list-style: disc;
  padding-left: 25px;
  margin-top: 10px;
  border-left: 3px solid #4CAF50;
  padding-left: 15px;
}

/* Donation Section */
#donate p {
  text-align: center;
  margin-bottom: 20px;
}

.donation-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.donation-btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid #C71585;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #C71585;
  transition: all 0.3s ease;
}

.donation-btn:hover {
  background: #C71585;
  color: #fff;
  transform: translateY(-2px);
}

.custom-amount,
.donor-details {
  text-align: center;
  margin-top: 10px;
}

input[type="number"],
input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 320px;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.pay-btn {
  display: block;
  margin: 25px auto 0;
  padding: 14px 30px;
  background: #C71585;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay-btn:hover {
  background: #FFD700;
  color: #222;
  transform: translateY(-2px);
}

.status {
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

/* Floating Music Button */
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  background: #C71585;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.music-btn:hover {
  background: #FFD700;
  color: #222;
}

/* Music Modal */
.music-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.music-modal.active {
  display: flex;
}

.music-content {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.music-content h3 {
  color: #C71585;
  margin-bottom: 12px;
}

.music-content audio {
  width: 100%;
  margin: 15px 0;
}

.close-btn {
  background: transparent;
  border: none;
  color: #C71585;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 80px 15px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 60px 10px; }
}
.about-image-container {
  text-align: center;
  margin: 20px 0;
}

.about-image {
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.caption {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 8px;
  color: #555;
}
