:root {
	--primary-color: #6366f1; /* Indigo 500 */
	--primary-dark: #4f46e5; /* Indigo 600 */
	--primary-light: #818cf8; /* Indigo 400 */
	--bg-color: #f8fafc; /* Slate 50 */
	--surface-color: #ffffff;
	--text-primary: #1e293b; /* Slate 800 */
	--text-secondary: #475569; /* Slate 600 */
	--nav-bg: rgba(99, 102, 241, 0.9);
	--footer-bg: rgba(241, 245, 249, 0.8);
	--border-color: #e2e8f0; /* Slate 200 */
	--transition-speed: 0.3s;
}

body.dark-theme {
	--primary-color: #818cf8; /* Indigo 400 */
	--primary-dark: #6366f1; /* Indigo 500 */
	--primary-light: #a5b4fc; /* Indigo 300 */
	--bg-color: #0f172a; /* Slate 900 */
	--surface-color: #1e293b; /* Slate 800 */
	--text-primary: #f1f5f9; /* Slate 100 */
	--text-secondary: #94a3b8; /* Slate 400 */
	--nav-bg: rgba(30, 41, 59, 0.9);
	--footer-bg: rgba(15, 23, 42, 0.8);
	--border-color: #334155; /* Slate 700 */
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
	color: var(--text-primary);
	background-color: var(--bg-color);
	transition: background-color var(--transition-speed), color var(--transition-speed);
	line-height: 1.6;
}

header {
	background-color: #f4f4f4;
	padding: 0;
	text-align: center;
	transition: background-color 0.3s;
}

header .container h1 {
	margin: 0;
}


header button {
	margin-top: 10px;
	padding: 10px 20px;
	cursor: pointer;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 5px;
	transition: background-color 0.3s;
}

header button:hover {
	background-color: #0056b3;
}

#theme-toggle {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	padding: 10px 20px;
	cursor: pointer;
	background-color: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 8px;
	transition: background-color var(--transition-speed), transform 0.2s;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#theme-toggle:hover {
	background-color: var(--primary-dark);
	transform: translateY(-2px);
}

nav ul {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
	background-color: var(--nav-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	margin: 0;
	position: sticky;
	top: 0;
	z-index: 900;
	border-bottom: 1px solid var(--border-color);
}

nav ul li {
	margin: 0 5px;
}

nav ul li a {
	color: #fff;
	text-decoration: none;
	padding: 15px 20px;
	display: block;
	font-weight: 500;
	transition: background-color var(--transition-speed);
}

nav ul li a:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.container {
	max-width: 900px;
	margin: 20px auto;
	padding: 0 20px;
}

body.dark-theme {
	background-color: #121212;
	color: #ffffff;
}

body.dark-theme header {
	background-color: #1e1e1e;
}

.navigation {
	list-style: none;
	padding: 0;
	display: flex;
	justify-content: center;
	background-color: var(--nav-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	margin: 0;
}

body.dark-theme .navigation {
	background-color: var(--nav-bg);
}

.navigation li {
	margin: 0 10px;
}

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 1000;
	background-color: var(--footer-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid var(--border-color);
	padding: 10px 0;
}

.navigation a {
	color: #fff;
	text-decoration: none;
	padding: 15px 20px;
	display: block;
	transition: background-color var(--transition-speed);
}

.navigation a:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

footer {
	text-align: center;
	padding: 20px 0;
	background-color: var(--surface-color);
	margin-top: 20px;
	transition: background-color var(--transition-speed);
	color: var(--text-secondary);
}



.card {
	display: flex;
	width: 100%;
	/* height: 400px; */
	border: 1px solid #ccc;
	margin-top: 20px;
	margin-bottom: 20px;
}

.left-half {
	width: 50%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.right-half {
	width: 100%;
	height: 100%;
	align-items: center;
	padding-left: 20px;
	padding-right: 20px;
	background-color: var(--surface-color);
	font-family: inherit;
	border-left: 1px solid var(--border-color);
}

.left-half img {
	align-items: center;
	background-color: white;
	max-width: 100%;
	max-height: 100%;
	height: auto;
	/* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
	border-radius: 8px;
}

canvas {
	display: block;
	margin: 0 auto 10px auto; /* top: 0, bottom: 10px, auto left/right centers it */
	max-width: 100%;
}

/* Make body take full space */
body,
html {
	height: 100%;
	margin: 0;
}

/* Center everything vertically and horizontally */
.center-container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	height: 100%;
}

/* Style and center the canvas */
canvas {
	max-width: 100%;
	margin-bottom: 20px;
}

/* Style and center the range input */
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 300px;
	height: 8px;
	border-radius: 5px;
	background: var(--border-color);
	outline: none;
	margin: 0 auto;
	transition: background var(--transition-speed);
	display: block;
}

/* Firefox track */
input[type="range"]::-moz-range-track {
	height: 8px;
	background: #ddd;
	border-radius: 5px;
}

/* WebKit thumb */
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	transition: background var(--transition-speed), transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
	background: var(--primary-color);
	transform: scale(1.1);
}

/* Firefox thumb */
input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: white;
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
	transition: background var(--transition-speed), transform 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
	background: var(--primary-color);
	transform: scale(1.1);
}

.page-header {
	background-color: var(--surface-color);
	padding: 40px 0;
	text-align: center;
	color: var(--text-primary);
	border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
	margin: 0;
	font-size: 2.2em;
	font-weight: 700;
	color: var(--primary-color);
}

.page-header p {
	margin: 10px 0 0 0;
	font-size: 1.1em;
	color: var(--text-secondary);
}


/* Hero Header Styles for Index Page */
.hero-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-accent-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    margin: 0 auto;
    border-radius: 2px;
    animation: expandLine 0.8s ease-out 0.5s both;
}

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

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-header {
        min-height: 50vh;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Dark theme support for hero */
body.dark-theme .hero-header {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--surface-color) 100%);
}

body.dark-theme .hero-header::before {
    background: rgba(0, 0, 0, 0.6);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
	.hamburger {
		display: block;
		background-color: var(--primary-color);
		color: white;
		border: none;
		padding: 15px 20px;
		font-size: 1.5em;
		cursor: pointer;
		width: 100%;
		text-align: right;
	}

	.hamburger:hover {
		background-color: #0056b3;
	}

	nav {
		display: flex;
		flex-direction: column;
	}

	nav ul {
		flex-direction: column;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-out;
	}

	nav ul.active {
		max-height: 500px;
		transition: max-height 0.3s ease-in;
	}

	nav ul li {
		margin: 0;
		border-bottom: 1px solid var(--border-color);
	}

	nav ul li a {
		padding: 12px 20px;
		text-align: left;
	}

	.navigation {
		flex-wrap: nowrap;
		flex-direction: column;
		padding: 0;
	}

	.navigation li {
		margin: 0;
		flex: none;
	}

	.navigation a {
		padding: 12px 20px;
		font-size: 0.95em;
		text-align: left;
	}

	.page-header h1 {
		font-size: 1.5em;
	}

	.page-header p {
		font-size: 0.85em;
	}

	.container {
		padding: 0 15px;
	}
}

@media (min-width: 769px) {
	.hamburger {
		display: none;
	}

	nav ul {
		max-height: none !important;
	}
}

@media (max-width: 480px) {
	nav ul li {
		flex: none;
		margin: 0;
	}

	nav ul li a {
		padding: 10px 15px;
		font-size: 0.9em;
	}

	.navigation li {
		flex: none;
		margin: 0;
	}

	.navigation a {
		padding: 10px 15px;
		font-size: 0.85em;
	}

	.page-header h1 {
		font-size: 1.2em;
	}

	.page-header {
		padding: 15px 0;
	}
}