:root {
	/* Color Palette - Modern Greyscale inspired by original */
	--color-primary: #616161;
	/* Original theme grey */
	--color-primary-dark: #424242;
	--color-background: #E0E0E0;
	/* Light Grey */
	--color-surface: #ffffff;
	/* Card background */
	--color-text: #333333;
	--color-text-light: #f4f4f4;

	/* Utilities */
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
	--font-main: 'Roboto', system-ui, sans-serif;
}

/* --- Reset and Base Styles --- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-main);
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-background);
}

.container {
	width: 90%;
	max-width: 1100px;
	margin: auto;
}

a {
	text-decoration: none;
	color: var(--color-primary);
}

ul {
	padding-left: 20px;
}

li {
	margin-bottom: 10px;
}

/* --- Header Section (Hero) --- */
/* Incorporating the user's original background image */
#myHeader {
	/* !! Ensure this path is correct for your setup !! */
	background-image: url("files/R2-3P0 concept.jpg");
	background-size: cover;
	/* Modernized from 50% to cover */
	background-position: center;
	color: var(--color-text-light);
}

.header-overlay {
	/* Dark overlay to ensure text readability */
	background-color: rgba(30, 30, 30, 0.75);
	padding: 100px 0;
}

.header-content {
	text-align: center;
}

.header-content h1 {
	font-size: 3.5rem;
	margin-bottom: 10px;
	font-weight: 700;
}

.header-content p {
	font-size: 1.5rem;
	font-weight: 300;
}

/* --- Navigation Bar --- */
.navbar {
	background: var(--color-primary-dark);
	color: var(--color-text-light);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--shadow);
}

.nav-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.logo {
	font-size: 1.2rem;
	font-weight: 700;
}

.nav-links {
	list-style: none;
	display: flex;
	padding-left: 0;
}

.nav-links li {
	margin-left: 25px;
}

.nav-links a {
	color: var(--color-text-light);
	transition: var(--transition);
}

.nav-links a:hover {
	opacity: 0.8;
}

.nav-special {
	border: 1px solid var(--color-text-light);
	padding: 5px 10px;
	border-radius: 4px;
}

/* Mobile Nav Toggle (Hamburger Menu) */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--color-text-light);
	font-size: 1.5rem;
	cursor: pointer;
}

/* --- Main Content Layout --- */
main {
	padding-top: 40px;
}

section {
	padding: 30px 0;
}

.section-title {
	font-size: 2.2rem;
	margin-bottom: 30px;
	font-weight: 700;
	text-align: center;
	color: var(--color-primary-dark);
}

/* --- Cards --- */
.card {
	background: var(--color-surface);
	padding: 30px;
	margin-bottom: 30px;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.card h3 {
	font-size: 1.5rem;
	margin-bottom: 15px;
	font-weight: 700;
	color: var(--color-primary-dark);
}

/* --- Buttons --- */
.btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 5px;
	font-weight: 600;
	transition: var(--transition);
	margin-right: 10px;
	margin-bottom: 10px;
	text-align: center;
	cursor: pointer;
	border: none;
}

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-text-light);
}

.btn-primary:hover {
	background-color: var(--color-primary-dark);
}

.btn-secondary {
	border: 2px solid var(--color-primary);
	color: var(--color-primary);
	background-color: transparent;
}

.btn-secondary:hover {
	background-color: var(--color-primary);
	color: var(--color-text-light);
}

.btn-outline {
	border: 1px solid var(--color-primary);
	color: var(--color-primary);
	padding: 8px 15px;
	font-size: 0.9rem;
	display: inline-block;
	font-weight: 600;
	border-radius: 5px;
	transition: var(--transition);
}

.btn-outline:hover {
	background-color: var(--color-primary);
	color: var(--color-text-light);
}

/* --- Profile Section --- */
.profile-content {
	display: flex;
	align-items: center;
	gap: 40px;
}

.headshot {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	border: 5px solid var(--color-primary);
	box-shadow: var(--shadow);
	background-color: #ddd;
}

.bio {
	flex: 1;
}

.bio h2 {
	font-size: 1.8rem;
	margin-bottom: 5px;
}

.location {
	color: var(--color-primary);
	margin-bottom: 20px;
	font-weight: 500;
}

.social-links {
	margin-top: 25px;
}

/* --- Skills Section (Tags) --- */
.skill-category h3 {
	font-size: 1.2rem;
	margin-bottom: 15px;
	font-weight: 600;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.skill-tag {
	background-color: var(--color-primary-dark);
	color: var(--color-text-light);
	padding: 6px 12px;
	border-radius: 16px;
	/* Rounded pill shape */
	font-size: 0.9rem;
	font-weight: 400;
}

hr {
	border: 0;
	height: 1px;
	background: #ccc;
	margin: 20px 0;
}

/* --- Projects Section --- */
.project-links {
	margin-top: 20px;
}

/* --- Experience and Education (Timeline) --- */
.item-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 5px;
}

.organization {
	font-style: italic;
	color: #666;
	margin-bottom: 15px;
}

.dates {
	font-weight: 600;
	color: var(--color-primary);
	white-space: nowrap;
}

/* Coursework Details */
details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--color-primary);
	margin-top: 15px;
	padding: 10px;
	background-color: var(--color-background);
	border-radius: 4px;
}

.details-content {
	padding: 15px;
	background-color: var(--color-background);
	border-radius: 0 0 4px 4px;
	border-top: 1px solid #ccc;
}

/* --- Footer --- */
footer {
	background: var(--color-primary-dark);
	color: var(--color-text-light);
	padding: 30px 0;
	margin-top: 40px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-links a {
	color: var(--color-text-light);
	margin-left: 20px;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
	.header-content h1 {
		font-size: 2.5rem;
	}

	/* Mobile Navigation Activation */
	.nav-toggle {
		display: block;
	}

	.nav-links {
		display: none;
		/* Hidden by default on mobile */
		flex-direction: column;
		position: absolute;
		top: 100%;
		/* Right below the navbar */
		left: 0;
		right: 0;
		background: var(--color-primary-dark);
		padding: 20px 0;
		box-shadow: var(--shadow);
	}

	.nav-links.active {
		display: flex;
		/* Shown when active class is added by JS */
	}

	.nav-links li {
		margin: 15px 0;
		text-align: center;
	}

	/* Profile Layout */
	.profile-content {
		flex-direction: column;
		text-align: center;
	}

	/* Timeline Layout */
	.item-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.dates {
		margin-top: 5px;
	}

	/* Footer Layout */
	.footer-content {
		flex-direction: column;
		text-align: center;
	}

	.footer-links {
		margin-top: 15px;
	}

	.footer-links a {
		margin: 0 10px;
	}
}

/* --- Chatbot Page Specific Styles --- */
.chat-container {
	max-width: 800px;
	margin: 40px auto;
	width: 90%;
}

.form-group {
	margin-bottom: 20px;
}

label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

input[type="text"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
	font-family: var(--font-main);
}

#sources {
	list-style: none;
	padding-left: 0;
}

#sources li {
	background-color: var(--color-background);
	padding: 8px;
	border-radius: 4px;
	margin-bottom: 8px;
}