/* ══════════════════════════════════════════════
   YOGI ELEMENTS — Shared Styles
   ══════════════════════════════════════════════ */

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

:root {
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #8a6d2b;
  --bg-deep: #080810;
  --bg-card: rgba(255,255,255,0.03);
  --text-primary: #e8e4dc;
  --text-muted: #9a9590;
  --earth: #7a8b4a;
  --water: #4a7a9b;
  --fire: #c45a2e;
  --air: #a8b8c8;
  --space: #6b4a8b;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Philosopher', serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* ── Cosmic Background ── */
.cosmic-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(107,74,139,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(74,122,155,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 40%),
    var(--bg-deep);
}

/* ── Stars ── */
.stars { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--dur) ease-in-out infinite alternate;
}
@keyframes twinkle {
  0%   { opacity: .1; transform: scale(.8); }
  100% { opacity: var(--max-o); transform: scale(1.2); }
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(8,8,16,0.7);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: all .4s;
}
nav.scrolled {
  padding: .8rem 3rem;
  background: rgba(8,8,16,0.92);
  box-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 300; letter-spacing: .15em;
  color: var(--gold); text-decoration: none; text-transform: uppercase;
}
.nav-logo span { font-weight: 700; }
.nav-links {
  display: flex; gap: 2.2rem; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  font-family: 'Rajdhani', sans-serif; font-weight: 500;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: rgba(15,15,25,0.96); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px; padding: .6rem 0; min-width: 160px;
  opacity: 0; visibility: hidden; transition: all .3s;
  backdrop-filter: blur(20px);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a { display: block; padding: .45rem 1.4rem; font-size: .78rem; letter-spacing: .1em; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
}
.hamburger span { width: 24px; height: 1.5px; background: var(--gold); transition: all .3s; }

/* ── Hero (Home) ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 8rem 2rem 4rem; position: relative;
}
.hero-mandala {
  width: 280px; height: 280px; margin-bottom: 3rem;
  opacity: .15; animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-tagline {
  font-family: 'Rajdhani', sans-serif; font-weight: 300;
  font-size: .85rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  animation: fadeUp .8s ease-out both;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 300;
  line-height: 1.05; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp .8s ease-out .15s both;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-muted); max-width: 520px;
  font-weight: 400; line-height: 1.8;
  animation: fadeUp .8s ease-out .3s both;
}
.hero-divider {
  width: 60px; height: 1px; background: var(--gold); margin: 2.5rem auto;
  animation: fadeUp .8s ease-out .45s both;
}
.hero-scroll {
  position: absolute; bottom: 3rem;
  animation: fadeUp .8s ease-out .6s both, bob 2.5s ease-in-out infinite;
}
.hero-scroll svg { width: 24px; stroke: var(--gold-dark); stroke-width: 1.5; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ── Page Hero (Sub-pages) ── */
.page-hero {
  min-height: 50vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 10rem 2rem 4rem; position: relative;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300;
  line-height: 1.1; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp .8s ease-out .15s both;
}
.page-subtitle {
  font-size: 1.05rem; color: var(--text-muted); max-width: 520px;
  line-height: 1.8; animation: fadeUp .8s ease-out .45s both;
}
.trident-large {
  width: 60px; margin-bottom: 2rem; opacity: .4;
  animation: fadeUp .8s ease-out both;
}

/* ── Section Defaults ── */
section { padding: 7rem 2rem; }
.section-label {
  font-family: 'Rajdhani', sans-serif; font-weight: 500;
  font-size: .72rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300;
  line-height: 1.2; margin-bottom: 1.5rem;
}
.section-body {
  color: var(--text-muted); max-width: 680px; font-size: 1rem; line-height: 1.85;
}
.content-section { max-width: 1000px; margin: 0 auto; }
.content-narrow { max-width: 700px; margin: 0 auto; }

/* ── About / Philosophy ── */
.about {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-visual { display: flex; align-items: center; justify-content: center; }
.about-circle {
  width: 340px; height: 340px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.about-circle::before {
  content: ''; position: absolute; inset: 20px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
}
.about-circle::after {
  content: 'ॐ'; position: absolute;
  font-size: 5rem; color: rgba(201,168,76,0.2); font-family: serif;
}
.orbit-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  animation: orbit 15s linear infinite;
}
.orbit-dot:nth-child(1) { background: var(--earth); animation-delay: 0s; }
.orbit-dot:nth-child(2) { background: var(--water); animation-delay: -3s; }
.orbit-dot:nth-child(3) { background: var(--fire); animation-delay: -6s; }
.orbit-dot:nth-child(4) { background: var(--air); animation-delay: -9s; }
.orbit-dot:nth-child(5) { background: var(--space); animation-delay: -12s; }
@keyframes orbit {
  from { transform: rotate(0) translateX(170px) rotate(0); }
  to   { transform: rotate(360deg) translateX(170px) rotate(-360deg); }
}

/* ── Elements Grid ── */
.elements-section { text-align: center; }
.elements-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem; max-width: 1200px; margin: 4rem auto 0;
}
.element-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px; padding: 2.5rem 1.5rem;
  text-align: center; position: relative; overflow: hidden;
  transition: all .5s cubic-bezier(.23,1,.32,1); cursor: pointer;
}
.element-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  border-radius: 16px;
}
.element-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.08); }
.element-card:hover::before { opacity: 1; }
.element-card:nth-child(1)::before { background: radial-gradient(circle at bottom, rgba(122,139,74,0.15), transparent 70%); }
.element-card:nth-child(2)::before { background: radial-gradient(circle at bottom, rgba(74,122,155,0.15), transparent 70%); }
.element-card:nth-child(3)::before { background: radial-gradient(circle at bottom, rgba(196,90,46,0.15), transparent 70%); }
.element-card:nth-child(4)::before { background: radial-gradient(circle at bottom, rgba(168,184,200,0.15), transparent 70%); }
.element-card:nth-child(5)::before { background: radial-gradient(circle at bottom, rgba(107,74,139,0.15), transparent 70%); }

.element-icon {
  font-size: 2.8rem; margin-bottom: 1.2rem; display: block;
  filter: drop-shadow(0 0 20px currentColor);
}
.element-card:nth-child(1) .element-icon { color: var(--earth); }
.element-card:nth-child(2) .element-icon { color: var(--water); }
.element-card:nth-child(3) .element-icon { color: var(--fire); }
.element-card:nth-child(4) .element-icon { color: var(--air); }
.element-card:nth-child(5) .element-icon { color: var(--space); }

.element-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; margin-bottom: .6rem; letter-spacing: .05em;
}
.element-sanskrit {
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text-muted); font-family: 'Rajdhani', sans-serif; font-weight: 500;
  margin-bottom: 1rem;
}
.element-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

/* ── Element Detail Pages ── */
.element-detail { max-width: 1000px; margin: 0 auto; }
.element-detail-inner {
  display: grid; grid-template-columns: 120px 1fr; gap: 3rem; align-items: start;
}
.element-detail-inner.reverse { grid-template-columns: 1fr 120px; }
.element-detail-inner.reverse .element-detail-icon { order: 2; }
.element-detail-icon {
  font-size: 4rem; text-align: center;
  filter: drop-shadow(0 0 30px currentColor);
  padding-top: .5rem;
}

/* ── Shiva ── */
.shiva-section { max-width: 1000px; margin: 0 auto; text-align: center; }
.shiva-section .section-body { margin: 0 auto; }
.trident-svg { width: 80px; margin: 0 auto 2rem; opacity: .3; }
.shiva-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-style: italic; font-weight: 300;
  color: var(--gold-light); max-width: 600px; margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  line-height: 1.6;
}

/* ── Meditation ── */
.meditation-section { max-width: 1100px; margin: 0 auto; }
.meditation-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; margin-top: 3rem;
}
.meditation-card {
  background: var(--bg-card); border: 1px solid rgba(255,255,255,0.04);
  border-radius: 20px; padding: 3rem; position: relative; overflow: hidden;
  transition: all .4s;
}
.meditation-card:hover { border-color: rgba(201,168,76,0.15); transform: translateY(-4px); }
.meditation-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600; margin-bottom: .8rem;
}
.tag {
  display: inline-block; font-family: 'Rajdhani', sans-serif;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,0.25);
  padding: .25rem .8rem; border-radius: 20px; margin-bottom: 1.2rem;
}
.meditation-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.8; }
.meditation-pulse {
  position: absolute; top: 2rem; right: 2rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); opacity: .3;
  animation: pulse 3s ease-in-out infinite;
}
.meditation-feature {
  max-width: 700px; margin: 0 auto; position: relative;
}
.meditation-pulse-large {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); opacity: .3;
  animation: pulse 3s ease-in-out infinite;
  margin-bottom: 1.5rem;
}
@keyframes pulse { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: .6; transform: scale(1.3); } }

/* ── Books & Journal ── */
.books-journal {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
}
.bj-card {
  padding: 3rem; border: 1px solid rgba(201,168,76,0.08);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201,168,76,0.02), transparent);
}
.bj-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; margin-bottom: 1rem;
}
.bj-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.8; margin-bottom: 1.5rem; }
.bj-link {
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: gap .3s;
}
.bj-link:hover { gap: .8rem; }

/* ── Footer ── */
footer {
  text-align: center; padding: 4rem 2rem 3rem;
  border-top: 1px solid rgba(201,168,76,0.06);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300; color: var(--gold);
  letter-spacing: .15em; margin-bottom: 1rem;
}
.footer-tagline {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-muted); font-family: 'Rajdhani', sans-serif;
  margin-bottom: 2rem;
}
.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none; font-size: .8rem;
  letter-spacing: .1em; font-family: 'Rajdhani', sans-serif;
  transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .72rem; color: rgba(255,255,255,0.2); letter-spacing: .1em; }

/* ── Divider ── */
.h-divider {
  width: 100%; max-width: 1200px; margin: 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.15), transparent);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: all .8s cubic-bezier(.23,1,.32,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.show {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8,8,16,0.96); padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(201,168,76,0.1);
  }
  .hamburger { display: flex; }
  .about { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .about-visual { order: -1; }
  .about-circle { width: 240px; height: 240px; }
  .orbit-dot { animation-name: orbit-sm; }
  @keyframes orbit-sm {
    from { transform: rotate(0) translateX(120px) rotate(0); }
    to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
  }
  .section-body { margin: 0 auto; }
  .elements-grid { grid-template-columns: repeat(2, 1fr); }
  .meditation-grid { grid-template-columns: 1fr; }
  .books-journal { grid-template-columns: 1fr; gap: 2rem; }
  .element-detail-inner,
  .element-detail-inner.reverse { grid-template-columns: 1fr; text-align: center; }
  .element-detail-icon { margin: 0 auto; }
  .element-detail-inner.reverse .element-detail-icon { order: 0; }
}
@media (max-width: 600px) {
  .elements-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
  section { padding: 5rem 1.5rem; }
}
