@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik/static/Rubik-Bold.woff2') format('woff2'),
        url('../fonts/Rubik/static/Rubik-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik/static/Rubik-Medium.woff2') format('woff2'),
        url('../fonts/Rubik/static/Rubik-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik/static/Rubik-Regular.woff2') format('woff2'),
        url('../fonts/Rubik/static/Rubik-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit/static/Outfit-Regular.woff2') format('woff2'),
        url('../fonts/Outfit/static/Outfit-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit/static/Outfit-Bold.woff2') format('woff2'),
        url('../fonts/Outfit/static/Outfit-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit/static/Outfit-Medium.woff2') format('woff2'),
        url('../fonts/Outfit/static/Outfit-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
	--bg-color: #0f172a;
	--card-bg: rgba(255, 255, 255, 0.03);
	--card-border: rgba(255, 255, 255, 0.08);
	--text-main: #f8fafc;
	--text-muted: #94a3b8;
	--accent-glow: rgb(33 243 78 / 24%);
	--icon-default: #e2e8f0;
	--icon-hover: #00f757;
	--cookie-consent-accept-bg: #00ff34;
	--cookie-consent-accept-color: #000;
}
* {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
body {
	background-color: var(--bg-color);
	background-attachment: fixed;
	background-image: 
		radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
		radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.15), transparent 25%);
	color: var(--text-main);
	margin: 0;
	padding: 0;
	font-family: 'Rubik', 'Outfit', sans-serif;
	direction: ltr;
}
html[dir="rtl"] body {
	direction: rtl;
}
h1 {
	font-family: 'Outfit', sans-serif;
	font-size: 4rem;
	font-weight: 700;
	margin: 40px auto 10px;
	text-align: center;
	background: linear-gradient(to right, #00ff34 0%, #00efe6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -1px;
}
header h1 {
	margin-top: 0;
}
strong,
h2 {
	font-weight: 500;
}
.slider-group,
.presentation-group {
    background: #0b0f1970;
    padding: 40px;
	margin: 0 auto 40px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
    border: 1px solid #1e293b;
}
.logo-a {
	position: fixed;
	left: 20px;
	top: 20px;
    z-index: 10;
}
/* Language Toggle Button Styles */
.lang-switch-wrapper {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 10;
}
.lang-btn {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 99px;
    cursor: pointer;
    font-family: 'Rubik', 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.lang-btn:hover {
    border-color: var(--icon-hover);
    color: var(--icon-hover);
}
.libraries-container {
	padding: 80px 20px;
	max-width: 1300px;
	margin: 0 auto;
	text-align: center;
}
[dir="rtl"] .libraries-container {
	direction: rtl;
}
.libraries-header {
	margin-bottom: 60px;
	text-align: center;
}
.libraries-header p {
	font-size: 1.2rem;
	color: var(--text-muted);
	margin: 0;
	font-weight: 400;
}
.libraries-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}
.lib-card {
	background: var(--card-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--card-border);
	border-radius: 24px;
	padding: 40px 30px;
	text-decoration: none;
	color: var(--text-main);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}
.lib-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	opacity: 0;
	transition: opacity 0.4s;
}
.lib-card:hover {
	transform: translateY(-10px);
	background: rgba(255, 255, 255, 0.06);
	border-color: rgb(99 241 136 / 50%);
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}
.lib-card:hover::before {
	opacity: 1;
}
.lib-icon {
	margin-bottom: 25px;
	color: var(--icon-default); 
	transition: all 0.4s ease;
}
.lib-icon svg {
	width: 56px;
	height: 56px;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
	transition: all 0.4s ease;
}
.lib-card:hover .lib-icon {
	color: var(--icon-hover);
	transform: scale(1.15);
}
.lib-card:hover .lib-icon svg {
	filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.6));
}
.lib-card h3 {
	font-family: 'Outfit', sans-serif;
	font-size: 1.5rem;
	margin: 0 0 12px 0;
	font-weight: 700;
	letter-spacing: 0.5px;
}
.lib-card p {
	font-size: 0.95rem;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.6;
}
.error-container {
	padding: 60px 40px;
	text-align: center;
	position: relative;
}
.error-container::before {
	content: "";
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 200px;
	background: var(--accent-glow);
	filter: blur(60px);
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}
.logo-animation {
	position: relative;
	z-index: 1;
	animation: float 4s ease-in-out infinite;
	margin-bottom: 10px;
}
.error-code {
	font-family: 'Outfit', sans-serif;
	font-size: 7.5rem;
	font-weight: 800;
	margin: 0;
	line-height: 1;
	background: linear-gradient(to right, #00ff34 0%, #00efe6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: -2px;
	position: relative;
	z-index: 1;
}
.error-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 15px 0 10px 0;
	color: #ffffff;
}
.error-message {
	font-size: 1.05rem;
	color: var(--text-muted);
	margin: 0 0 35px 0;
	line-height: 1.6;
}
.btn-home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: var(--primary);
	color: #fff;
	text-decoration: none;
	padding: 14px 32px;
	border-radius: 12px;
	font-size: 1.05rem;
	font-weight: 700;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 4px 14px rgba(113, 244, 148, 0.3);
}
.btn-home:hover {
	background-color: #5ceb82;
	color: #000;
	box-shadow: 0 8px 20px rgba(113, 244, 148, 0.4), 0 0 15px rgba(113, 244, 148, 0.2);
}
.btn-home svg {
	width: 20px;
	height: 20px;
	transition: transform 0.3s ease;
}
.btn-home:hover svg {
	transform: translateX(4px);
}
@keyframes float {
	0% { transform: translateY(0px); }
	50% { transform: translateY(-12px); }
	100% { transform: translateY(0px); }
}
/* --- Code Copy Sections --- */
.code-copy-box {
    background: #161f30; /* Darker box inside the navy container */
    border-radius: 8px;
    border: 1px solid #24324d;
    margin-top: 8px;
}
.inline-snippet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}
.inline-snippet .code-snippet {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #a5b4fc;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 80%;
}
/* Full Source Code Blocks */
.source-wrapper {
    margin-bottom: 25px;
}
.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c263b;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #24324d;
    border-bottom: none;
    font-size: 14px;
    color: #cbd5e1;
}
.full-source {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 15px;
}
.full-source pre {
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
	direction: ltr;
}
.full-source .code-snippet {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #e2e8f0;
    white-space: pre-wrap;
}
/* Copy Buttons with Mint theme hover states */
.btn-copy {
    background: #111729;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-copy:hover {
    background: rgba(113, 244, 148, 0.1);
    color: #71F494;
    border-color: #71F494;
}
.btn-copy.copied {
    background: #71F494;
    color: #111729;
    border-color: #71F494;
}
.code-block a,
.code-copy-box a {
	color: #85E88D;
	text-decoration: none;
}
.code-block a:hover,
.code-copy-box a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.logo-a {
		left: 10px;
		top: 10px;
	}
	.slider-group, .presentation-group {
		padding: 30px 20px;
	}
	.lang-switch-wrapper { right: 15px;top: 20px; }
	.libraries-header { margin-bottom: 30px; }
	h1 { font-size: 3rem; margin-top: 80px;}
	header h1 {margin-top: 0;}
    .libraries-container { padding: 60px 20px 40px; text-align: left; }
	[dir="rtl"] .libraries-container { text-align: right; }
	.libraries-grid { grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); gap: 20px; }
	.lib-card { flex-direction: row; padding: 15px; align-items: flex-start; }
    .lib-icon { margin: 0 15px 0 0; }
    [dir="rtl"] .lib-icon { margin: 0 0 0 15px; }
	.lib-icon svg { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
	.error-code { font-size: 5.5rem; }
	.error-title { font-size: 1.5rem; }
	.error-container { padding: 40px 20px; }
	.btn-home { width: 100%; }
}