/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    background: linear-gradient(135deg, #0a1628 0%, #0d1b2a 50%, #1b263b 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Futuristic Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 149, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(51, 153, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, 
        rgba(0, 66, 132, 0.4) 0%, 
        rgba(0, 102, 204, 0.35) 50%, 
        rgba(0, 149, 255, 0.3) 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 
        0 8px 32px rgba(0, 149, 255, 0.25),
        inset 0 2px 2px rgba(0, 195, 255, 0.2),
        0 0 40px rgba(0, 149, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 149, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 195, 255, 0.1), 
        transparent);
    animation: headerShine 8s infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.logo-container {
    margin-bottom: 15px;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.header h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 149, 255, 0.5);
}

.subtitle {
    color: #8ba3c7;
    font-size: 1.1rem;
}

/* Screen Management */
.screen {
    display: none;
    flex: 1;
}

.screen.active {
    display: block;
}

/* Welcome Screen */
.welcome-content {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(27, 38, 59, 0.9));
    padding: 40px;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(0, 149, 255, 0.3),
        0 0 0 1px rgba(0, 149, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(0, 149, 255, 0.2);
}

.welcome-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 149, 255, 0.5);
}

.welcome-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #b8c5d6;
}

.welcome-content ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 20px;
}

.welcome-content ul li {
    margin: 15px 0;
    color: #d4dce8;
    position: relative;
    padding-left: 10px;
}

.welcome-content ul li::before {
    content: '▸';
    position: absolute;
    left: -15px;
    color: #0095ff;
    font-weight: bold;
}

/* Quiz Screen */
#quiz-screen {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(27, 38, 59, 0.9));
    padding: 30px;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(0, 149, 255, 0.3),
        0 0 0 1px rgba(0, 149, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 149, 255, 0.2);
}

/* Progress Bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: rgba(13, 27, 42, 0.6);
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 149, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0066cc, #0095ff, #00c3ff);
    border-radius: 8px;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 20px rgba(0, 149, 255, 0.6);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.9rem;
    color: #8ba3c7;
    font-weight: 600;
}

/* Question Styles */
.question-container h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 149, 255, 0.4);
}

.options-container {
    margin-bottom: 30px;
}

.option {
    background: rgba(13, 27, 42, 0.6);
    border: 2px solid rgba(0, 149, 255, 0.3);
    border-radius: 12px;
    padding: 18px 24px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #d4dce8;
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 149, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.option:hover::before {
    left: 100%;
}

.option:hover {
    background: rgba(0, 102, 204, 0.2);
    border-color: #0095ff;
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 149, 255, 0.3);
}

.option.selected {
    background: linear-gradient(135deg, #0066cc, #0095ff);
    border-color: #00c3ff;
    color: white;
    font-weight: 600;
    box-shadow: 
        0 4px 20px rgba(0, 149, 255, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Form Screen */
#form-screen {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(27, 38, 59, 0.9));
    padding: 30px;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(0, 149, 255, 0.3),
        0 0 0 1px rgba(0, 149, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 149, 255, 0.2);
}

.form-container h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 149, 255, 0.5);
}

.form-container p {
    color: #b8c5d6;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #d4dce8;
    font-weight: 600;
}

.required {
    color: #ff4757;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 149, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(13, 27, 42, 0.6);
    color: #ffffff;
}

.form-group input::placeholder {
    color: #6c8099;
}

.form-group input:focus {
    outline: none;
    border-color: #0095ff;
    box-shadow: 0 0 0 3px rgba(0, 149, 255, 0.2), 0 0 20px rgba(0, 149, 255, 0.3);
    background: rgba(13, 27, 42, 0.8);
}

/* Results Screen */
#results-screen {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(27, 38, 59, 0.9));
    padding: 30px;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(0, 149, 255, 0.3),
        0 0 0 1px rgba(0, 149, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 149, 255, 0.2);
}

.results-container h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 149, 255, 0.5);
}

.result-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.3), rgba(0, 149, 255, 0.2));
    color: white;
    padding: 35px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid rgba(0, 149, 255, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 149, 255, 0.2),
        inset 0 1px 1px rgba(0, 149, 255, 0.3);
}

.result-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 149, 255, 0.6);
}

.result-card p {
    margin-bottom: 20px;
    opacity: 0.95;
    color: #d4dce8;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0066cc, #0095ff, #00c3ff);
    color: white;
    border: 2px solid rgba(0, 195, 255, 0.5);
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin: 10px;
    box-shadow: 
        0 4px 20px rgba(0, 149, 255, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 149, 255, 0.6);
    border-color: #00c3ff;
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.3);
    color: #d4dce8;
    border: 2px solid rgba(108, 117, 125, 0.5);
    padding: 12px 25px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.5);
    border-color: rgba(108, 117, 125, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-content,
    #quiz-screen,
    #form-screen,
    #results-screen {
        padding: 20px;
    }
    
    .question-container h2 {
        font-size: 1.3rem;
    }
    
    .option {
        padding: 12px 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active {
    animation: fadeIn 0.5s ease;
}
