/* ==========================================
   SAMB SADA SHIV - Sacred Stylesheet
   ========================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d4af37;
    color: #0a0f1c;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 100;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
    font-family: 'Cinzel', serif;
}

.skip-link:focus {
    top: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0f1c 0%, #1a2332 50%, #0a0f1c 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: #d4af37;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px #d4af37;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================
   HEADER SECTION
   ========================================== */

.sacred-header {
    text-align: center;
    padding: 2.5rem 1rem;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    position: relative;
}

.om-symbol {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 0.3rem;
    display: inline-block;
}

.divine-title {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin: 0.5rem 0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.sanskrit-tagline {
    font-size: 1.2rem;
    color: #d4af37;
    margin: 0.3rem 0;
    font-family: 'Lora', serif;
}

.english-tagline {
    color: #e0e0e0;
    font-style: italic;
    font-size: 0.95rem;
}

/* ==========================================
   SACRED DIVIDER
   ========================================== */

.sacred-divider {
    height: 1px;
    background: linear-gradient(to right, transparent 10%, #d4af37 50%, transparent 90%);
    margin: 0;
    opacity: 0.5;
}

/* Navigation - Removed */

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, #0a0f1c 0%, #1a2332 100%);
    padding: 3.5rem 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 15, 28, 0.8) 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 0 1.5rem;
}

/* Divine Imagery - Removed (kept for reference if needed later) */

.hero-message {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.hero-text {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #e0e0e0;
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */

.content-section {
    padding: 2rem 1rem;
    position: relative;
}

.dark-section {
    background: linear-gradient(135deg, #050a15 0%, #0a0f1c 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Meaning Section */
.meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.meaning-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.meaning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.1);
}

.card-title {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.card-text {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 0.9rem;
}

/* Significance Section */
.significance-content {
    max-width: 1000px;
    margin: 0 auto;
}

.subsection-title {
    text-align: center;
    margin: 1.5rem 0 1rem;
    color: #d4af37;
}

.spiritual-text {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.attribute-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.attribute-card:hover {
    transform: scale(1.05);
    background: rgba(212, 175, 55, 0.15);
}

.attribute-symbol {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Custom Damru Symbol - Better representation */
.damru-symbol {
    font-size: 3rem !important;
    font-family: serif;
    letter-spacing: -0.5rem;
    position: relative;
}

.damru-symbol::before {
    content: ")(";
    position: absolute;
    color: #d4af37;
    font-size: 2.5rem;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    letter-spacing: -0.7rem;
}

.damru-symbol::after {
    content: "•  •";
    position: absolute;
    font-size: 0.6rem;
    color: #d4af37;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 1.2rem;
}

.attribute-card h4 {
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.attribute-card p {
    font-size: 0.9rem;
}

/* Sanskriti Bridge Section */
.shloka-container-single {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.shloka-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.shloka-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.03) 0%, rgba(212, 175, 55, 0.08) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.shloka-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: shloka-glow 8s ease-in-out infinite;
}

.sanskrit-text {
    font-size: 1rem;
    color: #d4af37;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-family: 'Lora', serif;
}

.transliteration {
    text-align: center;
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 0.7rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.translation {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 0.7rem;
}

.translation strong {
    color: #d4af37;
}

.explanation {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #c0c0c0;
    font-style: italic;
    line-height: 1.4;
}

.translation p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Devotion Section */
.devotion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.devotion-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.devotion-card h3 {
    font-size: 0.95rem;
}

.devotion-card p {
    font-size: 0.9rem;
}

.devotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.symbol-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
}

/* Lingam Symbol */
.lingam-symbol {
    width: 60px;
    height: 80px;
    background: linear-gradient(to bottom, #d4af37, #a88729);
    border-radius: 50% / 40%;
    margin: 10px auto;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.lingam-symbol::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #d4af37;
    border-radius: 50%;
}

/* Nataraja Symbol */
.nataraja-symbol {
    width: 100px;
    height: 100px;
    border: 3px solid #d4af37;
    border-radius: 50%;
    position: relative;
}

.nataraja-symbol::before {
    content: '☉';
    position: absolute;
    font-size: 50px;
    color: #d4af37;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Rudraksha Symbol */
.rudraksha-symbol {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #8b6914 0%, #d4af37 100%);
    border-radius: 50%;
    margin: 30px auto;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.rudraksha-symbol::before,
.rudraksha-symbol::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 35px;
    background: inherit;
    border-radius: 50%;
    box-shadow: inherit;
}

.rudraksha-symbol::before {
    top: -20px;
    left: -20px;
}

.rudraksha-symbol::after {
    top: -20px;
    right: -20px;
}

/* Audio Section */
.audio-section {
    text-align: center;
    margin: 1rem auto;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    max-width: 700px;
}

.audio-title {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.audio-description {
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.spiritual-audio {
    width: 100%;
    max-width: 400px;
    margin: 0.5rem auto;
    opacity: 0.8;
    height: 35px;
}

.spiritual-audio:hover {
    opacity: 1;
}

.audio-note {
    margin-top: 0.5rem;
    color: #d4af37;
    font-style: italic;
    font-size: 0.85rem;
}

.audio-alternative {
    margin-top: 0.5rem;
}

.audio-instruction {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 0.2rem 0;
}

/* Play Prompt Overlay */
.play-prompt {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    padding: 2rem;
    background: rgba(10, 15, 28, 0.9);
    border: 2px solid #d4af37;
    border-radius: 15px;
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .play-prompt {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.sacred-footer {
    background: linear-gradient(to bottom, #0a0f1c, #050a15);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.blessing-text {
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.blessing-meaning {
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 2rem;
}

.footer-divider {
    margin: 2rem 0;
}

.om-divider {
    font-size: 1.5rem;
    color: #d4af37;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.footer-dedication p {
    color: #e0e0e0;
    margin: 0.5rem 0;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ==========================================
   DIVINE ANIMATIONS
   ========================================== */

/* Breathing Animation */
@keyframes breathing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

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

/* Flickering Animation (Diya/Lamp Effect) */
@keyframes flicker {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    20% {
        opacity: 0.9;
        filter: brightness(1.1);
    }

    40% {
        opacity: 0.95;
        filter: brightness(0.9);
    }

    60% {
        opacity: 0.85;
        filter: brightness(1.2);
    }

    80% {
        opacity: 0.9;
        filter: brightness(0.95);
    }
}

.flickering {
    animation: flicker 3s ease-in-out infinite;
}

/* Pulsing Animation (Third Eye) */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 30px #d4af37;
    }

    50% {
        box-shadow: 0 0 60px #d4af37, 0 0 90px rgba(212, 175, 55, 0.5);
    }
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

/* Golden Glow Animation */
@keyframes golden-glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.4);
    }
}

.golden-glow {
    animation: golden-glow 3s ease-in-out infinite;
}

/* Rotating Animation (Damru) */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotate 10s linear infinite;
}

/* Shloka Glow Animation */
@keyframes shloka-glow {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

/* Floating Om Animation */
@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================
   FLOATING ELEMENTS
   ========================================== */

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.floating-om {
    position: absolute;
    color: rgba(212, 175, 55, 0.1);
    font-size: 2rem;
    animation: float-up 20s linear infinite;
}

.floating-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.floating-2 {
    left: 50%;
    animation-delay: 7s;
    animation-duration: 22s;
}

.floating-3 {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 25s;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet Styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }


    .hero-section {
        min-height: auto;
    }

    .meaning-grid,
    .attributes-grid,
    .devotion-gallery {
        grid-template-columns: 1fr;
    }

    .shloka-container {
        grid-template-columns: 1fr;
    }

    .shloka-card {
        padding: 1.5rem;
    }

    .sanskrit-text {
        font-size: 1.4rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .divine-title {
        letter-spacing: 0.1em;
    }

    .hero-section {
        min-height: auto;
    }


    .meaning-card,
    .shloka-card {
        padding: 1.2rem;
    }

    .shloka-container {
        grid-template-columns: 1fr;
    }

    .sanskrit-text {
        font-size: 1.2rem;
    }

    .audio-section {
        padding: 1.5rem;
    }

    .floating-om {
        font-size: 1.5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1400px;
    }

    .hero-section {
        min-height: auto;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .floating-elements,
    .audio-section,
    .hero-section {
        display: none;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .sanskrit-text,
    .card-title {
        color: black;
    }

    .content-section {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Enhancement (System Preference) */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #f5f5f5 100%);
    }

    .content-section {
        background: white;
    }

    .dark-section {
        background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    }

    p,
    .card-text,
    .spiritual-text {
        color: #333;
    }

    .english-tagline,
    .transliteration,
    .footer-dedication p {
        color: #555;
    }

    .sacred-header,
    .hero-section {
        background: linear-gradient(180deg, #e8f0ff 0%, #d6e4ff 100%);
    }
}