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

html {
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	background-color: #f8f8f8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	width: 100%;
}

a {
	color: #1772d0;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #f09228;
}

/* Container */
.container {
	max-width: 950px;
	margin: 0 auto;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	width: 100%;
	overflow-x: hidden;
}

/* Header */
header {
	margin-bottom: 40px;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.header-left {
	flex: 1;
}

.header-left h1 {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 8px;
	color: #222;
}

.tagline {
	font-size: 15px;
	color: #666;
	margin: 0;
}

.header-right {
	margin-left: 30px;
}

.profile-pic {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #e0e0e0;
}

/* Navigation */
.main-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding: 15px 0;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 30px;
}

.main-nav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #1772d0;
	padding: 5px 0;
}

.main-nav a:hover {
	color: #f09228;
}

.main-nav i {
	font-size: 16px;
}

/* Sections */
section {
	margin-bottom: 40px;
	padding-bottom: 30px;
}

section:not(:last-of-type) {
	border-bottom: 1px solid #e0e0e0;
}

section h2 {
	font-size: 24px;
	font-weight: bold;
	color: #222;
	margin-bottom: 20px;
	padding-bottom: 10px;
}

section h3 {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin-bottom: 15px;
	margin-top: 25px;
}

section p {
	margin-bottom: 15px;
	text-align: justify;
}

/* About Me Section Layout */
section#about .about-content {
	display: flex !important;
	flex-direction: row !important;
	gap: 40px !important;
	align-items: flex-start !important;
	width: 100% !important;
}

section#about .about-text {
	flex: 1 !important;
	min-width: 0 !important;
}

section#about .about-image {
	flex-shrink: 0 !important;
	width: 180px !important;
	max-width: 180px !important;
	order: -1 !important;
}

section#about .about-image img.profile-pic {
	width: 100% !important;
	max-width: 180px !important;
	height: auto !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
	display: block !important;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
	section#about .about-content {
		flex-direction: column !important;
		align-items: center !important;
	}

	section#about .about-image {
		width: 150px !important;
		max-width: 150px !important;
		order: 0 !important;
		margin-bottom: 20px !important;
	}
}

/* Education */
.education-item {
	margin-bottom: 25px;
}

.edu-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.edu-header strong {
	font-size: 16px;
	color: #222;
}

.date {
	color: #666;
	font-size: 14px;
	font-style: italic;
}

.coursework {
	color: #555;
	font-size: 14px;
	margin-top: 5px;
}

/* Experience */
.experience-item {
	margin-bottom: 25px;
}

.exp-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.exp-header strong {
	font-size: 16px;
	color: #222;
}

.experience-item ul {
	margin-left: 20px;
	margin-top: 5px;
}

.experience-item li {
	margin-bottom: 8px;
	line-height: 1.5;
}

/* Skills */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
	margin-top: 15px;
}

.skill-category h3 {
	font-size: 16px;
	margin-top: 0;
	margin-bottom: 8px;
	color: #1772d0;
}

.skill-category p {
	color: #555;
	font-size: 14px;
	line-height: 1.6;
	text-align: left;
}

/* Projects */
.project-category {
	margin-bottom: 35px;
}

.project-category h3 {
	font-size: 20px;
	color: #1772d0;
	margin-bottom: 20px;
	margin-top: 10px;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin-bottom: 20px;
}

.project-item {
	background: #fafafa;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #e0e0e0;
}

.project-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-item a {
	display: block;
	color: inherit;
}

.project-item img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.project-info {
	padding: 15px;
}

.project-info h4 {
	font-size: 16px;
	font-weight: bold;
	color: #222;
	margin-bottom: 8px;
}

.project-info p {
	font-size: 14px;
	color: #555;
	line-height: 1.5;
	margin: 0;
	text-align: left;
}

.project-info-full {
	padding: 20px;
}

.project-info-full h4 {
	font-size: 16px;
	font-weight: bold;
	color: #222;
	margin-bottom: 10px;
}

.project-info-full p {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	text-align: left;
}

/* Publications */
.publication-item {
	margin-bottom: 20px;
	padding: 15px;
	background: #fafafa;
	border-left: 3px solid #1772d0;
	border-radius: 4px;
}

.publication-item strong {
	font-size: 15px;
	color: #222;
	line-height: 1.5;
}

.authors {
	color: #666;
	font-size: 14px;
}

.venue {
	color: #555;
	font-style: italic;
	font-size: 14px;
}

.publication-item a {
	font-size: 14px;
}

/* Footer */
footer {
	text-align: center;
	padding: 30px 0 20px;
	color: #666;
	font-size: 13px;
	border-top: 1px solid #e0e0e0;
	margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.container {
		padding: 15px;
	}

	.header-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.header-right {
		margin-left: 0;
		margin-top: 20px;
	}

	.profile-pic {
		width: 120px;
		height: 120px;
	}

	header h1 {
		font-size: 26px;
		text-align: center;
	}

	.main-nav {
		justify-content: center;
		gap: 12px 15px;
		padding: 10px 0;
	}

	.main-nav a {
		font-size: 13px;
		padding: 8px 10px;
		background: #f5f5f5;
		border-radius: 4px;
	}

	.edu-header,
	.exp-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.date {
		margin-top: 5px;
	}

	.projects-grid {
		grid-template-columns: 1fr;
	}

	section {
		margin-bottom: 30px;
		padding-bottom: 20px;
	}

	section h2 {
		font-size: 20px;
		margin-bottom: 15px;
	}

	section h3 {
		font-size: 17px;
	}

	section p {
		text-align: left;
		font-size: 15px;
		line-height: 1.6;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 14px;
	}

	.container {
		padding: 10px;
	}

	header h1 {
		font-size: 24px;
	}

	.tagline {
		font-size: 13px;
	}

	.main-nav {
		gap: 8px;
	}

	.main-nav a {
		font-size: 12px;
		padding: 6px 8px;
	}

	section h2 {
		font-size: 18px;
		margin-bottom: 12px;
	}

	section h3 {
		font-size: 16px;
	}

	section p {
		font-size: 14px;
	}

	.profile-pic {
		width: 100px;
		height: 100px;
	}

	section#about .about-content {
		gap: 20px !important;
	}

	section#about .about-image {
		width: 120px !important;
		max-width: 120px !important;
	}
}

/* Print Styles */
@media print {
	body {
		background-color: white;
	}

	.container {
		box-shadow: none;
		max-width: 100%;
	}

	.main-nav,
	footer {
		display: none;
	}

	section {
		page-break-inside: avoid;
	}

	.project-item {
		page-break-inside: avoid;
	}
}

