/* Dnyan Bharati Foundation - Main Stylesheet */

/* ================ Color Variables ================ */
:root {
  --deep-green: #0F6B4A;
  --saffron: #F2994A;
  --warm-gold: #D4AF37;
  --ivory: #FFFFF0;
  --dark-gray: #2D3748;
  --light-gray: #F7FAFC;
}

/* ================ Reset & Base Styles ================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--deep-green);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ================ Utility Classes ================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-saffron { color: var(--saffron); }
.text-green { color: var(--deep-green); }
.bg-green { background-color: var(--deep-green); }
.bg-saffron { background-color: var(--saffron); }
.bg-light { background-color: var(--light-gray); }

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--deep-green);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--warm-gold);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--saffron);
  color: white;
}

.btn-primary:hover {
  background: #E88836;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(242, 153, 74, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background: white;
  color: var(--deep-green);
}

.btn-white {
  background: white;
  color: var(--deep-green);
}

.btn-white:hover {
  background: var(--light-gray);
}

/* ================ Header & Navigation ================ */
.announcement-bar {
  background: var(--deep-green);
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
  text-align: center;
}

.announcement-bar a {
  color: #FCD34D;
  font-weight: 600;
}

header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img {
  height: 70px;
  width: auto;
  border-radius: 8px;
}

.logo-text h1 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--deep-green);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--saffron);
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

nav ul li a {
  font-weight: 500;
  color: var(--deep-green);
  padding: 8px 0;
  position: relative;
}

nav ul li a:hover {
  color: var(--saffron);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width 0.3s ease;
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--deep-green);
}

/* ================ Hero Section ================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 107, 74, 0.85) 0%, rgba(10, 77, 52, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: white;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1.4s ease;
}

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

/* ================ Cards & Grid ================ */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card p {
  color: #666;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ================ Counter Section ================ */
.counter-section {
  background: white;
  padding: 60px 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.counter-item {
  padding: 30px;
  background: var(--light-gray);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.counter-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.counter-item i {
  font-size: 3rem;
  color: var(--saffron);
  margin-bottom: 15px;
}

.counter-item h3 {
  font-size: 3rem;
  color: var(--deep-green);
  margin: 10px 0;
}

.counter-item p {
  color: #666;
  font-size: 1.1rem;
}

/* ================ Program Pillars ================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
}

.pillar-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.pillar-card i {
  font-size: 3.5rem;
  color: var(--saffron);
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  min-height: 60px;
}

.pillar-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.pillar-card a {
  color: var(--saffron);
  font-weight: 600;
}

/* ================ Donate Section ================ */
.donate-cta {
  background: linear-gradient(135deg, var(--deep-green) 0%, #0a4d34 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.donate-cta h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
}

.donate-amounts {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.donate-amounts .btn {
  background: white;
  color: var(--deep-green);
  font-size: 1.2rem;
  padding: 16px 32px;
}

.donate-amounts .btn:hover {
  background: var(--light-gray);
  transform: scale(1.05);
}

.donate-amounts .btn-custom {
  background: var(--warm-gold);
  color: #1a202c;
}

/* ================ Gallery ================ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  background: #e5e7eb;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--saffron);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 20px;
  user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ================ Donate Page ================ */
.donate-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.donate-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.donate-box h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.donate-box h3 i {
  color: var(--saffron);
}

.bank-details {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.bank-details div {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.bank-details div:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bank-details label {
  font-size: 0.9rem;
  color: #666;
  display: block;
  margin-bottom: 5px;
}

.bank-details p {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin: 0;
}

.qr-code {
  text-align: center;
  padding: 30px;
  background: var(--light-gray);
  border-radius: 12px;
}

.qr-code-placeholder {
  width: 250px;
  height: 250px;
  background: white;
  border: 2px dashed var(--saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.upi-id {
  background: white;
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

/* ================ Form Styles ================ */
form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-gray);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--deep-green);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

/* ================ Footer ================ */
footer {
  background: #1a202c;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #9CA3AF;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-logo img {
  height: 70px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #374151;
  color: #9CA3AF;
}

/* ================ Video Modal ================ */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

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

.video-container {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
}

.video-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* ================ Responsive Design ================ */
@media (max-width: 1024px) {
  .grid-5, .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
  }
  
  nav ul.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.2rem; }
  
  .grid-2, .grid-3, .grid-4, .grid-5,
  .pillars-grid, .counter-grid,
  .footer-grid, .gallery-grid,
  .donate-options {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .section { padding: 50px 0; }
  .section-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .donate-amounts { flex-direction: column; }
  .logo-section img { height: 50px; }
  .logo-text h1 { font-size: 1.1rem; }
}

/* ================ Utilities ================ */
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }

.hidden { display: none; }
.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
