/* ==========================================================================
   V — Project Scenes
   Handcrafted CSS "cover art" for project panels. No images to load,
   nothing generic — each project gets its own little world.
   Shared by the home page and the projects page.
   ========================================================================== */

.work-scene {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

@keyframes cube-float {
    from { translate: 0 0; }
    to   { translate: 0 -16px; }
}

/* ---- VersionClient — a quiet blocky dusk ---- */
.scene-versionclient {
    background: linear-gradient(180deg, #191233 0%, #241543 55%, #131022 100%);
}

[data-theme="light"] .scene-versionclient {
    background: linear-gradient(180deg, #cfc4f5 0%, #e3cdf0 55%, #b9aee6 100%);
}

.scene-horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
    opacity: 0.55;
    filter: blur(0.5px);
}

.scene-moon {
    position: absolute;
    top: 18%;
    right: 16%;
    width: 52px;
    height: 52px;
    background: radial-gradient(circle at 35% 35%, #fdf3ff, var(--accent-warm) 75%);
    border-radius: 12%;
    box-shadow: 0 0 60px 12px var(--warm-glow);
    opacity: 0.9;
}

.scene-cube {
    position: absolute;
    border-radius: 14%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, rgba(157, 123, 250, 0.35), rgba(242, 114, 182, 0.12));
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: cube-float 9s ease-in-out infinite alternate;
}

.cube-1 { width: 54px; height: 54px; left: 18%; bottom: 20%; transform: rotate(14deg); }
.cube-2 { width: 32px; height: 32px; left: 42%; bottom: 42%; transform: rotate(-10deg); animation-delay: -3s; animation-duration: 11s; }
.cube-3 { width: 20px; height: 20px; left: 62%; bottom: 30%; transform: rotate(24deg); animation-delay: -6s; animation-duration: 7s; }

/* ---- This website — a miniature of itself ---- */
.scene-website {
    background:
        radial-gradient(circle at 75% 20%, var(--accent-soft), transparent 55%),
        linear-gradient(180deg, var(--bg-raised), var(--bg-deep));
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-window {
    position: relative;
    width: min(72%, 300px);
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-active);
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 12% 9%;
    box-shadow: var(--shadow-lift);
    transform: rotate(-2deg);
    transition: transform var(--dur-smooth) var(--ease-spring);
}

.work-panel:hover .scene-window,
.project-card:hover .scene-window {
    transform: rotate(0deg) translateY(-4px);
}

.scene-window-bar {
    position: absolute;
    top: 9%;
    left: 9%;
    display: flex;
    gap: 5px;
}

.scene-window-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-active);
}

.scene-window-bar i:first-child { background: var(--accent); }

.scene-skeleton {
    display: block;
    height: 8%;
    border-radius: var(--radius-pill);
    background: var(--border-active);
    margin-bottom: 9%;
    opacity: 0.8;
}

.sk-1 { width: 68%; background: linear-gradient(90deg, var(--accent), var(--accent-warm)); }
.sk-2 { width: 46%; }
.sk-3 { width: 56%; opacity: 0.45; }

.scene-orb {
    position: absolute;
    right: 10%;
    bottom: 12%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, var(--accent), var(--accent-warm));
    box-shadow: 0 6px 24px var(--accent-glow);
    animation: cube-float 8s ease-in-out infinite alternate;
}

/* ---- Server systems — nodes on a quiet circuit ---- */
.scene-systems {
    background:
        radial-gradient(circle at 30% 80%, var(--accent-soft), transparent 55%),
        linear-gradient(180deg, var(--bg-raised), var(--bg-deep));
}

.scene-systems::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, black 30%, transparent 75%);
}

.scene-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
    animation: node-breathe 3.4s ease-in-out infinite alternate;
}

.node-1 { left: 30%; top: 38%; }
.node-2 { left: 52%; top: 58%; animation-delay: -1.2s; background: var(--accent-warm); box-shadow: 0 0 14px var(--warm-glow); }
.node-3 { left: 68%; top: 32%; animation-delay: -2.1s; }

@keyframes node-breathe {
    from { scale: 0.85; opacity: 0.7; }
    to   { scale: 1.15; opacity: 1; }
}

/* ---- The vault — work that isn't ready to be seen yet ---- */
.scene-vault {
    background: linear-gradient(180deg, var(--bg-raised), var(--bg-deep));
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene-vault::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px dashed var(--border-active);
    animation: vault-turn 24s linear infinite;
}

.scene-vault::after {
    content: "✦";
    position: absolute;
    font-size: 1.4rem;
    color: var(--accent);
    opacity: 0.8;
}

@keyframes vault-turn {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .scene-cube, .scene-orb, .scene-node, .scene-vault::before {
        animation: none;
    }
}
