/* Index Page Specific Styles - Extracted from inline styles for better performance */

/* Global Smooth Scrolling */
* {
  scroll-behavior: smooth;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced Header Styles */
.divine-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
  padding: 8px 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 70px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* Enhanced Footer Styles */
.divine-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
  padding: 8px 20px;
  text-align: center;
  box-shadow: 0 -8px 25px rgba(30, 58, 138, 0.4);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.footer-left, .footer-right {
  color: #fff;
  font-size: 1.1em;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #ffd700, #ffd700, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 200px;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.divine-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.footer-mantra {
  color: #fff;
  font-size: 1em;
  margin: 0;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  background: linear-gradient(45deg, #ffd700, #ffd700, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mantraGlow 4s infinite;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 5px;
    padding: 5px 0;
  }
  
  .footer-left, .footer-right {
    font-size: 0.9em;
    min-width: auto;
  }
  
  .footer-mantra {
    font-size: 1em;
    padding: 0 10px;
  }
  
  .divine-footer {
    height: 80px;
  }
}

@keyframes mantraGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.5); }
}

.divine-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.header-title {
  color: #fff;
  font-size: 1.4em;
  margin: 0;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  background: linear-gradient(45deg, #ffdf00, #ffd700, #ffdf00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.om-decoration {
  position: absolute;
  color: rgba(255,215,0,0.2);
  font-size: 2.2em;
  animation: float 4s ease-in-out infinite;
}

.om-left { left: 20px; top: 50%; transform: translateY(-50%); }
.om-right { right: 20px; top: 50%; transform: translateY(-50%); animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-60%) rotate(5deg); }
}

/* Enhanced Navigation Styles */
.spiritual-nav {
  background: linear-gradient(160deg, rgba(255,248,220,0.98) 0%, rgba(255,255,255,0.98) 50%, rgba(255,248,220,0.98) 100%);
  backdrop-filter: blur(25px) saturate(1.2);
  width: 22%;
  box-shadow: 
    0 20px 60px rgba(30, 58, 138, 0.15),
    0 8px 25px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border-right: 1px solid rgba(255, 223, 0, 0.3);
  border-radius: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Navigation Content Area */
.nav-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 223, 0, 0.4) transparent;
  scroll-padding-top: 20px;
  scroll-snap-type: y proximity;
  padding: 16px 12px;
}

.nav-content::-webkit-scrollbar {
  width: 8px;
}

.nav-content::-webkit-scrollbar-track {
  background: transparent;
}

.nav-content::-webkit-scrollbar-thumb {
  background: rgba(255, 223, 0, 0.4);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 152, 51, 0.6);
}

.nav-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  padding: 12px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 1.1em;
  position: sticky;
  top: 0;
  z-index: 25;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.nav-header-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  gap: 2px;
}

.nav-header-content .nav-title {
  font-size: 1.2em;
  font-weight: 800;
  color: #c2d45c;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.nav-header-content .nav-subtitle {
  font-size: 0.85em;
  opacity: 0.9;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}

.spiritual-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spiritual-nav > ul > li {
  margin: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.spiritual-nav > ul > li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 223, 0, 0.15) 0%, 
    rgba(255, 152, 51, 0.12) 50%, 
    rgba(255, 223, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spiritual-nav > ul > li:hover::before {
  opacity: 1;
}

.spiritual-nav > ul > li:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(255, 152, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.spiritual-nav a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  gap: 12px;
  line-height: 1.4;
}

.spiritual-nav > ul > li > a {
  color: #2d3748;
  font-weight: 600;
}

.spiritual-nav a:hover {
  color: #1e3a8a;
  transform: translateX(0);
  text-shadow: none;
}

/* Icon Styling */
.nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffdf00 0%, #ff9933 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #1e3a8a;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.spiritual-nav a:hover .nav-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

/* Specific icon content */
.nav-icon-talk .nav-icon::before { content: '💬'; }
.nav-icon-forms .nav-icon::before { content: '🕉️'; }
.nav-icon-cosmos .nav-icon::before { content: '🌌'; }
.nav-icon-hariNama .nav-icon::before { content: '🎵'; }
.nav-icon-stories .nav-icon::before { content: '📖'; }
.nav-icon-consciousness .nav-icon::before { content: '🌟'; }
.nav-icon-gita-practical .nav-icon::before { content: '🧘'; }
.nav-icon-gita .nav-icon::before { content: '📜'; }

/* Chapter Icon Styling */
.nav-icon-ch1 .nav-icon::before { content: '⚔️'; }
.nav-icon-ch2 .nav-icon::before { content: '🧠'; }
.nav-icon-ch3 .nav-icon::before { content: '🎯'; }
.nav-icon-ch4 .nav-icon::before { content: '📖'; }
.nav-icon-ch5 .nav-icon::before { content: '🔥'; }
.nav-icon-ch6 .nav-icon::before { content: '🧘'; }
.nav-icon-ch7 .nav-icon::before { content: '🌟'; }
.nav-icon-ch8 .nav-icon::before { content: '🚀'; }
.nav-icon-ch9 .nav-icon::before { content: '🔐'; }
.nav-icon-ch10 .nav-icon::before { content: '✨'; }
.nav-icon-ch11 .nav-icon::before { content: '👁️'; }
.nav-icon-ch12 .nav-icon::before { content: '💝'; }
.nav-icon-ch13 .nav-icon::before { content: '🌱'; }
.nav-icon-ch14 .nav-icon::before { content: '⚖️'; }
.nav-icon-ch15 .nav-icon::before { content: '👑'; }
.nav-icon-ch16 .nav-icon::before { content: '😇'; }
.nav-icon-ch17 .nav-icon::before { content: '🙏'; }
.nav-icon-ch18 .nav-icon::before { content: '🏁'; }

/* Modern Submenu Styles */
.spiritual-nav ul ul {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 220, 0.95));
  backdrop-filter: blur(20px) saturate(1.1);
  border-radius: 16px;
  margin: 12px 0 0 0;
  border: 1px solid rgba(255, 223, 0, 0.4);
  box-shadow: 
    0 16px 50px rgba(255, 152, 0, 0.25),
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-20px) scale(0.95);
  padding: 0;
  min-width: 300px;
  position: relative;
}

.spiritual-nav li:hover > ul {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spiritual-nav ul ul a {
  padding: 12px 8px;
  font-size: 0.8em;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 40px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spiritual-nav ul ul a:hover {
  background: linear-gradient(135deg, rgba(255, 223, 0, 0.2), rgba(255, 152, 51, 0.15));
  color: #1e3a8a;
  font-weight: 600;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(255, 152, 0, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 223, 0, 0.4);
}

/* Main Content Area */
.content-area {
  width: 78%;
  background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.95) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.spinner-om {
  font-size: 4rem;
  color: #ffdf00;
  animation: revolve 3s linear infinite, glow 2s ease-in-out infinite alternate;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
  position: relative;
}

.loading-text {
  font-size: 1.2rem;
  color: #7b1fa2;
  font-weight: 600;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes revolve {
  from { 
    transform: rotate(0deg) translateX(30px) rotate(0deg);
  }
  to { 
    transform: rotate(360deg) translateX(30px) rotate(-360deg);
  }
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(156, 39, 176, 0.5); }
  to { text-shadow: 0 0 40px rgba(156, 39, 176, 0.8); }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.content-frame {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: none;
  background: white;
  border-radius: 8px;
  margin: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4caf50 #f0f0f0;
}

.content-frame::-webkit-scrollbar {
  width: 12px;
}

.content-frame::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 6px;
}

.content-frame::-webkit-scrollbar-thumb {
  background: #4caf50;
  border-radius: 6px;
  border: 2px solid #f0f0f0;
}

.content-frame::-webkit-scrollbar-thumb:hover {
  background: #2e7d32;
}

/* Layout Container */
.main-layout {
  display: flex;
  height: calc(100vh - 100px);
  margin-top: 70px;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  .spiritual-nav {
    width: 100%;
    height: auto;
    position: fixed;
    top: 70px;
    left: -100%;
    transition: left 0.3s ease;
    z-index: 1000;
    bottom: 50px;
  }
  
  .spiritual-nav.active {
    left: 0;
  }
  
  .content-area {
    width: 100%;
  }
  
  .main-layout {
    height: calc(100vh - 130px);
    margin-bottom: 30px;
  }
  
  .footer-mantra {
    font-size: 0.9em;
    padding: 0 10px;
  }
  
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }
}

.nav-toggle {
  display: none;
}

/* Enhanced Scroll Behavior */
.spiritual-nav {
  overflow: hidden;
}

/* Scroll Enhancement for Mobile */
@supports (-webkit-overflow-scrolling: touch) {
  .spiritual-nav {
    -webkit-overflow-scrolling: touch;
  }
}

/* Improved Focus Management */
.spiritual-nav:focus-within {
  outline: 2px solid rgba(156, 39, 176, 0.5);
  outline-offset: -2px;
}

/* Custom Scroll Indicator */
.scroll-indicator {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, 
    rgba(156, 39, 176, 0.3) 0%,
    rgba(233, 30, 99, 0.5) 50%,
    rgba(255, 193, 7, 0.3) 100%);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.spiritual-nav:hover .scroll-indicator {
  opacity: 1;
}

/* Sacred Symbol Animation */
.sacred-symbol {
  position: absolute;
  top: 10px;
  right: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5em;
  animation: pulse 2s infinite;
  z-index: 25;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Special effects for expanded menu items */
.spiritual-nav > ul > li:has(ul) > a::after {
  content: '▼';
  margin-left: auto;
  font-size: 0.6em;
  transition: transform 0.3s ease;
  color: #4caf50;
}

.spiritual-nav > ul > li:hover:has(ul) > a::after {
  transform: rotate(180deg);
}

/* Global Smooth Scrolling */
* {
  scroll-behavior: smooth;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enhanced Header Styles */
.divine-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
  padding: 8px 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 70px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* Enhanced Footer Styles */
.divine-footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
  padding: 8px 20px;
  text-align: center;
  box-shadow: 0 -8px 25px rgba(30, 58, 138, 0.4);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.footer-left, .footer-right {
  color: #fff;
  font-size: 1.1em;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #ffd700, #ffd700, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 200px;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.divine-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.footer-mantra {
  color: #fff;
  font-size: 1em;
  margin: 0;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  background: linear-gradient(45deg, #ffd700, #ffd700, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mantraGlow 4s infinite;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 5px;
    padding: 5px 0;
  }
  
  .footer-left, .footer-right {
    font-size: 0.9em;
    min-width: auto;
  }
  
  .footer-mantra {
    font-size: 1em;
    padding: 0 10px;
  }
  
  .divine-footer {
    height: 80px;
  }
}

@keyframes mantraGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.5); }
}

.divine-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  opacity: 0.3;
}

.header-title {
  color: #fff;
  font-size: 1.4em;
  margin: 0;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
  background: linear-gradient(45deg, #ffdf00, #ffd700, #ffdf00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.om-decoration {
  position: absolute;
  color: rgba(255,215,0,0.2);
  font-size: 2.2em;
  animation: float 4s ease-in-out infinite;
}

.om-left { left: 20px; top: 50%; transform: translateY(-50%); }
.om-right { right: 20px; top: 50%; transform: translateY(-50%); animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-60%) rotate(5deg); }
}

/* Enhanced Navigation Styles */
.spiritual-nav {
  background: linear-gradient(160deg, rgba(255,248,220,0.98) 0%, rgba(255,255,255,0.98) 50%, rgba(255,248,220,0.98) 100%);
  backdrop-filter: blur(25px) saturate(1.2);
  width: 22%;
  box-shadow: 
    0 20px 60px rgba(30, 58, 138, 0.15),
    0 8px 25px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
  border-right: 1px solid rgba(255, 223, 0, 0.3);
  border-radius: 0;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Navigation Content Area */
.nav-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 223, 0, 0.4) transparent;
  scroll-padding-top: 20px;
  scroll-snap-type: y proximity;
  padding: 16px 12px;
}

.nav-content::-webkit-scrollbar {
  width: 8px;
}

.nav-content::-webkit-scrollbar-track {
  background: transparent;
}

.nav-content::-webkit-scrollbar-thumb {
  background: rgba(255, 223, 0, 0.4);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 152, 51, 0.6);
}

.nav-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1e40af 100%);
  color: white;
  padding: 12px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 1.1em;
  position: sticky;
  top: 0;
  z-index: 25;
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.nav-header-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  gap: 2px;
}

.nav-header-content .nav-title {
  font-size: 1.2em;
  font-weight: 800;
  color: #c2d45c;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

.nav-header-content .nav-subtitle {
  font-size: 0.85em;
  opacity: 0.9;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
}

.spiritual-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spiritual-nav > ul > li {
  margin: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
}

.spiritual-nav > ul > li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 223, 0, 0.15) 0%, 
    rgba(255, 152, 51, 0.12) 50%, 
    rgba(255, 223, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spiritual-nav > ul > li:hover::before {
  opacity: 1;
}

.spiritual-nav > ul > li:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(255, 152, 0, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.spiritual-nav a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: #4a5568;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  gap: 12px;
  line-height: 1.4;
}

.spiritual-nav > ul > li > a {
  color: #2d3748;
  font-weight: 600;
}

.spiritual-nav a:hover {
  color: #1e3a8a;
  transform: translateX(0);
  text-shadow: none;
}

/* Icon Styling */
.nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffdf00 0%, #ff9933 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #1e3a8a;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.spiritual-nav a:hover .nav-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

/* Specific icon content */
.nav-icon-talk .nav-icon::before { content: '💬'; }
.nav-icon-forms .nav-icon::before { content: '🕉️'; }
.nav-icon-cosmos .nav-icon::before { content: '🌌'; }
.nav-icon-hariNama .nav-icon::before { content: '🎵'; }
.nav-icon-stories .nav-icon::before { content: '📖'; }
.nav-icon-consciousness .nav-icon::before { content: '🌟'; }
.nav-icon-gita-practical .nav-icon::before { content: '🧘'; }
.nav-icon-gita .nav-icon::before { content: '📜'; }

/* Chapter Icon Styling */
.nav-icon-ch1 .nav-icon::before { content: '⚔️'; }
.nav-icon-ch2 .nav-icon::before { content: '🧠'; }
.nav-icon-ch3 .nav-icon::before { content: '🎯'; }
.nav-icon-ch4 .nav-icon::before { content: '📖'; }
.nav-icon-ch5 .nav-icon::before { content: '🔥'; }
.nav-icon-ch6 .nav-icon::before { content: '🧘'; }
.nav-icon-ch7 .nav-icon::before { content: '🌟'; }
.nav-icon-ch8 .nav-icon::before { content: '🚀'; }
.nav-icon-ch9 .nav-icon::before { content: '🔐'; }
.nav-icon-ch10 .nav-icon::before { content: '✨'; }
.nav-icon-ch11 .nav-icon::before { content: '👁️'; }
.nav-icon-ch12 .nav-icon::before { content: '💝'; }
.nav-icon-ch13 .nav-icon::before { content: '🌱'; }
.nav-icon-ch14 .nav-icon::before { content: '⚖️'; }
.nav-icon-ch15 .nav-icon::before { content: '👑'; }
.nav-icon-ch16 .nav-icon::before { content: '😇'; }
.nav-icon-ch17 .nav-icon::before { content: '🙏'; }
.nav-icon-ch18 .nav-icon::before { content: '🏁'; }

/* Modern Submenu Styles */
.spiritual-nav ul ul {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 220, 0.95));
  backdrop-filter: blur(20px) saturate(1.1);
  border-radius: 16px;
  margin: 12px 0 0 0;
  border: 1px solid rgba(255, 223, 0, 0.4);
  box-shadow: 
    0 16px 50px rgba(255, 152, 0, 0.25),
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.8);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-20px) scale(0.95);
  padding: 0;
  min-width: 300px;
  position: relative;
}

.spiritual-nav li:hover > ul {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spiritual-nav ul ul a {
  padding: 12px 8px;
  font-size: 0.8em;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 40px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.spiritual-nav ul ul a:hover {
  background: linear-gradient(135deg, rgba(255, 223, 0, 0.2), rgba(255, 152, 51, 0.15));
  color: #1e3a8a;
  font-weight: 600;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(255, 152, 0, 0.3),
    0 2px 10px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 223, 0, 0.4);
}

/* Main Content Area */
.content-area {
  width: 78%;
  background: linear-gradient(145deg, #fafafa 0%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,255,0.95) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-spinner {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.spinner-om {
  font-size: 4rem;
  color: #ffdf00;
  animation: revolve 3s linear infinite, glow 2s ease-in-out infinite alternate;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
  position: relative;
}

.loading-text {
  font-size: 1.2rem;
  color: #7b1fa2;
  font-weight: 600;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes revolve {
  from { 
    transform: rotate(0deg) translateX(30px) rotate(0deg);
  }
  to { 
    transform: rotate(360deg) translateX(30px) rotate(-360deg);
  }
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(156, 39, 176, 0.5); }
  to { text-shadow: 0 0 40px rgba(156, 39, 176, 0.8); }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.content-frame {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: none;
  background: white;
  border-radius: 8px;
  margin: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  scroll-behavior: smooth;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #4caf50 #f0f0f0;
}

.content-frame::-webkit-scrollbar {
  width: 12px;
}

.content-frame::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 6px;
}

.content-frame::-webkit-scrollbar-thumb {
  background: #4caf50;
  border-radius: 6px;
  border: 2px solid #f0f0f0;
}

.content-frame::-webkit-scrollbar-thumb:hover {
  background: #2e7d32;
}

/* Layout Container */
.main-layout {
  display: flex;
  height: calc(100vh - 100px);
  margin-top: 70px;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
  .spiritual-nav {
    width: 100%;
    height: auto;
    position: fixed;
    top: 70px;
    left: -100%;
    transition: left 0.3s ease;
    z-index: 1000;
    bottom: 50px;
  }
  
  .spiritual-nav.active {
    left: 0;
  }
  
  .content-area {
    width: 100%;
  }
  
  .main-layout {
    height: calc(100vh - 130px);
    margin-bottom: 30px;
  }
  
  .footer-mantra {
    font-size: 0.9em;
    padding: 0 10px;
  }
  
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }
}

.nav-toggle {
  display: none;
}

/* Enhanced Scroll Behavior */
.spiritual-nav {
  overflow: hidden;
}

/* Scroll Enhancement for Mobile */
@supports (-webkit-overflow-scrolling: touch) {
  .spiritual-nav {
    -webkit-overflow-scrolling: touch;
  }
}

/* Improved Focus Management */
.spiritual-nav:focus-within {
  outline: 2px solid rgba(156, 39, 176, 0.5);
  outline-offset: -2px;
}

/* Custom Scroll Indicator */
.scroll-indicator {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, 
    rgba(156, 39, 176, 0.3) 0%,
    rgba(233, 30, 99, 0.5) 50%,
    rgba(255, 193, 7, 0.3) 100%);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.spiritual-nav:hover .scroll-indicator {
  opacity: 1;
}

/* Sacred Symbol Animation */
.sacred-symbol {
  position: absolute;
  top: 10px;
  right: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5em;
  animation: pulse 2s infinite;
  z-index: 25;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Special effects for expanded menu items */
.spiritual-nav > ul > li:has(ul) > a::after {
  content: '▼';
  margin-left: auto;
  font-size: 0.6em;
  transition: transform 0.3s ease;
  color: #4caf50;
}

.spiritual-nav > ul > li:hover:has(ul) > a::after {
  transform: rotate(180deg);
}