:root {
	--bg: #0b1220;
	--surface: rgba(15, 23, 42, 0.92);
	--surface-alt: rgba(255, 255, 255, 0.05);
	--text: #f8fafc;
	--muted: #9ca3af;
	--accent: #6366f1;
	--accent-strong: #4f46e5;
	--border: rgba(148, 163, 184, 0.16);
}

.theme-light {
	--bg: #f8fafc;
	--surface: rgba(255, 255, 255, 0.96);
	--surface-alt: rgba(15, 23, 42, 0.04);
	--text: #111827;
	--muted: #6b7280;
	--accent: #4338ca;
	--accent-strong: #4338ca;
	--border: rgba(148, 163, 184, 0.2);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	min-height: 100vh;
	background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 28%),
	linear-gradient(180deg, var(--bg) 0%, #111827 100%);
	color: var(--text);
	transition: background 0.4s ease, color 0.4s ease;
}

body.theme-light {
	background: radial-gradient(circle at top left, rgba(67, 56, 202, 0.18), transparent 28%),
	linear-gradient(180deg, var(--bg) 0%, #eff6ff 100%);
}

a {
	color: inherit;
}

button,
.btn {
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

button:focus,
.btn:focus,
a:focus {
	outline: 3px solid rgba(99, 102, 241, 0.35);
	outline-offset: 2px;
}

.navbar {
	background: var(--surface);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-light .navbar {
	background: rgba(255, 255, 255, 0.95);
	border-color: rgba(15, 23, 42, 0.08);
}

.navbar-brand {
	font-size: 1.1rem;
	letter-spacing: 0.02em;
}

.navbar-toggler {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.16);
}

.theme-light .navbar-toggler {
	border-color: rgba(15, 23, 42, 0.16);
}

.navbar-nav .nav-link {
	color: var(--text);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
	color: var(--accent);
}

.theme-light .navbar-nav .nav-link {
	color: var(--text);
}

.theme-light .navbar-nav .nav-link.active,
.theme-light .navbar-nav .nav-link:hover {
	color: var(--accent);
}

.hero-section {
	min-height: 78vh;
	display: flex;
	align-items: center;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.86));
}

.theme-light .hero-section {
	background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
	color: var(--text);
}

.theme-light .hero-section h1,
.theme-light .hero-section .lead,
.theme-light .hero-section .hero-blurb,
.theme-light .hero-section .eyebrow,
.theme-light .hero-section .hero-actions .btn {
	color: var(--text);
}

.theme-light .hero-card {
	background: rgba(255, 255, 255, 0.96);
	border-color: rgba(67, 56, 202, 0.18);
}

.hero-card,
.feature-card,
.skill-card,
.education-item,
.project-card,
.social-icon {
	background: var(--surface);
	border: 1px solid var(--border);
}

.hero-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	border-color: rgba(99, 102, 241, 0.18);
}

.hero-card,
.feature-card,
.skill-card,
.education-item,
.project-card {
	border-radius: 1.4rem;
}

.hero-card ul,
.skill-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hero-card li,
.skill-card li {
	margin-bottom: 1rem;
	line-height: 1.65;
}

.hero-card li::before {
	content: '•';
	margin-right: 0.75rem;
	color: var(--accent);
}

.eyebrow {
	color: var(--accent);
	font-size: 0.82rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

h1 {
	font-size: clamp(2.8rem, 4vw, 4.2rem);
	line-height: 1.02;
	font-weight: 700;
	margin-bottom: 1rem;
}

.lead {
	color: var(--muted);
	font-size: 1.05rem;
	max-width: 700px;
}

.hero-actions .btn {
	min-width: 170px;
}

.section-heading {
	font-size: 2.15rem;
	font-weight: 700;
	margin-bottom: 0.6rem;
}

.section-subtitle {
	color: var(--muted);
	max-width: 640px;
	margin: 0 auto;
}

.section-bg {
	background: rgba(255, 255, 255, 0.04);
}

.section-alt {
	background: rgba(255, 255, 255, 0.06);
}

.section-bg .feature-card,
.section-bg .skill-card,
.section-bg .education-item,
.section-bg .project-card,
.section-alt .experience-card {
	background: rgba(255, 255, 255, 0.05);
}

.feature-card,
.skill-card,
.education-item,
.project-card,
.experience-card {
	box-shadow: 0 24px 45px rgba(0, 0, 0, 0.1);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.skill-card:hover,
.experience-card:hover,
.project-card:hover {
	transform: translateY(-6px);
	border-color: rgba(99, 102, 241, 0.45);
	box-shadow: 0 32px 70px rgba(0, 0, 0, 0.18);
}

.hero-blurb {
	color: var(--accent);
	font-size: 1.05rem;
	line-height: 1.8;
	max-width: 720px;
	margin: 1rem 0 1.4rem;
}

.experience-card {
	border-radius: 1.4rem;
	border: 1px solid var(--border);
}

.experience-card-header {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1rem;
}

.experience-card-header i {
	width: 2.8rem;
	height: 2.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.9rem;
	background: rgba(99, 102, 241, 0.16);
	color: var(--accent);
	font-size: 1.1rem;
}

.project-actions {
	display: flex;
	justify-content: center;
}

.project-actions .btn {
	min-width: 220px;
}

.hero-actions .btn-light {
	color: var(--text);
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.18);
}

.hero-actions .btn-light:hover {
	background: rgba(255, 255, 255, 0.24);
}

.section-heading {
	letter-spacing: -0.03em;
}

.section-subtitle {
	font-size: 1rem;
	line-height: 1.75;
}

body,
p {
	line-height: 1.75;
}

.feature-card {
	min-height: 220px;
}

.feature-card h3,
.skill-card h3 {
	margin-bottom: 1rem;
}

.feature-card p,
.skill-card li,
.education-item span,
.project-card .card-text,
.project-description {
	color: var(--muted);
}

.skill-card ul li {
	font-weight: 500;
}

.education-timeline {
	display: grid;
	gap: 1rem;
}

.education-item {
	padding: 1.6rem;
}

.education-item strong {
	display: block;
	font-size: 1.05rem;
	margin-bottom: 0.25rem;
	color: var(--text);
}

.education-item .text-muted {
	color: var(--muted);
}

.education-level {
	font-weight: 700;
	color: var(--accent-strong);
}

.project-card {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
	transform: translateY(-5px);
	border-color: rgba(99, 102, 241, 0.45);
	box-shadow: 0 32px 70px rgba(0, 0, 0, 0.18);
}

.project-card img {
	height: 220px;
	width: 100%;
	object-fit: cover;
}

.project-card .card-body {
	padding: 1.35rem;
}

.project-card .card-title {
	margin-bottom: 0.75rem;
}

.project-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 1.4rem;
	background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.9));
	opacity: 0;
	transition: opacity 0.25s ease;
	color: white;
}

.project-card:hover .project-overlay {
	opacity: 1;
}

.project-overlay span {
	padding: 0.7rem 1.2rem;
	border-radius: 999px;
	background: rgba(79, 70, 229, 0.9);
	font-weight: 600;
}

.modal-content {
	border-radius: 1.4rem;
	background: rgba(15, 23, 42, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header,
.modal-footer {
	border-color: rgba(255, 255, 255, 0.08);
}

.modal-body .modal-img {
	width: 100%;
	height: auto;
	border-radius: 1rem;
	object-fit: cover;
}

.social-links {
	justify-content: center;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	font-size: 1.6rem;
	border-radius: 1.2rem;
	text-decoration: none;
	color: var(--text);
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.social-icon:hover {
	transform: translateY(-3px);
	background: rgba(99, 102, 241, 0.18);
	border-color: rgba(99, 102, 241, 0.3);
}

.social-icon i {
	color: var(--text);
}

.btn-outline-light {
	color: white;
	border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
	background: rgba(255, 255, 255, 0.1);
}

.theme-light .btn-outline-light {
	color: #111827;
	border-color: rgba(15, 23, 42, 0.35);
}

.theme-light .btn-outline-light:hover {
	background: rgba(15, 23, 42, 0.08);
}

@media (max-width: 991px) {
	.hero-card,
	.feature-card,
	.skill-card,
	.education-item,
	.project-card {
		border-radius: 1.1rem;
	}
}

@media (max-width: 768px) {
	.hero-section {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.hero-actions .btn {
		width: 100%;
		margin-bottom: 1rem;
	}

	.hero-actions .btn:last-child {
		margin-bottom: 0;
	}
}
