/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b7fcc;
    --glow-color: #a394ff;
    --text-color: #e0e0e0;
    --bg-color: #0a0a0a;
    --link-hover: #b8a9ff;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

/* Custom cursor */
.cursor-glow {
    width: 20px;
    height: 20px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

.cursor-glow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 127, 204, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
/* Particle canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
}

/* Ambient shapes */
.ambient-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
    animation-duration: 25s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--glow-color);
    bottom: -100px;
    right: -100px;
    animation-duration: 30s;
    animation-delay: -5s;
}
.shape-3 {
    width: 500px;
    height: 500px;
    background: #6b5fa3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    animation-delay: -10s;
}

.shape-4 {
    width: 300px;
    height: 300px;
    background: #9080d0;
    top: 20%;
    right: 20%;
    animation-duration: 40s;
    animation-delay: -15s;
}

.shape-5 {
    width: 350px;
    height: 350px;
    background: #7a6bb5;
    bottom: 20%;
    left: 10%;
    animation-duration: 45s;
    animation-delay: -20s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* Main container */
.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    z-index: 10;
}

/* Riddle text */
.riddle {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2.5;
    letter-spacing: 0.05em;
    max-width: 800px;
    padding: 2rem;
}
.line {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s forwards;
}

.line-1 { animation-delay: 0.5s; }
.line-2 { animation-delay: 1s; }
.line-3 { animation-delay: 1.5s; }
.line-4 { animation-delay: 2s; }
.line-5 { animation-delay: 2.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden links */
.hidden-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: none;
}

.hidden-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--glow-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--glow-color);
}

.hidden-link:hover {
    color: var(--link-hover);
    text-shadow: 0 0 8px var(--glow-color);
}
.hidden-link:hover::before {
    width: 100%;
}

/* Void section */
.void-section {
    position: fixed;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
    background: rgba(10, 10, 10, 0.8);
    padding: 2rem;
    border-left: 1px solid rgba(139, 127, 204, 0.3);
    backdrop-filter: blur(10px);
}

.void-section.active {
    opacity: 1;
    right: 0;
    pointer-events: all;
}

.void-text {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.void-link {
    margin: 0.5rem 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.void-link:hover {
    opacity: 0.9;
}

/* Glitch effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}
.void-link:hover .glitch::before {
    animation: glitch 0.3s linear;
    color: #ff00ff;
    opacity: 0.8;
}

.void-link:hover .glitch::after {
    animation: glitch 0.3s linear reverse;
    color: #00ffff;
    opacity: 0.8;
}

@keyframes glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

.redacted {
    background: var(--text-color);
    color: var(--text-color);
    padding: 0 0.5rem;
    transition: all 0.3s;
}

.redacted:hover {
    background: transparent;
    color: #ff0000;
    text-decoration: line-through;
}
/* Signature */
.signature {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
    transition: opacity 0.5s ease;
    cursor: pointer;
    z-index: 50;
}

.sig-text {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.signature:hover {
    opacity: 0.7;
}

.signature:hover .sig-text {
    text-shadow: 0 0 10px var(--glow-color);
    cursor: pointer;
}

/* About overlay */
.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 200;
    backdrop-filter: blur(5px);
}
.about-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.terminal {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    padding: 3rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(139, 127, 204, 0.3);
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(139, 127, 204, 0.2);
}

.prompt {
    color: #00ff00;
}

.response {
    color: var(--text-color);
    margin-left: 1rem;
}

.info {
    color: var(--text-color);
    opacity: 0.8;
}

.about-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.about-link:hover {
    color: var(--link-hover);
    text-shadow: 0 0 5px var(--glow-color);
}

/* Responsive */
@media (max-width: 768px) {
    .riddle {
        font-size: 1rem;
        line-height: 2.2;
    }
    
    .cursor-glow {
        display: none;
    }
    
    body {
        cursor: default;
    }
    
    .hidden-link {
        cursor: pointer;
    }
    
    .void-section {
        right: -250px;
        width: 250px;
    }
    
    .void-section.active {
        right: 0;
    }
}
/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
    animation: float-orb 60s infinite ease-in-out;
}

.orb-1 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-duration: 50s;
}

.orb-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    bottom: 15%;
    right: 10%;
    animation-duration: 70s;
    animation-delay: -20s;
}

.orb-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #b8a9ff 0%, transparent 70%);
    top: 60%;
    left: 70%;
    animation-duration: 65s;
    animation-delay: -35s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -50px) scale(1.2);
    }
    66% {
        transform: translate(-50px, 100px) scale(0.8);
    }
}