/* ========================================
   BRAHMASTRA - Hindu Mythology Encyclopedia
   Premium Design System
   ======================================== */

/* CSS Custom Properties */
:root {
    --primary: #D4A843;
    --primary-dark: #B8912E;
    --primary-light: #ECC85C;
    --secondary: #E85D3A;
    --accent: #8B1E3F;
    --saffron: #FF6F00;
    --divine-gold: #FFD700;
    --temple-red: #C62828;
    --sacred-green: #2E7D32;
    --cosmic-blue: #1A237E;
    --lotus-pink: #E91E63;
    --bg-dark: #0A0A0F;
    --bg-card: #12121A;
    --bg-card-hover: #1A1A28;
    --bg-surface: #16161F;
    --text-primary: #F5F0E8;
    --text-secondary: #B8B0A0;
    --text-muted: #7A7568;
    --border: rgba(212, 168, 67, 0.15);
    --border-hover: rgba(212, 168, 67, 0.35);
    --glass: rgba(18, 18, 26, 0.8);
    --glass-light: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(212, 168, 67, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --font-display: 'Cinzel Decorative', serif;
    --font-body: 'Outfit', sans-serif;
    --font-sanskrit: 'Noto Sans Devanagari', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary), var(--accent)); border-radius: 4px; }

/* AI Voice Assistant Button */
.ai-voice-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--saffron));
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    z-index: 1000;
    transition: var(--transition);
    animation: floatVoice 3s infinite ease-in-out;
}
.ai-voice-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 111, 0, 0.6);
}
.voice-text {
    position: absolute;
    right: 75px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    transform: translateX(10px);
}
.ai-voice-btn:hover .voice-text {
    opacity: 1;
    transform: translateX(0);
}
.ai-voice-btn.playing {
    animation: voicePulsate 1.5s infinite;
}
@keyframes floatVoice {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes voicePulsate {
    0% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 111, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

.detail-voice-btn {
    position: absolute;
    top: 16px;
    right: 70px; /* next to close btn */
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.detail-voice-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Hero Alert Banner */
.alert-banner {
    background: rgba(255, 111, 0, 0.15);
    border: 1px solid var(--saffron);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}
.alert-banner .alert-icon { font-size: 1.2rem; }
.alert-banner .alert-text { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; }

/* Particle Canvas */
#particleCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.4; }

/* ==================== LOADING SCREEN ==================== */
.loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at center, #1a1020 0%, #0A0A0F 70%); z-index: 10000; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { text-align: center; }
.om-symbol { font-size: 80px; animation: omPulse 2s ease-in-out infinite; }
@keyframes omPulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.15); filter: brightness(1.3) drop-shadow(0 0 30px rgba(212,168,67,0.5)); } }
.loading-title { font-family: var(--font-sanskrit); font-size: 3rem; color: var(--primary); margin: 20px 0 5px; text-shadow: 0 0 30px rgba(212, 168, 67, 0.4); }
.loading-subtitle { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-secondary); letter-spacing: 8px; }
.loading-bar { width: 200px; height: 3px; background: var(--bg-card); border-radius: 3px; margin: 30px auto 15px; overflow: hidden; }
.loading-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--primary), var(--divine-gold), var(--saffron)); border-radius: 3px; animation: loadFill 2.5s ease-in-out forwards; }
@keyframes loadFill { 0% { width: 0%; } 100% { width: 100%; } }
.loading-text { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 2px; }

/* ==================== NAVIGATION ==================== */
.main-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: var(--transition); }
.main-nav.scrolled { background: rgba(10, 10, 15, 0.95); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3); }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.logo-icon { font-size: 1.5rem; animation: tridentGlow 3s ease-in-out infinite; }
@keyframes tridentGlow { 0%, 100% { filter: drop-shadow(0 0 5px rgba(212,168,67,0.3)); } 50% { filter: drop-shadow(0 0 15px rgba(212,168,67,0.6)); } }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: rgba(212, 168, 67, 0.1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.search-btn, .lang-btn, .mobile-menu-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-secondary); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-family: var(--font-body); font-size: 0.85rem; }
.search-btn:hover, .lang-btn:hover { background: rgba(212, 168, 67, 0.1); border-color: var(--border-hover); color: var(--primary); }
.language-selector { position: relative; }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 280px; max-height: 400px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; display: none; z-index: 100; box-shadow: var(--shadow); }
.lang-dropdown.show { display: block; }
.lang-dropdown .lang-group-title { padding: 8px 12px 4px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); font-weight: 600; }
.lang-dropdown .lang-option { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: 0.85rem; color: var(--text-secondary); }
.lang-dropdown .lang-option:hover { background: rgba(212, 168, 67, 0.1); color: var(--text-primary); }
.lang-dropdown .lang-option.active { background: rgba(212, 168, 67, 0.15); color: var(--primary); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 4px; padding: 10px; }
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: var(--text-secondary); transition: var(--transition); }

/* ==================== SEARCH OVERLAY ==================== */
.search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(30px); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding-top: 100px; }
.search-overlay.show { display: flex; animation: fadeInSearch 0.3s ease; }
@keyframes fadeInSearch { from { opacity: 0; } to { opacity: 1; } }
.search-container { width: 90%; max-width: 800px; }
.search-header { margin-bottom: 24px; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-glow); }
.search-input-wrap svg { color: var(--primary); flex-shrink: 0; }
.search-input-wrap input { flex: 1; background: none; border: none; outline: none; color: var(--text-primary); font-family: var(--font-body); font-size: 1.1rem; }
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; transition: var(--transition); }
.search-close:hover { color: var(--secondary); }
.search-filters { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.filter-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 16px; border-radius: 50px; cursor: pointer; font-family: var(--font-body); font-size: 0.8rem; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: rgba(212, 168, 67, 0.15); border-color: var(--primary); color: var(--primary); }
.search-results { max-height: 60vh; overflow-y: auto; }
.search-placeholder { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.search-placeholder-icon { font-size: 3rem; display: block; margin-bottom: 16px; opacity: 0.3; }
.search-result-item { display: flex; gap: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; transition: var(--transition); }
.search-result-item:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateX(4px); }
.search-result-icon { font-size: 2rem; flex-shrink: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(212, 168, 67, 0.1); border-radius: var(--radius-sm); }
.search-result-info h4 { color: var(--text-primary); font-size: 1rem; margin-bottom: 4px; }
.search-result-info p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }
.search-result-info .result-category { display: inline-block; padding: 2px 8px; background: rgba(212, 168, 67, 0.1); color: var(--primary); border-radius: 50px; font-size: 0.7rem; margin-top: 6px; }

/* ==================== 360° VIEWER ==================== */
.viewer-360-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 3000; display: none; align-items: center; justify-content: center; }
.viewer-360-modal.show { display: flex; animation: fadeIn360 0.4s ease; }
@keyframes fadeIn360 { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.viewer-360-container { width: 95%; max-width: 1200px; position: relative; }
.viewer-360-close { position: absolute; top: -40px; right: 0; background: rgba(255,255,255,0.1); border: none; color: white; font-size: 1.5rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; transition: var(--transition); z-index: 10; }
.viewer-360-close:hover { background: var(--secondary); }
.viewer-360-header { text-align: center; margin-bottom: 16px; }
.viewer-360-header h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.3rem; }
.viewer-360-header p { color: var(--text-muted); font-size: 0.85rem; }
#viewer360Canvas { width: 100%; height: 500px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); cursor: grab; }
#viewer360Canvas:active { cursor: grabbing; }
.viewer-360-controls { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.v360-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: var(--text-secondary); padding: 10px 18px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); font-size: 0.9rem; }
.v360-btn:hover { background: rgba(212, 168, 67, 0.2); border-color: var(--primary); color: var(--primary); }

/* ==================== DETAIL MODAL ==================== */
.detail-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 15, 0.92); backdrop-filter: blur(20px); z-index: 2500; display: none; align-items: center; justify-content: center; padding: 20px; }
.detail-modal.show { display: flex; animation: fadeInDetail 0.3s ease; }
@keyframes fadeInDetail { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.detail-modal-content { width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; position: relative; box-shadow: var(--shadow-glow); }
.detail-close { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: var(--transition); }
.detail-close:hover { background: var(--secondary); color: white; border-color: var(--secondary); }
.detail-header { display: flex; gap: 24px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.detail-icon { font-size: 4rem; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(212,168,67,0.1), rgba(139,30,63,0.1)); border-radius: var(--radius); flex-shrink: 0; }
.detail-title-area h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--primary); margin-bottom: 4px; }
.detail-title-area .sanskrit-name { font-family: var(--font-sanskrit); color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 8px; }
.detail-title-area .detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-badge { padding: 4px 12px; background: rgba(212, 168, 67, 0.1); border: 1px solid rgba(212, 168, 67, 0.2); border-radius: 50px; font-size: 0.75rem; color: var(--primary); }
.detail-section { margin-bottom: 24px; }
.detail-section h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.detail-section p { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; white-space: pre-wrap; }
.detail-section ul { list-style: none; padding: 0; }
.detail-section ul li { padding: 8px 0; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.03); display: flex; align-items: flex-start; gap: 8px; }
.detail-section ul li::before { content: '🔸'; flex-shrink: 0; }
.detail-360-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border: none; border-radius: var(--radius-sm); color: var(--bg-dark); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); margin-top: 16px; }
.detail-360-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3); }
.detail-guide-box { background: rgba(212, 168, 67, 0.05); border: 1px solid rgba(212, 168, 67, 0.15); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.detail-guide-box h4 { color: var(--primary); margin-bottom: 12px; font-size: 1rem; }
.detail-guide-box .guide-item { display: flex; gap: 12px; padding: 8px 0; color: var(--text-secondary); font-size: 0.9rem; }
.detail-guide-box .guide-item strong { color: var(--text-primary); min-width: 120px; }

/* ==================== HERO SECTION ==================== */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: blur(2px); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,15,0.5) 0%, rgba(10,10,15,0.3) 30%, rgba(10,10,15,0.6) 70%, rgba(10,10,15,1) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1000px; padding: 100px 24px 60px; }
.hero-badge { display: inline-block; padding: 8px 20px; background: rgba(212, 168, 67, 0.1); border: 1px solid rgba(212, 168, 67, 0.2); border-radius: 50px; font-size: 0.85rem; color: var(--primary); margin-bottom: 24px; animation: fadeInUp 0.8s ease; }
.hero-title { margin-bottom: 24px; animation: fadeInUp 1s ease; }
.hero-title-sanskrit { display: block; font-family: var(--font-sanskrit); font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; background: linear-gradient(135deg, var(--divine-gold), var(--primary), var(--saffron)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.3)); line-height: 1.2; }
.hero-title-english { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 2rem); letter-spacing: 15px; color: var(--text-secondary); margin-top: 8px; }
.hero-subtitle { font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: var(--text-secondary); max-width: 700px; margin: 0 auto 40px; line-height: 1.7; animation: fadeInUp 1.2s ease; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; animation: fadeInUp 1.4s ease; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--primary); display: inline; }
.stat-plus { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; animation: fadeInUp 1.6s ease; }
.hero-btn { text-decoration: none; padding: 14px 32px; border-radius: 50px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; transition: var(--transition); border: 1px solid transparent; cursor: pointer; }
.hero-btn.primary { background: linear-gradient(135deg, var(--primary), var(--divine-gold)); color: var(--bg-dark); }
.hero-btn.secondary { background: rgba(255, 255, 255, 0.05); border-color: var(--primary); color: var(--primary); }
.hero-btn.tertiary { background: rgba(232, 93, 58, 0.1); border-color: var(--secondary); color: var(--secondary); }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(212, 168, 67, 0.2); }
.hero-sources { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; animation: fadeInUp 1.8s ease; }
.source-badge { padding: 6px 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50px; font-size: 0.75rem; color: var(--text-muted); }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; z-index: 2; animation: bounce 2s infinite; }
.scroll-indicator span { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.scroll-arrow { font-size: 1.2rem; color: var(--primary); }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== SECTIONS BASE ==================== */
.section { position: relative; z-index: 1; padding: 100px 0; }
.section-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-icon { font-size: 3rem; display: block; margin-bottom: 16px; animation: iconFloat 3s ease-in-out infinite; }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); background: linear-gradient(135deg, var(--primary), var(--divine-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; }
.section-desc { font-size: 1rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto; line-height: 1.7; }

/* Grid Layouts shared */
.astras-grid, .deities-grid, .temples-grid, .jyotirlinga-grid, .transport-grid, .vedas-grid, .aarti-grid, .almanac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Base Card Style */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); cursor: pointer; position: relative; }
.card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.card-image { width: 100%; height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(212,168,67,0.05), rgba(139,30,63,0.05)); display: flex; align-items: center; justify-content: center; }
.card-image .card-emoji { font-size: 5rem; filter: drop-shadow(0 0 20px rgba(212,168,67,0.3)); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-slow); }
.card:hover .card-image img { transform: scale(1.05); }
.card-360-badge { position: absolute; top: 12px; right: 12px; background: rgba(212, 168, 67, 0.9); color: var(--bg-dark); padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 4px; backdrop-filter: blur(10px); }
.card-body { padding: 20px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-primary); margin-bottom: 4px; }
.card-body .card-sanskrit { font-family: var(--font-sanskrit); color: var(--primary); font-size: 0.85rem; margin-bottom: 8px; }
.card-body p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tag { padding: 3px 10px; background: rgba(212, 168, 67, 0.08); border: 1px solid rgba(212, 168, 67, 0.15); border-radius: 50px; font-size: 0.7rem; color: var(--primary); }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-source { font-size: 0.75rem; color: var(--text-muted); }
.card-action { font-size: 0.8rem; color: var(--primary); font-weight: 500; display: flex; align-items: center; gap: 4px; }

/* Filter Tabs */
.astras-filter, .temples-filter, .deities-tabs, .vedas-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.astra-filter-btn, .temple-filter-btn, .deity-tab, .veda-tab, .aarti-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); padding: 10px 24px; border-radius: 50px; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.astra-filter-btn:hover, .astra-filter-btn.active, .temple-filter-btn:hover, .temple-filter-btn.active, .deity-tab:hover, .deity-tab.active, .veda-tab:hover, .veda-tab.active, .aarti-tab:hover, .aarti-tab.active { background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(232,93,58,0.1)); border-color: var(--primary); color: var(--primary); }

/* Specific Section Backgrounds */
.almanac-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(212,168,67,0.05) 50%, var(--bg-dark) 100%); }
.astras-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 35, 126, 0.05) 50%, var(--bg-dark) 100%); }
.deities-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(139,30,63,0.05) 50%, var(--bg-dark) 100%); }
.temples-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255,107,0,0.05) 50%, var(--bg-dark) 100%); }
.jyotirlinga-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255,107,0,0.03) 50%, var(--bg-dark) 100%); }
.shaktipeeth-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(233,30,99,0.03) 50%, var(--bg-dark) 100%); }
.dham-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(46,125,50,0.03) 50%, var(--bg-dark) 100%); }
.transport-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26,35,126,0.05) 50%, var(--bg-dark) 100%); }
.vedas-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(139,30,63,0.05) 50%, var(--bg-dark) 100%); }
.aarti-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(212,168,67,0.05) 50%, var(--bg-dark) 100%); }
.quiz-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(255,111,0,0.05) 50%, var(--bg-dark) 100%); }
.guide-section { background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(212,168,67,0.03) 50%, var(--bg-dark) 100%); }

/* Jyotirlinga Cards */
.jyotirlinga-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; }
.jyotirlinga-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--saffron)); opacity: 0; transition: var(--transition); }
.jyotirlinga-card:hover::before { opacity: 1; }
.jyotirlinga-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.jyotirlinga-number { position: absolute; top: 12px; right: 16px; font-family: var(--font-display); font-size: 2rem; color: rgba(212, 168, 67, 0.1); font-weight: 700; }
.jyotirlinga-card h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.15rem; margin-bottom: 4px; }
.jyotirlinga-card .jl-location { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 12px; }
.jyotirlinga-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.jyotirlinga-card .jl-view-360 { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(212, 168, 67, 0.1); border: 1px solid rgba(212, 168, 67, 0.2); color: var(--primary); font-size: 0.75rem; border-radius: 50px; cursor: pointer; transition: var(--transition); }
.jyotirlinga-card .jl-view-360:hover { background: rgba(212, 168, 67, 0.2); }

/* Shaktipeeth List */
.shaktipeeth-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.shaktipeeth-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: var(--transition); cursor: pointer; display: flex; gap: 16px; align-items: flex-start; }
.shaktipeeth-item:hover { border-color: rgba(233,30,99,0.3); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(233,30,99,0.1); }
.shaktipeeth-num { width: 40px; height: 40px; background: linear-gradient(135deg, rgba(233,30,99,0.15), rgba(233,30,99,0.05)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.85rem; color: var(--lotus-pink); flex-shrink: 0; border: 1px solid rgba(233,30,99,0.2); }
.shaktipeeth-info h4 { color: var(--text-primary); font-size: 0.95rem; margin-bottom: 4px; }
.shaktipeeth-info .sp-body-part { color: var(--lotus-pink); font-size: 0.8rem; margin-bottom: 4px; }
.shaktipeeth-info .sp-location { color: var(--text-muted); font-size: 0.8rem; }

/* Dham Cards */
.dham-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); cursor: pointer; }
.dham-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.dham-card-img { height: 180px; background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(212,168,67,0.05)); display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; overflow: hidden; }
.dham-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dham-card-img .dham-360-badge { position: absolute; top: 12px; right: 12px; background: rgba(212, 168, 67, 0.9); color: var(--bg-dark); padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.dham-card-body { padding: 20px; }
.dham-card-body h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.15rem; margin-bottom: 4px; }
.dham-card-body .dham-deity { color: var(--secondary); font-size: 0.85rem; margin-bottom: 8px; }
.dham-card-body .dham-location { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.dham-card-body p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* Transport Cards */
.transport-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); cursor: pointer; }
.transport-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(26,35,126,0.15); }
.transport-card-icon { height: 160px; background: linear-gradient(135deg, rgba(26,35,126,0.1), rgba(212,168,67,0.05)); display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; }
.transport-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.transport-card-body { padding: 20px; }
.transport-card-body h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.1rem; margin-bottom: 4px; }
.transport-card-body .transport-sanskrit { font-family: var(--font-sanskrit); color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 8px; }
.transport-card-body p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.transport-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.transport-card-footer span { font-size: 0.75rem; color: var(--text-muted); }

/* Guide Section */
.guide-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; }
.guide-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: var(--transition); }
.guide-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow); }
.guide-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.guide-card-header .guide-icon { font-size: 2rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(212, 168, 67, 0.1); border-radius: var(--radius-sm); }
.guide-card-header h3 { font-family: var(--font-display); color: var(--primary); font-size: 1rem; }
.guide-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.guide-card ul { list-style: none; padding: 0; margin-top: 12px; }
.guide-card ul li { padding: 6px 0; color: var(--text-secondary); font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.guide-card ul li::before { content: '✦'; color: var(--primary); font-size: 0.7rem; }

/* Almanac / Panchang Cards */
.almanac-card { background: var(--bg-card); border: 1px solid var(--saffron); border-radius: var(--radius); padding: 24px; text-align: center; }
.almanac-card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; font-family: var(--font-display); }
.almanac-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.almanac-highlight { color: var(--saffron); font-size: 1.1rem; font-weight: 700; background: rgba(255,111,0,0.1); padding: 4px 12px; border-radius: 5px; display: inline-block; margin-top: 10px; }

/* Quiz Section */
.quiz-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 800px; margin: 0 auto; text-align: center; box-shadow: var(--shadow-glow); }
.quiz-content h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.5rem; margin-bottom: 20px; }
.quiz-options { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; text-align: left; }
.quiz-option { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 16px 20px; border-radius: var(--radius-sm); color: var(--text-primary); cursor: pointer; transition: var(--transition); font-size: 1rem; }
.quiz-option:hover { background: rgba(212,168,67,0.1); border-color: var(--primary); }
.quiz-option.correct { background: rgba(46,125,50,0.2) !important; border-color: var(--sacred-green) !important; color: #fff; }
.quiz-option.wrong { background: rgba(229,57,53,0.2) !important; border-color: var(--temple-red) !important; color: #fff; }
.quiz-feedback { margin-top: 20px; padding: 16px; border-radius: var(--radius-sm); display: none; font-size: 1.1rem; }
.quiz-feedback.success { background: rgba(46,125,50,0.1); border: 1px solid var(--sacred-green); color: #81C784; display: block; }
.quiz-feedback.error { background: rgba(229,57,53,0.1); border: 1px solid var(--temple-red); color: #E57373; display: block; }
.quiz-score, .quiz-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 15px; }

/* Formatting specific text */
.hindi-text { font-family: var(--font-sanskrit); font-size: 1.1rem !important; color: var(--text-primary) !important; line-height: 1.8 !important; }
.lyric-text { font-family: var(--font-sanskrit); font-size: 1.1rem; color: var(--text-primary); text-align: center; line-height: 2; margin: 20px 0; background: rgba(255,255,255,0.05); padding: 20px; border-radius: var(--radius); }

/* ==================== FOOTER ==================== */
.app-footer { position: relative; z-index: 1; background: var(--bg-surface); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { font-family: var(--font-display); color: var(--primary); font-size: 1.5rem; margin-bottom: 12px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.footer-sources span { color: var(--text-muted); font-size: 0.8rem; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { color: var(--primary); font-size: 0.9rem; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; }
.footer-disclaimer { color: var(--text-muted); font-size: 0.7rem !important; opacity: 0.6; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-links.show { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
    .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero-stats { gap: 20px; }
    .stat-number { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .section { padding: 60px 0; }
    .astras-grid, .deities-grid, .temples-grid, .jyotirlinga-grid, .transport-grid, .shaktipeeth-list, .dham-grid, .guide-content, .vedas-grid, .aarti-grid, .almanac-grid { grid-template-columns: 1fr; }
    .detail-modal-content { padding: 24px; }
    .detail-header { flex-direction: column; }
    #viewer360Canvas { height: 300px; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-voice-btn { bottom: 15px; right: 15px; width: 50px; height: 50px; font-size: 1.2rem; }
    .voice-text { right: 60px; font-size: 0.7rem; }
}
@media (max-width: 480px) {
    .hero-title-sanskrit { font-size: 2.5rem; }
    .hero-title-english { font-size: 1rem; letter-spacing: 8px; }
    .section-title { font-size: 1.3rem; }
    .viewer-360-controls { flex-wrap: wrap; }
}
