
:root {
	--bg: #070b1a;
	--bg-soft: #10172e;
	--surface: rgba(255, 255, 255, 0.06);
	--surface-strong: rgba(255, 255, 255, 0.1);
	--text: #edf2ff;
	--muted: #a9b6da;
	--line: rgba(179, 198, 255, 0.25);
	--primary: #41e0c2;
	--primary-2: #66a6ff;
	--shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
	--radius: 16px;
}

html[data-theme="light"] {
	--bg: #f6f8ff;
	--bg-soft: #ebf0ff;
	--surface: rgba(255, 255, 255, 0.95);
	--surface-strong: rgba(255, 255, 255, 0.98);
	--text: #0e1732;
	--muted: #4f5f8d;
	--line: rgba(68, 98, 186, 0.22);
	--primary: #0f7d9f;
	--primary-2: #2547d0;
	--shadow: 0 14px 30px rgba(23, 34, 80, 0.16);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--text);
	font-family: "Manrope", sans-serif;
	background:
		radial-gradient(circle at 10% 0%, #1d325f 0%, transparent 30%),
		radial-gradient(circle at 90% 10%, #124b5b 0%, transparent 30%),
		var(--bg);
	line-height: 1.6;
}

h1,
h2,
h3 {
	font-family: "Space Grotesk", sans-serif;
	line-height: 1.2;
	margin: 0 0 0.6rem;
}

p {
	margin: 0 0 0.8rem;
}

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

a:hover {
	text-decoration: underline;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	padding: 0.6rem 0.8rem;
	background: #fff;
	color: #000;
	border-radius: 8px;
	z-index: 2000;
}

#backToTop {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1600;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  transform: translateY(-2px);
}
.site-header {
	padding: 0 0 2.5rem;
}

.top-nav {
	position: sticky;
	top: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 1.2rem;
	backdrop-filter: blur(12px);
	background: rgba(8, 12, 27, 0.7);
	border-bottom: 1px solid var(--line);
}

.brand {
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text);
}

.nav-links {
	display: flex;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav-links a {
	color: var(--muted);
	font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus {
	color: var(--text);
}

.nav-actions {
	display: flex;
	gap: 0.5rem;
}

.hero {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 2rem;
	align-items: center;
}

.profile-pic {
	width: 220px;
	height: 220px;
	border-radius: 24px;
	object-fit: cover;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	background: var(--surface);
}

.eyebrow {
	color: var(--primary);
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.hero h1 {
	font-size: clamp(2rem, 4vw, 3.1rem);
	margin-bottom: 0.7rem;
}

.tagline {
	color: var(--muted);
	font-size: 1.08rem;
	max-width: 70ch;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.btn {
	border: 1px solid var(--line);
	color: var(--text);
	background: var(--surface);
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
}

.btn.primary {
	background: linear-gradient(90deg, var(--primary), var(--primary-2));
	color: #061028;
	border: none;
}

.btn.ghost {
	background: transparent;
}

.kpi-bar {
	margin-top: 1.6rem;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.8rem;
}

.kpi-bar article {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem;
	text-align: center;
}

.kpi-bar h3 {
	margin: 0;
	font-size: 1.5rem;
}

main section {
	padding: 2.5rem 0;
}

h2 {
	margin-bottom: 1rem;
	font-size: 1.65rem;
}

.about-grid,
.skills-groups,
.cards-3,
.media-grid,
.contact-grid,
.cert-grid {
	display: grid;
	gap: 1rem;
}

.about-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid article,
.skills-groups article,
.project-card,
.quote-card,
.media-grid a,
.cert-grid a,
.timeline article,
.contact-grid p {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem;
	box-shadow: var(--shadow);
}

.skills-groups {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.chips span {
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.3rem 0.7rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.skill-legend {
	font-size: 0.9rem;
	color: var(--muted);
	margin: 0.25rem 0 1rem;
}

.skill-badge {
	display: inline-flex;
	align-items: center;
	margin: 0.2rem 0.3rem;
}

.skill-badge img {
	height: 24px;
	border-radius: 6px;
	filter: drop-shadow(0 0 2px rgba(0,0,0,0.35));
}
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.filters {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.filter {
	border: 1px solid var(--line);
	color: var(--muted);
	background: transparent;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	cursor: pointer;
}

.filter.active {
	color: #071225;
	background: linear-gradient(90deg, var(--primary), var(--primary-2));
	border-color: transparent;
}

.projects-grid {
	margin-top: 1rem;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.project-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.project-image {
	border-bottom: 1px solid var(--line);
	border-radius: var(--radius) var(--radius) 0 0;
	overflow: hidden;
}

.project-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.project-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem;
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
}

.project-card .stack {
	color: var(--muted);
	font-weight: 700;
}

.chip-icon {
	margin-right: 0.35rem;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	display: grid;
	place-items: center;
	padding: 2rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 2000;
}

.modal.open {
	opacity: 1;
	pointer-events: auto;
}

.modal-content {
	background: var(--surface-strong);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.5rem;
	max-width: 450px;
	width: 100%;
	position: relative;
	box-shadow: var(--shadow);
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--muted);
}

.modal-subtitle {
	margin-top: 0;
	color: var(--muted);
}

.modal-form {
	display: grid;
	gap: 0.8rem;
}

.form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
}

.modal-thanks {
	padding: 1rem 0;
	font-weight: 700;
	color: var(--primary);
	text-align: center;
}

.hidden {
	display: none !important;
}

.timeline {
	display: grid;
	gap: 0.8rem;
}

.meta {
	color: var(--muted);
	font-weight: 700;
}

.cards-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-card span {
	color: var(--muted);
	font-size: 0.92rem;
}

.media-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid a {
	color: var(--text);
	text-decoration: none;
}

.media-grid a:hover {
	border-color: var(--primary);
}

.cert-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-grid a {
	color: var(--text);
	text-decoration: none;
}

.cert-grid a:hover {
	border-color: var(--primary);
}

.contact-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 0.7rem;
}

#copyStatus {
	margin-left: 0.7rem;
	color: var(--primary);
	font-weight: 700;
}

.site-footer {
	border-top: 1px solid var(--line);
	color: var(--muted);
	text-align: center;
	padding: 1.2rem;
}

.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1024px) {
	.projects-grid,
	.cards-3,
	.media-grid,
	.about-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.profile-pic {
		margin: 0 auto;
	}

	.hero-cta {
		justify-content: center;
	}
}

@media (max-width: 768px) {
	.nav-links {
		display: none;
	}

	.skills-groups,
	.projects-grid,
	.cards-3,
	.media-grid,
	.contact-grid,
	.cert-grid,
	.kpi-bar,
	.about-grid {
		grid-template-columns: 1fr;
	}

	.top-nav {
		padding: 0.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
