/* ==========================================================================
   Siddha Yogi Jala Kshetra Trust — stylesheet
   Design idea: "Jala" = water. Every section is stitched together with a
   ripple — the sacred motif of the site — so the page reads as water
   moving down a temple tank, carrying an offering (seva) from top to floor.
   ========================================================================== */

:root {
  /* -- Color: temple parchment, kumkum red, tank-water teal, brass gold -- */
  --ivory:        #F1E7D2;
  --ivory-deep:   #E7D9BC;
  --parchment:    #FAF4E7;
  --maroon:       #7C2230;
  --maroon-deep:  #571622;
  --teal:         #1F5B54;
  --teal-deep:    #143E3A;
  --gold:         #A9781F;
  --gold-light:   #D9B25C;
  --ink:          #2A231C;
  --ink-soft:     #5B4E40;
  --ink-on-dark:  #F1E7D2;

  /* -- Type -- */
  --font-display: 'Marcellus', 'Cormorant Garamond', serif;
  --font-script:  'Noto Serif Devanagari', 'Noto Sans Kannada', serif;
  --font-body:    'Karla', sans-serif;

  --wave: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Disable all animations globally */
*, *::before, *::after {
  animation: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0.2s !important;
}

*, *::before, *::after { box-sizing: border-box; }

/* Remove text selection highlight */
::selection {
  background: transparent;
  color: inherit;
}

::-moz-selection {
  background: transparent;
  color: inherit;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 400; color: var(--maroon-deep); }

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.script {
  font-family: var(--font-script);
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

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

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--maroon);
  color: var(--ivory); padding: 0.8em 1.2em; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  border-bottom: 1px solid rgba(169, 120, 31, 0.28);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gold-light);
}
.brand .om {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .name {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
}
.brand-text .kn {
  font-family: var(--font-script);
  font-size: 12px;
  color: var(--gold);
  margin-top: 2px;
}

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

.nav-item { position: relative; }

.nav-item > a, .nav-item > button {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--parchment);
  padding: 10px 15px;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-item > a:hover, .nav-item > button:hover,
.nav-item.open > button {
  color: var(--gold);
  background: rgba(169, 120, 31, 0.12);
}

.caret { width: 8px; height: 8px; display: inline-block; transition: transform 0.2s ease; }
.nav-item.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: var(--maroon-deep);
  border: 1px solid rgba(169, 120, 31, 0.28);
  border-radius: 6px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--gold-light);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.dropdown a:hover { background: rgba(169, 120, 31, 0.14); color: var(--gold); padding-left: 18px; }

.donate-cta {
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon-deep) !important;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  padding: 10px 20px !important;
  border-radius: 20px !important;
}
.donate-cta:hover { filter: brightness(1.08); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span { width: 24px; height: 2px; background: var(--gold-light); display: block; }

@media (max-width: 980px) {
  .burger { display: flex; }
  nav.links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--maroon-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 18px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  }
  nav.links.mobile-open { transform: translateX(0); }
  .nav-item { width: 100%; }
  .nav-item > a, .nav-item > button { width: 100%; justify-content: space-between; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    margin: 2px 0 6px;
  }
  .nav-item.open .dropdown { display: block; }
  .donate-cta { margin-left: 0; margin-top: 10px; text-align: center; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)),
    url('images/7.jpeg') center top/cover no-repeat;
  background-attachment: scroll;
}

.ripple-field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ripple-field svg { width: min(820px, 130vw); height: auto; opacity: 0.55; }

.ripple-field circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.6;
  transform-origin: center;
  animation: ripple-out 7s var(--wave) infinite;
}
.ripple-field circle:nth-child(2) { stroke: var(--teal); animation-delay: 1.6s; }
.ripple-field circle:nth-child(3) { animation-delay: 3.2s; }
.ripple-field circle:nth-child(4) { stroke: var(--teal); animation-delay: 4.8s; }



.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-inline: auto;
}

.hero-om {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  animation: float 3s ease-in-out infinite, glow-pulse 2s ease-in-out infinite;
}

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

@keyframes glow-pulse {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(169, 120, 31, 0.5),
                 0 0 20px rgba(169, 120, 31, 0.3);
  }
  50% { 
    text-shadow: 0 0 20px rgba(169, 120, 31, 0.8),
                 0 0 30px rgba(169, 120, 31, 0.5),
                 0 0 40px rgba(169, 120, 31, 0.3);
  }
}

.hero-invocation {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
  animation: fade-in-down 1s ease-out 0.3s backwards, shimmer 3s ease-in-out infinite;
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: #FFFFFF !important;
  text-shadow: 
    2px 2px 6px rgba(0, 0, 0, 0.8),
    4px 4px 12px rgba(0, 0, 0, 0.6);
  font-weight: 300;
  animation: scale-in 1.2s ease-out 0.5s backwards;
  -webkit-text-fill-color: #FFFFFF !important;
}

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

.hero-title-kannada {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--gold-light);
  margin-top: 0.7rem;
  animation: fade-in-up 1s ease-out 0.8s backwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  max-width: 46ch;
  margin: 1.6rem auto 0.4rem;
  color: var(--parchment);
  font-size: 1.08rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  animation: fade-in 1.5s ease-out 1s backwards;
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.hero-tagline::after {
  display: none !important;
  content: none !important;
}

.hero-tagline::before {
  display: none !important;
  content: none !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-subtag {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--gold-light);
  font-size: 1.15re                                         m;
  margin-top: 0.3rem;
  animation: fade-in 1.5s ease-out 1.2s backwards;
}

.hero-location {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  animation: fade-in 1.5s ease-out 1.4s backwards;
}

.hero-ctas {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-in-up 1.2s ease-out 1.6s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85em 1.7em;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover { 
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: var(--maroon);
  color: var(--parchment);
  box-shadow: 0 6px 18px rgba(124, 34, 48, 0.28);
  position: relative;
  z-index: 1;
}
.btn-primary:hover { 
  background: var(--maroon-deep);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(124, 34, 48, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--parchment);
  border-color: var(--teal);
  position: relative;
  z-index: 1;
}
.btn-ghost:hover { 
  background: rgba(31, 91, 84, 0.3);
  color: var(--parchment);
  border-color: var(--teal-deep);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(31, 91, 84, 0.3);
}

.scroll-cue {
  display: none !important;
  visibility: hidden !important;
}

@keyframes drip { 
  0% { top: 0; opacity: 1; } 
  90% { opacity: 0.4; } 
  100% { top: 40px; opacity: 0; } 
}


/* ---------------------------------------------------------------------- */
/* Wave divider                                                            */
/* ---------------------------------------------------------------------- */

.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: -1px;
}
.wave-divider path { fill: var(--ivory-deep); }
.wave-divider.flip { transform: scaleY(-1); }
.wave-divider.to-teal path { fill: var(--teal-deep); }
.wave-divider.from-teal path { fill: var(--teal-deep); }
.wave-divider.to-ivory path { fill: var(--ivory); }
.wave-divider.to-maroon path { fill: var(--maroon-deep); }
.wave-divider.to-parchment path { fill: var(--parchment); }

/* ---------------------------------------------------------------------- */
/* Section shell                                                           */
/* ---------------------------------------------------------------------- */

section { position: relative; }

.section-pad { padding: 5.5rem 0; }

.section-head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 3.2rem;
}
.section-head .script {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--wave), transform 0.8s var(--wave);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* Guru section                                                            */
/* ---------------------------------------------------------------------- */

/* Unique Preview Section - Timeline Style */
.unique-preview {
  background: linear-gradient(135deg, #F5E6D3 0%, #E8DCC5 50%, #F5E6D3 100%);
  position: relative;
  overflow: hidden;
}

.unique-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(160, 82, 45, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.preview-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.preview-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    #A0522D 0%, 
    #8B4513 50%, 
    #A0522D 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(160, 82, 45, 0.5);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  opacity: 1;
  transform: translateX(0);
}

.timeline-item.is-visible {
  opacity: 1;
}

.timeline-item[data-aos="left"] {
  transform: translateX(0);
}

.timeline-item[data-aos="right"] {
  transform: translateX(0);
}

.timeline-item.is-visible {
  transform: translateX(0);
}

.timeline-item[data-aos="left"] .timeline-content {
  grid-column: 1;
  text-align: right;
}

.timeline-item[data-aos="right"] .timeline-content {
  grid-column: 3;
  text-align: left;
}

.timeline-marker {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A0522D, #8B4513);
  color: #FFF8E7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  box-shadow: 
    0 0 0 5px #F5E6D3,
    0 0 0 8px #A0522D,
    0 4px 20px rgba(160, 82, 45, 0.4);
}



.timeline-content {
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(160, 82, 45, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.timeline-content::before {
  display: none;
}

.timeline-item:hover .timeline-content::before {
  display: none;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #8B4513;
  transform: translateY(0);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.25);
}

.timeline-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #8B4513;
  margin-bottom: 0.6rem;
}

.timeline-content p {
  color: #5D3A1A;
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #A0522D;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-link a::after {
  display: none;
}

.timeline-link a:hover {
  color: #6B3410;
  transform: translateX(0);
}

.timeline-link a:hover::after {
  display: none;
}

.preview-footer {
  margin-top: 3rem;
  text-align: center;
}

.preview-cta {
  background: rgba(255, 248, 231, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid #A0522D;
  border-radius: 16px;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(139, 69, 19, 0.3);
}

/* Responsive Timeline */
@media (max-width: 860px) {
  .preview-timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
  }
  
  .timeline-item[data-aos="left"] .timeline-content,
  .timeline-item[data-aos="right"] .timeline-content {
    grid-column: 2;
    text-align: left;
  }
  
  .timeline-marker {
    grid-column: 1;
    grid-row: 1;
  }
  
  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}

.guru {
  background: var(--ivory-deep);
}

.guru-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
}

.guru-medallion {
  width: 200px; height: 200px;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, var(--parchment), var(--ivory) 70%);
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.guru-medallion::before {
  content: '';
  position: absolute; inset: 10px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
}
.guru-medallion svg { width: 96px; height: 96px; color: var(--maroon); }

.guru-text .script.mantra {
  font-size: 1.5rem;
  color: var(--maroon-deep);
  margin-bottom: 1.1rem;
}

.guru-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: normal;
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Founders                                                                */
/* ---------------------------------------------------------------------- */

.founders { background: linear-gradient(135deg, #F5E6D3 0%, #E8DCC5 50%, #F5E6D3 100%); }

.founder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.founder-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E7 100%);
  padding: 2.2rem 1.8rem;
  border-top: 4px solid #C9A961;
  position: relative;
  box-shadow: 0 4px 15px rgba(124, 34, 48, 0.1);
  border-radius: 8px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.2), transparent);
  transition: left 0.8s ease;
}

.founder-card:hover::before {
  left: 100%;
}

.founder-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(124, 34, 48, 0.03) 0%, rgba(201, 169, 97, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.founder-card:hover::after {
  opacity: 1;
}

.founder-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(124, 34, 48, 0.25);
  border-top-color: #7C2230;
  border-radius: 12px;
}

.founder-card > * {
  position: relative;
  z-index: 1;
}

.founder-card .script {
  font-size: 1.1rem;
  color: #1F5B54;
  margin-bottom: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.founder-card:hover .script {
  color: #7C2230;
  transform: translateY(-2px);
}

.founder-card p.quote {
  font-size: 0.98rem;
  color: #4A3F35;
  min-height: 6.5em;
  line-height: 1.65;
  transition: color 0.3s ease;
}

.founder-card:hover p.quote {
  color: #2A231C;
}

.founder-card .who {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 2px solid #E8DCC5;
  transition: all 0.3s ease;
}

.founder-card:hover .who {
  border-top-color: #C9A961;
  transform: translateY(-3px);
}

.founder-card .who .name {
  font-family: var(--font-display);
  color: #571622;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.founder-card:hover .who .name {
  color: #7C2230;
  letter-spacing: 0.02em;
}

.founder-card .who .role {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A961;
  font-weight: 700;
  margin-top: 0.3rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.founder-card:hover .who .role {
  color: #7C2230;
  transform: scale(1.05);
}

/* ---------------------------------------------------------------------- */
/* Vision & Mission                                                        */
/* ---------------------------------------------------------------------- */

.vision-mission {
  background: var(--teal-deep);
  color: var(--ink-on-dark);
}
.vision-mission .section-head h2,
.vision-mission .section-head .script { color: var(--ink-on-dark); }
.vision-mission .section-head .script { color: var(--gold-light); }

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(241, 231, 210, 0.14);
}

.vm-panel {
  background: var(--teal-deep);
  padding: 2.6rem 2.4rem;
}
.vm-panel:first-child { background: #0f3733; }

.vm-panel .script {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.vm-panel h3 {
  color: var(--ink-on-dark);
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}
.vm-panel p { color: rgba(241, 231, 210, 0.85); }

.vm-banner {
  text-align: center;
  padding: 1.6rem 1rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

/* ---------------------------------------------------------------------- */
/* Ashram facilities                                                       */
/* ---------------------------------------------------------------------- */

.ashram { background: var(--ivory); }

.ashram-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.ashram-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }
.ashram-intro p { color: var(--ink-soft); }
.ashram-intro .script { color: var(--gold); font-size: 1.2rem; margin-bottom: 0.3rem; }

.facility-list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--ivory-deep);
}

.facility-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--ivory-deep);
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
}

.facility-list li svg {
  width: 22px; height: 22px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Call to seva / donation                                                 */
/* ---------------------------------------------------------------------- */

.seva-call {
  background: 
    linear-gradient(rgba(241, 231, 210, 0.4), rgba(250, 244, 231, 0.45)),
    url('images/8.jpeg') center/cover no-repeat;
  color: var(--ink);
  text-align: center;
}

.seva-call .script { 
  color: #D4AF37; 
  font-size: 1.3rem; 
  margin-bottom: 0.6rem; 
  text-shadow: none;
}

.seva-call h2 { 
  color: #FFFFFF; 
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); 
  max-width: 22ch; 
  margin-inline: auto;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.seva-call p.lede {
  max-width: 56ch;
  margin: 1.4rem auto 0;
  color: rgba(93, 58, 26, 0.9);
  text-shadow: none;
}

.badge-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.8rem 0;
  flex-wrap: wrap;
}
.badge {
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  padding: 0.35em 1em;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: none;
  transform: none;
}

.badge:hover {
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  transform: none;
  box-shadow: none;
}

.seva-call .note {
  font-size: 0.92rem;
  color: rgba(93, 58, 26, 0.85);
  max-width: 44ch;
  margin: 0 auto 1.8rem;
  text-shadow: none;
}

/* Seva Contact Button Special Effects */
.seva-contact-btn {
  position: relative;
  overflow: hidden;
  transition: none;
  border: 2px solid #D4AF37 !important;
  background: transparent !important;
  color: #D4AF37 !important;
}

.seva-contact-btn::before {
  display: none;
}

.seva-contact-btn::after {
  display: none;
}

.seva-contact-btn:hover::before {
  display: none;
}

.seva-contact-btn:hover::after {
  display: none;
}

.seva-contact-btn:hover {
  background: transparent !important;
  border-color: #D4AF37 !important;
  color: #D4AF37 !important;
  transform: none;
  box-shadow: none;
  letter-spacing: 0.14em;
  text-shadow: none;
}

/* Badge Hover Effects */
.badge {
  border: 1px solid #D4AF37;
  color: #D4AF37;
  padding: 0.35em 1em;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: none;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.badge::before {
  display: none;
}

.badge::after {
  display: none;
}

.badge:hover::before {
  display: none;
}

.badge:hover::after {
  display: none;
}

.badge:hover {
  border-color: #D4AF37;
  color: #D4AF37;
  transform: none;
  box-shadow: none;
  background: transparent;
  padding-right: 0.35em;
  text-shadow: none;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(241, 231, 210, 0.75);
  text-align: center;
  padding: 3.5rem 0 2rem;
}

.footer-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
}
.footer-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.footer-name {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.footer-tag { font-size: 0.85rem; color: var(--gold-light); margin-top: 0.4rem; }

.footer-contact {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  justify-content: center;
}
.footer-contact a { text-decoration: none; color: inherit; border-bottom: 1px solid transparent; }
.footer-contact a:hover { border-color: var(--gold); }

.footer-copy {
  margin-top: 2.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(241, 231, 210, 0.4);
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

/* Image Lightbox Styles */
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1001;
  animation: modalSlideIn 0.4s var(--wave);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Guru Image Clickable Indicator */
.guru-medallion.clickable-image {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.guru-medallion.clickable-image:hover {
  transform: scale(1.05);
}

.guru-medallion.clickable-image::after {
  content: '🔍';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(169, 120, 31, 0.9);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.guru-medallion.clickable-image:hover::after {
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 650px;
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(135deg, #FFF8E7 0%, #FAF4E7 100%);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s var(--wave);
  z-index: 1001;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--maroon);
  color: var(--parchment);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1002;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
  background: var(--maroon-deep);
  transform: rotate(90deg) scale(1.1);
}

/* Donation Form Styles */
.donation-form {
  padding: 40px 35px;
}

.donation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.donation-header h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--maroon-deep);
  margin-bottom: 0.5rem;
}

.donation-header p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.donation-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  background: #E8DCC5;
  padding: 6px;
  border-radius: 10px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: #17A2B8;
  color: white;
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.tab-btn:hover:not(.active) {
  background: rgba(23, 162, 184, 0.1);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInContent 0.4s ease-in-out;
}

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



/* Monthly Tab Unique Styling */
.monthly-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #17A2B8, #138496);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
  animation: pulseGlowBadge 2s ease-in-out infinite;
}

@keyframes pulseGlowBadge {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
  }
  50% {
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5);
  }
}



.badge-icon {
  font-size: 1.1rem;
  animation: rotate 3s linear infinite;
}

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



.monthly-section {
  background: linear-gradient(135deg, #F0FAFC 0%, white 100%);
  border: 2px solid #17A2B8;
  position: relative;
  overflow: hidden;
}

.monthly-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(23, 162, 184, 0.1) 0%, transparent 70%);
  animation: rotateGradient 8s linear infinite;
}

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



.floating-icon {
  animation: floatUpDown 3s ease-in-out infinite;
}

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



.impact-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(23, 162, 184, 0.08);
  border-left: 3px solid #17A2B8;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--ink);
}

.impact-icon {
  font-size: 1.3rem;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20% { transform: scale(0.95); }
}



.monthly-options .option-card {
  position: relative;
  overflow: hidden;
}

.monthly-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #17A2B8;
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.yearly-amount {
  font-size: 0.75rem;
  color: #17A2B8;
  font-weight: 600;
  margin-top: 0.2rem;
}

.custom-monthly .option-card {
  border: 2px dashed #17A2B8;
  background: #F0FAFC;
}

.monthly-benefits {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #FFF8E7 0%, #FAF4E7 100%);
  border-radius: 12px;
  border: 2px solid #E8DCC5;
  animation: fadeInContent 0.6s ease-in-out 0.2s backwards;
}

.monthly-benefits h4 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.monthly-benefits h4::before {
  content: '💫';
  font-size: 1.3rem;
}

.monthly-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.monthly-benefits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
}

.benefit-icon {
  width: 20px;
  height: 20px;
  background: #17A2B8;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

.donation-section {
  margin-bottom: 1.8rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 2px solid #E8DCC5;
}

.section-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.donation-section h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.donation-section p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.donation-option {
  cursor: pointer;
}

.donation-option input[type="radio"] {
  display: none;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem;
  background: white;
  border: 2px solid #E0D5C0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.donation-option input[type="radio"]:checked + .option-card {
  border-color: #17A2B8;
  background: #F0FAFC;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.option-card:hover {
  border-color: #17A2B8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.option-title {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.option-amount {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 600;
}

.custom-amount {
  grid-column: span 2;
}

.custom-input {
  width: 100%;
  padding: 0.8rem;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.custom-input::placeholder {
  color: var(--ink-soft);
  opacity: 0.6;
}

.donation-actions {
  text-align: center;
  margin-bottom: 1.5rem;
}

.donate-submit {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.tax-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.donation-info {
  text-align: center;
  padding: 1.5rem;
  background: #FFF8E7;
  border-radius: 10px;
  border: 1px solid #E8DCC5;
}

.donation-info p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.donation-info strong {
  color: var(--maroon);
}

.donation-info a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.donation-info a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .donation-form {
    padding: 30px 20px;
  }
  
  .donation-options {
    grid-template-columns: 1fr;
  }
  
  .custom-amount {
    grid-column: span 1;
  }
  
  .donation-tabs {
    flex-direction: column;
  }
}

/* Our Work Section - Warm Beige Theme */
.our-work-section {
  background: linear-gradient(135deg, #E8DCC5 0%, #D4C4B0 50%, #E8DCC5 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.our-work-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(160, 82, 45, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.work-header {
  text-align: center;
  margin-bottom: 4rem;
}

.work-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #A0522D;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #5D3A1A;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.work-card {
  background: rgba(255, 253, 249, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(160, 82, 45, 0.25);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.work-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-card[data-delay="0"].is-visible { transition-delay: 0s; }
.work-card[data-delay="100"].is-visible { transition-delay: 0.1s; }
.work-card[data-delay="200"].is-visible { transition-delay: 0.2s; }
.work-card[data-delay="300"].is-visible { transition-delay: 0.3s; }
.work-card[data-delay="400"].is-visible { transition-delay: 0.4s; }
.work-card[data-delay="500"].is-visible { transition-delay: 0.5s; }
.work-card[data-delay="600"].is-visible { transition-delay: 0.6s; }
.work-card[data-delay="700"].is-visible { transition-delay: 0.7s; }

.work-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #A0522D, transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.work-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #A0522D;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(93, 58, 26, 0.2),
    0 0 60px rgba(160, 82, 45, 0.15),
    inset 0 0 30px rgba(160, 82, 45, 0.05);
}

.work-card:hover::before {
  transform: translateX(100%);
}

.highlight-card {
  border-color: #A0522D;
  background: rgba(160, 82, 45, 0.1);
  box-shadow: 0 8px 25px rgba(160, 82, 45, 0.2);
}

.highlight-card::after {
  content: '✨';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.2rem;
  animation: sparkle 2s ease-in-out infinite;
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(160, 82, 45, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.work-card:hover .card-glow {
  opacity: 1;
  animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}



.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 8px rgba(160, 82, 45, 0.3));
  animation: floatUpDown 3s ease-in-out infinite;
}

.work-card:nth-child(even) .card-icon {
  animation-delay: -1.5s;
}

.card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: #A0522D;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.work-card:hover .card-title {
  color: #8B4513;
  text-shadow: 0 0 20px rgba(160, 82, 45, 0.3);
}

.card-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6B4E3D;
  transition: color 0.3s ease;
}

.work-card:hover .card-description {
  color: #5D3A1A;
}

/* Floating Particles for Warm Background */
.our-work-section .particles-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.our-work-section .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #A0522D;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticleDark 10s infinite ease-in-out;
  box-shadow: 0 0 15px rgba(160, 82, 45, 0.5);
}

@keyframes floatParticleDark {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    transform: translateY(-50vh) scale(1.2);
  }
  90% {
    opacity: 0.5;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateY(-100vh) scale(0.3);
  }
}



@media (max-width: 860px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .our-work-section {
    padding: 4rem 0;
  }
}

/* Yoga Registration Section */
.yoga-registration {
  background: linear-gradient(135deg, #E8DCC5 0%, #F1E7D2 50%, #E8DCC5 100%);
  position: relative;
}

.yoga-registration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(169, 120, 31, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.yoga-registration .section-head .script {
  color: #A0522D;
  font-weight: 600;
}

.yoga-registration .section-head h2 {
  color: #5D3A1A;
}

.yoga-registration .section-head p {
  color: #6B4E3D;
}

/* ====================================================================== */
/* FLOATING WHATSAPP BUTTON                                                */
/* ====================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #20BA5A;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Pulse animation for WhatsApp button */
.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.whatsapp-float svg {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

.registration-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.registration-form {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(93, 58, 26, 0.12);
  border: 1px solid #D4C4B0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #5D3A1A;
  margin-bottom: 0.5rem;
}

.required {
  color: #8B4513;
  margin-left: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 2px solid #E8DCC5;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #5D3A1A;
  background: #FFFDF9;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #A0522D;
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.1);
  background: #FFFFFF;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9B8B7E;
  opacity: 0.7;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.form-actions .btn {
  flex: 1;
}

.form-actions .btn-primary {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border-color: #8B4513;
}

.form-actions .btn-primary:hover {
  background: linear-gradient(135deg, #6B3410, #8B4513);
  transform: translateY(-2px);
}

.form-actions .btn-ghost {
  border-color: #A0522D;
  color: #A0522D;
  background: transparent;
}

.form-actions .btn-ghost:hover {
  background: #A0522D;
  color: white;
}

.form-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #6B4E3D;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #E8DCC5;
}

.registration-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: #FFFFFF;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(93, 58, 26, 0.1);
  border-left: 4px solid #A0522D;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 6px 25px rgba(93, 58, 26, 0.15);
  transform: translateY(-2px);
}

.info-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #5D3A1A;
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-card p {
  font-size: 0.9rem;
  color: #6B4E3D;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.info-card strong {
  color: #8B4513;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card li {
  padding: 0.4rem 0;
  color: #6B4E3D;
  font-size: 0.9rem;
}

.info-card a {
  color: #A0522D;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: #8B4513;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .registration-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .registration-form {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .registration-form {
    padding: 1.5rem;
  }
}

/* Sacred Image Animation */
.sacred-image {
  animation: fadeInScale 1.5s var(--wave) forwards;
  opacity: 0;
  position: relative;
  z-index: 2;
}



.image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.sacred-image:hover {
  transform: scale(1.02);
  transition: transform 0.4s var(--wave);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

/* Floating Particles Background */
.particles-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s infinite ease-in-out;
  box-shadow: 0 0 10px var(--gold-light);
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-delay: 1.5s;
  animation-duration: 9s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-delay: 3s;
  animation-duration: 6s;
}

.particle:nth-child(4) {
  left: 60%;
  animation-delay: 2s;
  animation-duration: 8s;
}

.particle:nth-child(5) {
  left: 75%;
  animation-delay: 4s;
  animation-duration: 7.5s;
}

.particle:nth-child(6) {
  left: 85%;
  animation-delay: 1s;
  animation-duration: 8.5s;
}

.particle:nth-child(7) {
  left: 50%;
  animation-delay: 3.5s;
  animation-duration: 9.5s;
}

.particle:nth-child(8) {
  left: 20%;
  animation-delay: 2.5s;
  animation-duration: 7s;
}

@keyframes floatParticle {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50vh) scale(1);
  }
  90% {
    opacity: 0.4;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateY(-100vh) scale(0.3);
  }
}



/* Glowing Overlay Effect */
.glow-overlay {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(169, 120, 31, 0.15) 0%,
    transparent 50%
  );
}

.image-wrapper:hover .glow-overlay {
  opacity: 1;
}

/* Image Section Enhancements */
.image-section {
  position: relative;
  background: linear-gradient(135deg, 
    #F1E7D2 0%, 
    #FAF4E7 25%, 
    #F1E7D2 50%, 
    #FAF4E7 75%, 
    #F1E7D2 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}



/* Pulsing Glow on Image Border */


.sacred-image {
  animation: fadeInScale 1.5s var(--wave) forwards, pulseGlow 3s ease-in-out infinite 1.5s;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(0,0,0,0.1),
      0 0 20px rgba(169, 120, 31, 0.2),
      inset 0 0 20px rgba(169, 120, 31, 0.1);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(0,0,0,0.15),
      0 0 40px rgba(169, 120, 31, 0.4),
      inset 0 0 30px rgba(169, 120, 31, 0.2);
  }
}

/* Sparkle Effect */


.image-wrapper::before,
.image-wrapper::after {
  content: '✨';
  position: absolute;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  animation: sparkle 3s ease-in-out infinite;
}

.image-wrapper::before {
  top: 10%;
  right: 5%;
  animation-delay: 0.5s;
}

.image-wrapper::after {
  bottom: 15%;
  left: 8%;
  animation-delay: 1.5s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

@media (max-width: 860px) {
  .guru-grid { grid-template-columns: 1fr; text-align: center; }
  .guru-quote { border-left: none; border-top: 2px solid var(--gold); padding-left: 0; padding-top: 1rem; }
  .founder-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .ashram-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero-ctas { flex-direction: column; align-items: center; }
}

/* ====================================================================== */
/* RESPONSIVE DESIGN - Mobile First Approach                              */
/* ====================================================================== */

/* Tablet and below (1024px) */
@media (max-width: 1024px) {
  body {
    font-size: 16px;
  }
  
  .container {
    width: 90%;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
  }
  
  .donation-section {
    max-width: 100%;
  }
  
  .seva-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .seva-registration {
    max-height: none;
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 980px) {
  .burger { 
    display: flex;
    z-index: 110;
  }
  
  nav.links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 350px);
    background: var(--maroon-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 20px 30px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 105;
  }
  
  nav.links.mobile-open { 
    transform: translateX(0); 
  }
  
  .nav-item { 
    width: 100%; 
  }
  
  .nav-item > a, 
  .nav-item > button { 
    width: 100%; 
    justify-content: space-between;
    padding: 12px 16px;
  }
  
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    margin: 4px 0 8px;
  }
  
  .nav-item.open .dropdown { 
    display: block; 
  }
  
  .donate-cta { 
    margin-left: 0; 
    margin-top: 12px; 
    text-align: center;
    display: block;
  }
  
  .guru-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .guru-quote {
    border-left: none;
    border-top: 2px solid var(--gold);
    padding-left: 0;
    padding-top: 1rem;
  }
  
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .vm-grid {
    grid-template-columns: 1fr;
  }
  
  .ashram-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .flame-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile Large (600px - 768px) */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .section-pad {
    padding: 4rem 0;
  }
  
  .hero {
    min-height: 90vh;
    padding-top: 70px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .section-head h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .donation-tabs {
    flex-direction: column;
  }
  
  .donation-tab {
    border-right: none;
    border-bottom: 1px solid rgba(217, 178, 92, 0.2);
  }
  
  .donation-tab:last-child {
    border-bottom: none;
  }
  
  .donation-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .seva-form-row {
    grid-template-columns: 1fr;
  }
  
  .flame-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Mobile Medium (480px - 600px) */
@media (max-width: 600px) {
  .nav-inner {
    padding: 12px 18px;
  }
  
  .brand .om {
    width: 35px;
    height: 35px;
  }
  
  .brand-text .name {
    font-size: 13px;
  }
  
  .brand-text .kn {
    font-size: 10px;
  }
  
  .hero {
    padding-top: 60px;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-om {
    font-size: 1.5rem;
  }
  
  .hero-invocation {
    font-size: 1.1rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 9vw, 2.8rem);
  }
  
  .hero-title-kannada {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }
  
  .hero-tagline {
    font-size: 0.95rem;
  }
  
  .hero-subtag {
    font-size: 1rem;
  }
  
  .hero-location {
    font-size: 0.75rem;
  }
  
  .btn {
    padding: 0.75em 1.4em;
    font-size: 0.82rem;
  }
  
  .guru-medallion {
    width: 160px;
    height: 160px;
  }
  
  .guru-quote {
    font-size: 1.1rem;
  }
  
  .founder-card {
    padding: 1.8rem 1.4rem;
  }
  
  .vm-panel {
    padding: 2rem 1.6rem;
  }
  
  .facility-list li {
    font-size: 1rem;
  }
  
  .donation-section {
    margin: 1.5rem auto;
  }
  
  .donation-content {
    padding: 1.5rem 1.2rem;
  }
  
  .seva-registration {
    padding: 1.5rem 1.2rem;
  }
  
  .registration-header h3 {
    font-size: 1.2rem;
  }
  
  .footer-contact {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .container {
    width: 94%;
  }
  
  .section-pad {
    padding: 3rem 0;
  }
  
  .hero {
    min-height: 85vh;
  }
  
  .hero-title {
    font-size: clamp(1.6rem, 10vw, 2.4rem);
    letter-spacing: 0.02em;
  }
  
  .hero-ctas {
    gap: 0.8rem;
  }
  
  .btn {
    padding: 0.7em 1.2em;
    font-size: 0.78rem;
  }
  
  .section-head h2 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  
  .guru-medallion {
    width: 140px;
    height: 140px;
  }
  
  .founder-card {
    padding: 1.5rem 1.2rem;
  }
  
  .founder-card .quote {
    font-size: 0.92rem;
  }
  
  .vm-panel {
    padding: 1.6rem 1.2rem;
  }
  
  .vm-panel h3 {
    font-size: 1.3rem;
  }
  
  .donation-content {
    padding: 1.2rem 1rem;
  }
  
  .donation-card {
    padding: 1rem 0.8rem;
    min-height: 75px;
  }
  
  .donation-amount {
    font-size: 1.1rem;
  }
  
  .seva-registration {
    padding: 1.2rem 1rem;
  }
  
  .seva-form-group label {
    font-size: 0.8rem;
  }
  
  .seva-form-group input,
  .seva-form-group select,
  .seva-form-group textarea {
    font-size: 0.86rem;
    padding: 0.6rem 0.75rem;
  }
  
  .flame-card {
    padding: 1.5rem 1.2rem;
  }
  
  .flame-card h3 {
    font-size: 1.1rem;
  }
  
  .flame-card p {
    font-size: 0.88rem;
  }
}

/* Extra Small Mobile (below 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .nav-inner {
    padding: 10px 15px;
  }
  
  .brand .om {
    width: 30px;
    height: 30px;
  }
  
  .brand-text .name {
    font-size: 11px;
  }
  
  .guru-medallion {
    width: 120px;
    height: 120px;
  }
  
  .donation-card {
    min-height: 70px;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: 70px;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-om,
  .hero-invocation {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-tagline {
    font-size: 0.9rem;
  }
  
  .scroll-cue {
    display: none;
  }
}

/* Print Styles */
@media print {
  .site-nav,
  .burger,
  .scroll-cue,
  .wave-divider,
  .ripple-field,
  .hero-ctas,
  .btn,
  .donation-section,
  .seva-registration {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* ---------------------------------------------------------------------- */
/* Trustee Members                                                         */
/* ---------------------------------------------------------------------- */

.trustees {
  background: var(--parchment);
}

.trustee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.trustee-name {
  background: var(--ivory);
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--maroon-deep);
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trustee-name:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(169, 120, 31, 0.15);
  border-color: var(--maroon);
}

@media (max-width: 768px) {
  .trustee-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
  
  .trustee-name {
    padding: 1rem 1.2rem;
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .trustee-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================================== */
/* UNIQUE VISUAL EFFECTS                                                  */
/* ====================================================================== */

/* Floating Animation for Hero OM Symbol */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-om {
  animation: float 3s ease-in-out infinite;
}

/* Pulsing Glow Effect for Gold Elements */
@keyframes pulse-glow {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(169, 120, 31, 0.5),
                 0 0 20px rgba(169, 120, 31, 0.3);
  }
  50% { 
    text-shadow: 0 0 20px rgba(169, 120, 31, 0.8),
                 0 0 30px rgba(169, 120, 31, 0.5),
                 0 0 40px rgba(169, 120, 31, 0.3);
  }
}

.hero-invocation {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Parallax Effect for Sections */
@media (prefers-reduced-motion: no-preference) {
  .section-head .script {
    transition: transform 0.3s ease-out;
  }
  
  .section-head:hover .script {
    transform: scale(1.1) rotate(2deg);
  }
}

/* Gradient Text Animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-title {
  background: linear-gradient(45deg, 
    var(--maroon-deep), 
    var(--gold), 
    var(--teal-deep), 
    var(--maroon-deep)
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease infinite;
}

/* Morphing Border Effect for Cards */
.founder-card,
.flame-card,
.trustee-name {
  position: relative;
  overflow: hidden;
}

.founder-card::before,
.flame-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold), var(--maroon), var(--teal), var(--gold));
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: gradient-rotate 4s ease infinite;
}

.founder-card:hover::before,
.flame-card:hover::before {
  opacity: 1;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Particle Effect Background */
@keyframes particle-float {
  0%, 100% { 
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-40px) translateX(-10px) rotate(180deg);
    opacity: 0.3;
  }
  75% {
    transform: translateY(-20px) translateX(10px) rotate(270deg);
    opacity: 0.6;
  }
}

.guru::before,
.vision-mission::before {
  content: '॰';
  position: absolute;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.1;
  animation: particle-float 15s ease-in-out infinite;
}

.guru::before {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.vision-mission::before {
  top: 20%;
  right: 5%;
  animation-delay: 3s;
}

/* Shimmer Effect on Hover */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

/* Typewriter Effect for Taglines */
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.hero-tagline {
  overflow: hidden;
  border-right: 2px solid var(--gold);
  white-space: nowrap;
  animation: 
    typewriter 4s steps(60) 1s forwards,
    blink 0.75s step-end infinite;
}

/* 3D Flip Effect for Donation Cards */
.donation-card {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-option:hover .donation-card {
  transform: rotateY(5deg) rotateX(5deg);
}

/* Wave Animation for Dividers */
@keyframes wave-flow {
  0% { d: path("M0,20 C200,60 400,0 600,25 C800,50 1000,5 1200,30 L1200,60 L0,60 Z"); }
  50% { d: path("M0,30 C200,5 400,50 600,15 C800,0 1000,55 1200,20 L1200,60 L0,60 Z"); }
  100% { d: path("M0,20 C200,60 400,0 600,25 C800,50 1000,5 1200,30 L1200,60 L0,60 Z"); }
}

/* Glowing Border on Focus */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 
    0 0 0 3px rgba(169, 120, 31, 0.15),
    0 0 20px rgba(169, 120, 31, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Staggered Reveal Animation */
.trustee-name {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up 0.6s ease forwards;
}



.trustee-name:nth-child(1) { animation-delay: 0.1s; }
.trustee-name:nth-child(2) { animation-delay: 0.15s; }
.trustee-name:nth-child(3) { animation-delay: 0.2s; }
.trustee-name:nth-child(4) { animation-delay: 0.25s; }
.trustee-name:nth-child(5) { animation-delay: 0.3s; }
.trustee-name:nth-child(6) { animation-delay: 0.35s; }
.trustee-name:nth-child(7) { animation-delay: 0.4s; }
.trustee-name:nth-child(8) { animation-delay: 0.45s; }
.trustee-name:nth-child(9) { animation-delay: 0.5s; }
.trustee-name:nth-child(10) { animation-delay: 0.55s; }
.trustee-name:nth-child(11) { animation-delay: 0.6s; }
.trustee-name:nth-child(12) { animation-delay: 0.65s; }
.trustee-name:nth-child(13) { animation-delay: 0.7s; }
.trustee-name:nth-child(14) { animation-delay: 0.75s; }
.trustee-name:nth-child(15) { animation-delay: 0.8s; }
.trustee-name:nth-child(16) { animation-delay: 0.85s; }
.trustee-name:nth-child(17) { animation-delay: 0.9s; }
.trustee-name:nth-child(18) { animation-delay: 0.95s; }
.trustee-name:nth-child(19) { animation-delay: 1s; }
.trustee-name:nth-child(20) { animation-delay: 1.05s; }
.trustee-name:nth-child(21) { animation-delay: 1.1s; }
.trustee-name:nth-child(22) { animation-delay: 1.15s; }

/* Magnetic Effect for Buttons */
@media (pointer: fine) {
  .btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .btn:active {
    transform: scale(0.95);
  }
}

/* Bokeh Background Effect */
.seva-call::after {
  display: none;
}



/* Smooth Scroll Indicator */
.scroll-cue::after {
  animation: drip 2.4s ease-in-out infinite, pulse 2s ease-in-out infinite;
}

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

/* Glass Morphism Effect */
.donation-content,
.seva-registration {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ink Splash Effect on Section Headers */
.section-head h2 {
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 0.6s ease;
}

.section-head:hover h2::after {
  width: 100%;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====================================================================== */
/* ADVANCED ANIMATION EFFECTS                                             */
/* ====================================================================== */

/* Fade-in from different directions for reveal elements */
@keyframes fadeInUp {
  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 fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Apply animations to reveal elements */
.reveal {
  animation: fadeInUp 0.8s ease-out forwards;
}

.founder-card:nth-child(odd) {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.founder-card:nth-child(even) {
  animation: fadeInRight 0.8s ease-out forwards;
}

.flame-card {
  animation: fadeInScale 0.6s ease-out forwards;
}

.guru-medallion {
  animation: fadeInRotate 1s ease-out forwards;
}

/* Bouncing arrow/scroll indicator */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.scroll-cue {
  animation: bounce 2s infinite;
}

/* Counter animation for numbers */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rotating border effect */
@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.guru-medallion::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--gold), transparent, var(--gold));
  animation: rotate-border 3s linear infinite;
  z-index: -1;
  opacity: 0.5;
}

/* Breathing animation for important elements */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.section-head .script {
  animation: breathe 4s ease-in-out infinite;
}

/* Slide in animation for navigation */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-nav {
  animation: slideInDown 0.6s ease-out;
}

/* Wave text animation */
@keyframes wave-text {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero-title {
  display: inline-block;
}

.hero-title:hover {
  animation: wave-text 0.5s ease-in-out;
}

/* Ripple effect on button click */
@keyframes ripple-effect {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
  animation: ripple-effect 0.6s ease-out;
}

/* Spotlight effect on sections */
@keyframes spotlight {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.section-pad:hover {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(169, 120, 31, 0.03) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: spotlight 3s ease-in-out;
}

/* Card flip animation */
@keyframes flip-in {
  from {
    transform: perspective(1000px) rotateY(-90deg);
    opacity: 0;
  }
  to {
    transform: perspective(1000px) rotateY(0);
    opacity: 1;
  }
}

.donation-card {
  animation: flip-in 0.6s ease-out forwards;
}

.donation-option:nth-child(1) .donation-card { animation-delay: 0.1s; }
.donation-option:nth-child(2) .donation-card { animation-delay: 0.2s; }
.donation-option:nth-child(3) .donation-card { animation-delay: 0.3s; }
.donation-option:nth-child(4) .donation-card { animation-delay: 0.4s; }
.donation-option:nth-child(5) .donation-card { animation-delay: 0.5s; }

/* Typing cursor effect */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Shake animation for errors or attention */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Glow pulse for donate button */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(169, 120, 31, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(169, 120, 31, 0.8),
                0 0 30px rgba(169, 120, 31, 0.5);
  }
}

.donate-cta {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Confetti effect (subtle) */
@keyframes confetti-fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Smooth entrance for facility list items */
@keyframes slide-in-right {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.facility-list li {
  animation: slide-in-right 0.5s ease-out forwards;
}

.facility-list li:nth-child(1) { animation-delay: 0.1s; }
.facility-list li:nth-child(2) { animation-delay: 0.2s; }
.facility-list li:nth-child(3) { animation-delay: 0.3s; }
.facility-list li:nth-child(4) { animation-delay: 0.4s; }
.facility-list li:nth-child(5) { animation-delay: 0.5s; }
.facility-list li:nth-child(6) { animation-delay: 0.6s; }
.facility-list li:nth-child(7) { animation-delay: 0.7s; }

/* Pendulum swing for decorative elements */
@keyframes swing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.hero-om {
  transform-origin: center top;
  animation: swing 3s ease-in-out infinite, float 3s ease-in-out infinite;
}

/* Page load animation */
@keyframes page-load {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: page-load 0.8s ease-out;
}

/* Hover lift effect for all interactive cards */
.founder-card,
.flame-card,
.donation-card,
.trustee-name {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}

.founder-card:hover,
.flame-card:hover,
.donation-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Heartbeat animation for important icons */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

.flame-icon svg {
  animation: heartbeat 2s ease-in-out infinite;
}

/* Text reveal with underline */
@keyframes underline-reveal {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

h2::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--gold);
  margin: 0.5rem auto 0;
  animation: underline-reveal 1s ease-out forwards;
  animation-delay: 0.5s;
}

/* Smooth color transition on hover */
.trustee-name {
  transition: 
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.trustee-name:hover {
  background: linear-gradient(135deg, var(--ivory) 0%, var(--parchment) 100%);
  color: var(--maroon);
}

/* Trustee Modal Styles */
.trustee-modal-content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem 0;
  background: linear-gradient(135deg, #FFF8E7 0%, #FAF4E7 50%, #FFF8E7 100%);
}

.trustee-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(124, 34, 48, 0.08);
}

.trustee-section:last-child {
  margin-bottom: 0;
}

.trustee-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #7C2230;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid transparent;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) bottom / 80% 3px no-repeat;
  text-align: center;
  position: relative;
}

.trustee-section-title::before {
  content: '✦';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -15px;
  font-size: 1.2rem;
  color: var(--gold);
}

.trustee-member {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E7 100%);
  padding: 1.4rem 1.8rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border-left: 4px solid #D4AF37;
  box-shadow: 0 3px 12px rgba(124, 34, 48, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trustee-member::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
  transition: left 0.6s ease;
}

.trustee-member:hover::before {
  left: 100%;
}

.trustee-member:hover {
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(124, 34, 48, 0.2);
  border-left-color: #7C2230;
}

.trustee-member-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #571622;
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.trustee-member-role {
  font-size: 0.88rem;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 20px;
}

.trustee-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.trustee-name-modal {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E7 100%);
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  border-left: 3px solid #D4AF37;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: #571622;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(124, 34, 48, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.trustee-name-modal::after {
  content: '→';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  color: #7C2230;
  font-weight: bold;
  transition: all 0.35s ease;
}

.trustee-name-modal:hover::after {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

.trustee-name-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, #7C2230, #D4AF37);
  transition: height 0.4s ease;
}

.trustee-name-modal:hover::before {
  height: 100%;
}

.trustee-name-modal:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124, 34, 48, 0.18);
  border-left-color: #7C2230;
  padding-right: 2.5rem;
}

.trustee-btn {
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.trustee-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.trustee-btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Scrollbar styling for trustee modal */
.trustee-modal-content::-webkit-scrollbar {
  width: 8px;
}

.trustee-modal-content::-webkit-scrollbar-track {
  background: #FAF4E7;
  border-radius: 10px;
}

.trustee-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4AF37, #7C2230);
  border-radius: 10px;
}

.trustee-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7C2230, #D4AF37);
}

@media (max-width: 600px) {
  .trustee-grid-modal {
    grid-template-columns: 1fr;
  }
  
  .trustee-modal-content {
    max-height: 70vh;
  }
  
  .trustee-section {
    padding: 1rem;
  }
  
  .trustee-member {
    padding: 1.1rem 1.3rem;
  }
}

/* ====================================================================== */
/* GALLERY MODAL                                                           */
/* ====================================================================== */

.gallery-modal-content {
  max-width: 900px;
  max-height: 85vh;
}

.gallery-modal-body {
  padding: 2rem 0;
  max-height: 65vh;
  overflow-y: auto;
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem;
}

.gallery-modal-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 34, 48, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
  background: #FFFFFF;
}

.gallery-modal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(124, 34, 48, 0.25);
}

.gallery-modal-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-modal-item:hover .gallery-modal-image {
  transform: scale(1.05);
}

/* Scrollbar styling for gallery modal */
.gallery-modal-body::-webkit-scrollbar {
  width: 8px;
}

.gallery-modal-body::-webkit-scrollbar-track {
  background: #FAF4E7;
  border-radius: 10px;
}

.gallery-modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #D4AF37, #7C2230);
  border-radius: 10px;
}

.gallery-modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7C2230, #D4AF37);
}

@media (max-width: 768px) {
  .gallery-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .gallery-modal-content {
    max-width: 95vw;
  }
  
  .gallery-modal-body {
    padding: 1.5rem 0;
  }
}

@media (max-width: 600px) {
  .gallery-modal-body {
    max-height: 70vh;
  }
  
  .gallery-modal-grid {
    padding: 0 1rem;
  }
}



/* ====================================================================== */
/* COMPREHENSIVE RESPONSIVE DESIGN FOR ALL DEVICES                        */
/* ====================================================================== */

/* ========== FLOATING WHATSAPP BUTTON ========== */
.whatsapp-float {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 60px !important;
  height: 60px !important;
  background: #25D366 !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4) !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

/* ========== EXTRA LARGE DEVICES (1920px+) ========== */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-title {
    font-size: 6.5rem !important;
  }
}

/* ========== LARGE LAPTOPS (1440px - 1920px) ========== */
@media (max-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

/* ========== STANDARD LAPTOPS (1024px - 1440px) ========== */
@media (max-width: 1200px) {
  .founder-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
  
  .container {
    width: 90%;
  }
}

/* ========== TABLETS LANDSCAPE (900px - 1024px) ========== */
@media (max-width: 1024px) {
  .hero {
    min-height: 80vh;
  }
  
  .section-pad {
    padding: 4rem 0;
  }
  
  .ashram-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .whatsapp-float {
    width: 58px !important;
    height: 58px !important;
    bottom: 18px !important;
    right: 18px !important;
  }
}

/* ========== TABLETS PORTRAIT (768px - 900px) ========== */
@media (max-width: 900px) {
  .guru-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem;
  }
  
  .guru-quote {
    border-left: none;
    border-top: 2px solid var(--gold);
    padding-left: 0;
    padding-top: 1rem;
  }
  
  .vm-grid {
    grid-template-columns: 1fr !important;
  }
  
  .founder-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========== MOBILE LANDSCAPE / SMALL TABLETS (640px - 768px) ========== */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    bottom: 15px !important;
    right: 15px !important;
  }
  
  .whatsapp-float svg {
    width: 26px !important;
    height: 26px !important;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .donation-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
  }
  
  .donation-options {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .work-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  
  .section-pad {
    padding: 3.5rem 0;
  }
  
  .nav-inner {
    padding: 12px 20px;
  }
  
  .facility-list li {
    font-size: 1rem;
  }
}

/* ========== MOBILE PORTRAIT (480px - 640px) ========== */
@media (max-width: 640px) {
  .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    bottom: 14px !important;
    right: 14px !important;
  }
  
  .whatsapp-float svg {
    width: 25px !important;
    height: 25px !important;
  }
  
  .hero {
    padding-top: 60px;
    min-height: 70vh;
  }
  
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
    letter-spacing: 0.05em;
  }
  
  .hero-tagline {
    font-size: 0.95rem;
  }
  
  .work-grid {
    grid-template-columns: 1fr !important;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .founder-card {
    padding: 1.8rem 1.4rem;
  }
  
  .donation-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-content {
    max-width: 95vw;
    margin: 10px;
  }
}

/* ========== SMALL MOBILE (375px - 480px) ========== */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px !important;
    height: 50px !important;
    bottom: 12px !important;
    right: 12px !important;
  }
  
  .whatsapp-float svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  body {
    font-size: 16px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 11vw, 2.5rem) !important;
  }
  
  .hero-om {
    font-size: 1.5rem;
  }
  
  .hero-invocation {
    font-size: 1.1rem;
  }
  
  .section-pad {
    padding: 3rem 0;
  }
  
  .section-head h2 {
    font-size: 1.6rem;
  }
  
  .btn {
    font-size: 0.8rem;
    padding: 0.75em 1.4em;
  }
  
  .brand .om {
    width: 35px;
    height: 35px;
  }
  
  .brand-text .name {
    font-size: 13px;
  }
  
  .timeline-number {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
  }
  
  .timeline-content h3 {
    font-size: 1.3rem;
  }
  
  .preview-cta {
    padding: 2rem 1.5rem;
  }
  
  .donation-contact-section {
    padding: 1.5rem !important;
  }
  
  .donation-contact-section h3 {
    font-size: 1.2rem !important;
  }
  
  .donation-contact-section a {
    font-size: 0.95rem !important;
    padding: 1rem 1.5rem !important;
  }
}

/* ========== EXTRA SMALL MOBILE (320px - 375px) ========== */
@media (max-width: 375px) {
  .whatsapp-float {
    width: 48px !important;
    height: 48px !important;
    bottom: 10px !important;
    right: 10px !important;
  }
  
  .whatsapp-float svg {
    width: 22px !important;
    height: 22px !important;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 12vw, 2.2rem) !important;
  }
  
  .container {
    width: 95%;
  }
  
  .founder-card {
    padding: 1.5rem 1.2rem;
  }
  
  .timeline-content {
    padding: 1.2rem;
  }
  
  .donation-contact-section a {
    font-size: 0.85rem !important;
    padding: 0.9rem 1.2rem !important;
    flex-direction: column;
    text-align: center;
  }
  
  .donation-contact-section a span {
    font-size: 0.8rem;
  }
}

/* ========== TINY DEVICES (< 320px) ========== */
@media (max-width: 320px) {
  .whatsapp-float {
    width: 45px !important;
    height: 45px !important;
    bottom: 8px !important;
    right: 8px !important;
  }
  
  .whatsapp-float svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .section-pad {
    padding: 2.5rem 0;
  }
  
  body {
    font-size: 15px;
  }
}

/* ========== LANDSCAPE ORIENTATION FIXES ========== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: 70px;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .whatsapp-float {
    bottom: 10px !important;
    right: 10px !important;
    width: 45px !important;
    height: 45px !important;
  }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-item > a,
  .nav-item > button,
  .whatsapp-float {
    min-height: 44px;
    min-width: 44px;
  }
  
  .whatsapp-float:active {
    transform: scale(0.9);
  }
  
  .founder-card:hover {
    transform: none;
  }
}

/* ========== HIGH DPI DISPLAYS ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .whatsapp-float {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .whatsapp-float,
  .site-nav,
  .burger,
  .modal {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section-pad {
    padding: 2rem 0;
  }
}


/* ====================================================================== */
/* ADDITIONAL RESPONSIVE ENHANCEMENTS FOR PERFECT COMPATIBILITY           */
/* ====================================================================== */

/* Ensure all images scale properly */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* Prevent horizontal scrolling on all devices */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

/* Flexible container for all screen sizes */
.container {
  max-width: 100% !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  box-sizing: border-box !important;
}

/* Responsive text scaling */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  h1, .hero-title {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .hero-tagline {
    max-width: 90% !important;
  }
  
  /* Responsive registration section */
  .registration-wrapper {
    max-width: 100% !important;
    padding: 0 1rem !important;
  }
  
  .registration-wrapper > div {
    padding: 2rem 1rem !important;
  }
  
  .registration-wrapper a {
    font-size: 0.9rem !important;
    padding: 1rem 1rem !important;
  }
  
  .registration-wrapper a span {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    width: 100% !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  /* Make email addresses break nicely */
  .registration-wrapper a span,
  .donation-contact-section a span,
  .footer-contact a {
    word-break: break-all !important;
  }
}

/* Responsive tables (if any) */
table {
  width: 100% !important;
  overflow-x: auto !important;
  display: block !important;
}

/* Responsive iframes and embedded content */
iframe,
embed,
object {
  max-width: 100% !important;
}

/* Better button responsiveness */
@media (max-width: 640px) {
  .hero-ctas .btn {
    font-size: 0.85rem;
    padding: 0.8em 1.5em;
  }
  
  .donate-cta {
    font-size: 11px !important;
    padding: 8px 16px !important;
  }
}

/* Responsive modal improvements */
@media (max-width: 768px) {
  .modal {
    padding: 10px !important;
  }
  
  .modal-content {
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  
  .donation-form {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .donation-body {
    padding: 1rem !important;
  }
  
  .donation-section {
    padding: 1rem !important;
  }
  
  .donation-option {
    margin-bottom: 0.75rem !important;
  }
  
  .option-card {
    padding: 1rem !important;
  }
}

/* Fix for very wide content */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive footer */
@media (max-width: 640px) {
  .footer-contact {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .site-footer {
    padding: 2.5rem 0 1.5rem;
  }
}

/* Flexible navigation for all sizes */
@media (max-width: 980px) {
  .nav-inner {
    padding: 10px 15px;
  }
  
  nav.links {
    width: min(85vw, 300px);
  }
}

@media (max-width: 480px) {
  nav.links {
    width: 90vw;
  }
}

/* Responsive badge row */
@media (max-width: 480px) {
  .badge-row {
    gap: 0.5rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0.3em 0.8em;
  }
}

/* Ensure sections don't overflow */
section {
  overflow-x: hidden;
  width: 100%;
}

/* Responsive work grid improvements */
@media (max-width: 640px) {
  .work-card {
    padding: 1.5rem 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-description {
    font-size: 0.9rem;
  }
}

/* Smooth scrolling for touch devices */
html {
  -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Safe area padding for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  
  .whatsapp-float {
    right: max(12px, calc(12px + env(safe-area-inset-right))) !important;
    bottom: max(12px, calc(12px + env(safe-area-inset-bottom))) !important;
  }
}

/* Responsive founder card quotes */
@media (max-width: 480px) {
  .founder-card p.quote {
    font-size: 0.9rem;
    min-height: auto;
  }
}

/* Better line breaks for long words */
p, li, td, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Responsive timeline improvements */
@media (max-width: 640px) {
  .timeline-marker {
    margin-right: 0.5rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .timeline-icon {
    font-size: 2rem;
  }
}

/* Final fallback for extreme cases */
@media (max-width: 280px) {
  .whatsapp-float {
    width: 40px !important;
    height: 40px !important;
    bottom: 6px !important;
    right: 6px !important;
  }
  
  .whatsapp-float svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .hero-title {
    font-size: 1.3rem !important;
  }
  
  body {
    font-size: 14px;
  }
  
  .container {
    width: 98%;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}
