:root {
    --bg-color: #2f404c;
    --card-bg: rgba(30, 45, 55, 0.85);
    /* Slightly darker variant of bg for cards */
    --primary: #9ad7d8;
    --accent-1: #a097a9;
    --accent-2: #9eacb9;
    --accent-3: #9cc2c8;
    --neon: #9ad7d8;
    /* Using foreground as the main neon highlight */
    --white: #ffffff;
    --text-muted: #9eacb9;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(154, 215, 216, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(154, 215, 216, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

.glow-sphere {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(160, 151, 169, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: drift 25s infinite alternate;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-100px, 100px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 25px 0;
    background: transparent;
    /* Removed the heavy background to avoid 'blocking' the design */
    position: relative;
    /* Changed from sticky to relative so it doesn't overlap content when scrolling */
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    height: 120px;
    /* Gigantic size for maximum visibility */
    width: auto;
    filter: brightness(1.1);
    transition: var(--transition);
}

.language-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(154, 215, 216, 0.3);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-color);
}

.lang-btn:hover:not(.active) {
    background: rgba(154, 215, 216, 0.1);
    border-color: var(--primary);
}

.brand-logo:hover {
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(0, 240, 255, 0.5));
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 30px 0 40px 0;
    /* Reduced padding */
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(154, 215, 216, 0.1);
    border: 1px solid rgba(154, 215, 216, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    color: var(--neon);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--bg-color);
    border: none;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(154, 215, 216, 0.3);
    filter: brightness(1.1);
}

/* Quiz Container */
.quiz-container {
    max-width: 800px;
    margin: 20px auto;
    /* Reduced margin */
    padding: 0 20px;
}

.hidden {
    display: none;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    /* Reduced margin */
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    background: var(--neon);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--neon);
}

.card {
    background: rgba(158, 172, 185, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(154, 215, 216, 0.15);
    padding: 25px 40px;
    /* Reduced padding for better fit */
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-1), var(--primary), var(--accent-3));
}

.q-num {
    color: var(--neon);
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    /* Reduced font size */
    margin-bottom: 25px;
    /* Reduced margin */
    font-weight: 700;
    line-height: 1.3;
}

.options {
    display: grid;
    gap: 16px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(154, 215, 216, 0.15);
    color: var(--white);
    padding: 16px 24px;
    /* Reduced vertical padding */
    text-align: left;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    /* Slightly smaller font */
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
}

.option-btn:hover {
    background: rgba(154, 215, 216, 0.08);
    border-color: var(--accent-3);
    padding-left: 32px;
}

.option-btn.selected {
    background: var(--neon);
    color: var(--bg-color);
    border-color: var(--neon);
    font-weight: 600;
}

/* Result Section */
.result-container {
    max-width: 700px;
    margin: 50px auto;
}

.result-card {
    text-align: center;
}

.score-circle {
    width: 150px;
    margin: 0 auto 30px;
}

.circular-chart {
    display: block;
    max-width: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke: var(--primary);
    transition: stroke-dasharray 1s ease;
}

.percentage {
    fill: var(--white);
    font-family: var(--font-heading);
    font-size: 0.5rem;
    font-weight: 700;
    text-anchor: middle;
}

.cta-box {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Category Breakdown Styles */
.category-breakdown {
    margin: 40px 0;
    text-align: left;
    display: grid;
    gap: 20px;
}

.category-item {
    width: 100%;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-3);
}

.cat-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.cat-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--primary));
    box-shadow: 0 0 10px rgba(154, 215, 216, 0.2);
    border-radius: 5px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-box h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Optimization */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .brand-logo {
        height: 75px;
    }

    h1 {
        font-size: 2.22rem;
        line-height: 1.2;
    }

    .hero {
        padding: 20px 0 30px 0;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .quiz-container,
    .result-container {
        margin: 15px auto;
        padding: 0 15px;
    }

    .card {
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .options {
        gap: 12px;
    }

    .option-btn {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .score-circle {
        width: 130px;
        margin-bottom: 20px;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

    .category-breakdown {
        margin: 30px 0;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }

    .brand-logo {
        height: 60px;
    }

    .card {
        padding: 20px 15px;
    }
}