/* Pavitra Mandir (पवित्र मंदिर) - Sacred CSS Design System */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&family=Tiro+Devanagari+Hindi:ital@0;1&display=swap');

:root {
  /* Sacred Color Palette */
  --saffron: #FF8C00;
  --deep-saffron: #E65200;
  --gold: #FFD700;
  --brass: #D4AF37;
  --vermilion: #B81C1C;
  --silk-red: #8C0000;
  --marigold: #FF7000;
  --lotus-pink: #F06192;
  
  /* Wood & Temple Architecture Colors */
  --sanctum-dark: #0A0403;
  --teak-dark: #160A06;
  --teak-wood: #26120B;
  --teak-card: rgba(30, 14, 8, 0.75);
  
  /* Text & Accents */
  --text-primary: #FFF7E7;
  --text-secondary: #D9CFC7;
  --text-muted: #9E9088;
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-glow: rgba(255, 215, 0, 0.6);

  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-hindi: 'Tiro Devanagari Hindi', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  background-color: var(--sanctum-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 140, 0, 0.15), transparent 70%),
    radial-gradient(circle at 10% 40%, rgba(184, 28, 28, 0.08), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.08), transparent 50%);
  background-attachment: fixed;
}

/* Typography Helpers */
h1, h2, h3, .heading-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.hindi-text {
  font-family: var(--font-hindi);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF7E7 0%, var(--gold) 50%, var(--saffron) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.saffron-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

/* Container & Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: rgba(10, 4, 3, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, var(--deep-saffron) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.5);
  font-size: 1.5rem;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-family: var(--font-hindi);
  font-size: 0.9rem;
  color: var(--gold);
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
  color: #FFF;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 20px rgba(230, 82, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 140, 0, 0.6);
  background: linear-gradient(135deg, var(--gold) 0%, var(--deep-saffron) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  background: rgba(38, 18, 11, 0.8);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(50, 24, 15, 0.9);
  color: var(--gold);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.25) 0%, rgba(184, 28, 28, 0.1) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-shlok {
  font-family: var(--font-hindi);
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1.8;
  padding-left: 1rem;
  border-left: 3px solid var(--saffron);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Interactive Mandir Simulator Box */
.mandir-simulator-card {
  position: relative;
  background: var(--teak-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 215, 0, 0.05);
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.mandir-simulator-card:hover {
  border-color: var(--border-gold-glow);
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-gold);
}

.simulator-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #4CAF50;
  font-weight: 600;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #4CAF50;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.sanctum-canvas-container {
  position: relative;
  width: 100%;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  background: #080302;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sanctum-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.diya-overlay-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 65%, rgba(255, 140, 0, 0.4) 0%, rgba(255, 215, 0, 0.15) 35%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.diya-overlay-glow.active {
  opacity: 1;
}

.ripple-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Simulator Interactive Toolbar */
.simulator-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: rgba(22, 10, 6, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.action-btn:hover, .action-btn.active {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(184, 28, 28, 0.2) 100%);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.action-btn i {
  font-size: 1.35rem;
}

/* Section Title Styling */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin: 0.75rem 0 1rem;
}

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

/* 8-Step Ritual Section */
.ritual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ritual-card {
  background: var(--teak-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.ritual-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 140, 0, 0.15);
}

.step-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.12);
  line-height: 1;
}

.ritual-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(255, 140, 0, 0.25) 0%, rgba(38, 18, 11, 0.8) 100%);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.ritual-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ritual-hindi {
  font-family: var(--font-hindi);
  font-size: 0.95rem;
  color: var(--saffron);
  margin-bottom: 0.75rem;
}

.ritual-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Aging Engine Feature Showcase */
.aging-section {
  background: linear-gradient(180deg, transparent 0%, rgba(22, 10, 6, 0.8) 50%, transparent 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.aging-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--teak-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(16px);
}

.aging-control-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.time-slider-wrapper {
  margin-top: 1rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.aging-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #2A130C;
  outline: none;
  border: 1px solid var(--border-gold);
}

.aging-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 12px var(--saffron);
}

.status-badge-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(10, 4, 3, 0.6);
  border: 1px solid var(--border-gold);
}

.status-indicator-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 10px #4CAF50;

}

/* Audio Player Section */
.audio-showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.lyrics-player-card {
  background: var(--teak-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(16px);
}

.lyrics-screen {
  background: rgba(10, 4, 3, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-gold);
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.lyric-line {
  font-family: var(--font-hindi);
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.lyric-line.active {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Footer */
.footer {
  background: #060201;
  border-top: 1px solid var(--border-gold);
  padding: 4rem 0 2rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 360px;
  color: var(--text-muted);
}

.footer-title {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-grid, .aging-box, .audio-showcase-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
