@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #f97316;
    --background-color: #0f172a;
    --card-background: #1e293b;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --border-color: #334155;
}

.font-geist-mono {
    font-family: 'Space Mono', monospace;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

/* Particles background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#main-container {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.1);
}

/* Header glow effect */
.glow-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #3b82f6 100%);
    opacity: 0.5;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 5s ease-in-out infinite alternate;
    z-index: 0;
}

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

.gradient-text {
    background: linear-gradient(to right, #6366f1, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.test-card {
    transition: all 0.3s ease;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.test-card:hover {
    transform: translateY(-5px);
}

.card-icon-container {
    transition: all 0.3s ease;
}

.test-card:hover .card-icon-container {
    transform: scale(1.05);
}

/* Questions and progress styles */
.question-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.option-btn {
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    background-color: rgba(30, 41, 59, 0.8);
    color: var(--text-color);
}

.option-btn:hover {
    background-color: rgba(51, 65, 85, 0.8);
    transform: translateY(-2px);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.progress-container {
    height: 8px;
    background-color: rgba(51, 65, 85, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
}

/* Results styles */
.result-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
}

.trait-bar {
    height: 8px;
    background-color: rgba(51, 65, 85, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.trait-progress {
    height: 100%;
    border-radius: 4px;
}

/* Achievement style */
.achievement {
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    opacity: 0.05;
    font-size: 5rem;
    transform: rotate(15deg);
}

/* Skill kit styles */
.skill-item {
    border: 1px solid var(--border-color);
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Share image styles */
.share-image {
    background-color: #0f172a;
    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3/4;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.share-image-header {
    margin-bottom: 16px;
    text-align: center;
}

.share-image-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.share-image-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

/* Fade in animation for results */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Floating animation for cards */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.test-card {
    animation: float 6s ease-in-out infinite;
}

.test-card:nth-child(2) {
    animation-delay: 0.5s;
}

.test-card:nth-child(3) {
    animation-delay: 1s;
}
