/* ============================================
   ISK### Temple Website - Spiritual Design
   Light/Dark Theme with Traditional Colors
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ---------- CSS Custom Properties (Light Theme - Default) ---------- */
:root {
  /* Primary Colors - ISK### Traditional */
  --saffron: #FF9933;
  --saffron-dark: #e68a2e;
  --saffron-light: #ffb366;
  --maroon: #800020;
  --maroon-light: #a83250;
  --maroon-dark: #5c0017;
  --gold: #D4AF37;
  --gold-light: #e6c861;
  --gold-dark: #b8962e;
  --cream: #FFF8E7;
  --cream-dark: #f5edd5;
  
  /* Background & Surface */
  --bg-primary: #FFF8E7;
  --bg-secondary: #fff5dc;
  --bg-card: #ffffff;
  --bg-card-hover: #fffcf5;
  --bg-overlay: rgba(255, 248, 231, 0.95);
  
  /* Text Colors */
  --text-primary: #3E2723;
  --text-secondary: #5D4037;
  --text-muted: #8D6E63;
  --text-light: #A1887F;
  --text-on-primary: #ffffff;
  
  /* Borders & Shadows */
  --border: rgba(128, 0, 32, 0.1);
  --border-light: rgba(128, 0, 32, 0.05);
  --shadow-sm: 0 2px 8px rgba(62, 39, 35, 0.08);
  --shadow-md: 0 8px 24px rgba(62, 39, 35, 0.12);
  --shadow-lg: 0 20px 40px rgba(62, 39, 35, 0.15);
  --shadow-glow: 0 0 30px rgba(255, 153, 51, 0.3);
  
  /* Gradients */
  --gradient-spiritual: linear-gradient(135deg, #FF9933 0%, #D4AF37 50%, #800020 100%);
  --gradient-saffron: linear-gradient(135deg, #FF9933 0%, #ffb366 100%);
  --gradient-maroon: linear-gradient(135deg, #800020 0%, #a83250 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #e6c861 100%);
  --gradient-hero: linear-gradient(180deg, rgba(255, 248, 231, 0) 0%, rgba(255, 248, 231, 0.8) 60%, #FFF8E7 100%);
  
  /* Spacing & Sizing */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --header-height: 80px;
  --container-max: 1280px;
  --container-padding: 20px;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Great Vibes', cursive;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #1f2846;
  --bg-card-hover: #283352;
  --bg-overlay: rgba(26, 26, 46, 0.95);
  
  --text-primary: #f5f5f5;
  --text-secondary: #d4d4d4;
  --text-muted: #a3a3a3;
  --text-light: #8b8b8b;
  
  --border: rgba(255, 153, 51, 0.15);
  --border-light: rgba(255, 153, 51, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 153, 51, 0.4);
  
  --gradient-hero: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.8) 60%, #1a1a2e 100%);
  --cream: #2a2a3e;
  --cream-dark: #1f1f30;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Shimmer Loading Animation ---------- */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--cream-dark) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.img-shimmer {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.img-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 153, 51, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.img-shimmer.loaded::before {
  display: none;
}

/* ---------- Scroll Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 153, 51, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 153, 51, 0.6);
  }
}

/* --- NEW: Gradient shift animation --- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradientBorder {
  0% { border-color: var(--saffron); }
  33% { border-color: var(--gold); }
  66% { border-color: var(--maroon-light); }
  100% { border-color: var(--saffron); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(0.5deg); }
  75% { transform: translateY(4px) rotate(-0.5deg); }
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(255, 153, 51, 0.25); }
}

@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(60px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
}

.fade-in-up {
  transform: translateY(40px);
}

.fade-in-up.visible {
  transform: translateY(0);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-left.visible {
  transform: translateX(0);
}

.fade-in-right {
  transform: translateX(40px);
}

.fade-in-right.visible {
  transform: translateX(0);
}

.scale-in {
  transform: scale(0.9);
}

.scale-in.visible {
  transform: scale(1);
}

/* Delay Classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  opacity: 0.85;
  transition: var(--transition);
}

.header.scrolled::before {
  opacity: 1;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.logo-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF9933, #D4AF37, #800020, #FF9933);
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
  border-radius: var(--radius);
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.logo-icon:hover {
  animation: gradientShift 2s ease infinite, iconBounce 0.6s ease;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .main {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.1;
}

[data-theme="dark"] .logo-text .main {
  color: var(--saffron);
}

.logo-text .sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 20px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--gradient-saffron);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--saffron);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--saffron);
  color: white;
  border-color: var(--saffron);
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }

[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* Donate Button */
.btn-donate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-maroon);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-donate:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(128, 0, 32, 0.4);
}

.btn-donate .fa-heart {
  animation: iconBounce 1.5s ease infinite;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.3s; }

.mobile-menu a:hover {
  color: var(--saffron);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Ripple effect on buttons */
.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn:active::after {
  transform: scale(2.5);
  opacity: 1;
  transition: 0s;
}

.btn-primary {
  background: linear-gradient(135deg, #FF9933, #ffb366, #FF9933);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: linear-gradient(135deg, #800020, #a83250, #800020);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(128, 0, 32, 0.4);
  filter: brightness(1.15);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

[data-theme="dark"] .btn-outline {
  color: var(--saffron);
  border-color: var(--saffron);
}

.btn-outline:hover {
  background: var(--maroon);
  color: white;
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--saffron);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 25px rgba(255, 153, 51, 0.4);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 248, 231, 0.5) 0%, rgba(255, 248, 231, 0.85) 40%, rgba(255, 248, 231, 0.95) 70%, #FFF8E7 100%);
  z-index: 1;
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.3) 0%, rgba(26, 26, 46, 0.7) 50%, #1a1a2e 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--saffron);
  margin-top: 20px;
  margin-bottom: 12px;
  animation: fadeInDown 0.8s ease forwards, borderGlow 3s ease infinite 1s;
}

.hero-badge i {
  color: var(--gold);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #FF9933, #D4AF37, #800020, #FF9933, #D4AF37);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s ease infinite;
}

.hero-mantra {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--maroon);
  margin-bottom: 24px;
  animation: fadeIn 1s ease 0.4s forwards;
  opacity: 0;
}

[data-theme="dark"] .hero-mantra {
  color: var(--gold);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
  margin-bottom: 40px;
}

/* ---------- Maha Mantra Banner ---------- */
.mantra-banner {
  background: linear-gradient(135deg, #FF9933, #D4AF37, #800020, #FF9933);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}

.mantra-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mantra-text {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.mantra-text span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.mantra-text i {
  color: var(--gold);
  font-size: 1rem;
}

/* ---------- Section Styles ---------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 153, 51, 0.1);
  border: 1px solid rgba(255, 153, 51, 0.2);
  border-radius: var(--radius-full);
  color: var(--saffron);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.section-badge:hover {
  background: rgba(255, 153, 51, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.15);
}

.section-badge i {
  transition: var(--transition);
}

.section-badge:hover i {
  animation: wiggle 0.5s ease;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animated::after,
.section-header:hover .section-title::after {
  width: 60%;
  animation: gradientShift 2s ease infinite;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Decorative Elements */
.lotus-decoration {
  position: absolute;
  opacity: 0.05;
  pointer-events: none;
}

.lotus-decoration.left {
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
}

.lotus-decoration.right {
  right: -100px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}

/* ---------- About Preview Section ---------- */
.about-preview {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}

.about-image:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: subtleFloat 3s ease-in-out infinite;
}

.about-image-badge .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--saffron);
}

.about-image-badge .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--saffron);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card-hover);
}

.about-feature i {
  color: var(--saffron);
  font-size: 1.2rem;
  transition: var(--transition);
}

.about-feature:hover i {
  transform: scale(1.3);
}

/* ---------- Daily Schedule Section ---------- */
.schedule-section {
  background: linear-gradient(135deg, #800020, #5c0017, #a83250, #800020);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.schedule-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

.schedule-section .section-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--gold);
}

.schedule-section .section-title,
.schedule-section .section-subtitle {
  color: white;
}

.schedule-section .section-subtitle {
  opacity: 0.8;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.schedule-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.schedule-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(212,175,55,0.15);
}

.schedule-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #D4AF37, #e6c861, #D4AF37);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--maroon-dark);
  transition: var(--transition);
}

.schedule-card:hover .schedule-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(212,175,55,0.5);
}

.schedule-card h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.schedule-time {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.schedule-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ---------- Activities Section ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.activity-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--saffron);
}

.activity-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.activity-card:hover .activity-image img {
  transform: scale(1.1);
}

.activity-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(128, 0, 32, 0.8) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.activity-card:hover .activity-overlay {
  opacity: 1;
}

.activity-overlay span {
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-content {
  padding: 24px;
}

.activity-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.activity-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.activity-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.activity-meta i {
  color: var(--saffron);
}

/* ---------- Quote Section ---------- */
.quote-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.quote-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--saffron);
  opacity: 0.3;
  margin-bottom: 20px;
  animation: pulse 3s ease-in-out infinite;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.quote-author img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--gold);
  transition: var(--transition);
  animation: glow 4s ease-in-out infinite;
}

.quote-author img:hover {
  transform: scale(1.1);
  border-color: var(--saffron);
}

.quote-author-info h4 {
  color: var(--maroon);
  font-size: 1.1rem;
}

[data-theme="dark"] .quote-author-info h4 {
  color: var(--saffron);
}

.quote-author-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Events Section ---------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.event-card {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.event-card:hover .event-date {
  background: linear-gradient(135deg, #FF9933, #D4AF37, #FF9933);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite;
}

.event-date {
  min-width: 100px;
  background: var(--gradient-saffron);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
}

.event-date .day {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-content {
  padding: 24px;
  flex: 1;
}

.event-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.event-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta i {
  color: var(--saffron);
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, #FF9933, #D4AF37, #800020, #D4AF37, #FF9933);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-section .btn {
  background: white;
  color: var(--maroon);
}

.cta-section .btn:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 16px 0 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: white;
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 6px 18px rgba(255, 153, 51, 0.3);
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--saffron);
  padding-left: 10px;
}

.footer-links a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--saffron);
  margin-right: 0;
  transition: var(--transition);
  vertical-align: middle;
}

.footer-links a:hover::before {
  width: 12px;
  margin-right: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.footer-contact-item i {
  color: var(--saffron);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom-links a:hover {
  color: var(--saffron);
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 160px 0 80px;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ff9933' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease forwards;
}

.page-breadcrumb {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.page-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.page-breadcrumb a {
  color: var(--saffron);
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form-wrapper {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 100%;
  box-sizing: border-box;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  box-sizing: border-box;
  max-width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1), 0 0 20px rgba(255, 153, 51, 0.08);
  transform: translateY(-1px);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  max-width: 100%;
  box-sizing: border-box;
}

.contact-card:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-card:hover .contact-card-icon {
  background: rgba(255, 153, 51, 0.2);
  transform: scale(1.1);
}

.contact-card-icon {
  transition: var(--transition);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 153, 51, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-card > div:last-child {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-card a {
  color: var(--saffron);
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Map */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
  margin-top: 40px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Donation Page ---------- */
.donation-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.donation-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 2px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.donation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-saffron);
  transform: scaleX(0);
  transition: var(--transition);
}

.donation-card:hover {
  border-color: var(--saffron);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 153, 51, 0.15);
}

.donation-card:hover::before {
  transform: scaleX(1);
}

.donation-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(255, 153, 51, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--saffron);
  transition: var(--transition);
}

.donation-card:hover .donation-card-icon {
  background: linear-gradient(135deg, rgba(255,153,51,0.2), rgba(212,175,55,0.2));
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 20px rgba(255, 153, 51, 0.2);
}

.donation-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.donation-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.donation-amount {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.donation-amount button {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: var(--transition);
}

.donation-amount button:hover,
.donation-amount button.active {
  border-color: var(--saffron);
  background: linear-gradient(135deg, #FF9933, #ffb366);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 153, 51, 0.3);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FF9933, #D4AF37, #FF9933);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease infinite;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Bank Details */
.bank-details {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  max-width: 100%;
  box-sizing: border-box;
}

.bank-details h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-details h3 i {
  color: var(--saffron);
}

.bank-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.bank-info-item {
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius);
}

.bank-info-item label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.bank-info-item span {
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ---------- About Page ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  width: calc(100% - 40px);
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 40px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 40px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--saffron);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  animation: glow 3s ease-in-out infinite;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.4);
  background: var(--gold);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--saffron);
  margin-bottom: 8px;
}

.timeline-content h3 {
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Philosophy Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.philosophy-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.philosophy-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 153, 51, 0.1);
  border-color: var(--saffron);
}

.philosophy-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 153, 51, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--saffron);
  margin-bottom: 20px;
  transition: var(--transition);
}

.philosophy-card:hover .philosophy-icon {
  background: linear-gradient(135deg, rgba(255,153,51,0.2), rgba(212,175,55,0.15));
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
}

.philosophy-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--text-secondary);
}

/* Deity Section */
.deity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.deity-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.deity-card img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.deity-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.deity-card:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212,175,55,0.2);
}

.deity-card:hover .deity-info {
  background: linear-gradient(180deg, transparent 0%, rgba(128, 0, 32, 1) 100%);
}

.deity-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(128, 0, 32, 0.95) 100%);
  color: white;
}

.deity-info h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.deity-info p {
  opacity: 0.9;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Reset direction: rtl on about page founder section for tablet */
  .about-grid[style*="direction: rtl"] {
    direction: ltr !important;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image img {
    height: 400px;
  }
  
  .deity-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .deity-card img {
    height: 350px;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about-content h2 {
    font-size: 2rem;
  }
  
  .page-header {
    padding: 140px 0 60px;
  }
  
  .contact-form-wrapper {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --container-padding: 16px;
  }
  
  .nav-links,
  .nav-actions .btn-donate {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .hero {
    min-height: calc(100vh - 100px);
  }
  
  .hero-content {
    padding: 0 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .page-header {
    padding: 120px 0 50px;
  }
  
  .page-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  
  /* Fix grids with too-large minmax values */
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .donation-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .deity-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .deity-card img {
    height: 300px;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .bank-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* About section */
  .about-grid {
    gap: 30px;
  }
  
  .about-image img {
    height: 300px;
  }
  
  .about-content h2 {
    font-size: 1.8rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  /* Quote section */
  .quote-author {
    flex-direction: column;
    text-align: center;
  }
  
  .quote-author img {
    width: 60px;
    height: 60px;
  }
  
  .quote-author-info h4 {
    font-size: 0.95rem;
  }
  
  /* Footer */
  .footer {
    padding: 60px 0 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-brand .logo {
    justify-content: center;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-contact-item {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrapper {
    padding: 24px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Contact cards - better mobile layout */
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .contact-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .contact-card p {
    word-break: break-word;
  }
  
  /* Bank info items */
  .bank-info-item {
    padding: 12px;
  }
  
  .bank-info-item span {
    font-size: 0.9rem;
    word-break: break-all;
  }
  
  /* Forms - prevent overflow */
  .form-group,
  .form-group input,
  .form-group textarea,
  .form-group select {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Section titles - prevent overflow */
  .section-title::after {
    max-width: 80%;
  }
  
  /* Timeline */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  /* Events */
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    flex-direction: row;
    gap: 10px;
    min-width: auto;
  }
  
  /* CTA section */
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  /* Map */
  .map-container {
    height: 300px;
    margin-top: 30px;
  }
  
  /* Donation amount buttons */
  .donation-amount {
    gap: 8px;
  }
  
  .donation-amount button {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  
  /* Donation cards */
  .donation-card {
    padding: 24px;
  }
  
  /* Schedule cards */
  .schedule-card {
    padding: 24px;
  }
  
  /* Bank details */
  .bank-details {
    padding: 24px;
  }
  
  /* Mantra banner */
  .mantra-banner {
    padding: 16px 0;
  }
  
  .mantra-text {
    font-size: 1.1rem;
    gap: 20px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 14px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-mantra {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
  
  .mantra-text {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .section-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .page-header {
    padding: 110px 0 40px;
  }
  
  .page-header h1 {
    font-size: 1.6rem;
  }
  
  .about-content h2 {
    font-size: 1.5rem;
  }
  
  .about-image img {
    height: 250px;
  }
  
  .about-image-badge {
    bottom: 16px;
    left: 16px;
    padding: 12px 16px;
  }
  
  .about-image-badge .number {
    font-size: 1.5rem;
  }
  
  .about-feature {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .contact-form-wrapper {
    padding: 16px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .contact-card {
    padding: 16px;
    gap: 12px;
  }
  
  .contact-card p {
    font-size: 0.9rem;
  }
  
  .contact-card p a {
    word-break: break-all;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
  
  .bank-details {
    padding: 16px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .bank-details h3 {
    font-size: 1.1rem;
    flex-wrap: wrap;
  }
  
  .bank-info-grid {
    gap: 10px;
  }
  
  .bank-info-item {
    padding: 10px 12px;
  }
  
  .bank-info-item label {
    font-size: 0.8rem;
  }
  
  .bank-info-item span {
    font-size: 0.85rem;
    word-break: break-all;
    display: block;
  }
  
  .contact-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  
  .contact-card h3 {
    font-size: 1rem;
  }
  
  .donation-card {
    padding: 20px;
  }
  
  .donation-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .donation-amount button {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
  
  .schedule-card {
    padding: 20px;
  }
  
  .schedule-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  
  .schedule-time {
    font-size: 1.4rem;
  }
  
  .deity-card img {
    height: 250px;
  }
  
  .deity-info {
    padding: 20px;
  }
  
  .deity-info h3 {
    font-size: 1.2rem;
  }
  
  .philosophy-card {
    padding: 24px;
  }
  
  .philosophy-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  
  /* Timeline mobile */
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 40px;
  }
  
  .timeline-content {
    padding: 18px;
  }
  
  .timeline-year {
    font-size: 1.2rem;
  }
  
  .timeline-content h3 {
    font-size: 1rem;
  }
  
  .timeline-content p {
    font-size: 0.85rem;
  }
  
  /* Quote section */
  .quote-icon {
    font-size: 2.5rem;
  }
  
  .quote-text {
    font-size: 1.1rem;
  }
  
  /* Events */
  .event-date .day {
    font-size: 2rem;
  }
  
  .event-content {
    padding: 18px;
  }
  
  .event-content h3 {
    font-size: 1.05rem;
  }
  
  /* Activity cards */
  .activity-content {
    padding: 18px;
  }
  
  .activity-content h3 {
    font-size: 1.1rem;
  }
  
  .activity-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* CTA section */
  .cta-section {
    padding: 50px 0;
  }
  
  .cta-section h2 {
    font-size: 1.4rem;
  }
  
  .cta-section p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  
  /* Footer */
  .footer {
    padding: 40px 0 0;
  }
  
  .footer-grid {
    gap: 24px;
  }
  
  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 16px;
  }
  
  .footer-bottom {
    padding: 18px 0;
    gap: 10px;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
  
  .footer-bottom-links {
    gap: 16px;
  }
  
  .footer-bottom-links a {
    font-size: 0.8rem;
  }
  
  /* Map */
  .map-container {
    height: 250px;
    margin-top: 24px;
  }
  
  /* Back to top */
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }
  
  /* Mobile menu font */
  .mobile-menu a {
    font-size: 1.6rem;
  }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Global overflow prevention */
.container,
.section,
.footer,
.cta-section,
.page-header,
.hero-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Ensure all images and iframes don't overflow */
img, iframe, video, embed, object {
  max-width: 100%;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.py-1 { padding-top: 8px; padding-bottom: 8px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-4 { padding-top: 32px; padding-bottom: 32px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }

.hidden { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-spiritual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-saffron);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.back-to-top.visible {
  animation: subtleFloat 2s ease-in-out infinite;
}
