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

:root {
    --primary-blue: #00d4ff;
    --secondary-blue: #0080ff;
    --dark-blue: #001a33;
    --glow-blue: #00ffff;
}

body {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #001a33 0%, #000510 100%);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    position: relative;
}

/* Flickering overlay effect */
.flicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.03);
    pointer-events: none;
    animation: flicker 0.15s infinite;
    z-index: 100;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Grid background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Scan lines */
.scan-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.scan-line {
    position: absolute;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary-blue) 50%,
            transparent 100%);
    box-shadow: 0 0 10px var(--glow-blue);
    animation: scanMove 8s linear infinite;
}

.scan-line:nth-child(1) {
    animation-delay: 0s;
}

.scan-line:nth-child(2) {
    animation-delay: 1.6s;
}

.scan-line:nth-child(3) {
    animation-delay: 3.2s;
}

.scan-line:nth-child(4) {
    animation-delay: 4.8s;
}

.scan-line:nth-child(5) {
    animation-delay: 6.4s;
}

@keyframes scanMove {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Central container */
.central-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 50;
}

/* Circle layers */
.circle-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    box-shadow:
        0 0 20px var(--primary-blue),
        inset 0 0 20px rgba(0, 212, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.circle-middle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border: 2px solid var(--secondary-blue);
    border-radius: 50%;
    box-shadow:
        0 0 15px var(--secondary-blue),
        inset 0 0 15px rgba(0, 128, 255, 0.3);
    animation: pulse 2s ease-in-out infinite 0.5s;
}

.circle-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid var(--glow-blue);
    border-radius: 50%;
    box-shadow:
        0 0 10px var(--glow-blue),
        inset 0 0 10px rgba(0, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite 1s;
}

.circle-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--glow-blue);
    animation: corePulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes corePulse {

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

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Rotating rings */
.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.5;
}

.ring-1 {
    width: 450px;
    height: 450px;
    transform: translate(-50%, -50%) rotate(0deg);
    border-style: dashed;
    animation: rotateRing 20s linear infinite;
    box-shadow: 0 0 10px var(--primary-blue);
}

.ring-2 {
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%) rotate(0deg);
    border-style: dotted;
    animation: rotateRing 15s linear infinite reverse;
    box-shadow: 0 0 8px var(--secondary-blue);
}

.ring-3 {
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotateRing 25s linear infinite;
    box-shadow: 0 0 6px var(--glow-blue);
}

@keyframes rotateRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Center text */
.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.title {
    font-size: 3rem;
    color: var(--primary-blue);
    text-shadow:
        0 0 10px var(--glow-blue),
        0 0 20px var(--glow-blue),
        0 0 30px var(--glow-blue);
    letter-spacing: 0.5rem;
    animation: textGlow 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--secondary-blue);
    text-shadow: 0 0 5px var(--secondary-blue);
    letter-spacing: 0.2rem;
    opacity: 0.8;
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow:
            0 0 10px var(--glow-blue),
            0 0 20px var(--glow-blue),
            0 0 30px var(--glow-blue);
    }

    50% {
        text-shadow:
            0 0 20px var(--glow-blue),
            0 0 30px var(--glow-blue),
            0 0 40px var(--glow-blue);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .central-container {
        width: 350px;
        height: 350px;
    }

    .circle-outer {
        width: 280px;
        height: 280px;
    }

    .circle-middle {
        width: 210px;
        height: 210px;
    }

    .circle-inner {
        width: 140px;
        height: 140px;
    }

    .circle-core {
        width: 70px;
        height: 70px;
    }

    .ring-1 {
        width: 315px;
        height: 315px;
    }

    .ring-2 {
        width: 336px;
        height: 336px;
    }

    .ring-3 {
        width: 350px;
        height: 350px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }
}

/* ElevenLabs ConvAI Widget Positioning */
elevenlabs-convai {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 200 !important;
}