:root {
    --primary-glow: conic-gradient(
        from 180deg at 50% 50%,
        #4f46e5 0deg,
        #7c3aed 55deg,
        #2563eb 120deg,
        #8b5cf6 160deg,
        transparent 360deg
    );
    --secondary-glow: radial-gradient(
        rgba(79, 70, 229, 0.25),
        rgba(124, 58, 237, 0.1)
    );
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0a0a16;
    color: #e2e8f0;
    overflow-x: hidden;
}

.futuristic-card {
    background: rgba(16, 16, 32, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 0 40px rgba(79, 70, 229, 0.15);
}

.glow-effect {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

.input-field {
    background: rgba(15, 15, 30, 0.5);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25), 0 0 15px rgba(79, 70, 229, 0.15);
    background: rgba(20, 20, 40, 0.7);
}

.btn-primary {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.5);
    transform: translateY(-2px);
}

.toggle-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(20, 20, 40, 0.7);
}

.toggle-button.active {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.toggle-button:hover {
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.5;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(79, 70, 229, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating {
    animation: float 8s ease-in-out infinite;
}

.glowing-border {
    position: relative;
}

.glowing-border::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(45deg, #4f46e5, transparent, #7c3aed, transparent);
    background-size: 400% 400%;
    animation: border-glow 6s ease infinite;
    z-index: -1;
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.holographic-text {
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 100%;
    animation: holographic 4s ease infinite;
}

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

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: rgba(79, 70, 229, 0.7);
    border-radius: 50%;
    pointer-events: none;
}