/* NM Particle Cloud Style v1.4.2 */

.nm-particle-wrapper {
    width: 100%;
    height: var(--nm-particle-height, 100%);
    min-height: min(400px, 100%);
    position: relative !important;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
    --nm-particle-btn-color: #ffffff;
    --nm-particle-btn-glow: #00ffff;
    --nm-gradient-start: #050510;
    --nm-gradient-end: #001f2f;
    --nm-overlay-title-color: #ffffff;
    --nm-overlay-text-color: rgba(255, 255, 255, 0.86);
    --nm-overlay-panel-bg: rgba(10, 14, 24, 0.42);
    --nm-overlay-button-text: #ffffff;
    --nm-overlay-button-bg: rgba(255, 255, 255, 0.12);
    --nm-overlay-button-border: rgba(255, 255, 255, 0.26);
    --nm-overlay-max-width: 560px;
}

.nm-particle-wrapper.nm-hero-fullscreen {
    min-height: 100vh !important;
    height: 100vh !important;
}

.nm-particle-wrapper.nm-bg-color {
    background: var(--nm-background-color, #050510);
}

.nm-particle-wrapper.nm-bg-gradient {
    background: radial-gradient(circle at 50% 45%, var(--nm-gradient-end) 0%, var(--nm-gradient-start) 68%);
}

.nm-three-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: filter 0.25s ease;
}

.nm-particle-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: clamp(24px, 4vw, 54px);
    pointer-events: none;
}

.nm-overlay-pos-left {
    justify-content: flex-start;
    text-align: left;
}

.nm-overlay-pos-center {
    justify-content: center;
    text-align: center;
}

.nm-overlay-pos-right {
    justify-content: flex-end;
    text-align: right;
}

.nm-overlay-panel {
    width: min(100%, var(--nm-overlay-max-width));
    color: var(--nm-overlay-text-color);
    pointer-events: auto;
}

.nm-overlay-panel-glass,
.nm-overlay-panel-solid {
    border-radius: 24px;
    padding: clamp(22px, 2.7vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.nm-overlay-panel-glass {
    background: var(--nm-overlay-panel-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nm-overlay-panel-solid {
    background: var(--nm-overlay-panel-bg);
}

.nm-overlay-panel-text {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.nm-overlay-title {
    margin: 0;
    color: var(--nm-overlay-title-color);
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    text-wrap: balance;
}

.nm-overlay-description {
    margin-top: 16px;
    color: var(--nm-overlay-text-color);
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.65;
    max-width: 46ch;
}

.nm-overlay-pos-center .nm-overlay-description {
    margin-left: auto;
    margin-right: auto;
}

.nm-overlay-pos-right .nm-overlay-description {
    margin-left: auto;
}

.nm-overlay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid var(--nm-overlay-button-border);
    background: var(--nm-overlay-button-bg);
    color: var(--nm-overlay-button-text) !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.nm-overlay-button:hover,
.nm-overlay-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
    outline: none;
}

.nm-overlay-button-static {
    cursor: default;
}

.nm-audio-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: 2px solid var(--nm-particle-btn-color) !important;
    color: var(--nm-particle-btn-color) !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 50% !important;
    position: absolute !important;
    z-index: 100;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px !important;
    line-height: 1 !important;
    text-shadow: 0 0 10px var(--nm-particle-btn-glow);
    box-shadow: 0 0 10px var(--nm-particle-btn-glow), inset 0 0 5px var(--nm-particle-btn-glow);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.nm-audio-toggle:hover,
.nm-audio-toggle:focus-visible,
.nm-audio-toggle.is-playing {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 16px var(--nm-particle-btn-glow), inset 0 0 8px var(--nm-particle-btn-glow);
}

.nm-audio-toggle:focus-visible {
    outline: 2px solid var(--nm-particle-btn-color);
    outline-offset: 4px;
}

.nm-pos-top-left {
    top: 20px;
    left: 20px;
    bottom: auto;
    right: auto;
}

.nm-pos-top-right {
    top: 20px;
    right: 20px;
    bottom: auto;
    left: auto;
}

.nm-pos-bottom-left {
    bottom: 20px;
    left: 20px;
    top: auto;
    right: auto;
}

.nm-pos-bottom-right {
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
}

.nm-icon-play {
    margin-left: 3px;
}

.nm-icon-pause {
    display: none;
    font-size: 17px;
    letter-spacing: -2px;
}

@media (max-width: 767px) {
    .nm-particle-wrapper.nm-hero-fullscreen {
        min-height: 100svh !important;
        height: 100svh !important;
    }

    .nm-particle-overlay {
        padding: 20px;
        align-items: flex-end;
    }

    .nm-overlay-panel-glass,
    .nm-overlay-panel-solid {
        padding: 20px;
        border-radius: 20px;
    }

    .nm-overlay-title {
        font-size: clamp(26px, 9vw, 40px);
    }

    .nm-overlay-description {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.58;
    }

    .nm-overlay-button {
        margin-top: 20px;
        min-height: 44px;
        padding: 12px 20px;
    }

    .nm-audio-toggle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 17px !important;
    }

    .nm-pos-top-left,
    .nm-pos-top-right {
        top: 14px;
    }

    .nm-pos-bottom-left,
    .nm-pos-bottom-right {
        bottom: 14px;
    }

    .nm-pos-top-left,
    .nm-pos-bottom-left {
        left: 14px;
    }

    .nm-pos-top-right,
    .nm-pos-bottom-right {
        right: 14px;
    }
}


/* DIGIKROM Static Hybrid integration */
.dkwl-stage > .nm-particle-wrapper,
.dkwl-live-frame-inner > .nm-particle-wrapper,
.dkwl-modal-stage > .nm-particle-wrapper {
    width: 100%;
    height: 100%;
    min-height: 100%;
}
.nm-particle-wrapper[data-dgk-particle-cloud] {
    font-family: var(--dgk-brand-font, Arial, Helvetica, sans-serif);
}
.nm-particle-wrapper[hidden] { display:none !important; }
