@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700;800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-dark: #05060b;
  --bg-card: rgba(15, 20, 35, 0.55);
  --bg-card-hover: rgba(25, 32, 55, 0.75);
  --gold-primary: #f3e5ab;
  --gold-light: #fff5d6;
  --gold-metallic: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --cyan-ethereal: #70e4ef;
  --violet-glow: #9d4edd;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-glow: rgba(112, 228, 239, 0.3);
  --glass-blur: blur(16px);
  --font-display: 'Cinzel Decorative', serif;
  --font-title: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05060b;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Ambient Radial Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  animation: pulse-glow 12s infinite alternate ease-in-out;
}
.glow-1 {
  top: -10%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.35) 0%, rgba(0,0,0,0) 70%);
}
.glow-2 {
  bottom: -15%;
  right: 15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(112, 228, 239, 0.25) 0%, rgba(0,0,0,0) 70%);
}
.glow-3 {
  top: 40%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(0,0,0,0) 70%);
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.15) translate(3%, 4%); opacity: 0.55; }
}

/* Main Container */
.app-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 4rem;
  background: rgba(5, 6, 11, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gold-primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
}

.nav-brand-symbol {
  width: 32px;
  height: 32px;
  color: var(--cyan-ethereal);
  filter: drop-shadow(0 0 8px rgba(112, 228, 239, 0.5));
  transition: transform 0.6s ease;
}

.nav-brand:hover .nav-brand-symbol {
  transform: rotate(180deg);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-metallic);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(243, 229, 171, 0.4);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.audio-toggle-btn {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.audio-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

.audio-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 90px);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.2rem;
  background: rgba(112, 228, 239, 0.07);
  border: 1px solid rgba(112, 228, 239, 0.25);
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--cyan-ethereal);
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out;
  box-shadow: 0 0 20px rgba(112, 228, 239, 0.1);
}

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

/* Geometric Emblem */
.mandala-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 2.5rem;
  cursor: pointer;
}

.mandala-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
  animation: rotateMandala 60s linear infinite;
  transition: filter 0.5s ease;
}

.mandala-wrapper:hover .mandala-svg {
  filter: drop-shadow(0 0 45px rgba(112, 228, 239, 0.7));
  animation-duration: 25s;
}

.mandala-center-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  background: radial-gradient(circle, #ffffff 0%, var(--gold-primary) 40%, rgba(157, 78, 221, 0.8) 100%);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(112, 228, 239, 0.6);
  animation: orbPulse 3s infinite ease-in-out;
}

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

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.85; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Main Title */
.hero-title-container {
  max-width: 950px;
  margin: 0 auto;
}

.hero-title-sub {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title-main {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.8));
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title-main::after {
  content: "Welcome to the temple Castalien";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  opacity: 0.6;
}

.hero-description {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  position: relative;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(157, 78, 221, 0.25) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: 4px;
  color: var(--gold-light);
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(112, 228, 239, 0.35) 100%);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.4), 0 0 15px rgba(112, 228, 239, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  padding: 1rem 2.2rem;
  background: rgba(15, 20, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  border-color: var(--cyan-ethereal);
  color: var(--cyan-ethereal);
  box-shadow: 0 0 20px rgba(112, 228, 239, 0.2);
  transform: translateY(-2px);
}

/* Content Sections */
.section-padding {
  padding: 6rem 4rem;
  position: relative;
}

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

.section-tag {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--cyan-ethereal);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold-metallic);
  margin: 0 auto 1rem auto;
}

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

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.15);
}

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

.pillar-icon {
  width: 48px;
  height: 48px;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.pillar-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.pillar-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Glass Bead Oracle Interactive Matrix */
.oracle-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  backdrop-filter: var(--glass-blur);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 30px rgba(112, 228, 239, 0.05);
}

.oracle-quote-display {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(212, 175, 55, 0.2);
}

.oracle-quote-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.oracle-quote-author {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--cyan-ethereal);
  text-transform: uppercase;
}

.bead-nodes-grid {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.bead-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 25, 45, 0.8);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bead-node:hover, .bead-node.active {
  background: radial-gradient(circle, var(--gold-primary) 0%, #b38728 100%);
  color: #05060b;
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(243, 229, 171, 0.8), 0 0 10px rgba(112, 228, 239, 0.5);
  transform: scale(1.18);
}

/* Modal Immersion */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  max-width: 600px;
  width: 90%;
  text-align: center;
  padding: 3rem;
  border: 1px solid var(--gold-primary);
  border-radius: 16px;
  background: rgba(12, 16, 30, 0.85);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.25);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.6s var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close-btn:hover {
  color: var(--gold-primary);
}

.breath-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 2rem auto;
  border: 2px solid var(--cyan-ethereal);
  box-shadow: 0 0 30px rgba(112, 228, 239, 0.4), inset 0 0 30px rgba(112, 228, 239, 0.2);
  animation: breathe 8s infinite ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  color: var(--gold-light);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 20px rgba(112, 228, 239, 0.2); }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 60px rgba(243, 229, 171, 0.8); }
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 3rem 4rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(5, 6, 11, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
}

.footer-text {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.6);
  letter-spacing: 0.1em;
}

/* Responsive queries */
@media (max-width: 768px) {
  .navbar {
    padding: 1.2rem 1.5rem;
  }
  .nav-links {
    display: none; /* simple responsive hide for clean presentation */
  }
  .section-padding {
    padding: 4rem 1.5rem;
  }
  .hero-section {
    padding: 3rem 1rem;
  }
  .mandala-wrapper {
    width: 170px;
    height: 170px;
  }
}
