:root {
    --primary: #fa3922; /* Vibrant Saffron / Orange-Red */
    --secondary: #3b1d5a; /* Deep Purple */
    --bg-color: #f7f3ed; /* Soft warm background */
    --paper-color: #ffffff;
    --text-main: #3b1d5a; 
    --text-muted: #6b5c7a;
    --border-color: #e5d5c5;
    --glow: rgba(250, 57, 34, 0.4);
    
    --font-heading: 'Vesper Libre', serif; /* Elegant spiritual serif */
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-color);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    line-height: 1.6;
}

/* Header Navigation */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    border-bottom: 2px solid var(--primary);
}

.header-logo {
    height: 35px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Main Container */
.scroll-container {
    padding-top: 60px; 
}

/* Utils */
.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.mt-auto { margin-top: auto; }
.mt-3 { margin-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-6 { padding-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }

/* Sections */
.section-container {
    min-height: calc(100vh - 60px);
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.bg-paper {
    background-color: var(--paper-color);
    margin: 1.5rem auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    max-width: 800px;
    width: calc(100% - 3rem);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* BRAND NEW HIGH-END COVER SECTION */
.cover-section {
    background: linear-gradient(135deg, #fff9ee 0%, #ffebd1 100%);
    margin: 0;
    border-radius: 0;
    padding-top: 2rem;
    position: relative;
    overflow: hidden;
}

/* Exquisite mandala or sunburst vector background */
.luxury-mandala {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0c27.614 0 50 22.386 50 50s-22.386 50-50 50S0 77.614 0 50 22.386 0 50 0zm0 4C24.594 4 4 24.594 4 50s20.594 46 46 46 46-20.594 46-46S75.406 4 50 4zm0 18c15.464 0 28 12.536 28 28s-12.536 28-28 28-28-12.536-28-28 12.536-28 28-28zm0 4c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm0 9c8.284 0 15 6.716 15 15s-6.716 15-15 15-15-6.716-15-15 6.716-15 15-15zm0 4c-6.075 0-11 4.925-11 11s4.925 11 11 11 11-4.925 11-11-4.925-11-11-11z' fill='%23fa3922' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    pointer-events: none;
    animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(250, 57, 34, 0.2);
    box-shadow: 0 10px 40px rgba(59, 29, 90, 0.08);
    padding: 3rem 1.5rem;
    border-radius: 16px;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
}

.hero-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hero-card h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.15;
    color: var(--secondary);
    font-weight: 700;
}

.hero-divider {
    height: 2px;
    width: 60px;
    background: var(--primary);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.hero-card .subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 280px;
    margin: 0 auto;
}

/* Scroll Identifier */
.scroll-indicator {
    cursor: pointer;
    color: var(--primary);
    transition: all 0.3s ease;
    margin-top: 3rem;
}

.scroll-indicator:hover {
    color: var(--secondary);
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.bouncing-arrow {
    font-size: 1.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Typography */
.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.list-subtitle {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
}

/* Checklists */
.progress-section {
    margin-bottom: 1.5rem;
    background: rgba(250, 57, 34, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px dashed rgba(250, 57, 34, 0.2);
}

.progress-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar-container {
    height: 8px;
    background: rgba(59, 29, 90, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist {
    list-style: none;
}

.check-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.check-item:last-child {
    border-bottom: none;
}

.check-item:hover {
    background: rgba(250, 57, 34, 0.03);
}

.check-box {
    width: 24px;
    height: 24px;
    border: 2px solid var(--secondary);
    border-radius: 6px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
}

.check-box i {
    color: white;
    font-size: 14px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.check-item.checked .check-box {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow);
}

.check-item.checked .check-box i {
    transform: scale(1);
}

.check-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.check-item.checked .check-text {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--primary);
    opacity: 0.7;
}

/* Grid Checklist for 52 Shakti Peethas */
.grid-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
    padding: 0 5px 15px 5px;
}
.grid-checklist .check-item {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.grid-checklist .check-item:hover {
    border-color: var(--primary);
    background: white;
}
.grid-checklist .check-text {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grid-checklist .check-box {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
    border-width: 1px;
}
.grid-checklist .check-box i {
    font-size: 11px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 8px 4px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-heading);
    text-align: center;
}

/* Completion Section */
.completion-section {
    background: linear-gradient(135deg, var(--secondary), #200f33);
    color: white;
    margin: 0;
    border-radius: 0;
    position: relative;
}

.completion-inner {
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.prayer-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.completion-inner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stats-box {
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 1.5rem;
}

.stats-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--border-color);
}

.stats-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
    line-height: 1;
}

.completion-msg {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow);
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--glow);
    background: #e62c15;
}

.solid-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: none;
}
.solid-btn:hover {
    background: white;
    color: var(--secondary);
    border-color: white;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Base animations */
.item-anim {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}
@keyframes fadeUp {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Print Specific Rules */
.print-only {
    display: none;
}

@media print {
    body {
        background: white !important;
    }
    .background-texture,
    header,
    main,
    .scroll-top-btn,
    .scroll-indicator,
    .action-buttons,
    audio,
    #scrollTopBtn {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: white;
        z-index: 9999;
    }
}

/* Mobile-Specific Refinements */
@media (max-width: 768px) {
    .luxury-mandala {
        width: 150vw;
        height: 150vw;
    }
    .hero-card {
        padding: 2.5rem 1rem;
        margin: 0 1.5rem;
    }
    .hero-card h1 {
        font-size: 2.5rem;
    }
    .hero-card .subtitle {
        font-size: 1rem;
    }
    .page-header h2 {
        font-size: 1.8rem;
    }
    .bg-paper {
        margin: 1rem auto;
        width: calc(100% - 2rem);
    }
    .section-container {
        padding: 2.5rem 1rem;
    }
    /* Smaller grid for 52 items on tiny phones */
    .grid-checklist {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
