/* ===================================
   QUANTUM SINGULARITY HOMEPAGE
   All properties spiral into infinity
   =================================== */

/* Singularity Container */
.singularity-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Canvas */
#singularity-canvas,
#particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particle-field {
    z-index: 2;
}

/* Central Singularity */
.singularity-core {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 5;
}

.event-horizon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, transparent 0%, rgba(0, 0, 0, 0.95) 70%, #000 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.3),
        0 0 100px rgba(255, 0, 255, 0.2),
        inset 0 0 50px rgba(0, 0, 0, 0.9);
    animation: horizonPulse 3s ease-in-out infinite;
}

@keyframes horizonPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 50px rgba(0, 255, 255, 0.3),
            0 0 100px rgba(255, 0, 255, 0.2),
            inset 0 0 50px rgba(0, 0, 0, 0.9);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 
            0 0 70px rgba(0, 255, 255, 0.5),
            0 0 140px rgba(255, 0, 255, 0.3),
            inset 0 0 70px rgba(0, 0, 0, 0.9);
    }
}

.accretion-disk {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 255, 255, 0.1) 90deg,
        rgba(255, 0, 255, 0.2) 180deg,
        rgba(255, 255, 0, 0.1) 270deg,
        transparent 360deg
    );
    animation: diskRotate 10s linear infinite;
    filter: blur(2px);
}

@keyframes diskRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.singularity-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        0 0 20px #fff,
        0 0 40px rgba(0, 255, 255, 0.8),
        0 0 60px rgba(255, 0, 255, 0.6);
}

.quantum-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

/* Title Overlay */
.singularity-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    margin-bottom: 15px;
}

.main-title span {
    display: block;
    background: linear-gradient(90deg, var(--quantum-cyan), var(--quantum-magenta), var(--quantum-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 5s linear infinite;
}

@keyframes titleShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--quantum-cyan);
    opacity: 0.8;
    text-transform: uppercase;
}

/* Quantum Orbit System */
.quantum-orbit {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.quantum-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    text-decoration: none;
    z-index: 6;
    transition: all 0.3s ease;
}

/* Orbit Positioning */
.orbit-1 {
    animation: orbit1 20s linear infinite;
}

.orbit-2 {
    animation: orbit2 30s linear infinite;
}

.orbit-3 {
    animation: orbit3 40s linear infinite;
}

@keyframes orbit1 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(250px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(250px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(400px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(400px) rotate(-360deg);
    }
}

@keyframes orbit3 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(550px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(550px) rotate(-360deg);
    }
}

/* Link Core */
.link-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--quantum-cyan);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quantum-link:hover .link-core {
    transform: scale(1.2);
    border-color: var(--quantum-magenta);
    box-shadow: 
        0 0 40px rgba(255, 0, 255, 0.6),
        inset 0 0 30px rgba(255, 0, 255, 0.2);
}

.link-core .icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.link-core .label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--quantum-cyan);
    text-transform: uppercase;
}

.quantum-link:hover .label {
    color: var(--quantum-magenta);
}

/* Link Trail Effect */
.link-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--quantum-cyan), transparent);
    transform: translate(-50%, -50%);
    opacity: 0.5;
    pointer-events: none;
}

/* Gravitational Lensing Rings */
.lensing-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-1 {
    width: 400px;
    height: 400px;
    animation-delay: 0s;
}

.ring-2 {
    width: 600px;
    height: 600px;
    animation-delay: 1.3s;
}

.ring-3 {
    width: 800px;
    height: 800px;
    animation-delay: 2.6s;
}

@keyframes ringPulse {
    0%, 100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Info Panel */
.info-panel {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    max-width: 600px;
}

.info-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--quantum-green);
    margin-bottom: 20px;
}

.quantum-indicator {
    color: var(--quantum-cyan);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hawking-radiation {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.radiation-particle {
    width: 8px;
    height: 8px;
    background: var(--quantum-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--quantum-cyan);
    animation: radiate 2s ease-in-out infinite;
}

.radiation-particle:nth-child(2) {
    animation-delay: 0.6s;
}

.radiation-particle:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes radiate {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

/* Wormhole Transition Overlay */
.wormhole-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.wormhole-overlay.active {
    pointer-events: all;
    opacity: 1;
}

#wormhole-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    @keyframes orbit1 {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(180px) rotate(0deg); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(180px) rotate(-360deg); }
    }
    
    @keyframes orbit2 {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(280px) rotate(0deg); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(280px) rotate(-360deg); }
    }
    
    @keyframes orbit3 {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(380px) rotate(0deg); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(380px) rotate(-360deg); }
    }
}

@media (max-width: 768px) {
    .link-core {
        padding: 10px 15px;
    }
    
    .link-core .icon {
        font-size: 1.5rem;
    }
    
    .link-core .label {
        font-size: 0.7rem;
    }
    
    @keyframes orbit1 {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(0deg); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(120px) rotate(-360deg); }
    }
    
    @keyframes orbit2 {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(180px) rotate(0deg); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(180px) rotate(-360deg); }
    }
    
    @keyframes orbit3 {
        from { transform: translate(-50%, -50%) rotate(0deg) translateX(240px) rotate(0deg); }
        to { transform: translate(-50%, -50%) rotate(360deg) translateX(240px) rotate(-360deg); }
    }
    
    .event-horizon {
        width: 150px;
        height: 150px;
    }
    
    .accretion-disk {
        width: 220px;
        height: 220px;
    }
}