:root {
	--blue-900: #0f2a4a;
	--blue-800: #16416f;
	--blue-700: #1f5f99;
	--blue-600: #2377c8;
	--blue-100: #e8f2ff;
	--blue-50: #f5f9ff;
	--ink: #172033;
	--muted: #5d6b82;
	--line: #dbe7f5;
	--white: #ffffff;
	--shadow: 0 24px 70px rgba(22, 65, 111, 0.14);
	--radius: 8px;
	--max-width: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--white);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.6;
}

body::before {
	position: fixed;
	inset: 0;
	z-index: -1;
	content: "";
	background:
		linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(255, 255, 255, 0.96) 38%),
		linear-gradient(135deg, rgba(232, 242, 255, 0.62), rgba(255, 255, 255, 0) 34%);
}

a {
	color: inherit;
	text-decoration: none;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(100% - 32px, var(--max-width));
	margin: 16px auto 0;
	padding: 12px 14px;
	border: 1px solid rgba(219, 231, 245, 0.78);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 18px 50px rgba(22, 65, 111, 0.08);
	backdrop-filter: blur(18px);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: max-content;
}

.brand-mark {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: var(--radius);
	color: var(--white);
	background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
	font-weight: 800;
}

.brand strong,
.brand small {
	display: block;
}

.brand strong {
	font-size: 0.95rem;
	line-height: 1.15;
}

.brand small {
	color: var(--muted);
	font-size: 0.76rem;
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}

.site-nav a {
	border-radius: 999px;
	padding: 9px 11px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 700;
	transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
	color: var(--blue-800);
	background: var(--blue-100);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	border-radius: 999px;
	background: var(--blue-900);
}

.section {
	width: min(100% - 32px, var(--max-width));
	margin: 0 auto;
	padding: 68px 0;
	scroll-margin-top: 110px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 5vw, 64px);
	min-height: calc(86vh - 90px);
	padding-top: 52px;
}

.hero-content {
	animation: heroEnter 760ms ease both;
}

.hero-photo {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(31, 95, 153, 0.16);
	border-radius: 18px;
	box-shadow: 0 28px 70px rgba(22, 65, 111, 0.18);
	animation: heroEnter 760ms ease 80ms both;
}

.hero-photo::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, rgba(15, 42, 74, 0), rgba(15, 42, 74, 0.12));
	pointer-events: none;
}

.hero-photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.eyebrow {
	margin: 0 0 14px;
	color: var(--blue-700);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: 780px;
	margin-bottom: 22px;
	color: var(--blue-900);
	font-size: clamp(2.4rem, 6vw, 5.6rem);
	line-height: 0.98;
	letter-spacing: 0;
}

h2 {
	margin-bottom: 18px;
	color: var(--blue-900);
	font-size: clamp(1.9rem, 4vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: 0;
}

h3 {
	margin-bottom: 10px;
	color: var(--blue-900);
	font-size: 1.12rem;
	line-height: 1.25;
	letter-spacing: 0;
}

.hero-copy,
.section-heading p,
.section-body p,
.project-card p,
.course-card p,
.cert-card p,
.info-card p,
.timeline p {
	color: var(--muted);
}

.hero-copy {
	max-width: 700px;
	margin-bottom: 12px;
	color: var(--blue-800);
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	font-weight: 800;
}

.hero-tagline {
	max-width: 720px;
	margin-bottom: 32px;
	color: var(--muted);
	font-size: 1.04rem;
}

.hero-meta {
	width: fit-content;
	margin-bottom: 28px;
	border: 1px solid rgba(31, 95, 153, 0.16);
	border-radius: 999px;
	padding: 8px 13px;
	color: var(--blue-800);
	background: var(--blue-100);
	font-weight: 900;
}

.hero-actions,
.contact-card {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button,
.contact-card a,
.project-card a,
.course-card a,
.site-footer a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius);
	font-weight: 800;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
	min-height: 48px;
	padding: 0 20px;
}

.button.primary {
	color: var(--white);
	background: var(--blue-700);
	box-shadow: 0 14px 34px rgba(31, 95, 153, 0.22);
}

.button.secondary {
	border: 1px solid var(--line);
	color: var(--blue-800);
	background: var(--white);
}

.button:hover,
.contact-card a:hover,
.project-card a:hover,
.course-card a:hover {
	transform: translateY(-2px);
}

.button.primary:hover {
	background: var(--blue-800);
}

.button.secondary:hover {
	box-shadow: 0 12px 26px rgba(22, 65, 111, 0.1);
}

.hero-panel {
	position: relative;
}

.profile-card,
.info-card,
.project-card,
.cert-card,
.course-card,
.timeline article {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow);
}

.profile-card {
	padding: 34px;
	animation: cardFloat 6s ease-in-out infinite;
}

.avatar {
	display: grid;
	width: 84px;
	height: 84px;
	margin-bottom: 26px;
	place-items: center;
	border-radius: var(--radius);
	color: var(--white);
	background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
	font-size: 1.7rem;
	font-weight: 900;
}

.avatar.large {
	width: 104px;
	height: 104px;
	font-size: 2rem;
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 28px;
}

.stat-grid div {
	padding: 14px;
	border-radius: var(--radius);
	background: var(--blue-50);
}

.stat-grid strong,
.stat-grid span {
	display: block;
}

.stat-grid strong {
	color: var(--blue-900);
}

.stat-grid span {
	color: var(--muted);
	font-size: 0.78rem;
}

.split-section {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 64px;
	align-items: start;
}

.section-heading.centered {
	max-width: 760px;
	margin: 0 auto 42px;
	text-align: center;
}

.section-body {
	font-size: 1.03rem;
}

.about-section {
	display: grid;
	grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
	gap: 34px;
	align-items: start;
}

.about-profile {
	display: grid;
	place-items: center;
}

.photo-placeholder {
	position: relative;
	display: grid;
	width: min(100%, 360px);
	aspect-ratio: 4 / 5;
	place-items: center;
	overflow: hidden;
	border: 1px solid rgba(31, 95, 153, 0.18);
	border-radius: 12px;
	background:
		linear-gradient(135deg, rgba(31, 95, 153, 0.18), rgba(232, 242, 255, 0.42)),
		linear-gradient(180deg, var(--white), var(--blue-50));
	box-shadow: var(--shadow);
}

.photo-placeholder::before {
	position: absolute;
	width: 146px;
	height: 146px;
	content: "";
	border-radius: 50%;
	background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
	opacity: 0.92;
	transform: translateY(-54px);
}

.photo-placeholder::after {
	position: absolute;
	bottom: 0;
	width: 82%;
	height: 46%;
	content: "";
	border-radius: 50% 50% 0 0;
	background: rgba(15, 42, 74, 0.12);
}

.photo-placeholder span {
	position: relative;
	z-index: 1;
	align-self: end;
	margin-bottom: 30px;
	border-radius: 999px;
	padding: 8px 14px;
	color: var(--blue-800);
	background: rgba(255, 255, 255, 0.82);
	font-size: 0.82rem;
	font-weight: 800;
}

.about-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin-top: 28px;
}

.about-card {
	min-height: 220px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: 0 16px 44px rgba(22, 65, 111, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.about-card:hover {
	transform: translateY(-4px);
	border-color: rgba(35, 119, 200, 0.38);
	box-shadow: 0 22px 54px rgba(22, 65, 111, 0.13);
}

.about-card span {
	display: inline-grid;
	width: 36px;
	height: 36px;
	margin-bottom: 20px;
	place-items: center;
	border-radius: var(--radius);
	color: var(--blue-800);
	background: var(--blue-100);
	font-size: 0.82rem;
	font-weight: 900;
}

.about-card p {
	margin-bottom: 0;
	color: var(--muted);
}

.tech-stack {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 28px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--shadow);
}

.tech-heading h2 {
	margin-bottom: 22px;
	font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.tech-category + .tech-category {
	margin-top: 22px;
}

.tech-category h3 {
	margin-bottom: 12px;
	font-size: 0.92rem;
	text-transform: uppercase;
	color: var(--blue-900);
}

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

.skill-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(15, 42, 74, 0.08);
	border-radius: 999px;
	padding: 8px 12px;
	color: var(--blue-900);
	background: var(--white);
	font-size: 0.86rem;
	font-weight: 900;
	box-shadow: 0 10px 24px rgba(22, 65, 111, 0.08);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.skill-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(22, 65, 111, 0.12);
}

.skill-badge i {
	font-size: 1rem;
}

.python i { color: #3776ab; }
.cpp i { color: #00599c; }
.java i { color: #e76f00; }
.js i { color: #f7df1e; }
.php i { color: #777bb4; }
.dart i { color: #0175c2; }
.flutter i { color: #02569b; }
.html i { color: #e34f26; }
.firebase i { color: #ffca28; }
.aws i { color: #ff9900; }
.azure i { color: #0078d4; }
.spark i { color: #e25a1c; }
.mysql i { color: #4479a1; }
.mongo i { color: #47a248; }
.git i { color: #f05032; }
.github i { color: #24292f; }
.vscode i { color: #007acc; }
.alteryx i { color: #005daa; }
.powerbi i { color: #f2c811; }
.analytics i { color: #1f5f99; }
.visualization i { color: #7c3aed; }

.timeline {
	display: grid;
	gap: 18px;
	max-width: 820px;
	margin: 0 auto;
}

.timeline article {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	padding: 26px;
}

.education-timeline {
	position: relative;
	max-width: 860px;
	gap: 0;
}

.education-timeline::before {
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 32px;
	width: 2px;
	content: "";
	background: var(--line);
}

.timeline-card {
	position: relative;
	margin-bottom: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--shadow);
	transition: border-color 180ms ease, transform 180ms ease;
}

.coursework-timeline .timeline-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	padding: 24px;
}

.timeline-card:hover {
	border-color: rgba(35, 119, 200, 0.32);
	transform: translateY(-2px);
}

.timeline-card summary {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	align-items: center;
	padding: 24px 26px;
	cursor: pointer;
	list-style: none;
}

.timeline-card summary::-webkit-details-marker {
	display: none;
}

.timeline-card summary::after {
	content: "+";
	justify-self: end;
	color: var(--blue-700);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1;
}

.timeline-card[open] summary::after {
	content: "-";
}

.timeline-card summary strong,
.timeline-card summary small {
	display: block;
}

.timeline-card summary strong {
	color: var(--blue-900);
	font-size: 1.15rem;
}

.timeline-card summary small {
	color: var(--muted);
}

.timeline-details {
	padding: 0 26px 26px 58px;
}

.coursework-timeline .timeline-details {
	padding: 0;
}

.timeline-details p:last-child {
	margin-bottom: 0;
}

.timeline-dot {
	width: 14px;
	height: 14px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--blue-700);
	box-shadow: 0 0 0 8px var(--blue-100);
}

.meta,
.project-label {
	color: var(--blue-700);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.soft-band {
	width: 100%;
	max-width: none;
	padding-right: max(16px, calc((100% - var(--max-width)) / 2));
	padding-left: max(16px, calc((100% - var(--max-width)) / 2));
	background: linear-gradient(180deg, var(--blue-50), rgba(255, 255, 255, 0));
}

.project-grid,
.cert-grid,
.course-grid {
	display: grid;
	gap: 20px;
}

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

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

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

.project-card,
.cert-card,
.info-card {
	padding: 26px;
}

.project-card {
	display: flex;
	min-height: 322px;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card::before,
.cert-card::before,
.year-card::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	content: "";
	background: linear-gradient(90deg, var(--blue-700), var(--blue-100));
}

.project-card:hover,
.cert-card:hover,
.year-card:hover,
.achievement-card:hover {
	transform: translateY(-6px);
	border-color: rgba(35, 119, 200, 0.34);
	box-shadow: 0 28px 70px rgba(22, 65, 111, 0.16);
}

.tech-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 24px;
	padding: 0;
	list-style: none;
}

.tech-list li {
	border: 1px solid rgba(31, 95, 153, 0.16);
	border-radius: 999px;
	padding: 6px 10px;
	color: var(--blue-800);
	background: var(--blue-50);
	font-size: 0.76rem;
	font-weight: 800;
}

.project-card a,
.course-card a {
	width: fit-content;
	margin-top: auto;
	color: var(--blue-700);
}

.project-card a::after,
.course-card a::after {
	content: " ->";
}

.project-card .card-button::after,
.year-card .card-button::after {
	content: none;
}

.card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 42px;
	margin-top: auto;
	border-radius: var(--radius);
	padding: 0 16px;
	color: var(--white) !important;
	background: var(--blue-700);
	font-size: 0.86rem;
	font-weight: 900;
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.card-button:hover {
	transform: translateY(-2px);
	background: var(--blue-800);
	box-shadow: 0 14px 28px rgba(31, 95, 153, 0.22);
}

.achievement-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.achievement-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.achievement-icon {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border-radius: var(--radius);
	color: var(--white);
	background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
	font-size: 0.88rem;
	font-weight: 900;
}

.badge {
	display: inline-flex;
	width: fit-content;
	margin-bottom: 14px;
	border: 1px solid rgba(31, 95, 153, 0.16);
	border-radius: 999px;
	padding: 6px 11px;
	color: var(--blue-800);
	background: var(--blue-100);
	font-size: 0.72rem;
	font-weight: 900;
	text-transform: uppercase;
}

.achievement-detail {
	border-left: 3px solid var(--blue-600);
	padding-left: 12px;
	color: var(--blue-900);
	font-weight: 700;
}

.cert-card {
	position: relative;
	display: flex;
	min-height: 260px;
	flex-direction: column;
	overflow: hidden;
	text-align: center;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cert-card .cert-link {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 0;
	color: inherit;
}

.cert-card .cert-link::after {
	content: none;
}

.cert-card .cert-link img {
	width: 112px;
	height: 112px;
	object-fit: contain;
	filter: drop-shadow(0 12px 18px rgba(22, 65, 111, 0.12));
	transition: transform 180ms ease;
}

.cert-card:hover .cert-link img {
	transform: scale(1.06);
}

.cert-card .cert-link h3 {
	margin-bottom: 0;
}

.year-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.year-card {
	position: relative;
	display: flex;
	min-height: 300px;
	flex-direction: column;
	overflow: hidden;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.year-number {
	display: inline-grid;
	width: 52px;
	height: 52px;
	margin-bottom: 26px;
	place-items: center;
	border-radius: var(--radius);
	color: var(--blue-800);
	background: var(--blue-100);
	font-weight: 900;
}

.course-card {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 22px;
	overflow: hidden;
	padding: 14px;
}

.course-card img {
	width: 100%;
	height: 100%;
	min-height: 160px;
	border-radius: var(--radius);
	object-fit: cover;
}

.course-card div {
	display: flex;
	flex-direction: column;
	padding: 10px 10px 10px 0;
}

.contact-section {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 44px;
	align-items: center;
}

.contact-card {
	margin-top: 26px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
}

.contact-card a {
	flex: 1;
	min-height: 48px;
	padding: 0 18px;
	color: var(--white);
	background: var(--blue-700);
}

.contact-form {
	display: grid;
	gap: 16px;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
}

.contact-form label,
.contact-form span {
	display: grid;
	gap: 8px;
}

.contact-form span {
	color: var(--blue-900);
	font-size: 0.8rem;
	font-weight: 800;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 13px 14px;
	color: var(--ink);
	background: var(--blue-50);
	font: inherit;
	outline: none;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form textarea {
	min-height: 132px;
	resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
	border-color: var(--blue-600);
	background: var(--white);
	box-shadow: 0 0 0 4px rgba(35, 119, 200, 0.12);
}

.contact-form button {
	min-height: 48px;
	border: 0;
	border-radius: var(--radius);
	color: var(--white);
	background: var(--blue-700);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: transform 180ms ease, background 180ms ease;
}

.contact-form button:hover {
	transform: translateY(-2px);
	background: var(--blue-800);
}

.site-footer {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	width: min(100% - 32px, var(--max-width));
	margin: 0 auto;
	padding: 34px 0 44px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--blue-700);
}

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@keyframes heroEnter {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes cardFloat {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

@media screen and (max-width: 1040px) {
	.site-header {
		align-items: flex-start;
	}

	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--white);
		box-shadow: var(--shadow);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav a {
		padding: 12px 14px;
	}

	.hero,
	.split-section,
	.about-section,
	.contact-section {
		grid-template-columns: 1fr;
	}

	.hero {
		min-height: auto;
		padding-top: 76px;
	}

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

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

	.photo-placeholder {
		max-width: 320px;
	}
}

@media screen and (max-width: 720px) {
	.site-header {
		width: min(100% - 20px, var(--max-width));
		margin-top: 10px;
	}

	.section {
		width: min(100% - 24px, var(--max-width));
		padding: 54px 0;
	}

	.soft-band {
		width: 100%;
		padding-right: 12px;
		padding-left: 12px;
	}

	.brand small {
		display: none;
	}

	h1 {
		font-size: 2.45rem;
	}

	h2 {
		font-size: 2rem;
	}

	.profile-card,
	.about-card,
	.project-card,
	.cert-card,
	.year-card,
	.achievement-card,
	.info-card,
	.timeline article,
	.contact-card {
		padding: 22px;
	}

	.stat-grid,
	.course-grid,
	.project-grid,
	.cert-grid,
	.about-card-grid,
	.year-grid {
		grid-template-columns: 1fr;
	}

	.course-card {
		grid-template-columns: 1fr;
	}

	.course-card div {
		padding: 0;
	}

	.project-card,
	.cert-card,
	.year-card {
		min-height: auto;
	}

	.achievement-card {
		grid-template-columns: 1fr;
	}

	.education-timeline::before {
		left: 27px;
	}

	.timeline-card summary {
		grid-template-columns: auto 1fr auto;
		gap: 14px;
		padding: 22px;
	}

	.timeline-details {
		padding: 0 22px 22px;
	}

	.site-footer {
		flex-direction: column;
	}
}

/* Premium portfolio v4 refinements */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--blue-600), var(--blue-900));
	box-shadow: 0 0 16px rgba(35, 119, 200, 0.4);
}

body::before {
	background:
		linear-gradient(120deg, rgba(232, 242, 255, 0.72), rgba(255, 255, 255, 0) 34%),
		linear-gradient(240deg, rgba(31, 95, 153, 0.1), rgba(255, 255, 255, 0) 38%),
		linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(255, 255, 255, 0.96) 42%);
	background-size: 140% 140%, 150% 150%, 100% 100%;
	animation: backgroundDrift 24s ease-in-out infinite alternate;
}

.section {
	padding: 52px 0;
}

.site-header {
	margin-top: 12px;
}

.hero {
	grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
	min-height: calc(78vh - 80px);
	gap: clamp(30px, 6vw, 76px);
	padding-top: 42px;
}

.hero-photo {
	width: min(100%, 292px);
	justify-self: center;
	border-radius: 50%;
	padding: 10px;
	background: rgba(255, 255, 255, 0.62);
	backdrop-filter: blur(18px);
	animation: heroFloat 6s ease-in-out infinite;
}

.hero-photo img {
	aspect-ratio: 1;
	border-radius: 50%;
}

.hero-photo::after {
	border-radius: 50%;
}

.hero-content h1 {
	max-width: 820px;
	margin-bottom: 16px;
	font-size: clamp(2.5rem, 6vw, 5.1rem);
}

.hero-copy {
	margin-bottom: 12px;
}

.hero-actions .button {
	gap: 9px;
}

.button:hover,
.card-button:hover,
.contact-card a:hover {
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 18px 42px rgba(31, 95, 153, 0.2);
}

.paired-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.panel-section,
.tech-stack,
.stats-grid,
.contact-form {
	border: 1px solid rgba(219, 231, 245, 0.82);
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(18px);
}

.panel-section {
	border-radius: 14px;
	padding: 28px;
	box-shadow: var(--shadow);
}

.section-heading.compact {
	margin-bottom: 22px;
}

.section-heading.compact h2 {
	font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.section-heading.reveal,
.section-heading.centered.reveal,
.panel-section.reveal {
	transition-duration: 800ms;
}

.tech-stack {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.skill-badge {
	background: rgba(255, 255, 255, 0.86);
}

.skill-badge:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 16px 34px rgba(35, 119, 200, 0.16);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	border-radius: 14px;
	padding: 18px;
	box-shadow: var(--shadow);
}

.stat-card {
	border: 1px solid rgba(31, 95, 153, 0.12);
	border-radius: 12px;
	padding: 18px;
	background: rgba(255, 255, 255, 0.86);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(22, 65, 111, 0.12);
}

.stat-card.wide {
	grid-column: 1 / -1;
}

.stat-label {
	display: block;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.stat-card strong {
	color: var(--blue-900);
	font-size: clamp(1.7rem, 4vw, 2.55rem);
	line-height: 1;
}

.coursework-timeline {
	overflow: hidden;
}

.coursework-timeline::before {
	transform-origin: top;
	animation: drawTimeline 1.4s ease both;
}

.timeline-dot {
	animation: timelinePulse 4s ease-in-out infinite;
}

.coursework-timeline .timeline-card {
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(18px);
}

.soft-band {
	background: transparent;
}

.project-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.project-card {
	min-height: 390px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.86);
}

.project-visual {
	display: grid;
	height: 86px;
	margin-bottom: 20px;
	place-items: center;
	overflow: hidden;
	border-radius: 12px;
	color: var(--white);
	background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
	font-size: 1.6rem;
	transition: transform 220ms ease;
}

.project-card:hover .project-visual {
	transform: scale(1.03);
}

.project-card .card-button:hover {
	box-shadow: 0 0 0 4px rgba(35, 119, 200, 0.12), 0 18px 36px rgba(31, 95, 153, 0.28);
}

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

.cert-card {
	min-height: 240px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(18px);
}

.cert-card::after {
	position: absolute;
	top: -120%;
	left: -80%;
	width: 60%;
	height: 300%;
	content: "";
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
	transform: rotate(18deg);
	animation: certShine 8s ease-in-out infinite;
	pointer-events: none;
}

.cert-card .cert-link img {
	width: 132px;
	height: 132px;
}

.cert-card:hover .cert-link img {
	transform: scale(1.08);
}

.achievement-card,
.contact-card,
.contact-form {
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(18px);
}

.contact-section {
	align-items: stretch;
}

.contact-card {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.contact-card a {
	display: grid;
	min-height: 122px;
	align-content: center;
	gap: 6px;
	border: 1px solid rgba(219, 231, 245, 0.82);
	border-radius: 14px;
	padding: 18px;
	color: var(--blue-900);
	background: rgba(255, 255, 255, 0.78);
	box-shadow: 0 18px 45px rgba(22, 65, 111, 0.1);
}

.contact-card i {
	color: var(--blue-700);
	font-size: 1.35rem;
}

.contact-card span {
	font-weight: 900;
}

.contact-card small {
	color: var(--muted);
	font-weight: 700;
}

@keyframes heroFloat {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-6px);
	}
}

@keyframes drawTimeline {
	from {
		transform: scaleY(0);
	}

	to {
		transform: scaleY(1);
	}
}

@keyframes timelinePulse {
	0%,
	100% {
		box-shadow: 0 0 0 8px var(--blue-100);
	}

	50% {
		box-shadow: 0 0 0 12px rgba(35, 119, 200, 0.1);
	}
}

@keyframes certShine {
	0%,
	76% {
		transform: translateX(0) rotate(18deg);
	}

	100% {
		transform: translateX(420%) rotate(18deg);
	}
}

@keyframes backgroundDrift {
	from {
		background-position: 0% 0%, 100% 0%, 0 0;
	}

	to {
		background-position: 100% 18%, 0% 28%, 0 0;
	}
}

@media screen and (max-width: 1120px) {
	.paired-layout,
	.hero {
		grid-template-columns: 1fr;
	}

	.hero-photo {
		width: 232px;
	}

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

@media screen and (max-width: 720px) {
	.section {
		padding: 42px 0;
	}

	.hero {
		min-height: auto;
		text-align: left;
	}

	.hero-photo {
		width: 190px;
		justify-self: start;
	}

	.panel-section {
		padding: 22px;
	}

	.project-grid,
	.premium-cert-grid,
	.stats-grid,
	.contact-card {
		grid-template-columns: 1fr;
	}

	.project-card {
		min-height: auto;
	}
}

/* Final UI refinements */
.section {
	padding: 38px 0;
}

.hero {
	min-height: calc(64vh - 70px);
	padding-top: 28px;
	padding-bottom: 20px;
}

.hero-content h1 {
	max-width: none;
	font-size: clamp(2.6rem, 4.4vw, 3rem);
	font-weight: 800;
	line-height: 1.05;
	white-space: nowrap;
}

.standalone-section {
	width: min(100% - 32px, var(--max-width));
	margin: 0 auto;
}

#about,
#certifications,
#education {
	padding-top: 30px;
	padding-bottom: 30px;
}

#about .tech-stack {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
}

#about .tech-category + .tech-category {
	margin-top: 0;
}

#certifications .premium-cert-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

#education .section-heading {
	max-width: 760px;
}

.coursework-timeline {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: none;
	margin: 0;
	overflow: visible;
}

.coursework-timeline::before {
	top: 40px;
	right: 12%;
	bottom: auto;
	left: 12%;
	width: auto;
	height: 2px;
	transform-origin: left;
	animation: drawTimelineHorizontal 1.2s ease both;
}

.coursework-timeline .timeline-card {
	grid-template-columns: 1fr;
	gap: 14px;
	min-height: 245px;
	margin-bottom: 0;
	padding: 22px;
}

.coursework-timeline .timeline-dot {
	justify-self: center;
	margin: 8px 0 4px;
}

.coursework-timeline .timeline-details {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-align: center;
}

.coursework-timeline .card-button {
	align-self: center;
}

.project-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.project-card {
	min-height: 430px;
}

.project-visual {
	width: 72px;
	height: 64px;
	margin-bottom: 14px;
	border-radius: 12px;
	opacity: 0.82;
	font-size: 1.15rem;
}

.project-card:hover .project-visual {
	transform: scale(1.04);
	opacity: 0.95;
}

@keyframes drawTimelineHorizontal {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(1);
	}
}

@media screen and (max-width: 1120px) {
	.hero-content h1 {
		white-space: normal;
	}

	#certifications .premium-cert-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

	.coursework-timeline::before {
		display: none;
	}
}

@media screen and (max-width: 720px) {
	.section,
	#about,
	#certifications,
	#education {
		padding-top: 26px;
		padding-bottom: 26px;
	}

	.hero-content h1 {
		font-size: 2.45rem;
		white-space: normal;
	}

	#about .tech-stack,
	#certifications .premium-cert-grid,
	.coursework-timeline,
	.project-grid {
		grid-template-columns: 1fr;
	}

	.coursework-timeline .timeline-card {
		min-height: auto;
	}
}

/* Final layout polish */
.section {
	margin-top: 60px;
	margin-bottom: 60px;
	padding-top: 0;
	padding-bottom: 0;
}

.hero.section {
	margin-top: 28px;
	margin-bottom: 54px;
	padding-top: 20px;
	padding-bottom: 10px;
}

.panel-section,
.project-card,
.cert-card,
.achievement-card,
.contact-form,
.contact-card a {
	padding: 40px 50px;
}

.hero-copy {
	max-width: 760px;
	margin-bottom: 10px;
	font-size: clamp(1rem, 1.5vw, 1.1rem);
	font-weight: 500;
	white-space: nowrap;
}

.hero-meta {
	margin-bottom: 22px;
	padding: 6px 11px;
	font-size: 0.86rem;
}

.button,
.card-button {
	min-height: 0;
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 0.95rem;
	line-height: 1.15;
}

#about .tech-stack {
	gap: 14px 20px;
}

.badge-row {
	gap: 12px;
}

.skill-badge {
	padding: 7px 10px;
	font-size: 0.82rem;
}

.tech-category h3 {
	margin-bottom: 10px;
}

.coursework-timeline {
	justify-items: center;
}

.coursework-timeline .timeline-card {
	width: 100%;
	max-width: 320px;
	min-height: 200px;
	padding: 24px;
}

.coursework-timeline .timeline-details p {
	font-size: 0.92rem;
}

.project-card {
	min-height: 335px;
}

.project-card p {
	display: -webkit-box;
	margin-bottom: 0;
	overflow: hidden;
	color: var(--muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.project-card h3 {
	margin-bottom: 8px;
}

.tech-list {
	margin: 14px 0 18px;
}

.tech-list li {
	padding: 5px 9px;
	font-size: 0.72rem;
}

.project-visual {
	width: 62px;
	height: 58px;
	margin-bottom: 12px;
}

.cert-card {
	min-height: 210px;
}

.cert-card .cert-link {
	justify-content: center;
	gap: 10px;
}

.cert-card .cert-link img {
	width: 108px;
	height: 108px;
}

.cert-card .badge {
	margin-bottom: 4px;
}

.cert-card h3 {
	font-size: 1rem;
}

@media screen and (max-width: 1120px) {
	.panel-section,
	.project-card,
	.cert-card,
	.achievement-card,
	.contact-form,
	.contact-card a {
		padding: 32px;
	}

	.hero-copy {
		white-space: normal;
	}
}

@media screen and (max-width: 720px) {
	.section {
		margin-top: 42px;
		margin-bottom: 42px;
	}

	.panel-section,
	.project-card,
	.cert-card,
	.achievement-card,
	.contact-form,
	.contact-card a {
		padding: 24px;
	}

	.hero.section {
		margin-top: 20px;
		margin-bottom: 38px;
	}

	.hero-copy {
		font-size: 1rem;
		white-space: normal;
	}
}

/* Final consistency polish */
#projects .section-heading.centered {
	max-width: 680px;
	margin-bottom: 28px;
}

#projects .section-heading h2 {
	font-size: clamp(1.55rem, 2.7vw, 2.15rem);
	line-height: 1.12;
}

#projects .section-heading p:not(.eyebrow) {
	max-width: 620px;
	margin-right: auto;
	margin-left: auto;
}

#about .tech-stack {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	align-items: stretch;
}

#about .tech-category {
	display: flex;
	min-height: 130px;
	flex-direction: column;
	justify-content: flex-start;
	border: 1px solid rgba(219, 231, 245, 0.78);
	border-radius: 14px;
	padding: 18px;
	background: rgba(255, 255, 255, 0.64);
	box-shadow: 0 14px 34px rgba(22, 65, 111, 0.07);
}

#about .badge-row {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	align-items: flex-start;
	gap: 10px;
}

@media screen and (max-width: 720px) {
	#about .tech-stack {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	#about .tech-category {
		min-height: 0;
	}
}

/* Project gallery refinement */
#projects {
	max-width: 1400px;
	margin-right: auto;
	margin-left: auto;
}

#projects .project-grid {
	grid-template-columns: repeat(3, minmax(280px, 1fr));
	gap: 24px;
}

#projects .project-card {
	min-height: 270px;
	padding: 26px 28px;
}

#projects .project-visual {
	width: 56px;
	height: 56px;
	margin-bottom: 10px;
	font-size: 1rem;
	opacity: 0.72;
}

#projects .project-label {
	margin-bottom: 6px;
	font-size: 0.7rem;
}

#projects .project-card h3 {
	margin-bottom: 8px;
	font-size: 1.04rem;
}

#projects .project-card p {
	-webkit-line-clamp: 2;
	font-size: 0.9rem;
	line-height: 1.48;
}

#projects .tech-list {
	gap: 6px;
	margin: 12px 0 16px;
}

#projects .tech-list li {
	padding: 4px 8px;
	font-size: 0.68rem;
}

#projects .card-button {
	padding: 8px 14px;
	font-size: 0.82rem;
}

@media screen and (max-width: 1120px) {
	#projects .project-grid {
		grid-template-columns: repeat(2, minmax(280px, 1fr));
	}
}

@media screen and (max-width: 720px) {
	#projects .project-grid {
		grid-template-columns: 1fr;
	}

	#projects .project-card {
		min-height: auto;
		padding: 24px;
	}
}
