:root {
	--bg-color: #0D1117;
	--card-bg: #161B22;
	--accent-color: #58A6FF;		/* Neon Blue */
	--accent-glow: rgba(88, 166, 255, 0.3);
	--text-main: #C9D1D9;
	--text-dim: #8B949E;
	--border-color: #30363D;
	/*
	--gold: #D4AF37;
	--dark-bg: #1A1A1A;
	--card-bg: #2D2D2D;
	--text: #E0E0E0;
	*/
}

body {
	background-color: var(--bg-color);
	color: var(--text-main);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	margin: 0;
	line-height: 1.6;
	/*
	background-color: var(--dark-bg);
	color: var(--text);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	*/
}

/* --- Hero Section --- */
header {
	padding: 60px 20px;
	text-align: center;
	background: radial-gradient(circle at center, #1E252E 0%, #0D1117 100%);
	border-bottom: 1px solid var(--border-color);
	/*
	text-align: center;
	margin-bottom: 40px;
	border-bottom: 2px solid var(--gold);
	width: 80%;
	*/
}

header h1 {
	font-size: 2.5rem;
	margin: 0;
	color: #FFFFFF;
	letter-spacing: -1px;
	/*
	color: var(--gold);
	letter-spacing: 2px;
	*/
}

header p {
	color: var(--text-dim);
	max-width: 600px;
	margin: 10px auto 0;
}

/* --- Search/Filter Bar (Visual Only) --- */
.filter-container {
	display: flex;
	justify-content: center;
	padding: 20px;
	position: sticky;
	top: 0;
	background: rgba(13, 17, 23, 0.8);
	background-filter: blur(10px);
	z-index: 100;
	border-bottom: 1px solid var(--border-color);
}

.search-mock {
	width: 100%;
	max-width: 800px;
	background: var(--card-bg);
	border: 10px solid var(--border-color);
	padding: 10px 20px;
	border-radius: 20px;
	color: var(--text-dim);
	font-size: 0.9rem;
}

/* --- Project Grid --- */

.container {
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 20px;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	/*
	display: grid;
	grid-template-columns: repeat(auto-fit, minimax(300px, 1fr));
	gap: 25px;
	width: 90%;
	max-width: 1200px;
	*/
}

/* --- Individual Cards --- */

.card {
	background: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease-in-out;
	position: relative;
	overflow: hidden;
	/*
	background: var(--card-bg);
	border: 1px solid #444;
	padding: 20px;
	border-radius: 8px;
	transition: transform 0.3s, border-color 0.3s;
	display: flex;
	flex-direction: column;
	*/
}

.card:hover {
	border-color: var(--accent-color);
	box-shadow: 0 0 20px var(--accent-glow);
	transform: translateY(-4px);
	/*
	transform: translateY(-5px);
	border-color: var(--gold);
	*/
}

.card-tag {
	font-size: 0.7rem;
	text-transform: uppercase;
	font-weight: bold;
	color: var(--accent-color);
	margin-bottom: 8px;
	display: block;
}

.card h3 {
	margin: 0 0 12px 0;
	color: #F0F6FC;
	/*
	color: var(--gold);
	margin-top: 0;
	*/
}

.card p {
	font-size: 0.95rem;
	color: var(--text-dim);
	/*flex-grow: 1;*/
	margin-bottom: 24px;
	
	/* This creates the '...' after exactly 2 lines of text */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	
	/* Ensure the height stays consistent even with less text */
	min-height: 3.5em;
}

/* --- Action Buttons --- */

.card-footer {
	display: flex;
	gap: 12px;
}
/*
.btn-group {
	margin-top: auto;
	display: flex;
	gap: 10px;
}
*/
.btn {
	flex: 1;
	text-align: center;
	padding: 10px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 600;
	transition: opacity: 0.2s;
	/*
	padding: 8px 15px;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: bold;
	flex: 1;
	text-align: center;
	*/
}

.btn-primary {
	background-color: #238636;		/* GitHub Green */
	color: white;
}

.btn-secondary {
	background-color: #21262D;
	border: 1px solid var(--border-color);
	color: var(--text-main);
}
/*
.btn-run {
	background: var(--gold);
	color: black;
}

.btn-code {
	border: 1px solid var(--gold);
	color: var(--gold);
}
*/
.btn:hover {
	opacity: 0.8;
}

footer {
	text-align: center;
	padding: 40px;
	color: var(--text-dim);
	font-size: 0.8rem;
}