/*Sidebar section starts here */

/* Quantum Background */
.quantum-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--quantum-void);
}

.quantum-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--plasma-core);
    opacity: 0.3;
    animation: float 15s infinite linear;
}

.quantum-energy-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
        transparent 0%,
        rgba(0, 240, 255, 0.1) 40%,
        transparent 70%);
    animation: pulse 8s infinite alternate;
}

/* Quantum Loader */
.quantum-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 8, 20, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out;
}

.quantum-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.quantum-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--plasma-core);
    box-shadow: var(--core-pulse);
    animation: core-pulse 2s infinite alternate;
}

.quantum-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--neon-signature);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loading-text {
    color: var(--light-bridge);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(230, 247, 255, 0.5);
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--plasma-core), var(--neon-signature));
    animation: loading 3s forwards;
}

/* Celestial Banner */
.quantum-banner {
  margin-top: 40px;
    position: relative;
    height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: var(--hologram-thickness) solid var(--plasma-core);
    box-shadow: var(--core-pulse);
}

.starry-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, var(--light-bridge) 1px, transparent 1px),
        radial-gradient(1px 1px at 80% 70%, var(--light-bridge) 1px, transparent 1px),
        radial-gradient(1px 1px at 40% 20%, var(--light-bridge) 1px, transparent 1px),
        radial-gradient(1px 1px at 60% 90%, var(--light-bridge) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: stars-move 50s linear infinite;
}

.banner-title-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.quantum-banner-title {
    font-size: 4rem;
    margin: 0;
    color: var(--light-bridge);
    text-shadow:
        var(--core-pulse),
        var(--hologram-edge);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--plasma-core), transparent);
    margin: 15px auto;
}

.celestial-orbs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.orb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    animation: orb-float 3s infinite ease-in-out;
}

.orb-primary {
    background: var(--plasma-core);
    box-shadow: var(--core-pulse);
}

.orb-secondary {
    background: var(--neon-signature);
    box-shadow: var(--hologram-edge);
    animation-delay: 0.5s;
}

.orb-tertiary {
    background: var(--hologram-purple);
    box-shadow: var(--neural-flare);
    animation-delay: 1s;
}

/* Quantum Grid System */
.quantum-grid-system {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

/* Holographic Sidebar */
.quantum-sidebar-hologram {
    /* Changed from fixed positioning */
    position: sticky;
    top: 40px; /* How far from the top of the viewport it should stick */
    height: fit-content; /* Allows the sidebar to only take up necessary height */
    /* If you want it to scroll within a defined height after sticking, you can adjust this,
       but 'fit-content' is generally good for sticky sidebars. */

    background: var(--dark-energy);
    border: var(--hologram-thickness) solid var(--plasma-core);
    border-radius: 10px;
    box-shadow:
        inset 0 0 30px rgba(0, 247, 167, 0.1),
        var(--core-pulse);
    overflow: hidden; /* Keeps internal content within bounds */
    z-index: 10; /* Ensure it stays above other content if needed */

    /* Adding transitions for a smoother look when it sticks/unsticks */
    transition: all 0.3s ease-in-out;
}


.hologram-header {
    padding: 20px;
    background: linear-gradient(90deg, rgba(0, 247, 167, 0.2), transparent);
    border-bottom: 1px solid var(--plasma-core);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.holo-title {
    color: var(--plasma-core);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--plasma-core);
}

.holo-icon {
    color: var(--neon-signature);
    font-size: 1.5rem;
    text-shadow: var(--hologram-edge);
}

.holo-content {
    padding: 20px;
}

.holo-footer {
    height: 10px;
    background: linear-gradient(90deg, var(--plasma-core), var(--neon-signature));
    opacity: 0.5;
}

/* Sacred Gallery Grid */
.sacred-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.sacred-gallery-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--dark-energy);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.3);
    transition: var(--quantum-shift);
}

.sacred-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        var(--hologram-edge);
    border-color: var(--plasma-core);
}

.divine-image-frame {
    position: relative;
    overflow: hidden;
}

.holy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--quantum-shift);
}

.halo-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
        transparent 0%,
        rgba(0, 247, 167, 0.1) 40%,
        transparent 70%);
    opacity: 0;
    transition: var(--hologram-phase);
}

.divine-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: var(--hologram-phase);
}

.sacred-gallery-item:hover .holy-image {
    transform: scale(1.05);
}

.sacred-gallery-item:hover .halo-effect {
    opacity: 1;
}

.sacred-gallery-item:hover .divine-shimmer {
    left: 150%;
}

.sacred-text-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sacred-title {
    color: var(--plasma-core);
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--plasma-core);
}

.sacred-desc {
    color: var(--light-bridge);
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
}

.divine-link {
    display: inline-flex;
    align-items: center;
    color: var(--neon-signature);
    text-decoration: none;
    transition: var(--quantum-shift);
    align-self: flex-start;
}

.link-text {
    margin-right: 10px;
    letter-spacing: 1px;
}

.link-icon {
    transition: var(--quantum-shift);
}

.divine-link:hover {
    color: var(--plasma-core);
    text-shadow: 0 0 10px var(--plasma-core);
}

.divine-link:hover .link-icon {
    transform: translateX(5px);
}

/* Empty State */
.quantum-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--dark-energy);
    border-radius: 10px;
    border: 1px dashed var(--plasma-core);
    position: relative;
    overflow: hidden;
}

.empty-icon {
    font-size: 3rem;
    color: var(--plasma-core);
    margin-bottom: 20px;
    text-shadow: var(--core-pulse);
}

.empty-message {
    color: var(--light-bridge);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.prayer-beam {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,
        transparent,
        var(--plasma-core),
        transparent);
    animation: beam-scan 3s infinite;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(20px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes pulse {
    0% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
    100% { opacity: 0.1; transform: scale(1); }
}

@keyframes core-pulse {
    0% { box-shadow: 0 0 5px var(--plasma-core); }
    100% { box-shadow: 0 0 20px var(--plasma-core); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes stars-move {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

@keyframes orb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes beam-scan {
    0% { bottom: 0; }
    50% { bottom: 100%; }
    51% { bottom: 0; }
    100% { bottom: 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quantum-grid-system {
        grid-template-columns: 1fr;
    }

    .quantum-sidebar-hologram {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .quantum-banner-title {
        font-size: 2.5rem;
    }

    .sacred-gallery-item {
        grid-template-columns: 1fr;
    }

    .sacred-text-container {
        padding: 20px;
    }

    .quantum-grid-system {
        padding: 20px;
        gap: 20px;
    }
}

/* AOS Animation for Quantum Reveal */
[data-aos="quantum-reveal"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: transform, opacity;
}

[data-aos="quantum-reveal"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
/*Single page Media section*/
:root {
    /* Quantum Color Scheme */
    --quantum-void: #000814;
    --plasma-core: #00f7a7;
    --neon-signature: #00f0ff;
    --hologram-purple: #bd00ff;
    --dark-energy: #001220;
    --light-bridge: #e6f7ff;

    /* Effects */
    --core-pulse: 0 0 25px rgba(0, 247, 167, 0.8);
    --hologram-edge: 0 0 35px rgba(0, 240, 255, 0.6);
    --neural-flare: 0 0 30px rgba(189, 0, 255, 0.7);

    /* Transitions */
    --quantum-shift: all 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    --hologram-phase: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background: var(--quantum-void);
    color: var(--light-bridge);
    overflow-x: hidden;
}

/* Quantum Background */
.quantum-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.quantum-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--plasma-core);
    opacity: 0.1;
    animation: float 15s infinite linear;
}

/* Banner Styles */
.quantum-banner {
    position: relative;
    height: 30vh;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0,8,20,0.7) 0%,
        rgba(0,18,32,0.9) 100%);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.banner-title h1 {
    font-size: 3rem;
    margin: 0;
    color: var(--light-bridge);
    text-shadow: var(--core-pulse);
    letter-spacing: 3px;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--plasma-core), transparent);
    margin: 15px auto;
}

/* Content Layout */
.quantum-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Main Content */
.quantum-main-content {
    display: flex;
    flex-direction: column;
}

.quantum-media-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.quantum-media-card {
    background: var(--dark-energy);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--plasma-core);
    box-shadow: var(--core-pulse);
}

.quantum-media-display {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.media-hologram {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
        rgba(0, 247, 167, 0.1) 0%,
        transparent 70%);
    z-index: 1;
}

.quantum-media-image,
.quantum-media-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

.quantum-media-video {
    background: #000;
}

.quantum-info-card {
    background: rgba(0, 18, 32, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--neon-signature);
    box-shadow: var(--hologram-edge);
}

.info-title {
    font-size: 2rem;
    margin: 0 0 20px 0;
    color: var(--plasma-core);
    text-shadow: var(--core-pulse);
}

.info-description {
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--light-bridge);
}

.quantum-meta-data {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--neon-signature);
    font-size: 0.9rem;
}

.meta-icon {
    font-size: 1.2rem;
}

/* Sidebar Styles */
.quantum-sidebar {
    background: var(--dark-energy);
    border-radius: 12px;
    border: 1px solid var(--hologram-purple);
    box-shadow: var(--neural-flare);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(90deg,
        rgba(189, 0, 255, 0.2),
        transparent);
    border-bottom: 1px solid var(--hologram-purple);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    margin: 0;
    color: var(--plasma-core);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.sidebar-icon {
    color: var(--neon-signature);
    font-size: 1.5rem;
}

.sidebar-content {
    padding: 20px;
}

/* Error States */
.quantum-error {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    color: #ff4d4d;
    border: 1px dashed #ff4d4d;
    border-radius: 8px;
    background: rgba(255, 77, 77, 0.1);
}

.error-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.error-pulse {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,
        transparent,
        #ff4d4d,
        transparent);
    animation: beam-scan 3s infinite;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(20px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes beam-scan {
    0% { bottom: 0; }
    50% { bottom: 100%; }
    51% { bottom: 0; }
    100% { bottom: 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quantum-content-wrapper {
        grid-template-columns: 1fr;
    }

    .quantum-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .banner-title h1 {
        font-size: 2rem;
    }

    .quantum-content-wrapper {
        padding: 0 15px;
    }

    .info-title {
        font-size: 1.5rem;
    }

    .quantum-media-container {
        gap: 20px;
    }
}