:root {
    --deep-space-black: #121212;
    --cyber-purple: #9333EA;
    --neon-blue: #0EA5E9;
    --ghost-white: #F8F8FF;
    --nebula-gray: #6B7280;
    --electric-green: #34D399;
    --cyber-yellow: #FBBF24;
    --cyber-purple-rgb: 147, 51, 234;
    --neon-blue-rgb: 14, 165, 233;
    --electric-green-rgb: 52, 211, 153;
    --cyber-yellow-rgb: 251, 191, 36;
    --transition-duration: 0.3s;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--deep-space-black);
    color: var(--ghost-white);
    min-height: 100vh;
}

.font-geist-mono {
    font-family: monospace, 'SF Mono', 'Menlo', 'Consolas';
    letter-spacing: -0.02em;
}

/* Glowing effects */
.shadow-glow {
    box-shadow: 0 0 15px rgba(var(--cyber-purple-rgb), 0.15);
    transition: box-shadow var(--transition-duration) ease;
}

.shadow-glow:hover {
    box-shadow: 0 0 20px rgba(var(--cyber-purple-rgb), 0.25);
}

.shadow-glow-sm {
    box-shadow: 0 0 10px rgba(var(--cyber-purple-rgb), 0.15);
    transition: box-shadow var(--transition-duration) ease;
}

.shadow-glow-md {
    box-shadow: 0 0 20px rgba(var(--cyber-purple-rgb), 0.25);
}

/* Loading animation */
.loader {
    border: 4px solid rgba(var(--nebula-gray), 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--cyber-purple);
    border-right: 4px solid var(--neon-blue);
    border-bottom: 4px solid var(--electric-green);
    width: 40px;
    height: 40px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mandala container */
.mandala-container {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 26, 26, 0.8) 0%, rgba(18, 18, 18, 0.9) 70%, rgba(0, 0, 0, 1) 100%);
    box-shadow: 0 0 30px rgba(var(--cyber-purple-rgb), 0.2),
                inset 0 0 20px rgba(var(--neon-blue-rgb), 0.1);
    padding: 2px;
}

.mandala-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--cyber-purple), var(--neon-blue), var(--electric-green), var(--cyber-yellow));
    z-index: -1;
    border-radius: 50%;
    filter: blur(4px);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Trait bubbles */
.trait-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    background-color: rgba(var(--cyber-purple-rgb), 0.1);
    border: 1px solid rgba(var(--cyber-purple-rgb), 0.2);
    color: var(--ghost-white);
    animation: fade-in 0.5s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

/* Opportunity items */
.opportunity-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fade-in 0.5s ease-out forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

/* Animation keyframes */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(var(--cyber-purple-rgb), 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(var(--cyber-purple-rgb), 0.4);
    }
    100% {
        box-shadow: 0 0 15px rgba(var(--cyber-purple-rgb), 0.2);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal animation */
.animated-modal {
    animation: modal-in 0.3s ease-out forwards;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form elements */
input[type="radio"] {
    accent-color: var(--cyber-purple);
}

input[type="radio"]:checked + label {
    color: var(--ghost-white);
}

button {
    transition: all var(--transition-duration) ease;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--cyber-purple-rgb), 0.3);
}

/* Responsive styles */
@media (max-width: 640px) {
    .mandala-container {
        width: 280px;
        height: 280px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
