/* ============================================
   SILICON NETWORKS - 404 PAGE
   3D 404 + GLASMORPH WÜRFEL — GOLD EDITION
   Tom & Claude - Brothers in Code
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #0a0a0a;
}

/* Background */
.layer-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
    z-index: 1;
}


/* Container */
.holo-404-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    perspective: 1000px;
}

/* ============================================
   WÜRFEL LOGO - Oben Links
   ============================================ */
.cube-logo {
    position: fixed;
    top: 25px;
    left: 25px;
    width: 70px;
    height: 70px;
    z-index: 100;
}

.cube-logo canvas {
    width: 100%;
    height: 100%;
}


/* ============================================
   3D WÜRFEL - GLASMORPH GOLD
   ============================================ */
.cube-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: cubeFloat 6s ease-in-out infinite;
}

@keyframes cubeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.cube {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: cubeRotate 20s linear infinite;
}

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}


.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(201, 168, 76, 0.02);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(201, 168, 76, 0.25);
    box-shadow: inset 0 0 30px rgba(201, 168, 76, 0.05);
}

.cube-front  { transform: translateZ(150px); }
.cube-back   { transform: rotateY(180deg) translateZ(150px); }
.cube-left   { transform: rotateY(-90deg) translateZ(150px); }
.cube-right  { transform: rotateY(90deg) translateZ(150px); }
.cube-top    { transform: rotateX(90deg) translateZ(150px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(150px); }


/* ============================================
   GRAVITATIONSMASCHINE - GOLD CORE
   ============================================ */
.gravity-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    transform-style: preserve-3d;
    z-index: 5;
}

.singularity {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #000 0%, #000 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0,0,0,0.8), 0 0 100px rgba(201,168,76,0.3), inset 0 0 30px rgba(201,168,76,0.2);
    animation: singularityPulse 2s ease-in-out infinite;
}

@keyframes singularityPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}


.accretion-disk {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid transparent;
}

.accretion-disk-1 {
    width: 110px; height: 110px; margin: -55px 0 0 -55px;
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 25px rgba(255, 215, 0, 0.3);
    animation: diskRotate 3s linear infinite, diskPulse1 1.5s ease-in-out infinite;
}

.accretion-disk-2 {
    width: 155px; height: 155px; margin: -77px 0 0 -77px;
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.35);
    animation: diskRotate 5s linear infinite reverse, diskPulse2 2s ease-in-out infinite;
}

.accretion-disk-3 {
    width: 200px; height: 200px; margin: -100px 0 0 -100px;
    border-color: rgba(180, 150, 60, 0.3);
    box-shadow: 0 0 15px rgba(180, 150, 60, 0.2);
    animation: diskRotate 7s linear infinite, diskPulse3 2.5s ease-in-out infinite;
}

@keyframes diskRotate {
    0% { transform: rotateX(75deg) rotateZ(0deg); }
    100% { transform: rotateX(75deg) rotateZ(360deg); }
}


@keyframes diskPulse1 {
    0%, 100% { border-width: 2px; box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 25px rgba(255, 215, 0, 0.3); }
    50% { border-width: 4px; box-shadow: 0 0 50px rgba(255, 215, 0, 0.8), inset 0 0 40px rgba(255, 215, 0, 0.5); }
}

@keyframes diskPulse2 {
    0%, 100% { border-width: 2px; box-shadow: 0 0 20px rgba(201, 168, 76, 0.35); }
    50% { border-width: 3px; box-shadow: 0 0 40px rgba(201, 168, 76, 0.6), inset 0 0 30px rgba(201, 168, 76, 0.3); }
}

@keyframes diskPulse3 {
    0%, 100% { border-width: 2px; box-shadow: 0 0 15px rgba(180, 150, 60, 0.2); }
    50% { border-width: 3px; box-shadow: 0 0 35px rgba(180, 150, 60, 0.5), inset 0 0 25px rgba(180, 150, 60, 0.2); }
}

.gravity-particle {
    position: absolute;
    top: 50%; left: 50%;
    width: 5px; height: 5px;
    background: #C9A84C;
    border-radius: 50%;
    box-shadow: 0 0 15px #FFD700, 0 0 30px #C9A84C;
    animation: particleGravity 2s ease-in infinite;
}

@keyframes particleGravity {
    0% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(140px) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0px) scale(0); opacity: 0; }
}


.energy-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 45px; height: 45px;
    border: 1px solid rgba(201, 168, 76, 0.6);
    border-radius: 50%;
    animation: energyExpand 2s ease-out infinite;
}

.energy-pulse:nth-child(2) { animation-delay: 0.5s; }
.energy-pulse:nth-child(3) { animation-delay: 1s; }
.energy-pulse:nth-child(4) { animation-delay: 1.5s; }

@keyframes energyExpand {
    0% { width: 45px; height: 45px; opacity: 0.8; margin: -22px 0 0 -22px; }
    100% { width: 220px; height: 220px; opacity: 0; margin: -110px 0 0 -110px; }
}

/* 404 TEXT - GOLD */
.text-404 {
    font-size: 6rem;
    font-weight: 100;
    letter-spacing: 10px;
    color: #C9A84C;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
}


/* MESSAGE + BUTTON */
.error-message {
    margin-top: 50px;
    font-size: 1.4rem;
    font-weight: 200;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.8);
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.error-submessage {
    margin-top: 12px;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: rgba(150, 150, 150, 0.6);
}

.back-button {
    margin-top: 35px;
    padding: 14px 40px;
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    color: #C9A84C;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-button:hover {
    border-color: #C9A84C;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
    text-shadow: 0 0 10px #FFD700;
}


/* Brand Logo */
.brand-logo {
    position: fixed;
    top: 35px;
    left: 110px;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: rgba(201, 168, 76, 0.7);
    text-decoration: none;
    z-index: 100;
}

/* Status Indicator */
.status-indicator {
    position: fixed;
    top: 35px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 100, 100, 0.8);
    z-index: 100;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #ff6666;
    border-radius: 50%;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #ff6666; }
    50% { opacity: 0.5; box-shadow: 0 0 20px #ff6666; }
}


/* ============================================
   CLI TERMINAL - LINKS + RECHTS
   ============================================ */
.cli-terminal {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    height: 350px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 2.2;
    color: rgba(201, 168, 76, 0.5);
    z-index: 5;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cli-terminal-left {
    left: 0;
    text-align: left;
}

.cli-terminal-right {
    right: 0;
    text-align: right;
}

.cli-line {
    white-space: nowrap;
    overflow: hidden;
}


/* ============================================
   SIGNATURE
   ============================================ */
.signature {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 20;
    font-size: 11px;
    letter-spacing: 3px;
}

.signature .crafted {
    font-weight: 500;
    color: #666;
}

.signature .crafted span {
    color: #C9A84C;
    text-shadow: 0 0 15px rgba(201, 168, 76, 0.6);
}

.signature .separator {
    color: #555;
    margin: 0 10px;
}

.signature .names {
    font-weight: 300;
    color: #555;
}

.signature .names span {
    color: #C9A84C;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .cli-terminal { display: none; }
    .cube { width: 220px; height: 220px; }
    .cube-face { width: 220px; height: 220px; }
    .text-404 { font-size: 4rem; }
}
