/* /Components/CustomCursor.razor.rz.scp.css */
.custom-cursor[b-nj4j2eg8sq] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    /* Hidden until first mousemove — prevents the (0,0) ring artifact on page load */
    opacity: 0;
    transition: opacity 0.18s ease;
    /* Per-state label (used by .cursor-ring::before in active-* states) */
    --cursor-label: '';
}

.custom-cursor.is-ready[b-nj4j2eg8sq] {
    opacity: 1;
}

/* ─── Singularity ───────────────────────────────────────────────── */
.cursor-dot[b-nj4j2eg8sq] {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #05010d;
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Ring (positioner only — JS sets translate on this element) ── */
.cursor-ring[b-nj4j2eg8sq] {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
    will-change: transform;
    /* No size transition on the outer element — child pseudo-elements handle visual change */
}

/* ─── Photon sphere (::before) — also carries the per-state label ─ */
.cursor-ring[b-nj4j2eg8sq]::before {
    content: var(--cursor-label, '');
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(0);
    animation: bh-photon-spin-b-nj4j2eg8sq 6s linear infinite;
    transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Accretion disk (::after) — conic-gradient ring with backdrop blur ─ */
.cursor-ring[b-nj4j2eg8sq]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: conic-gradient(from 0deg, #00d4ff, #ff0080, #00d4ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
    backdrop-filter: blur(3px) saturate(1.3);
    -webkit-backdrop-filter: blur(3px) saturate(1.3);
    transform: translate(-50%, -50%) rotate(-18deg);
    animation: bh-disk-spin-b-nj4j2eg8sq 14s linear infinite reverse;
    transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                backdrop-filter 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Hover state: generic active ───────────────────────────────── */
.custom-cursor.active .cursor-ring[b-nj4j2eg8sq]::after {
    width: 52px;
    height: 52px;
    background: conic-gradient(from 0deg, #33e0ff, #ff3399, #33e0ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
    backdrop-filter: blur(5px) saturate(1.5);
    -webkit-backdrop-filter: blur(5px) saturate(1.5);
}

.custom-cursor.active .cursor-dot[b-nj4j2eg8sq] {
    width: 4px;
    height: 4px;
}

/* ─── Hover state: project / VIEW ───────────────────────────────── */
.custom-cursor.active-view[b-nj4j2eg8sq] {
    --cursor-label: 'VIEW';
}

.custom-cursor.active-view .cursor-ring[b-nj4j2eg8sq]::after {
    width: 72px;
    height: 72px;
    background: conic-gradient(from 0deg, #00d4ff, #ff0080, #00d4ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
    backdrop-filter: blur(5px) saturate(1.5);
    -webkit-backdrop-filter: blur(5px) saturate(1.5);
}

.custom-cursor.active-view .cursor-ring[b-nj4j2eg8sq]::before {
    width: auto;
    min-width: 36px;
    height: 18px;
    padding: 0 0.4rem;
    border-color: transparent;
    background: transparent;
}

/* ─── Hover state: mail ─────────────────────────────────────────── */
.custom-cursor.active-mail[b-nj4j2eg8sq] {
    --cursor-label: '\2709'; /* ✉ */
}

.custom-cursor.active-mail .cursor-ring[b-nj4j2eg8sq]::after {
    width: 65px;
    height: 65px;
    background: conic-gradient(from 0deg, #ff007f, #ff3399, #ff007f) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
    backdrop-filter: blur(5px) saturate(1.5);
    -webkit-backdrop-filter: blur(5px) saturate(1.5);
}

.custom-cursor.active-mail .cursor-ring[b-nj4j2eg8sq]::before {
    width: 22px;
    height: 22px;
    border-color: transparent;
    color: #ff007f;
    font-size: 1.05rem;
    font-family: inherit;
}

/* ─── Hover state: social / external ────────────────────────────── */
.custom-cursor.active-social[b-nj4j2eg8sq] {
    --cursor-label: '\2197'; /* ↗ */
}

.custom-cursor.active-social .cursor-ring[b-nj4j2eg8sq]::after {
    width: 65px;
    height: 65px;
    background: conic-gradient(from 0deg, #00d4ff, #00e5ff, #00d4ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
    backdrop-filter: blur(5px) saturate(1.5);
    -webkit-backdrop-filter: blur(5px) saturate(1.5);
}

.custom-cursor.active-social .cursor-ring[b-nj4j2eg8sq]::before {
    width: 22px;
    height: 22px;
    border-color: transparent;
    color: #00e5ff;
    font-size: 1.1rem;
    font-family: inherit;
}

/* Hide singularity dot when label state takes over */
.custom-cursor.active-view .cursor-dot[b-nj4j2eg8sq],
.custom-cursor.active-mail .cursor-dot[b-nj4j2eg8sq],
.custom-cursor.active-social .cursor-dot[b-nj4j2eg8sq] {
    opacity: 0;
}

/* ─── Keyframes ─────────────────────────────────────────────────── */
@keyframes bh-disk-spin-b-nj4j2eg8sq {
    from { transform: translate(-50%, -50%) rotate(-18deg); }
    to   { transform: translate(-50%, -50%) rotate(342deg); }
}

@keyframes bh-photon-spin-b-nj4j2eg8sq {
    from { transform: translate(-50%, -50%) rotate(0); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ─── Touch devices: no custom cursor ───────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor[b-nj4j2eg8sq] {
        display: none;
    }
}

/* ─── Reduced motion: stop the spins ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .cursor-ring[b-nj4j2eg8sq]::before,
    .cursor-ring[b-nj4j2eg8sq]::after {
        animation: none !important;
    }
}
/* /Components/PageTransition.razor.rz.scp.css */
/* ============================================================
   PAGE TRANSITION — wipe animation with staggered reveal
   Easing: cubic-bezier(0.22, 1, 0.36, 1) — a premium ease-out
   ============================================================ */

/* --- Container --- */
.page-transition[b-zx07jh1rnm] {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-transition.active[b-zx07jh1rnm] {
    pointer-events: all;
}

/* --- Backdrop: fades to black --- */
.transition-backdrop[b-zx07jh1rnm] {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition.active .transition-backdrop[b-zx07jh1rnm] {
    opacity: 0.6;
    transition-delay: 0ms;
    transition-duration: 0.35s;
}

.page-transition.exiting .transition-backdrop[b-zx07jh1rnm] {
    opacity: 0;
    transition-delay: 250ms;
    transition-duration: 0.3s;
}

/* --- Wipe: gradient wedge sliding across --- */
.transition-wipe[b-zx07jh1rnm] {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        #0a0118 0%,
        #0d0322 30%,
        #11052e 60%,
        #0a0118 100%
    );
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* Gradient edge — softer right side */
.transition-wipe[b-zx07jh1rnm]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 60%,
        rgba(0, 212, 255, 0.06) 78%,
        rgba(255, 0, 128, 0.04) 90%,
        transparent 100%
    );
    pointer-events: none;
}

.page-transition.active .transition-wipe[b-zx07jh1rnm] {
    transform: translateX(0%);
    transition-delay: 100ms;
    transition-duration: 0.4s;
}

.page-transition.exiting .transition-wipe[b-zx07jh1rnm] {
    transform: translateX(100%);
    transition-delay: 50ms;
    transition-duration: 0.35s;
}

/* --- Loader content --- */
.transition-content[b-zx07jh1rnm] {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: scale(0.85) translateY(8px);
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.page-transition.active .transition-content[b-zx07jh1rnm] {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 150ms;
}

.page-transition.exiting .transition-content[b-zx07jh1rnm] {
    opacity: 0;
    transform: scale(0.9) translateY(-6px);
    transition-delay: 0ms;
    transition-duration: 0.2s;
}

/* --- Loader ring --- */
.loader-ring[b-zx07jh1rnm] {
    width: 56px;
    height: 56px;
    position: relative;
}

.ring-segment[b-zx07jh1rnm] {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 50%;
}

.ring-segment:nth-child(1)[b-zx07jh1rnm] {
    border-top-color: #00d4ff;
    animation: ringSpin-b-zx07jh1rnm 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.4));
}

.ring-segment:nth-child(2)[b-zx07jh1rnm] {
    border-right-color: #ff0080;
    animation: ringSpin-b-zx07jh1rnm 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.12s;
    transform: scale(0.82);
    filter: drop-shadow(0 0 4px rgba(255, 0, 128, 0.3));
}

.ring-segment:nth-child(3)[b-zx07jh1rnm] {
    border-bottom-color: #00d4ff;
    animation: ringSpin-b-zx07jh1rnm 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite reverse;
    transform: scale(0.64);
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.3));
}

@keyframes ringSpin-b-zx07jh1rnm {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- n8 loader text --- */
.n8-loader[b-zx07jh1rnm] {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #ff0080 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.35));
    letter-spacing: 0.12em;
    animation: loaderTextPulse-b-zx07jh1rnm 1.6s ease-in-out infinite;
}

@keyframes loaderTextPulse-b-zx07jh1rnm {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.35)); }
    50% { filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.6)) drop-shadow(0 0 12px rgba(255, 0, 128, 0.3)); }
}

/* --- Progress line at top --- */
.progress-line[b-zx07jh1rnm] {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #ff0080, #00d4ff);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5), 0 0 30px rgba(255, 0, 128, 0.2);
    z-index: 4;
    animation: progressShimmer-b-zx07jh1rnm 1.2s linear infinite;
}

.page-transition.active .progress-line[b-zx07jh1rnm] {
    animation: progressFill-b-zx07jh1rnm 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               progressShimmer-b-zx07jh1rnm 1.2s linear infinite;
    animation-delay: 0ms, 0.4s;
}

.page-transition.exiting .progress-line[b-zx07jh1rnm] {
    width: 100%;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0ms;
    animation: progressShimmer-b-zx07jh1rnm 1.2s linear infinite;
}

@keyframes progressFill-b-zx07jh1rnm {
    0% { width: 0%; }
    60% { width: 72%; }
    100% { width: 100%; }
}

@keyframes progressShimmer-b-zx07jh1rnm {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .page-transition[b-zx07jh1rnm] {
        transition: none !important;
    }

    .transition-backdrop[b-zx07jh1rnm] {
        transition: opacity 0.15s ease;
    }

    .page-transition.active .transition-backdrop[b-zx07jh1rnm] {
        opacity: 0.6;
        transition-delay: 0ms;
    }

    .page-transition.exiting .transition-backdrop[b-zx07jh1rnm] {
        opacity: 0;
        transition-delay: 0ms;
    }

    .transition-wipe[b-zx07jh1rnm] {
        transition: transform 0.15s ease;
    }

    .page-transition.active .transition-wipe[b-zx07jh1rnm] {
        transform: translateX(0%);
        transition-delay: 0ms;
    }

    .page-transition.exiting .transition-wipe[b-zx07jh1rnm] {
        transform: translateX(100%);
        transition-delay: 0ms;
    }

    .transition-content[b-zx07jh1rnm] {
        transition: opacity 0.15s ease;
    }

    .page-transition.active .transition-content[b-zx07jh1rnm] {
        opacity: 1;
        transform: scale(1) translateY(0);
        transition-delay: 0ms;
    }

    .page-transition.exiting .transition-content[b-zx07jh1rnm] {
        opacity: 0;
        transition-delay: 0ms;
    }

    .loader-ring[b-zx07jh1rnm],
    .ring-segment[b-zx07jh1rnm] {
        animation: none !important;
    }

    .progress-line[b-zx07jh1rnm] {
        animation: none !important;
    }

    .page-transition.active .progress-line[b-zx07jh1rnm] {
        animation: progressFill-b-zx07jh1rnm 0.15s ease forwards !important;
        animation-delay: 0ms !important;
    }

    .n8-loader[b-zx07jh1rnm] {
        animation: none !important;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
main:focus[b-g42wlr3mp6] {
    outline: none;
}
