
:root {
    --accent: #00d2ff;
    --bg-dark: #00050a; 
    --bg-glow: radial-gradient(circle at center, #00162d 0%, #00050a 100%);
    --glass: rgba(0, 210, 255, 0.03);
    --glass-border: rgba(0, 210, 255, 0.15);
    --correct: #00ffaa;
    --wrong: #ff4b2b;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background: var(--bg-dark); 
    color: white; 
    font-family: 'Montserrat', sans-serif; 
    min-height: 100vh; 
    width: 100vw; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    overflow-x: hidden;
}


.canvas-wrapper { 
    position: fixed; 
    inset: 0; 
    z-index: -1; 
    background: var(--bg-glow); 
}


#intro-overlay {
    position: fixed;
    inset: 0;
    background: #00050a;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-text {
    font-size: clamp(24px, 6vw, 45px);
    font-weight: 900;
    letter-spacing: 12px;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    animation: introAppear 1.2s ease-out forwards;
}

.intro-line {
    width: 0%; 
    height: 2px; 
    background: var(--accent);
    margin: 20px auto 0; 
    box-shadow: 0 0 20px var(--accent);
    animation: lineExpand 1.5s ease forwards 0.6s;
}

@keyframes introAppear { to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes lineExpand { to { width: 100%; } }

.intro-hidden { 
    opacity: 0; 
    visibility: hidden; 
    transform: scale(1.05); 
}


.nav-tabs {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 25px;
    transition: 0.3s;
    opacity: 0.5;
}

.nav-link.active, .nav-link:hover {
    opacity: 1;
    background: var(--accent);
    color: black;
}


.main-container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    max-width: 1200px; 
    z-index: 10; 
    padding: 40px 20px; 
}

.header-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
}

.hero-title { 
    font-size: clamp(32px, 5vw, 64px); 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

.hero-desc { 
    font-size: 18px; 
    line-height: 1.6; 
    opacity: 0.7; 
    margin-bottom: 40px; 
    max-width: 550px; 
    font-weight: 300;
}

.big-logo {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 0 50px rgba(0, 210, 255, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }


.glass-card { 
    background: var(--glass); 
    border: 1px solid var(--glass-border); 
    border-radius: 40px; 
    padding: 45px; 
    backdrop-filter: blur(30px); 
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.5); 
    width: 100%; 
    max-width: 800px;
    min-height: 650px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
}


.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
    width: 100%;
}

.req-item {
    background: rgba(0, 210, 255, 0.05);
    border-left: 4px solid var(--accent);
    padding: 18px 25px;
    border-radius: 0 15px 15px 0;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.req-item:hover {
    background: rgba(0, 210, 255, 0.15);
    transform: translateX(10px);
    box-shadow: -10px 0 20px rgba(0, 210, 255, 0.1);
}


.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; width: 100%; }
.progress-container { flex: 1; margin-right: 30px; }
#q-counter { font-size: 10px; font-weight: 900; letter-spacing: 3px; color: var(--accent); text-transform: uppercase; }
.progress-track { height: 4px; background: rgba(255,255,255,0.05); border-radius: 10px; margin-top: 10px; overflow: hidden; }
#progress-bar { height: 100%; background: var(--accent); width: 0%; box-shadow: 0 0 15px var(--accent); transition: 0.4s; }

.timer-box { position: relative; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.timer-ring { position: absolute; width: 50px; height: 50px; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 138.2; stroke-dashoffset: 0; transition: 0.1s linear; }
#time-left { font-size: 16px; font-weight: 900; color: white; }

#question-text { font-size: 24px; font-weight: 700; margin-bottom: 25px; text-align: center; line-height: 1.3; width: 100%; }

.options-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    width: 100%; 
    margin-bottom: 40px; 
}

.option-btn { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--glass-border); 
    padding: 18px 25px; 
    border-radius: 18px; 
    color: #fff; 
    cursor: pointer; 
    text-align: left; 
    transition: 0.3s; 
    width: 100%;
}

.option-btn:hover:not(:disabled) { 
    background: rgba(0, 210, 255, 0.1); 
    border-color: var(--accent); 
    transform: translateX(10px); 
}

.correct-ans { background: rgba(0, 255, 170, 0.15) !important; border-color: var(--correct) !important; color: var(--correct); font-weight: 700; }
.wrong-ans { background: rgba(255, 75, 43, 0.15) !important; border-color: var(--wrong) !important; color: var(--wrong); font-weight: 700; }


.btn-primary { 
    display: inline-block;
    margin-top: auto; 
    padding: 20px 55px; 
    border-radius: 30px; 
    border: none; 
    background: var(--accent); 
    color: #000; 
    font-weight: 900; 
    font-size: 17px;
    letter-spacing: 1px;
    text-align: center; 
    cursor: pointer; 
    transition: 0.4s; 
    text-decoration: none;
    text-transform: uppercase;
}

.btn-primary:hover { 
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.4); 
}


.stat-circle { 
    width: 160px; height: 160px; margin: 0 auto 35px; 
    display: flex; align-items: center; justify-content: center; 
    background: rgba(255, 255, 255, 0.03); border-radius: 50%; 
    border: 2px solid var(--accent); box-shadow: 0 0 30px rgba(0, 210, 255, 0.15); 
}

.stat-percent-val { font-size: 42px; font-weight: 900; color: var(--accent); text-shadow: 0 0 15px rgba(0, 210, 255, 0.5); }

.verdict-box { 
    text-align: center; 
    padding: 25px; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid var(--glass-border); 
    border-top: 4px solid var(--accent); 
    border-radius: 20px; 
    margin-bottom: 30px; 
}

.log-row { 
    background: rgba(255,255,255,0.02); 
    padding: 18px 25px; 
    border-radius: 18px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-left: 4px solid var(--accent); 
    font-size: 14px;
    margin-bottom: 10px;
    width: 100%;
}

.log-val { font-weight: 900; color: var(--accent); }


#notification-container { position: fixed; top: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: rgba(0, 8, 20, 0.9); border-left: 4px solid var(--accent); padding: 15px 25px; border-radius: 8px; backdrop-filter: blur(10px); font-weight: 700; transform: translateX(120%); animation: toastIn 0.5s forwards; }
@keyframes toastIn { to { transform: translateX(0); } }

.hidden { display: none !important; }
.card-entrance { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards; }
.hero-entrance { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s forwards 2.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }


@media (max-width: 600px) { 
    .glass-card { padding: 25px; min-height: 550px; } 
    .btn-primary { width: 100%; padding: 18px; }
}