/* ============================================
   KOE-THAUNG TEMPLE — Sacred Digital Experience
   CSS Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --stone-dark: #1a1714;
  --stone-charcoal: #2a2520;
  --stone-grey: #3d3630;
  --stone-medium: #5a504a;
  --stone-light: #8a7e75;
  --gold-deep: #8b6914;
  --gold-primary: #c9a84c;
  --gold-light: #e4cb82;
  --gold-glow: #ffd700;
  --saffron: #d4762c;
  --saffron-light: #e89b4e;
  --earth-brown: #6b5344;
  --moss-green: #4a5a3a;
  --moss-light: #6b7a52;
  --cream: #f0e6d3;
  --cream-light: #faf4ea;
  --red-aura: #8b2020;
  --shadow-deep: rgba(0,0,0,0.6);
  --shadow-medium: rgba(0,0,0,0.3);
  --shadow-light: rgba(0,0,0,0.1);

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-accent: 'Cinzel', 'Georgia', serif;
  --font-sanskrit: 'Noto Serif Devanagari', serif;

  --ease-sacred: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-reveal: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 1.2s var(--ease-sacred);
  --transition-medium: 0.6s var(--ease-sacred);
  --transition-fast: 0.3s var(--ease-sacred);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--stone-dark);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* --- Custom Cursor (Candle Glow) --- */
.cursor-glow {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, rgba(255,215,0,0.1) 40%, transparent 70%);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  mix-blend-mode: screen;
}

.cursor-glow.expanded {
  width: 60px;
  height: 60px;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

@media (hover: none) {
  .cursor-glow, .cursor-dot { display: none; }
  body { cursor: auto; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--stone-dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--gold-deep), var(--stone-medium));
  border-radius: 4px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--gold-light);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: 0.03em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--cream);
  max-width: 72ch;
  margin-bottom: 1.2em;
}

.accent-text {
  font-family: var(--font-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-primary);
}

.sanskrit-accent {
  font-family: var(--font-sanskrit);
  color: var(--gold-primary);
  font-style: italic;
  opacity: 0.7;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--gold-light); }

/* --- Utility --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.section-padding {
  padding: clamp(4rem, 10vh, 10rem) 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-primary); }
.text-saffron { color: var(--saffron); }

/* --- Sacred Dividers --- */
.mandala-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  opacity: 0.6;
}

.mandala-divider::before,
.mandala-divider::after {
  content: '';
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.mandala-divider .mandala-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  position: relative;
  transform: rotate(45deg);
}

.mandala-divider .mandala-icon::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
}

.lotus-divider {
  text-align: center;
  margin: 4rem 0;
  font-size: 1.5rem;
  color: var(--gold-primary);
  opacity: 0.5;
  letter-spacing: 1rem;
}

/* --- Navigation --- */
.sacred-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(26,23,20,0.95), rgba(26,23,20,0));
  transition: all var(--transition-medium);
}

.sacred-nav.scrolled {
  background: rgba(26,23,20,0.98);
  backdrop-filter: blur(10px);
  padding: 0.7rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-brand {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--gold-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 1.5px;
  background: var(--gold-primary);
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Sections --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,23,20,0.3) 0%,
    rgba(26,23,20,0.5) 50%,
    rgba(26,23,20,0.95) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

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

.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.hero-content .description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(240,230,211,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* Page Hero (shorter) */
.page-hero {
  min-height: 60vh;
}

.page-hero .hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  opacity: 0.6;
}

.scroll-indicator .arrow {
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--gold-primary);
  border-bottom: 1px solid var(--gold-primary);
  transform: rotate(45deg);
  opacity: 0.4;
  animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.7; }
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-reveal), transform 1s var(--ease-reveal);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s var(--ease-reveal), transform 1s var(--ease-reveal);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s var(--ease-reveal), transform 1s var(--ease-reveal);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1.2s var(--ease-reveal), transform 1.2s var(--ease-reveal);
}

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

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.45s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.75s; }

/* --- Image Treatments --- */
.sacred-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.sacred-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--stone-charcoal);
  transition: transform var(--transition-slow);
}

.sacred-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,0.15);
  pointer-events: none;
}

.sacred-image:hover img {
  transform: scale(1.03);
}

/* Carved Frame Image */
.carved-frame {
  position: relative;
  padding: 15px;
  background: linear-gradient(135deg, var(--stone-charcoal), var(--stone-grey));
  box-shadow:
    0 10px 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(201,168,76,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}

.carved-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,168,76,0.15);
  pointer-events: none;
  z-index: 1;
}

.carved-frame img {
  width: 100%;
  object-fit: contain;
  display: block;
  background: var(--stone-dark);
}

/* Arch-shaped image mask */
.arch-mask {
  clip-path: polygon(0% 15%, 5% 5%, 20% 1%, 50% 0%, 80% 1%, 95% 5%, 100% 15%, 100% 100%, 0% 100%);
}

/* --- Section Backgrounds --- */
.section-stone {
  background: var(--stone-dark);
  position: relative;
}

.section-stone-alt {
  background: var(--stone-charcoal);
  position: relative;
}

.section-gradient {
  background: linear-gradient(to bottom, var(--stone-dark), var(--stone-charcoal));
}

.section-mist {
  position: relative;
}

.section-mist::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(26,23,20,0.8), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Stone texture overlay */
.texture-overlay {
  position: relative;
}

.texture-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.grid-asymmetric-reverse {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

/* --- Parallax Container --- */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

/* --- Cards --- */
.sacred-card {
  background: linear-gradient(135deg, rgba(42,37,32,0.8), rgba(42,37,32,0.4));
  border: 1px solid rgba(201,168,76,0.1);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  transition: all var(--transition-medium);
}

.sacred-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.sacred-card:hover {
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.sacred-card:hover::before {
  opacity: 1;
}

.sacred-card h3 {
  margin-bottom: 1rem;
}

.sacred-card .card-number {
  font-family: var(--font-accent);
  font-size: 3rem;
  color: var(--gold-primary);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header .accent-text {
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .mandala-divider {
  margin: 1rem 0;
}

/* --- Content Block --- */
.content-block {
  max-width: 85ch;
}

.content-block p {
  margin-bottom: 1.4em;
}

/* --- Timeline --- */
.sacred-timeline {
  position: relative;
  padding-left: 3rem;
}

.sacred-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-primary), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.35rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(201,168,76,0.3);
}

.timeline-item .year,
.timeline-item .timeline-date {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-marker {
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-bottom: 1rem;
}

.timeline-content p {
  margin-bottom: 1.2em;
}

.timeline-content .carved-frame {
  margin-bottom: 1.5rem;
}

.timeline-content .inscription-text {
  margin-top: 1.5rem;
}

/* --- Quote Block --- */
.sacred-quote {
  position: relative;
  padding: 3rem clamp(2rem, 5vw, 5rem);
  text-align: center;
  margin: 4rem 0;
}

.sacred-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold-primary);
}

.sacred-quote blockquote,
blockquote.sacred-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--gold-light);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: none;
}

.sacred-quote cite,
blockquote.sacred-quote cite {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
  font-style: normal;
}

/* When sacred-quote is directly on blockquote */
blockquote.sacred-quote {
  position: relative;
  padding: 3rem clamp(2rem, 5vw, 5rem);
  text-align: center;
  margin: 2rem 0;
  border: none;
}

blockquote.sacred-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold-primary);
}

/* --- Gallery Grid --- */
.gallery-masonry {
  columns: 3;
  column-gap: 1.5rem;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.gallery-masonry .gallery-item img {
  width: 100%;
  object-fit: contain;
  display: block;
  background: var(--stone-charcoal);
  transition: transform 0.8s var(--ease-sacred);
}

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

.gallery-masonry .gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.8), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.gallery-masonry .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

/* --- Buttons --- */
.btn-sacred {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  padding: 1rem 2.5rem;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-sacred::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
  z-index: -1;
}

.btn-sacred:hover {
  color: var(--stone-dark);
}

.btn-sacred:hover::before {
  transform: scaleX(1);
}

/* --- Footer --- */
.sacred-footer {
  background: linear-gradient(to bottom, var(--stone-charcoal), #0d0b09);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 4rem 0 2rem;
  position: relative;
}

.sacred-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  color: var(--stone-light);
  line-height: 2;
}

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

.footer-nav a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--stone-medium);
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--gold-deep);
}

/* --- Mandala Spinner --- */
@keyframes mandalaRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.mandala-spinner {
  position: relative;
  width: 200px;
  height: 200px;
}

.mandala-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
}

.mandala-ring:nth-child(1) {
  animation: mandalaRotate 30s linear infinite;
  border-style: dashed;
}

.mandala-ring:nth-child(2) {
  inset: 15%;
  animation: mandalaRotateReverse 25s linear infinite;
  border-color: rgba(201,168,76,0.3);
}

.mandala-ring:nth-child(3) {
  inset: 30%;
  animation: mandalaRotate 20s linear infinite;
  border-style: dotted;
  border-color: rgba(201,168,76,0.15);
}

/* --- Breathing Animation --- */
@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.breathing {
  animation: breathe 4s ease-in-out infinite;
}

/* --- Light Beam --- */
.light-beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,215,0,0.1), transparent);
  pointer-events: none;
}

/* --- Floating Particles --- */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,215,0,0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* --- Password Gate Styles --- */
.gate-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stone-dark);
  z-index: 9999;
  overflow: hidden;
}

.gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(42,37,32,0.5) 0%, var(--stone-dark) 70%);
}

.gate-mandala {
  position: absolute;
  width: 600px;
  height: 600px;
  opacity: 0.08;
}

.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
}

.gate-title {
  font-family: var(--font-accent);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 3rem;
  opacity: 0.8;
}

.gate-yantra {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 3rem;
}

.yantra-outer {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  animation: mandalaRotate 40s linear infinite;
}

.yantra-middle {
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  animation: mandalaRotateReverse 30s linear infinite;
  border-style: dashed;
}

.yantra-inner {
  position: absolute;
  inset: 30%;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 50%;
  animation: mandalaRotate 20s linear infinite;
  border-style: dotted;
}

.yantra-center {
  position: absolute;
  inset: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-input-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.gate-input {
  width: 100%;
  max-width: 300px;
  padding: 1rem 1.5rem;
  background: rgba(42,37,32,0.6);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold-light);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-align: center;
  outline: none;
  transition: all var(--transition-fast);
}

.gate-input::placeholder {
  color: rgba(201,168,76,0.3);
  letter-spacing: 0.3em;
}

.gate-input:focus {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 30px rgba(201,168,76,0.1);
}

.gate-input.error {
  border-color: var(--red-aura);
  animation: gateShake 0.5s ease;
  box-shadow: 0 0 30px rgba(139,32,32,0.2);
}

.gate-input.success {
  border-color: var(--gold-glow);
  box-shadow: 0 0 50px rgba(255,215,0,0.3);
}

@keyframes gateShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.gate-submit {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.8rem 2.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gate-submit:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold-primary);
}

.gate-error-msg {
  font-size: 0.75rem;
  color: var(--red-aura);
  opacity: 0;
  margin-top: 1rem;
  transition: opacity var(--transition-fast);
  font-family: var(--font-accent);
  letter-spacing: 0.1em;
}

.gate-error-msg.show {
  opacity: 1;
}

/* Gate transition */
.gate-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  display: flex;
}

.gate-door-left,
.gate-door-right {
  flex: 1;
  background: var(--stone-dark);
  transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
}

.gate-door-left::after,
.gate-door-right::after {
  content: '';
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-primary), transparent);
}

.gate-door-left::after { right: 0; }
.gate-door-right::after { left: 0; }

.gate-door-left.open { transform: translateX(-100%); }
.gate-door-right.open { transform: translateX(100%); }

.mandala-expand {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
  z-index: 10001;
  pointer-events: none;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mandala-expand.active {
  width: 300vmax;
  height: 300vmax;
}

/* --- Page Transition --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--stone-dark);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-2,
  .grid-asymmetric,
  .grid-asymmetric-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-masonry {
    columns: 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(26,23,20,0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right var(--transition-medium);
    border-left: 1px solid rgba(201,168,76,0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.05);
  }

  .nav-toggle {
    display: flex;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .gallery-masonry {
    columns: 1;
  }

  .hero-section { min-height: 80vh; }
  .page-hero { min-height: 50vh; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .sacred-nav { padding: 0.8rem 1rem; }
  .hero-content { padding: 1rem; }
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

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

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* --- Contact Form --- */
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Inscription Text (Timeline carved style) --- */
.inscription-text {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(42,37,32,0.4), rgba(42,37,32,0.2));
  border-left: 2px solid var(--gold-deep);
}

.inscription-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23c9a84c' stroke-width='0.3' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* --- Map container --- */
.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) contrast(1.1) brightness(0.7) sepia(0.3);
}

/* --- Statistics --- */
.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
}

/* --- Corridor section style --- */
.corridor-section {
  position: relative;
  overflow: hidden;
}

.corridor-section::before,
.corridor-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 1;
}

.corridor-section::before {
  left: 0;
  background: linear-gradient(to right,
    rgba(26,23,20,0.8),
    transparent
  );
}

.corridor-section::after {
  right: 0;
  background: linear-gradient(to left,
    rgba(26,23,20,0.8),
    transparent
  );
}
