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

body {
	font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
	min-height: 100vh;
	padding: 20px;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 40% 80%, rgba(120, 119, 255, 0.3) 0%, transparent 50%);
	pointer-events: none;
	z-index: -1;
}

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

.container {
	max-width: 1000px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.header {
	text-align: center;
	color: white;
	margin-bottom: 40px;
	padding: 40px 30px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 
		0 8px 32px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
}

.header::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% { left: -100%; }
	100% { left: 100%; }
}

.header h1 {
	font-size: 3rem;
	margin-bottom: 15px;
	text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	font-weight: 700;
	background: linear-gradient(135deg, #ffffff, #f0f0f0);
	background-clip: text;
	-webkit-background-clip: text;
	position: relative;
}

.header p {
	font-size: 1.2rem;
	opacity: 0.95;
	font-weight: 400;
	letter-spacing: 0.5px;
}

.controls {
	display: flex;
	gap: 20px;
	margin-bottom: 40px;
	flex-wrap: wrap;
	justify-content: center;
	padding: 25px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 20px;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn {
	padding: 14px 28px;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	position: relative;
	overflow: hidden;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::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: left 0.6s;
}

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

.btn-primary {
	background: linear-gradient(135deg, #4CAF50, #66BB6A, #4CAF50);
	background-size: 200% 200%;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary {
	background: linear-gradient(135deg, #2196F3, #42A5F5, #2196F3);
	background-size: 200% 200%;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success {
	background: linear-gradient(135deg, #FF9800, #FFB74D, #FF9800);
	background-size: 200% 200%;
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
	background-position: right center;
}

.btn:active {
	transform: translateY(-1px) scale(0.98);
}

.quiz-content {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.question-card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 24px;
	box-shadow: 
		0 10px 40px rgba(0, 0, 0, 0.08),
		0 2px 8px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	position: relative;
}

.question-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
	background-size: 200% 100%;
	animation: borderGlow 3s linear infinite;
}

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

.question-card:hover {
	transform: translateY(-8px);
	box-shadow: 
		0 20px 60px rgba(0, 0, 0, 0.15),
		0 8px 16px rgba(0, 0, 0, 0.08);
}

.question-header {
	background: linear-gradient(135deg, #667eea, #764ba2);
	background-size: 200% 200%;
	color: white;
	padding: 28px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.4s ease;
	min-height: 80px;
	position: relative;
	overflow: hidden;
}

.question-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.question-header:hover {
	background-position: right center;
}

.question-header:hover::before {
	opacity: 1;
}

.question-title {
	font-weight: 600;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-icon {
	font-size: 1.3rem;
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	flex-shrink: 0;
	margin-left: 15px;
}

.question-content {
	padding: 35px;
	display: none;
	animation: slideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.question-content.show {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
		filter: blur(5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

.question-text {
	font-size: 1.15rem;
	line-height: 1.7;
	margin-bottom: 30px;
	color: #2c3e50;
	font-weight: 500;
	letter-spacing: 0.2px;
}

.options {
	list-style: none;
	margin-bottom: 25px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.option {
	margin-bottom: 0;
}

.option label {
	display: flex;
	align-items: center;
	padding: 20px;
	background: linear-gradient(135deg, #f8f9fa, #ffffff);
	border-radius: 16px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 2px solid #e8f4f8;
	font-weight: 500;
	font-size: 1.05rem;
	color: #2c3e50;
	gap: 15px;
	position: relative;
	overflow: hidden;
}

.option label::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
	transition: left 0.6s;
}

.option label:hover {
	background: linear-gradient(135deg, #f0f8ff, #ffffff);
	border-color: #667eea;
	transform: translateX(8px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.option label:hover::before {
	left: 100%;
}

.option input[type="radio"] {
	width: 20px;
	height: 20px;
	accent-color: #667eea;
	cursor: pointer;
}

.option.correct label {
	background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
	border-color: #4CAF50;
	color: #2e7d32;
	box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.option.incorrect label {
	background: linear-gradient(135deg, #ffeaea, #ffebee);
	border-color: #f44336;
	color: #c62828;
	box-shadow: 0 8px 25px rgba(244, 67, 54, 0.2);
}

.check-answer-btn {
	margin-top: 20px;
	padding: 15px 32px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	background-size: 200% 200%;
	color: white;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	font-size: 15px;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
	position: relative;
	overflow: hidden;
}

.check-answer-btn::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: left 0.6s;
}

.check-answer-btn:hover:not(:disabled) {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
	background-position: right center;
}

.check-answer-btn:hover:not(:disabled)::before {
	left: 100%;
}

.check-answer-btn:disabled {
	background: linear-gradient(135deg, #9e9e9e, #757575);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	opacity: 0.7;
}

.result {
	margin-top: 20px;
	padding: 25px;
	border-radius: 16px;
	font-weight: 600;
	display: none;
	animation: resultAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
}

.result::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: resultShimmer 2s infinite;
}

@keyframes resultAppear {
	from { 
		opacity: 0; 
		transform: translateY(20px) scale(0.95);
		filter: blur(10px);
	}
	to { 
		opacity: 1; 
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

@keyframes resultShimmer {
	0% { left: -100%; }
	50% { left: 100%; }
	100% { left: 100%; }
}

.result.correct {
	background: linear-gradient(135deg, #4CAF50, #66BB6A);
	color: white;
	box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.result.incorrect {
	background: linear-gradient(135deg, #f44336, #ef5350);
	color: white;
	box-shadow: 0 10px 30px rgba(244, 67, 54, 0.3);
}

.result-answer {
	font-size: 1.15rem;
	margin-bottom: 12px;
	font-weight: 600;
	position: relative;
	z-index: 1;
}

.result-description {
	font-size: 1em;
	font-weight: 400;
	line-height: 1.6;
	margin-top: 10px;
	opacity: 0.95;
	position: relative;
	z-index: 1;
}

.stats-bar {
	background: rgba(255, 255, 255, 0.08);
	color: white;
	padding: 25px;
	border-radius: 20px;
	margin-bottom: 30px;
	text-align: center;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.stats-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	animation: statsShimmer 4s infinite;
}

@keyframes statsShimmer {
	0% { left: -100%; }
	25% { left: 100%; }
	100% { left: 100%; }
}

.stats-bar span {
	margin: 0 20px;
	font-weight: 600;
	font-size: 1.1rem;
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	body {
		padding: 15px;
	}
	
	.container {
		margin: 0;
	}
	
	.header {
		padding: 30px 20px;
		margin-bottom: 30px;
		border-radius: 20px;
	}
	
	.header h1 {
		font-size: 2.2rem;
	}
	
	.controls {
		flex-direction: column;
		align-items: center;
		padding: 20px;
		gap: 15px;
	}
	
	.btn {
		justify-content: center;
		max-width: 280px;
	}
	
	.quiz-content {
		gap: 25px;
	}
	
	.question-header {
		padding: 20px;
		min-height: 70px;
	}
	
	.question-title {
		font-size: 1.1rem;
		gap: 8px;
	}
	
	.question-content {
		padding: 25px 20px;
	}
	
	.option label {
		padding: 16px;
		gap: 12px;
		font-size: 1rem;
	}
	
	.toggle-icon {
		font-size: 1.2rem;
		margin-left: 10px;
	}
	
	.stats-bar {
		padding: 20px;
	}
	
	.stats-bar span {
		margin: 0 10px;
		font-size: 1rem;
		display: block;
		margin-bottom: 8px;
	}
	
	.stats-bar span:last-child {
		margin-bottom: 0;
	}
}

.pagination {
	margin-top: 40px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pagination h3 {
	font-size: 1.2rem;
	color: white;
	margin-bottom: 20px;
	width: 100%;
	text-align: center;
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pagination .btn {
	padding: 10px 18px;
	font-size: 14px;
	text-decoration: none;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
	text-transform: none;
}

.pagination .btn::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: left 0.6s;
}

.pagination .btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pagination .btn:hover::before {
	left: 100%;
}

.pagination .btn.btn-primary {
	background: linear-gradient(135deg, #667eea, #764ba2);
	border-color: rgba(255, 255, 255, 0.3);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}