/* =========================================================
   GLOBAL THEME & SECTION GLOWS
   ========================================================= */

/* The background theme: Deep space purple (#0f061c) */
body,
#main-content,
.content-area,
.elementor-page,
.site-content {
    background: #0f061c !important;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

/* Glowing Border Line applied to each major section */
.mars-welcome-section,
.mars-learning-section,
.mars-slider-wrapper,
.testimonials-section {
    background-color: transparent !important; /* Let the global theme show through */
    border-top: 2px solid rgba(0, 246, 254, 0.4);
    border-bottom: 2px solid rgba(0, 246, 254, 0.4);
    box-shadow: 0 0 15px rgba(0, 246, 254, 0.1), inset 0 0 10px rgba(0, 246, 254, 0.05);
    animation: globalSectionGlow 4s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes globalSectionGlow {
    from {
        box-shadow: 0 0 15px rgba(0, 246, 254, 0.1), inset 0 0 10px rgba(0, 246, 254, 0.05);
        border-color: rgba(0, 246, 254, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 246, 254, 0.4), inset 0 0 20px rgba(0, 246, 254, 0.15);
        border-color: rgba(0, 246, 254, 0.8);
    }
}

/* =========================================================
   PER-SECTION VIDEO BACKGROUND (Research Page Style)
   ========================================================= */

/* The video element inside each section */
.section-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Dark overlay on top of the video for readability */
.section-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(1, 6, 28, 0.65),
        rgba(1, 6, 28, 0.65)
    );
    z-index: 1;
    pointer-events: none;
}

.global-bg-overlay {
    position: absolute;
    inset: 0;
    background: #0f061c;
    opacity: 0.75;
    z-index: 1;
    pointer-events: none;
}

.global-glow {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.15), transparent 40%), radial-gradient(circle at 80% 80%, rgba(123, 92, 255, 0.12), transparent 40%);
}
