/* 🎨 GLOBAL RESET & THEME */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--slate-dark: #0f172a;
	--electric-blue: #3b82f6;
	--emerald: #10b981;
	--violet: #8b5cf6;
	--off-white: #f8fafc;
	--crimson: #ef4444;
	--gold: #fbbf24;
	--slate-700: #334155;
	--slate-800: #1e293b;
	--slate-600: #475569;
	--slate-900: #0f172a;
	--slate-500: #64748b;
	--slate-400: #94a3b8;
}

body {
	background-color: var(--slate-dark);
	color: var(--off-white);
	font-family: 'Inter', sans-serif;
	line-height: 1.6;
	overscroll-behavior: none;
}

html {
	scroll-behavior: smooth;
}

*:focus-visible {
	outline: 2px solid var(--electric-blue);
	outline-offset: 2px;
}

.container {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1rem;
}

/* 🎯 TYPOGRAPHY */
.hero-title {
	font-size: 3rem;
	font-weight: 800;
	background: linear-gradient(90deg, var(--electric-blue), var(--violet));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-align: center;
	margin-bottom: 1rem;
	animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
	font-size: 1.25rem;
	text-align: center;
	opacity: 0.9;
	margin-bottom: 3rem;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	margin: 3rem 0 1.5rem;
	text-align: center;
	position: relative;
}

.section-title:after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 4px;
	background: var(--electric-blue);
	border-radius: 2px;
}

.lesson-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--electric-blue);
	margin-bottom: 1rem;
	animation: fadeInUp 0.6s ease-out;
}

.lesson-subtitle {
	font-size: 1.25rem;
	opacity: 0.9;
	margin-bottom: 2rem;
	animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* 🦸 HERO SECTION */
.hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	padding: 5rem 0;
	position: relative;
	overflow: hidden;
}

.hero:before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
	animation: rotate 20s linear infinite;
	z-index: 0;
}

@keyframes rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
}

/* 📊 STATS */
.hero-stats {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2rem;
	margin: 3rem 0;
}

.stat-card {
	background: rgba(30, 41, 59, 0.7);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(51, 65, 85, 0.5);
	border-radius: 1rem;
	padding: 2rem;
	text-align: center;
	min-width: 180px;
	transition: all 0.3s ease;
	animation: fadeInUp 0.6s ease-out;
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	background: rgba(30, 41, 59, 0.9);
}

.stat-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	display: block;
}

.stat-value {
	font-size: 2.5rem;
	font-weight: 800;
	display: block;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 0.9rem;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* 🗺️ ROADMAP */
.roadmap-section {
	padding: 4rem 0;
}

.roadmap-intro {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 3rem;
	font-size: 1.1rem;
	line-height: 1.7;
}

.roadmap-list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.roadmap-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
	padding: 1.5rem;
	border-radius: 1rem;
	border: 2px solid var(--slate-700);
	background: var(--slate-800);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.roadmap-item.completed {
	border-color: var(--emerald);
	background: rgba(16, 185, 129, 0.1);
}

.roadmap-item.available {
	border-color: var(--electric-blue);
	background: rgba(59, 130, 246, 0.1);
}

.roadmap-item.locked {
	border-color: var(--slate-700);
	background: var(--slate-dark);
	opacity: 0.7;
}

.roadmap-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.roadmap-icon {
	font-size: 1.5rem;
	min-width: 40px;
	text-align: center;
	padding-top: 5px;
}

.roadmap-content {
	flex: 1;
}

.roadmap-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--off-white);
	text-decoration: none;
	display: block;
	margin-bottom: 0.5rem;
	transition: color 0.2s;
}

.roadmap-item.completed .roadmap-title,
.roadmap-item.available .roadmap-title {
	color: var(--electric-blue);
}

.roadmap-item.completed .roadmap-title:hover,
.roadmap-item.available .roadmap-title:hover {
	color: var(--violet);
	text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.roadmap-desc {
	font-size: 0.95rem;
	opacity: 0.8;
	line-height: 1.5;
}

/* 🚀 CTA SECTION */
.cta-section {
	padding: 5rem 0;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	text-align: center;
}

.cta-box {
	background: rgba(30, 41, 59, 0.5);
	backdrop-filter: blur(10px);
	border-radius: 1.5rem;
	padding: 3rem;
	max-width: 700px;
	margin: 0 auto;
	border: 1px solid rgba(51, 65, 85, 0.5);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	animation: fadeInUp 0.8s ease-out;
}

.cta-box h2 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--electric-blue);
}

.cta-box p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	opacity: 0.9;
}

.cta-button {
	display: inline-block;
	background: linear-gradient(90deg, var(--electric-blue), var(--violet));
	color: white;
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1.2rem;
	text-decoration: none;
	box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
	transition: all 0.3s ease;
	transform: translateY(0);
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

/* 📚 LESSON HEADER */
.lesson-header {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	padding: 4rem 0 2rem;
	margin-bottom: 3rem;
	position: relative;
	overflow: hidden;
}

.lesson-header:before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
	animation: rotate 25s linear infinite;
	z-index: 0;
}

.lesson-header .container {
	position: relative;
	z-index: 1;
}

.back-link {
	color: var(--electric-blue);
	text-decoration: none;
	display: inline-block;
	margin-bottom: 1.5rem;
	font-weight: 600;
	transition: all 0.2s;
}

.back-link:hover {
	color: var(--violet);
	text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
	transform: translateX(-3px);
}

/* 📖 LESSON CONTENT */
.lesson-content {
	padding: 2rem 0 5rem;
}

.lesson-section {
	margin-bottom: 4rem;
	animation: fadeInUp 0.6s ease-out;
}

.content-box {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	margin-top: 1.5rem;
	line-height: 1.8;
}

.content-box p {
	margin-bottom: 1rem;
}

.content-box ul {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.content-box li {
	margin-bottom: 0.5rem;
}

.fun-fact {
	background: rgba(16, 185, 129, 0.1);
	border-left: 4px solid var(--emerald);
	padding: 1.5rem;
	border-radius: 0.5rem;
	margin: 2rem 0;
	font-style: italic;
}

.fun-fact strong {
	color: var(--emerald);
}

/* 🧪 CIRCUIT LAB */
.circuit-lab {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	margin: 2rem 0;
}

.circuit-diagram {
	background: var(--slate-900);
	border: 2px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	margin: 2rem 0;
}

.circuit-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.circuit-element {
	text-align: center;
	min-width: 150px;
}

.element-label {
	font-size: 0.9rem;
	opacity: 0.8;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.battery-terminals {
	display: flex;
	justify-content: space-between;
	margin: 1rem 0;
}

.terminal {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1.2rem;
}

.terminal.positive {
	background: var(--emerald);
	color: white;
	box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.terminal.negative {
	background: var(--crimson);
	color: white;
	box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.battery-info, .wire-info, .switch-info, .bulb-info {
	font-size: 0.85rem;
	opacity: 0.8;
	margin-top: 0.5rem;
	text-align: center;
}

.electron-count {
	display: block;
	font-size: 0.8rem;
	opacity: 0.7;
	margin-top: 0.5rem;
	font-style: italic;
}

.wire {
	width: 100%;
	height: 8px;
	background: var(--slate-600);
	border-radius: 4px;
	position: relative;
	margin: 1.5rem 0;
	overflow: hidden;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.electron {
	position: absolute;
	top: -2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--electric-blue);
	animation: flow 3s linear infinite;
	box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
	opacity: 1;
}

@keyframes flow {
	0% { transform: translateX(0); }
	100% { transform: translateX(100vw); }
}

.switch-btn {
	background: var(--slate-700);
	color: var(--slate-400);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 1.1rem;
	min-width: 120px;
}

.switch-btn.on {
	background: var(--emerald);
	color: white;
	border: 2px solid var(--emerald);
	box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
	transform: scale(1.05);
}

.bulb-element {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	background: var(--slate-800);
	margin: 1.5rem auto;
	transition: all 0.3s;
	border: 3px solid var(--slate-700);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.bulb-element.on {
	background: var(--emerald);
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
	box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
	border-color: var(--emerald);
	transform: scale(1.1);
}

/* ❓ QUIZ STYLES */
.quiz-container {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	margin: 2rem 0;
}

.quiz-question {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--slate-700);
}

.quiz-question:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.quiz-question p {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.quiz-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.quiz-option {
	display: block;
	background: var(--slate-700);
	padding: 1rem;
	border-radius: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
	padding-left: 3rem;
}

.quiz-option:hover {
	background: var(--slate-600);
	transform: translateX(3px);
}

.quiz-option input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.checkmark {
	position: absolute;
	top: 50%;
	left: 1rem;
	transform: translateY(-50%);
	height: 20px;
	width: 20px;
	background-color: var(--slate-700);
	border-radius: 50%;
	border: 2px solid var(--slate-500);
	transition: all 0.2s;
}

.quiz-option:hover .checkmark {
	border-color: var(--electric-blue);
}

.quiz-option input:checked ~ .checkmark {
	background-color: var(--electric-blue);
	border-color: var(--electric-blue);
}

.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

.quiz-option input:checked ~ .checkmark:after {
	display: block;
}

.quiz-option .checkmark:after {
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.submit-btn {
	background: linear-gradient(90deg, var(--electric-blue), var(--violet));
	color: white;
	border: none;
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1.1rem;
	cursor: pointer;
	box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
	transition: all 0.3s ease;
	margin-top: 1rem;
}

.submit-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.quiz-result {
	margin: 2rem 0;
	padding: 1.5rem;
	border-radius: 0.75rem;
	font-weight: 600;
	text-align: center;
	font-size: 1.1rem;
}

.quiz-result.success {
	background: rgba(16, 185, 129, 0.2);
	border: 2px solid var(--emerald);
	color: var(--emerald);
}

.quiz-result.error {
	background: rgba(239, 68, 68, 0.2);
	border: 2px solid var(--crimson);
	color: var(--crimson);
}

.show-answer {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	margin: 2rem 0;
}

.show-answer h4 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--gold);
}

.show-answer p {
	margin: 0.75rem 0;
	line-height: 1.6;
}

.retry-btn {
	background: var(--slate-700);
	color: var(--off-white);
	border: none;
	padding: 0.75rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s;
	margin-top: 1.5rem;
}

.retry-btn:hover {
	background: var(--slate-600);
	transform: translateY(-2px);
}

/* 🎉 SUCCESS SECTION */
.next-section {
	text-align: center;
	padding: 3rem;
	background: rgba(16, 185, 129, 0.1);
	border: 2px solid var(--emerald);
	border-radius: 1.5rem;
	margin: 3rem 0;
	animation: fadeInUp 0.8s ease-out;
}

.success-message {
	margin-bottom: 2rem;
}

.success-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	display: block;
}

.success-message h3 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--emerald);
	margin-bottom: 1rem;
}

.success-message p {
	font-size: 1.1rem;
	line-height: 1.6;
}

.next-btn {
	display: inline-block;
	background: linear-gradient(90deg, var(--emerald), var(--electric-blue));
	color: white;
	padding: 1rem 2.5rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1.2rem;
	text-decoration: none;
	box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
	transition: all 0.3s ease;
	margin-top: 1rem;
}

.next-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* 🧩 LOGIC GATES STYLES */
.logic-gate-container {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	margin: 2rem 0;
}

.gate-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.input-control {
	text-align: center;
}

.input-control label {
	display: block;
	font-size: 0.9rem;
	opacity: 0.8;
	margin-bottom: 0.5rem;
}

.input-btn {
	background: var(--slate-700);
	color: var(--off-white);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 1.2rem;
	min-width: 60px;
}

.input-btn:hover {
	background: var(--slate-600);
}

.input-btn.active {
	background: var(--emerald);
	color: white;
	border: 2px solid var(--emerald);
	box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
	transform: scale(1.05);
}

.gate-type select {
	background: var(--slate-700);
	color: var(--off-white);
	border: 1px solid var(--slate-600);
	padding: 0.75rem;
	border-radius: 0.75rem;
	font-size: 1rem;
	cursor: pointer;
}

.output-display {
	text-align: center;
	margin: 2rem 0;
	padding: 2rem;
	background: var(--slate-700);
	border-radius: 1rem;
}

.output-label {
	font-size: 1.1rem;
	opacity: 0.8;
	margin-bottom: 0.5rem;
}

.output-value {
	font-size: 3rem;
	font-weight: 700;
	font-family: 'JetBrains Mono', monospace;
	color: var(--electric-blue);
	transition: all 0.3s;
}

.output-value.on {
	color: var(--emerald);
	text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
	transform: scale(1.1);
}

.truth-table {
	margin-top: 2rem;
}

.truth-table h3 {
	text-align: center;
	margin-bottom: 1rem;
}

.truth-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--slate-700);
	border-radius: 0.5rem;
	overflow: hidden;
}

.truth-table th,
.truth-table td {
	padding: 1rem;
	text-align: center;
	border: 1px solid var(--slate-600);
	font-family: 'JetBrains Mono', monospace;
	font-size: 1rem;
}

.truth-table th {
	background: var(--slate-600);
	color: var(--off-white);
}

.gate-explanation {
	background: rgba(16, 185, 129, 0.1);
	border-left: 4px solid var(--emerald);
	padding: 1.5rem;
	border-radius: 0.5rem;
	margin: 1.5rem 0;
}

/* 🧠 CPU PIPELINE STYLES */
.cpu-pipeline {
	display: flex;
	justify-content: space-between;
	margin: 2rem 0;
	gap: 1rem;
	flex-wrap: wrap;
}

.pipeline-stage {
	flex: 1;
	min-width: 200px;
	background: var(--slate-800);
	border: 2px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	text-align: center;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.pipeline-stage.active {
	border-color: var(--emerald);
	background: rgba(16, 185, 129, 0.1);
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.stage-label {
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--electric-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.stage-content {
	font-size: 0.95rem;
	opacity: 0.9;
	line-height: 1.5;
}

.stage-light {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--slate-700);
	margin: 1rem auto;
	transition: all 0.3s;
	border: 2px solid var(--slate-600);
}

.pipeline-stage.active .stage-light {
	background: var(--emerald);
	border-color: var(--emerald);
	box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.instruction-display {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.9rem;
	background: var(--slate-700);
	padding: 0.5rem;
	border-radius: 0.5rem;
	margin-top: 1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2rem 0;
	align-items: center;
	justify-content: center;
}

.control-btn {
	background: var(--slate-700);
	color: var(--off-white);
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 1rem;
}

.control-btn:hover {
	background: var(--slate-600);
	transform: translateY(-2px);
}

.control-btn:disabled {
	background: var(--slate-600);
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.stop-btn {
	background: var(--crimson);
}

.stop-btn:hover {
	background: #dc2626;
}

.hack-btn {
	background: linear-gradient(90deg, #ef4444, #f97316);
}

.speed-control {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--slate-700);
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
}

.speed-control label {
	font-size: 0.9rem;
	opacity: 0.8;
}

.speed-control input[type="range"] {
	appearance: none;
	width: 100px;
	height: 6px;
	background: var(--slate-600);
	border-radius: 3px;
	outline: none;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--electric-blue);
	cursor: pointer;
	box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.speed-control span {
	font-weight: 600;
	color: var(--electric-blue);
	min-width: 40px;
	text-align: center;
}

.register-display {
	margin-top: 2rem;
	padding: 1.5rem;
	background: var(--slate-700);
	border-radius: 1rem;
}

.register-display h3 {
	text-align: center;
	margin-bottom: 1rem;
}

.registers {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.register {
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.2rem;
	font-weight: 600;
	padding: 0.75rem 1.5rem;
	background: var(--slate-800);
	border-radius: 0.75rem;
	border: 1px solid var(--slate-600);
}

/* 💾 MEMORY STYLES */
.memory-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2rem 0;
	align-items: center;
	justify-content: center;
	background: var(--slate-800);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--slate-700);
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.control-group label {
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.memory-controls input {
	padding: 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--slate-600);
	background: var(--slate-700);
	color: var(--off-white);
	font-size: 1rem;
	min-width: 120px;
}

.memory-controls input:focus {
	outline: none;
	border-color: var(--electric-blue);
	box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.clear-btn {
	background: var(--crimson);
}

.clear-btn:hover {
	background: #dc2626;
}

.output-display {
	padding: 1rem 2rem;
	border-radius: 0.75rem;
	background: var(--slate-700);
	margin-top: 1rem;
	font-weight: 600;
	text-align: center;
	font-size: 1.1rem;
}

.output-display.success {
	color: var(--emerald);
	border: 1px solid var(--emerald);
}

.output-display.error {
	color: var(--crimson);
	border: 1px solid var(--crimson);
}

.memory-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin: 2rem 0;
}

.memory-cell {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 0.75rem;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.3s;
}

.memory-cell:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	border-color: var(--electric-blue);
}

.memory-cell.active {
	background: rgba(16, 185, 129, 0.2);
	border-color: var(--emerald);
	transform: scale(1.05);
}

.cell-address {
	font-weight: 700;
	color: var(--violet);
	font-size: 1rem;
	margin-bottom: 0.5rem;
	font-family: 'JetBrains Mono', monospace;
}

.cell-data {
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.25rem;
	color: var(--gold);
	font-weight: 600;
}

.memory-types {
	display: flex;
	gap: 2rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.memory-type {
	flex: 1;
	min-width: 250px;
	padding: 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid var(--slate-700);
}

.memory-type.ram {
	background: rgba(59, 130, 246, 0.1);
	border-color: var(--electric-blue);
}

.memory-type.storage {
	background: rgba(16, 185, 129, 0.1);
	border-color: var(--emerald);
}

.memory-type h3 {
	color: var(--electric-blue);
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--slate-700);
	padding-bottom: 0.5rem;
}

.memory-type p {
	margin: 0.5rem 0;
	line-height: 1.5;
}

/* 🖥️ OS SCHEDULER STYLES */
.os-simulator {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin: 2rem 0;
}

.scheduler-container {
	background: var(--slate-800);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--slate-700);
}

.process-list {
	width: 100%;
}

.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.process-item {
	padding: 1.5rem;
	background: var(--slate-700);
	border: 1px solid var(--slate-600);
	border-radius: 0.75rem;
	margin-bottom: 1rem;
	text-align: center;
	transition: all 0.3s;
}

.process-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.process-item.active {
	background: rgba(16, 185, 129, 0.2);
	border-color: var(--emerald);
	color: var(--emerald);
	transform: scale(1.05);
	box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.process-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.process-icon {
	font-size: 1.5rem;
}

.process-name {
	font-size: 1.2rem;
	font-weight: 600;
}

.process-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.9rem;
	opacity: 0.9;
}

.process-id, .process-priority {
	font-family: 'JetBrains Mono', monospace;
}

.cpu-display {
	background: var(--slate-700);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--slate-600);
}

.cpu-display h3 {
	text-align: center;
	margin-bottom: 1.5rem;
	color: var(--electric-blue);
}

.cpu-visual {
	margin: 1.5rem 0;
}

.cpu-bar {
	width: 100%;
	height: 30px;
	background: var(--slate-600);
	border-radius: 15px;
	margin: 1.5rem 0;
	overflow: hidden;
	border: 2px solid var(--slate-500);
}

.cpu-fill {
	height: 100%;
	width: 0%;
	background: var(--emerald);
	transition: width 0.1s linear;
	border-radius: 15px;
	box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.cpu-percentage {
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--gold);
	margin-top: 0.5rem;
}

.current-process {
	background: var(--slate-800);
	padding: 1.5rem;
	border-radius: 0.75rem;
	margin-top: 1.5rem;
	border: 1px solid var(--slate-600);
}

.current-process .status, .current-process .time {
	font-size: 1.1rem;
	margin: 0.5rem 0;
}

.current-process .status span, .current-process .time span {
	color: var(--gold);
	font-weight: 600;
}

.scheduler-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-top: 2rem;
}

.add-btn {
	background: linear-gradient(90deg, var(--emerald), var(--violet));
}

.add-btn:hover {
	background: linear-gradient(90deg, #059669, #7c3aed);
}

.stop-btn {
	background: var(--crimson);
}

.stop-btn:hover {
	background: #dc2626;
}

.os-functions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.function-card {
	background: var(--slate-700);
	padding: 1.5rem;
	border-radius: 0.75rem;
	border: 1px solid var(--slate-600);
	transition: all 0.3s;
}

.function-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	border-color: var(--electric-blue);
}

.function-card h3 {
	color: var(--electric-blue);
	margin-bottom: 0.75rem;
}

/* 🌐 NETWORK STYLES */
.network-simulator {
	background: var(--slate-800);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--slate-700);
	margin: 2rem 0;
}

.network-diagram {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	margin: 2rem 0;
}

.network-node {
	padding: 1.5rem 2rem;
	border-radius: 1rem;
	background: var(--slate-700);
	border: 2px solid var(--slate-600);
	font-weight: 600;
	transition: all 0.3s;
	text-align: center;
	font-size: 1.1rem;
	min-width: 150px;
}

.network-node:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.network-node.active {
	border-color: var(--emerald);
	background: rgba(16, 185, 129, 0.2);
	transform: scale(1.1);
	box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
	color: var(--emerald);
}

.node-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.node-label {
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.node-ip {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.9rem;
	opacity: 0.8;
}

.network-path {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
	width: 100%;
}

.network-segment {
	display: flex;
	justify-content: center;
	align-items: center;
}

.packet-status {
	padding: 1.5rem;
	background: var(--slate-700);
	border-radius: 0.75rem;
	margin: 2rem 0;
	font-weight: 600;
	text-align: center;
	font-size: 1.1rem;
	border: 2px solid var(--slate-600);
}

.status-header {
	font-weight: 700;
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: var(--electric-blue);
}

.status-content {
	font-size: 1rem;
	line-height: 1.5;
}

.status-content.success {
	color: var(--emerald);
	font-weight: 600;
}

.network-controls {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 2rem 0;
	align-items: center;
}

.message-input {
	width: 100%;
	max-width: 500px;
}

.message-input label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.message-input input {
	width: 100%;
	padding: 0.75rem;
	border-radius: 0.75rem;
	border: 1px solid var(--slate-600);
	background: var(--slate-700);
	color: var(--off-white);
	font-size: 1rem;
}

.packet-info {
	background: var(--slate-700);
	padding: 2rem;
	border-radius: 1rem;
	border: 1px solid var(--slate-600);
	margin-top: 2rem;
}

.packet-info h3 {
	text-align: center;
	margin-bottom: 1.5rem;
	color: var(--electric-blue);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.5rem;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.info-label {
	font-weight: 600;
	opacity: 0.8;
}

.info-value {
	font-family: 'JetBrains Mono', monospace;
	font-size: 1.1rem;
	color: var(--gold);
	font-weight: 600;
}

/* 🛡️ CYBERSECURITY STYLES */
.security-module {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
	margin: 2rem 0;
}

.security-module h3 {
	color: var(--electric-blue);
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--slate-700);
}

.input-group {
	margin-bottom: 1.5rem;
}

.input-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.input-group input {
	width: 100%;
	max-width: 400px;
	padding: 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--slate-600);
	background: var(--slate-700);
	color: var(--off-white);
	font-size: 1rem;
	margin-bottom: 1rem;
}

.hash-results {
	background: var(--slate-700);
	padding: 1.5rem;
	border-radius: 0.75rem;
	margin-top: 1.5rem;
}

.hash-row {
	display: flex;
	justify-content: space-between;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--slate-600);
}

.hash-row:last-child {
	border-bottom: none;
}

.hash-label {
	font-weight: 600;
	color: var(--slate-300);
}

.hash-value {
	font-family: 'JetBrains Mono', monospace;
	color: var(--gold);
	font-weight: 600;
}

.hash-info {
	font-size: 0.9rem;
	margin-top: 1rem;
	padding: 1rem;
	background: rgba(16, 185, 129, 0.1);
	border-radius: 0.5rem;
	border-left: 4px solid var(--emerald);
}

.attack-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	align-items: center;
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.control-group select {
	padding: 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--slate-600);
	background: var(--slate-700);
	color: var(--off-white);
	font-size: 1rem;
}

.attack-log {
	background: var(--slate-700);
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin: 1.5rem 0;
	max-height: 300px;
	overflow-y: auto;
	font-family: 'JetBrains Mono', monospace;
	border: 1px solid var(--slate-600);
}

.log-header {
	font-weight: 700;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--slate-600);
}

.log-content {
	margin-bottom: 1rem;
}

.log-entry {
	padding: 0.25rem 0;
	border-bottom: 1px solid var(--slate-600);
}

.log-entry:last-child {
	border-bottom: none;
}

.log-entry code {
	background: var(--slate-600);
	padding: 0.2rem 0.5rem;
	border-radius: 0.25rem;
	color: var(--gold);
}

.log-entry.success {
	color: var(--emerald);
	font-weight: 600;
}

.log-entry.warning {
	color: var(--gold);
	font-weight: 600;
}

.attack-stats {
	display: flex;
	gap: 2rem;
	margin-top: 1.5rem;
	padding: 1rem;
	background: var(--slate-700);
	border-radius: 0.75rem;
	flex-wrap: wrap;
}

.stat-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.stat-label {
	font-size: 0.9rem;
	opacity: 0.8;
}

.stat-value {
	font-weight: 700;
	color: var(--gold);
	font-size: 1.2rem;
}

.tips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.tip-card {
	background: var(--slate-700);
	border-radius: 0.75rem;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.3s;
	border: 1px solid var(--slate-600);
}

.tip-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	border-color: var(--electric-blue);
}

.tip-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.tip-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--electric-blue);
}

.tip-desc {
	font-size: 0.9rem;
	opacity: 0.9;
}

/* 🕵️ ETHICAL HACKING STYLES */
.hacking-lab {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.sql-injection-simulator, .xss-simulator {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	border-radius: 1rem;
	padding: 2rem;
}

.login-simulator {
	background: var(--slate-700);
	border-radius: 0.75rem;
	padding: 2rem;
	margin: 1.5rem 0;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.login-form {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	align-items: flex-end;
}

.login-form input {
	padding: 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--slate-600);
	background: var(--slate-700);
	color: var(--off-white);
	font-size: 1rem;
	min-width: 200px;
}

.database-section {
	background: var(--slate-800);
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin: 1.5rem 0;
	border: 1px solid var(--slate-600);
}

.query-display {
	font-family: 'JetBrains Mono', monospace;
	white-space: pre-wrap;
	background: var(--slate-900);
	padding: 1rem;
	border-radius: 0.5rem;
	border: 1px solid var(--slate-600);
	font-size: 0.95rem;
	line-height: 1.5;
}

.login-result {
	background: var(--slate-700);
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin-top: 1.5rem;
	border: 1px solid var(--slate-600);
}

.login-result .result-header {
	font-weight: 700;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--slate-600);
}

.login-result .result-content {
	line-height: 1.6;
}

.login-result .result-content.success {
	color: var(--emerald);
}

.login-result .result-content.error {
	color: var(--crimson);
}

.login-result .result-warning {
	color: var(--gold);
	font-weight: 600;
	margin-top: 0.5rem;
	padding: 0.75rem;
	background: rgba(251, 191, 36, 0.1);
	border-radius: 0.5rem;
	border-left: 4px solid var(--gold);
}

.hack-explanation, .xss-explanation {
	background: rgba(16, 185, 129, 0.1);
	border-left: 4px solid var(--emerald);
	padding: 1.5rem;
	border-radius: 0.5rem;
	margin: 1.5rem 0;
}

.xss-demo {
	background: var(--slate-700);
	border-radius: 0.75rem;
	padding: 2rem;
}

.xss-input {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	align-items: flex-end;
}

.xss-input input {
	flex: 1;
	min-width: 300px;
	padding: 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid var(--slate-600);
	background: var(--slate-700);
	color: var(--off-white);
	font-size: 1rem;
}

.comments-section {
	background: var(--slate-800);
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin: 1.5rem 0;
	border: 1px solid var(--slate-600);
}

.comments-section h4 {
	margin-bottom: 1rem;
	color: var(--electric-blue);
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--slate-600);
}

.comments-container {
	margin-top: 1rem;
}

.comment {
	background: var(--slate-700);
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 0.75rem;
	border: 1px solid var(--slate-600);
}

.principles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.principle-card {
	background: var(--slate-700);
	border-radius: 0.75rem;
	padding: 1.5rem;
	text-align: center;
	transition: all 0.3s;
	border: 1px solid var(--slate-600);
}

.principle-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	border-color: var(--violet);
}

.principle-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.principle-title {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--violet);
}

.principle-desc {
	font-size: 0.9rem;
	opacity: 0.9;
}

/* 🎓 COMPLETION STYLES */
.completion-section {
	text-align: center;
	padding: 4rem 2rem;
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(139, 92, 246, 0.1));
	border-radius: 2rem;
	margin: 4rem 0;
	animation: fadeInUp 0.8s ease-out;
}

.completion-section .success-message {
	max-width: 800px;
	margin: 0 auto;
}

.completion-section .success-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	display: block;
}

.completion-section h3 {
	font-size: 2rem;
	color: var(--emerald);
	margin-bottom: 1rem;
}

.completion-message {
	font-size: 1.2rem;
	margin: 2rem 0;
	line-height: 1.6;
	max-width: 600px;
	margin: 2rem auto;
}

.final-stats {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	margin: 3rem 0;
}

.final-stats .stat-card {
	background: var(--slate-800);
	border: 1px solid var(--slate-700);
	padding: 2rem;
	border-radius: 1rem;
	display: inline-block;
	min-width: 180px;
	text-align: center;
}

.final-stats .stat-value {
	font-size: 2.5rem;
	font-weight: 800;
	display: block;
	margin-bottom: 0.5rem;
	color: var(--gold);
}

.final-stats .stat-label {
	font-size: 0.9rem;
	opacity: 0.8;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* 🌀 ANIMATIONS */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

@keyframes confetti {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translateY(100vh) rotate(720deg);
		opacity: 0;
	}
}

.animate-pulse-slow {
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 🎉 CONFETTI */
#confetti-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1000;
}

.confetti {
	position: absolute;
	font-size: 1.5rem;
	animation: confetti 1.5s ease-out forwards;
	user-select: none;
}

/* 💡 CODE STYLES */
.inline-code {
	background: var(--slate-700);
	padding: 0.2rem 0.5rem;
	border-radius: 0.25rem;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.9rem;
	color: var(--gold);
}

/* 💡 RESPONSIVE DESIGNS */
@media (max-width: 768px) {
	.hero-title { font-size: 2.5rem; }
	.hero-subtitle { font-size: 1.1rem; }
	.stat-value { font-size: 2rem; }
	.roadmap-item { flex-direction: column; align-items: center; text-align: center; }
	.roadmap-icon { align-self: flex-start; }
	.cta-box h2 { font-size: 2rem; }
	.cta-box p { font-size: 1.1rem; }
	.lesson-title { font-size: 2rem; }
	.circuit-row { flex-direction: column; gap: 1rem; }
	.gate-controls { flex-direction: column; gap: 1rem; }
	.memory-grid { grid-template-columns: repeat(2, 1fr); }
	.quiz-option { padding-left: 2.5rem; }
	.checkmark { left: 0.75rem; }
	.security-module, .hacking-lab { padding: 1.5rem; }
	.tips-grid, .principles-grid, .os-functions, .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.hero-title { font-size: 2rem; }
	.stat-card { min-width: 150px; padding: 1.5rem; }
	.stat-value { font-size: 1.75rem; }
	.roadmap-item { padding: 1rem; }
	.circuit-element { min-width: auto; }
	.input-btn { padding: 0.5rem 1rem; font-size: 1rem; }
	.memory-controls { flex-direction: column; }
	.memory-controls input { min-width: auto; }
	.quiz-question p { font-size: 1rem; }
	.submit-btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
	.next-btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
}