:root {
	--primary: #2e476e;
	--primary-light: #5e708e;
	--text: #888;
	--text-dark: #777;
	--text-light: #aaa;
	--bg: #fff;
	--bg-alt: #fafafa;
	--border: #e4e4e4;
	--border-light: #f4f4f4;
	--shadow: rgba(0, 0, 0, 0.1);
	--transition: 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--border);
	transition: all var(--transition);
}

a:hover {
	color: var(--primary);
	border-bottom-color: transparent;
}

h1, h2, h3 {
	color: var(--text-dark);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4rem 2rem;
}

/* Header */
#header {
	position: fixed;
	top: 0;
	right: 0;
	width: 23rem;
	height: 100vh;
	background: var(--primary);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 3rem 2rem;
	z-index: 1000;
	overflow-y: auto;
}

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

.avatar {
	width: 8rem;
	height: 8rem;
	border-radius: 50%;
	margin: 0 auto 1rem;
	object-fit: cover;
}

#header h1 {
	color: #fff;
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

#header p {
	color: rgba(255, 255, 255, 0.8);
	font-style: italic;
}

#nav ul {
	list-style: none;
}

#nav li {
	border-top: 2px solid var(--primary-light);
}

#nav a {
	display: block;
	padding: 1rem;
	color: #fff;
	border: none;
	text-align: center;
	transition: background var(--transition);
}

#nav a:hover,
#nav a.active {
	background: #fff;
	color: var(--primary);
}

.social-icons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	list-style: none;
}

.social-icons a {
	color: #fff;
	font-size: 1.25rem;
	border: none;
	transition: opacity var(--transition);
}

.social-icons a:hover {
	opacity: 0.7;
}

/* Mobile Menu Toggle */
#menu-toggle {
	display: none;
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 1001;
	background: var(--primary);
	border: none;
	width: 3rem;
	height: 3rem;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	border-radius: 0.25rem;
}

#menu-toggle span {
	width: 1.5rem;
	height: 2px;
	background: #fff;
	transition: all var(--transition);
}

/* Main Content */
#main {
	margin-right: 23rem;
}

section {
	border-top: 6px solid var(--border-light);
}

section:first-child {
	border-top: none;
}

/* Hero */
.hero {
	position: relative;
	height: 20rem;
	overflow: hidden;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-content {
	position: absolute;
	bottom: 2rem;
	left: 2rem;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
	color: #fff;
	font-size: 3rem;
	margin-bottom: 0.5rem;
}

/* Skills Grid */
.skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	list-style: none;
}

.skills-grid li {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.skills-grid i {
	width: 2.5rem;
	height: 2.5rem;
	background: var(--primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}

/* Projects Grid */
.projects-grid {
	display: grid;
	gap: 3rem;
}

.project-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
	padding: 2rem 0;
	border-top: 3px solid var(--border-light);
}

.project-card:first-child {
	border-top: none;
	padding-top: 0;
}

.project-card img {
	width: 100%;
	border-radius: 0.5rem;
}

.project-card ul {
	list-style: disc;
	padding-left: 1.5rem;
}

.project-card li {
	margin-bottom: 0.5rem;
}

/* Certifications Grid */
.cert-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.cert-grid img {
	width: 100%;
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px var(--shadow);
}

/* Education Card */
.education-card {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 2rem;
	align-items: center;
}

.education-card img {
	width: 100%;
	border-radius: 0.5rem;
}

/* Contact Form */
#contact-form {
	max-width: 600px;
	margin: 2rem auto 0;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-group {
	margin-bottom: 1rem;
}

input,
textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid var(--border);
	border-radius: 0.25rem;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color var(--transition);
}

input:focus,
textarea:focus {
	outline: none;
	border-color: var(--primary);
}

textarea {
	resize: vertical;
}

.form-actions {
	display: flex;
	gap: 1rem;
}

.btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 0.25rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--transition);
}

.btn-primary {
	background: var(--primary);
	color: #fff;
}

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

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

.btn-secondary:hover {
	background: var(--border-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
	#header {
		transform: translateX(100%);
		transition: transform var(--transition);
	}

	#header.active {
		transform: translateX(0);
	}

	#menu-toggle {
		display: flex;
	}

	#menu-toggle.active span:nth-child(1) {
		transform: rotate(45deg) translate(0.5rem, 0.5rem);
	}

	#menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	#menu-toggle.active span:nth-child(3) {
		transform: rotate(-45deg) translate(0.5rem, -0.5rem);
	}

	#main {
		margin-right: 0;
	}

	.hero {
		height: 15rem;
	}

	.hero-content h2 {
		font-size: 2rem;
	}

	.project-card,
	.education-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 3rem 1.5rem;
	}

	h2 {
		font-size: 1.75rem;
	}

	.hero {
		height: 12rem;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.form-actions {
		flex-direction: column;
	}

	.btn {
		width: 100%;
	}

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

@media (max-width: 480px) {
	#header {
		width: 100%;
	}

	.avatar {
		width: 6rem;
		height: 6rem;
	}

	#header h1 {
		font-size: 1.5rem;
	}
}
