@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Space+Mono:wght@400;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════
   GAU SEVA — Handcrafted Spiritual Theme
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--ink);
  color: var(--bone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

/* ── Palette ── */
.gau-seva-page {
  --ink: #f8f0dc;
  --ink-soft: #fdf6e8;
  --ink-panel: #fffcf5;
  --gold: #8a6425;
  --gold-bright: #e4be71;
  --gold-mid: #c69f53;
  --gold-deep: #6e4f1c;
  --gold-ember: #52390f;
  --bone: #1a1a2e;
  --bone-dim: rgba(26, 26, 46, 0.6);
  --mist: #45415a;
  --line: rgba(138, 100, 37, 0.22);
  --line-strong: rgba(138, 100, 37, 0.45);
  background-color: var(--ink);
  min-height: 100vh;
  position: relative;
}

/* ── Film grain overlay for handcrafted feel ── */
.gau-seva-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ── Selection ── */
::selection { background: var(--gold-bright); color: var(--ink); }

/* ── Cursor glow follower ── */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 159, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: left, top;
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-mid));
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

/* ══════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════════ */
.font-display { font-family: var(--font-display); }
.font-body    { font-family: var(--font-body); }
.font-mono    { font-family: var(--font-mono); }
.text-gold    { color: var(--gold); }
.text-bone    { color: var(--bone); }
.text-mist    { color: var(--mist); }
.italic       { font-style: italic; }
.text-center  { text-align: center; }
.text-balance { text-wrap: balance; }
.uppercase    { text-transform: uppercase; }
.serif-nums   { font-variant-numeric: oldstyle-nums; }

/* ══════════════════════════════════════════════════════════════════════
   COMPONENT STYLES
   ══════════════════════════════════════════════════════════════════════ */

/* ── Eyebrow labels ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow-sm {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── Frame decorative corners ── */
.frame {
  position: relative;
  border: 1px solid rgba(138, 100, 37, 0.2);
  transition: border-color 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.frame:hover {
  border-color: rgba(138, 100, 37, 0.5);
  box-shadow: 0 12px 48px -12px rgba(138, 100, 37, 0.15);
  transform: translateY(-6px);
}
.frame-tr, .frame-bl {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-color: var(--gold);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.frame-tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.frame-bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.frame:hover .frame-tr,
.frame:hover .frame-bl {
  width: 2rem;
  height: 2rem;
}

/* ── Spiritual cards ── */
.spiritual-card {
  background: linear-gradient(145deg, rgba(253, 248, 236, 0.9), rgba(255, 252, 245, 0.7));
  border: 1px solid rgba(138, 100, 37, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Sacred divider ── */
.sacred-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sacred-divider::before,
.sacred-divider::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  max-width: 4rem;
  transition: max-width 1s ease;
}
.sacred-divider::before {
  background: linear-gradient(to right, transparent, var(--line-strong));
}
.sacred-divider::after {
  background: linear-gradient(to left, transparent, var(--line-strong));
}
.sacred-divider span { margin: 0 0.75rem; }

/* ── Sacred glyph (watermark text) ── */
.sacred-glyph {
  font-family: var(--font-display);
  color: rgba(138, 100, 37, 0.04);
  user-select: none;
  pointer-events: none;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.7s ease;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px -8px rgba(110, 79, 28, 0.5);
}
.btn-gold:active { transform: translateY(-1px) scale(0.98); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}
.btn-ghost:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.btn-ghost:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(110, 79, 28, 0.35);
}

/* ══════════════════════════════════════════════════════════════════════
   HERO EFFECTS
   ══════════════════════════════════════════════════════════════════════ */
.gs-aurora {
  background: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    rgba(228, 190, 113, 0.18) 0%,
    rgba(198, 159, 83, 0.08) 35%,
    rgba(232, 148, 26, 0.03) 60%,
    transparent 80%
  );
  animation: aurora-breathe 10s ease-in-out infinite alternate;
}
@keyframes aurora-breathe {
  0%   { opacity: 0.6; transform: translate(-50%, 0) scale(1) rotate(0deg); }
  50%  { opacity: 0.9; transform: translate(-50%, -2%) scale(1.05) rotate(1deg); }
  100% { opacity: 1;   transform: translate(-50%, -4%) scale(1.1) rotate(-1deg); }
}

.god-rays {
  background: conic-gradient(
    from 0deg at 50% 60%,
    transparent 0deg,
    rgba(198, 159, 83, 0.04) 20deg,
    transparent 40deg,
    rgba(198, 159, 83, 0.03) 80deg,
    transparent 100deg,
    rgba(198, 159, 83, 0.04) 160deg,
    transparent 180deg,
    rgba(198, 159, 83, 0.03) 220deg,
    transparent 240deg,
    rgba(198, 159, 83, 0.04) 300deg,
    transparent 320deg,
    rgba(198, 159, 83, 0.03) 350deg,
    transparent 360deg
  );
  animation: god-rays-spin 90s linear infinite;
}
@keyframes god-rays-spin { to { transform: rotate(360deg); } }

/* ── Painting frame ── */
.gs-painting-frame {
  box-shadow: 0 28px 70px -20px rgba(82, 57, 15, 0.5),
              0 0 0 1px rgba(138, 100, 37, 0.15);
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.gs-painting-frame:hover {
  box-shadow: 0 36px 80px -18px rgba(82, 57, 15, 0.6),
              0 0 0 1px rgba(138, 100, 37, 0.3);
  transform: scale(1.02);
}
.gs-painting-veil {
  background: linear-gradient(
    to top,
    rgba(82, 57, 15, 0.35) 0%,
    rgba(82, 57, 15, 0.1) 30%,
    transparent 60%
  );
}

/* ══════════════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION SYSTEM
   ══════════════════════════════════════════════════════════════════════ */

/* -- Default: fade up -- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* -- Variant: fade from left -- */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* -- Variant: fade from right -- */
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* -- Variant: scale up -- */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.reveal.delay-100, .reveal-left.delay-100, .reveal-right.delay-100, .reveal-scale.delay-100 { transition-delay: 0.15s; }
.reveal.delay-200, .reveal-left.delay-200, .reveal-right.delay-200, .reveal-scale.delay-200 { transition-delay: 0.3s; }
.reveal.delay-300, .reveal-left.delay-300, .reveal-right.delay-300, .reveal-scale.delay-300 { transition-delay: 0.45s; }

/* ── Line draw animation ── */
.line-draw {
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.line-draw.active {
  width: 6rem;
}

/* ══════════════════════════════════════════════════════════════════════
   LANGUAGE TOGGLE
   ══════════════════════════════════════════════════════════════════════ */
.lang-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  background: rgba(255, 252, 245, 0.7);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(138, 100, 37, 0.2);
  border-radius: 100px;
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  overflow: hidden;
  box-shadow: 0 4px 24px -4px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.lang-toggle.scrolled {
  box-shadow: 0 8px 36px -6px rgba(0,0,0,0.12);
  background: rgba(255, 252, 245, 0.92);
}
.lang-toggle button {
  background: none;
  border: none;
  padding: 0.55rem 1rem;
  cursor: pointer;
  color: var(--mist);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 100px;
}
.lang-toggle button:hover {
  color: var(--gold-deep);
}
.lang-toggle button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink-panel);
}

/* ── Language visibility ── */
body[data-lang="en"] .lang-hi { display: none !important; }
body[data-lang="hi"] .lang-en { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════
   STATS COUNTER ANIMATION
   ══════════════════════════════════════════════════════════════════════ */
.stat-item {
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.stat-item:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.stat-item:hover {
  background: rgba(138, 100, 37, 0.04) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   PARALLAX IMAGE
   ══════════════════════════════════════════════════════════════════════ */
.parallax-img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ══════════════════════════════════════════════════════════════════════
   FLOATING ORB PARTICLES
   ══════════════════════════════════════════════════════════════════════ */
.floating-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 190, 113, 0.3), transparent 70%);
  animation: orb-float var(--duration, 12s) ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(var(--dx1, 20px), var(--dy1, -30px)) scale(1.1); }
  66%  { transform: translate(var(--dx2, -15px), var(--dy2, 20px)) scale(0.95); }
  100% { transform: translate(var(--dx3, 10px), var(--dy3, -15px)) scale(1.05); }
}

/* ══════════════════════════════════════════════════════════════════════
   TEXT SHIMMER on headings
   ══════════════════════════════════════════════════════════════════════ */
.text-shimmer {
  background: linear-gradient(
    105deg,
    var(--bone) 0%,
    var(--bone) 40%,
    var(--gold-mid) 50%,
    var(--bone) 60%,
    var(--bone) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 6s ease-in-out infinite;
}
@keyframes shimmer-sweep {
  0%, 100% { background-position: 100% 0; }
  50%      { background-position: 0% 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   MISC
   ══════════════════════════════════════════════════════════════════════ */
table { border-collapse: collapse; }
td { vertical-align: top; }
img { max-width: 100%; height: auto; display: block; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--gold-mid), var(--gold-deep));
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Page entrance ── */
@keyframes page-unfold {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
body { animation: page-unfold 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ── Sparkle float ── */
@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(12deg); }
}
.sacred-divider span {
  display: inline-block;
  animation: sparkle-float 3s ease-in-out infinite;
}

/* ── Ornamental horizontal rule ── */
.ornament-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), var(--gold-mid), var(--line-strong), transparent);
  margin: 3rem auto;
  max-width: 280px;
  opacity: 0.6;
}

/* ── Hover glow for service cards ── */
.service-card {
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(228, 190, 113, 0.3), transparent 50%, rgba(198, 159, 83, 0.2));
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
}
.service-card:hover::before {
  opacity: 1;
}

/* ── Tilt effect prep ── */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}
