/* ============================================================
   ElementorShatterConstellation — shatter-constellation.css
   ============================================================ */

/* Wrapper */
.esc-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    box-sizing: border-box;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Canvas */
.sc-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

/* ── Custom cursor ─────────────────────────────────────── */
.sc-cursor {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(200, 230, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.12s, height 0.12s, background 0.12s, border-color 0.12s;
    z-index: 10;
    mix-blend-mode: screen;
}

.esc-wrapper:hover .sc-cursor {
    width: 36px;
    height: 36px;
    background: rgba(200, 230, 255, 0.06);
    border-color: rgba(200, 230, 255, 1);
}

/* ── Hint overlay ──────────────────────────────────────── */
.sc-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-family: sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 12;
    transition: opacity 0.5s ease;
}

.sc-hint.hidden {
    opacity: 0;
}

/* ── Loader ────────────────────────────────────────────── */
.sc-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: inherit;
    transition: opacity 0.6s ease;
}

.sc-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.sc-loader-ring {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(200, 230, 255, 0.12);
    border-top-color: rgba(200, 230, 255, 0.85);
    border-radius: 50%;
    animation: sc-spin 0.9s linear infinite;
}

@keyframes sc-spin {
    to { transform: rotate(360deg); }
}

/* ── Nav dots ──────────────────────────────────────────── */
.sc-nav-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.sc-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(200, 230, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.sc-nav-dot.active {
    background: rgba(200, 230, 255, 0.9);
    transform: scale(1.35);
}

/* ── Lightbox ──────────────────────────────────────────── */
.sc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sc-lightbox.open {
    visibility: visible;
    opacity: 1;
}

.sc-lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.sc-lb-content {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: sc-lb-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes sc-lb-in {
    from { transform: scale(0.8) translateY(24px); opacity: 0; }
    to   { transform: scale(1) translateY(0);      opacity: 1; }
}

.sc-lb-img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(200,230,255,0.15), 0 30px 80px rgba(0,0,0,0.85);
    display: block;
}

.sc-lb-title {
    color: rgba(200, 230, 255, 0.65);
    font-size: 14px;
    font-family: sans-serif;
    margin: 0;
    text-align: center;
}

.sc-lb-close,
.sc-lb-download {
    position: absolute;
    top: -50px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    border: 1px solid rgba(200, 230, 255, 0.2);
    background: rgba(200, 230, 255, 0.07);
    color: rgba(200, 230, 255, 0.85);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(6px);
}

.sc-lb-download {
    right: 46px;
    font-size: 20px;
}

.sc-lb-close:hover,
.sc-lb-download:hover {
    background: rgba(200, 230, 255, 0.18);
    transform: scale(1.1);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .esc-wrapper { cursor: auto; }
    .sc-cursor   { display: none; }
}
