@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #00897b;
  --primary-dark: #00695c;
  --primary-light: #4db6ac;
  --accent: #ffab40;
  --surface: #ffffff;
  --background: #fdfdfd;
  --text-main: #1a202c;
  --text-muted: #4a5568;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  background: var(--white);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.social-contact {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}

.social-contact a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1rem;
  transition: var(--transition);
  opacity: 0.9;
}

.social-contact a:hover {
  opacity: 1;
  color: var(--accent);
}

nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  gap: 2rem;
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

/* Hero Banner */
.banner {
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/welfare/welfare-1.jpeg') center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.banner {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  letter-spacing: -1px;
}

/* Sections */
section {
  max-width: 1100px;
  margin: 6rem auto;
  padding: 4rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

section h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

section p {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
}

/* Modal Enhancements */
.modal {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.modal-content {
  border: 4px solid var(--white);
  border-radius: var(--radius);
  animation: modalZoom 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalZoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#caption {
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-top: 2rem;
}

.close {
  background: rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close:hover {
  background: var(--accent);
  color: var(--white);
}

/* Donation Section */
.donation-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.donation-card {
  background: var(--background);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.donation-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.donation-card p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.donation-card .note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1.5rem;
}

.qr-card {
  text-align: center;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #eee;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  border: 2px dashed #ccc;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-info-box {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  height: fit-content;
}

.contact-info-box h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
  color: var(--white);
}

.contact-info-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-box a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.contact-info-box a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.social-links-large {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.social-links-large a {
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
}

.social-links-large a:hover {
  background: var(--accent);
  color: var(--white);
}

.nav-highlight {
  color: var(--primary) !important;
  background: rgba(0, 137, 123, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.nav-highlight:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.nav-highlight::after {
  display: none;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .btn-submit {
    width: 100%;
  }
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  margin-top: 8rem;
}

footer p {
  opacity: 0.7;
  font-size: 1rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
  section {
    margin: 4rem 2rem;
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  header h1 { font-size: 2rem; }
  .social-contact { flex-direction: column; gap: 0.5rem; text-align: center; }
  .banner { font-size: 2.5rem; height: 60vh; }
  nav { gap: 1rem; flex-wrap: wrap; }
  section { padding: 2rem; }
  section h2 { font-size: 2rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
  header { padding: 1rem; }
  header h1 { font-size: 1.75rem; }
  .banner { font-size: 2rem; }
  section { padding: 1.5rem; }
  .gallery { grid-template-columns: 1fr; }
}
