/* ==========================================================================
   Mirror Hall - Divi MotionCraft Styles
   Fully compatible with Divi 4 and Divi 5 (Frontend and Visual Builder)
   ========================================================================== */

@property --glow {
    syntax: "<color>";
    inherits: true;
    initial-value: #38bdf8;
}

.et_pb_mirror_hall {
    --bg: #03040c;
    --ink: #eef2ff;
    --mute: #f8f8f8;
    --line: rgba(255, 255, 255, 0.16);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
    --glow: #38bdf8;
    --ch: 480px;
    --mh-stage-gap: 80px;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--ink);
    font-family: var(--sans);
    background-color: var(--bg);
    padding: 100px 20px 200px 20px;
    box-sizing: border-box;
    transition: --glow 1.2s ease, background-color 0.4s ease;
}

.et_pb_mirror_hall *,
.et_pb_mirror_hall *::before,
.et_pb_mirror_hall *::after {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

/* Atmospheric Ambient Gradients */
.et_pb_mirror_hall .mh-ambient-vignette {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(3, 4, 12, 0.88)),
        radial-gradient(ellipse 60% 30% at 50% 84%,
            color-mix(in srgb, var(--glow) 30%, transparent),
            transparent 70%);
}

.et_pb_mirror_hall .mh-noise-layer {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Blurred Dynamic Slider Background */
.et_pb_mirror_hall .mh-bgs {
    position: absolute;
    inset: -12%;
    z-index: 0;
    filter: blur(56px) saturate(1.5) brightness(0.55);
    pointer-events: none;
    overflow: hidden;
    transition: filter 0.4s ease;
}

.et_pb_mirror_hall .mh-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.et_pb_mirror_hall .mh-bg.on {
    opacity: 1;
    animation: mhKen 14s ease-out forwards;
}

.et_pb_mirror_hall.no-ken-burns .mh-bg.on {
    animation: none !important;
}

/* Custom Background (Solid Color & Layered Linear Gradient) */
.et_pb_mirror_hall.mh-use-custom-bg .mh-bgs,
.et_pb_mirror_hall[data-bg-type="custom"] .mh-bgs,
.et_pb_mirror_hall[data-bg-type="gradient"] .mh-bgs,
.et_pb_mirror_hall.mh-use-custom-bg .mh-ambient-vignette,
.et_pb_mirror_hall[data-bg-type="custom"] .mh-ambient-vignette,
.et_pb_mirror_hall[data-bg-type="gradient"] .mh-ambient-vignette {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.et_pb_mirror_hall.mh-use-custom-bg::before,
.et_pb_mirror_hall[data-bg-type="custom"]::before,
.et_pb_mirror_hall[data-bg-type="gradient"]::before {
    display: none !important;
    opacity: 0 !important;
}

@keyframes mhKen {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.2) translate(-2%, 1%);
    }
}

/* ===== Header & Titles ===== */
.et_pb_mirror_hall .mh-top {
    position: relative;
    z-index: 7;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0 auto;
    max-width: 900px;
}

.et_pb_mirror_hall .mh-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    padding: 0 0.1em 0.06em;
    margin: 0;
    background: linear-gradient(180deg, #fff 20%, #b9c6f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: mhRise 1.1s 0.1s var(--ease) both;
}

.et_pb_mirror_hall .mh-desc {
    font-family: var(--sans);
    font-size: clamp(0.88rem, 1.6vw, 1.05rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: var(--mute);
    max-width: 42ch;
    margin: 0;
    animation: mhRise 1.1s 0.3s var(--ease) both;
}

@keyframes mhRise {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

/* ===== 3D Stage & Carousel ===== */
.et_pb_mirror_hall .mh-stage {
    position: relative;
    z-index: 5;
    flex: 1 1 auto;
    min-height: 380px;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    cursor: grab;
    outline: none;
    margin: var(--mh-stage-gap, 80px) -20px 0 -20px;
}

.et_pb_mirror_hall .mh-stage:active {
    cursor: grabbing;
}

.et_pb_mirror_hall .mh-stage.cur-on {
    cursor: none;
}

.et_pb_mirror_hall .mh-stage:focus-visible {
    outline: 1px dashed var(--glow);
    outline-offset: -8px;
}

.et_pb_mirror_hall .mh-rig {
    position: relative;
    height: var(--ch);
    width: calc(var(--ch) * 0.69);
    margin-bottom: 5%;
}

.et_pb_mirror_hall .mh-carousel {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.et_pb_mirror_hall .mh-card {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    cursor: pointer;
}

.et_pb_mirror_hall .mh-glow {
    position: absolute;
    inset: -34%;
    background: radial-gradient(closest-side, var(--a), transparent);
    opacity: calc(var(--act, 0) * 0.5);
    pointer-events: none;
}

.et_pb_mirror_hall .mh-face {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    background: linear-gradient(155deg, var(--a), var(--b) 55%, var(--c));
}

.et_pb_mirror_hall .mh-face img,
.et_pb_mirror_hall .mh-refl img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.et_pb_mirror_hall .mh-card.rdy img {
    opacity: 1;
}

/* Fluid Blobs for Loading / Fallback */
.et_pb_mirror_hall .mh-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.et_pb_mirror_hall .mh-blobs i {
    position: absolute;
    width: 95%;
    aspect-ratio: 1;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: mhDrift 9s ease-in-out infinite alternate;
}

.et_pb_mirror_hall .mh-blobs i:nth-child(1) {
    left: -30%;
    top: -12%;
    background: radial-gradient(circle, var(--a), transparent 68%);
    opacity: 0.85;
}

.et_pb_mirror_hall .mh-blobs i:nth-child(2) {
    right: -38%;
    top: 32%;
    background: radial-gradient(circle, var(--c), transparent 62%);
    opacity: 0.5;
    animation-duration: 12s;
    animation-delay: -4s;
}

.et_pb_mirror_hall .mh-blobs i:nth-child(3) {
    left: -10%;
    bottom: -40%;
    background: radial-gradient(circle, var(--b), transparent 66%);
    opacity: 0.9;
    animation-duration: 10s;
    animation-delay: -7s;
}

@keyframes mhDrift {
    to {
        transform: translate(22%, 14%) scale(1.25) rotate(40deg);
    }
}

.et_pb_mirror_hall .mh-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: var(--bg);
    opacity: var(--dim, 0);
    pointer-events: none;
}

/* Water reflection */
.et_pb_mirror_hall .mh-refl {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0.32;
    filter: blur(1.8px);
    pointer-events: none;
    background: linear-gradient(155deg, var(--a), var(--b) 55%, var(--c));
    transform: scaleY(-1);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    animation: mhWave 5s ease-in-out infinite alternate;
}

@keyframes mhWave {
    from {
        transform: scaleY(-1) translateY(0) skewX(0);
    }

    to {
        transform: scaleY(-1) translateY(3px) skewX(1.3deg);
    }
}

/* Water floor ripple circles */
.et_pb_mirror_hall .mh-floor {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.et_pb_mirror_hall .mh-floor::before {
    content: "";
    position: absolute;
    width: calc(var(--ch) * 3.6);
    height: calc(var(--ch) * 0.5);
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side,
            color-mix(in srgb, var(--glow) 55%, transparent),
            transparent);
}

.et_pb_mirror_hall .mh-floor i {
    position: absolute;
    width: calc(var(--ch) * 3);
    height: calc(var(--ch) * 0.36);
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--glow) 75%, transparent);
    transform: translate(-50%, -50%) scale(0);
    animation: mhRipple 6s linear infinite;
}

.et_pb_mirror_hall .mh-floor i:nth-child(2) {
    animation-delay: -2s;
}

.et_pb_mirror_hall .mh-floor i:nth-child(3) {
    animation-delay: -4s;
}

@keyframes mhRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0.85;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Custom Interactive Follower Drag Cursor */
.et_pb_mirror_hall .mh-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    pointer-events: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.et_pb_mirror_hall.cur-on .mh-cursor {
    opacity: 1;
}

/* ==========================================================================
   Background Display Modes
   1. Active Slide Image Mode (slider_image - Blurred Dynamic Slide Background)
   2. Standard Background Mode (custom - Divi Background Tab)
   ========================================================================== */

/* Active Slide Image Mode (Default) */
.et_pb_mirror_hall.mh-slider-bg {
    background-color: #03040c !important;
    background-image: none !important;
}

.et_pb_mirror_hall.mh-slider-bg .mh-bgs {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.et_pb_mirror_hall.mh-slider-bg .mh-ambient-vignette {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Suppress Divi native background elements when Active Slide Image mode is active */
.et_pb_mirror_hall.mh-slider-bg .et_pb_section_video_bg,
.et_pb_mirror_hall.mh-slider-bg .et_parallax_bg,
.et_pb_mirror_hall.mh-slider-bg .et_pb_background_pattern,
.et_pb_mirror_hall.mh-slider-bg .et_pb_background_mask {
    display: none !important;
}

/* Standard Background Mode (Solid Color, Linear/Radial Gradient, Image, Video, Pattern, Mask) */
.et_pb_mirror_hall.mh-use-custom-bg .mh-bgs {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.et_pb_mirror_hall.mh-use-custom-bg .mh-ambient-vignette {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.et_pb_mirror_hall.mh-use-custom-bg .mh-noise-layer {
    opacity: 0.04;
}

/* Divi native background elements display in Standard Background Mode */
.et_pb_mirror_hall.mh-use-custom-bg .et_pb_section_video_bg,
.et_pb_mirror_hall.mh-use-custom-bg .et_parallax_bg,
.et_pb_mirror_hall.mh-use-custom-bg .et_pb_background_pattern,
.et_pb_mirror_hall.mh-use-custom-bg .et_pb_background_mask {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.et_pb_mirror_hall .et_pb_section_video_bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* When Ambient Glow & Palettes is Disabled */
.et_pb_mirror_hall.no-ambient-glow .mh-glow,
.et_pb_mirror_hall.no-ambient-glow .mh-blobs {
    display: none !important;
    opacity: 0 !important;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
    .et_pb_mirror_hall .mh-title {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .et_pb_mirror_hall .mh-desc {
        max-width: 36ch;
    }
}

@media (max-width: 767px) {
    .et_pb_mirror_hall .mh-cursor {
        display: none !important;
    }

    .et_pb_mirror_hall .mh-stage.cur-on {
        cursor: grab !important;
    }

    .et_pb_mirror_hall .mh-desc {
        max-width: 32ch;
    }

    .et_pb_mirror_hall .mh-rig {
        --ch: clamp(240px, 45vh, 400px);
        margin-bottom: 8%;
    }
}

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

    .et_pb_mirror_hall *,
    .et_pb_mirror_hall *::before,
    .et_pb_mirror_hall *::after {
        animation: none !important;
        transition: none !important;
    }
}
