:root {
	--bg: #f8fafc;
	--panel: #ffffff;
	--text: #0f172a;
	--muted: #475569;
	--primary: #2563eb;
	--primary-strong: #1d4ed8;
	--border: #e2e8f0;
	--card: #ffffff;
	--accent: #a78bfa;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	background: radial-gradient(1200px 600px at 10% -10%, #e0f2fe 0%, rgba(224,242,254,0) 50%), radial-gradient(1200px 600px at 110% -20%, #fce7f3 0%, rgba(252,231,243,0) 50%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	color: var(--text);
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.site-header {
	position: sticky; top: 0; z-index: 20;
	border-bottom: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
	text-decoration: none; color: var(--text);
	font-weight: 700; letter-spacing: 0.2px; font-size: 18px;
}
.nav { display: flex; gap: 14px; }
.nav-link {
	color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px;
	transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary-strong); background: rgba(37, 99, 235, 0.08); }

/* Hamburger menu */
.hamburger {
	display: none; flex-direction: column; gap: 5px; cursor: pointer;
	padding: 8px; background: none; border: none; z-index: 101;
	position: relative;
}
.hamburger span {
	display: block; width: 25px; height: 3px; background: var(--text);
	border-radius: 2px; transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.mobile-nav {
	display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
	z-index: 100; padding-top: 80px; overflow-y: auto;
	width: 100%; height: 100vh;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.active { 
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}
.mobile-nav .nav {
	display: flex !important;
	flex-direction: column; gap: 0; padding: 20px;
	max-width: 100%;
	visibility: visible;
	opacity: 1;
}
.mobile-nav .nav-link {
	display: block !important;
	padding: 16px 20px; font-size: 18px; 
	border-bottom: 1px solid var(--border);
	text-align: left; width: 100%;
	color: #0f172a !important;
	text-decoration: none;
	font-weight: 500;
	background: transparent;
	visibility: visible;
	opacity: 1;
}
.mobile-nav .nav-link:hover {
	background: rgba(37, 99, 235, 0.08);
	color: var(--primary-strong) !important;
}
.mobile-nav .nav-link.active {
	color: var(--primary-strong) !important;
	background: rgba(37, 99, 235, 0.08);
}
.mobile-nav .nav-link:last-child { border-bottom: none; }

.hero {
	display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
	padding: 28px; border: 1px solid var(--border); border-radius: 20px;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}
.hero-text h1 { margin: 0 0 6px; font-size: 34px; }
.subtitle { color: var(--muted); margin: 0; }
.hero-avatar { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; border: 2px solid var(--border); }

/* About page wireframe layout */
.about-hero {
	display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px;
	align-items: center; margin-top: 40px; min-height: 60vh;
}
.about-portrait {
	display: flex; align-items: center; justify-content: center;
}
.about-portrait img {
	width: 400px; height: 400px; border-radius: 50%;
	object-fit: cover; object-position: center;
	border: 4px solid var(--border);
	box-shadow: 0 12px 40px rgba(2, 6, 23, 0.1);
}
.about-content {
	display: flex; flex-direction: column; gap: 20px;
}
.about-hello {
	font-size: 72px; font-weight: 700; margin: 0;
	color: var(--text); line-height: 1;
}
.about-subtitle {
	font-size: 28px; font-weight: 600; margin: 0;
	color: var(--text);
}
.about-text {
	font-size: 16px; line-height: 1.6; color: var(--muted);
	margin: 0; max-width: 500px;
}
.about-buttons {
	display: flex; gap: 20px; margin-top: 8px;
	flex-wrap: wrap;
}
.btn-circle {
	width: 100px; height: 100px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	text-decoration: none; color: white; font-weight: 600;
	font-size: 16px; transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-circle:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.btn-resume {
	background: #ff6b35; /* Orange */
}
.btn-projects {
	background: #e63946; /* Red */
}
.btn-contact {
	background: #06b6d4; /* Light blue/cyan */
}

.section { margin-top: 32px; }
.section h2 { margin: 0 0 16px; }

.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.list { margin: 8px 0 0; padding-left: 18px; }
.list-inline { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-top: 8px; }
.list-inline li { background: #eef2ff; border: 1px solid #e0e7ff; color: #3730a3; padding: 6px 10px; border-radius: 999px; }
.resume-cta { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.button {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--primary-strong); color: white; text-decoration: none;
	padding: 10px 14px; border-radius: 12px; font-weight: 600;
	box-shadow: 0 10px 24px rgba(37,99,235,0.22);
}
.button:hover { background: #2563eb; }
.muted { color: var(--muted); font-size: 13px; }
code { background: #f1f5f9; border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; }

.cards {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
	background: var(--card); border: 1px solid var(--border); border-radius: 16px;
	overflow: hidden; display: flex; flex-direction: column; min-height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 4px 12px rgba(2, 6, 23, 0.04);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(2, 6, 23, 0.12); }
.card-media { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-title { margin: 0; font-size: 18px; }
.card-desc { margin: 0; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; }
.badge {
	font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid #fde68a;
	background: #fffbeb; color: #92400e;
}
.lock {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
}
.lock::before { content: "🔒"; }
.card-link { text-decoration: none; color: inherit; }

.project-hero {
	margin-top: 20px; padding: 22px; border: 1px solid var(--border); border-radius: 16px;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
}
.project-hero h1 { margin: 0 0 8px; }
.project-content { margin-top: 16px; display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.project-content .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: 0 4px 12px rgba(2, 6, 23, 0.04); }
.project-content h3 { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 20px; font-weight: 700; }

.site-footer {
	border-top: 1px solid var(--border); margin-top: 40px; padding: 18px 0;
	background: rgba(255, 255, 255, 0.8);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.footer-links { display: flex; gap: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary-strong); }

.page-overlay {
	position: fixed; inset: 0; z-index: 5;
	backdrop-filter: blur(6px);
	background: rgba(255, 255, 255, 0.55);
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
}
.overlay-card {
	background: #ffffff; border: 1px solid var(--border); border-radius: 16px;
	padding: 20px 22px; text-align: center; max-width: 460px; width: 100%;
	box-shadow: 0 14px 30px rgba(2, 6, 23, 0.12);
}
.overlay-card h2 { margin: 0 0 6px; font-size: 24px; color: var(--primary-strong); }

@media (max-width: 900px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.project-content { grid-template-columns: 1fr; }
	.resume-grid { grid-template-columns: 1fr; }
	.about-hero { grid-template-columns: 1fr; gap: 32px; text-align: center; }
	.about-portrait img { width: 300px; height: 300px; }
	.about-hello { font-size: 56px; }
	.about-subtitle { font-size: 24px; }
}
/* Resume page styles */
.resume-page {
	max-width: 800px; margin: 0 auto; padding: 40px 0;
}
.resume-header {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 40px; padding-bottom: 20px; border-bottom: 2px solid var(--border);
}
.resume-header h1 {
	font-size: 36px; font-weight: 700; margin: 0; color: var(--text);
}
.resume-section {
	margin-top: 32px;
}
.resume-section h2 {
	font-size: 24px; font-weight: 600; margin: 0 0 24px; color: var(--text);
	border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.resume-item {
	display: grid; grid-template-columns: 200px 1fr; gap: 24px;
	margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.resume-item:last-child {
	border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}
.resume-date {
	font-size: 14px; color: var(--muted); font-weight: 500;
	line-height: 1.5;
}
.resume-content h3 {
	font-size: 18px; font-weight: 600; margin: 0 0 4px; color: var(--text);
}
.resume-company {
	font-size: 16px; color: var(--muted); margin: 0;
	font-weight: 500;
}
.resume-content p:not(.resume-company) {
	font-size: 15px; line-height: 1.6; color: var(--text); margin: 8px 0 0;
}

/* Tablet and mobile responsive styles */
@media (max-width: 900px) {
	.container { padding: 20px; }
	.about-hero { grid-template-columns: 1fr; gap: 32px; text-align: center; }
	.about-portrait img { width: 300px; height: 300px; }
	.about-hello { font-size: 56px; }
	.about-subtitle { font-size: 24px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.project-content { grid-template-columns: 1fr; }
	.resume-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	/* Show hamburger, hide regular nav */
	.hamburger { 
		display: flex !important; 
		visibility: visible;
		opacity: 1;
	}
	.nav { display: none !important; }
	.site-header { padding: 0; }
	.header-inner { padding: 16px 24px; position: relative; }
	
	/* Mobile content improvements */
	.container { padding: 16px; }
	.section { margin-top: 24px; }
	.section h1 { font-size: 28px; text-align: center; }
	.section h2 { font-size: 22px; text-align: center; }
	
	/* About page mobile */
	.about-hero { margin-top: 20px; min-height: auto; padding: 0; }
	.about-portrait img { width: 250px; height: 250px; }
	.about-hello { font-size: 48px; }
	.about-subtitle { font-size: 20px; }
	.about-text { font-size: 15px; text-align: center; max-width: 100%; }
	.about-buttons { justify-content: center; gap: 16px; }
	.btn-circle { width: 80px; height: 80px; font-size: 14px; }
	
	/* Resume page mobile */
	.resume-header {
		flex-direction: column; align-items: flex-start; gap: 16px;
		text-align: center; width: 100%;
	}
	.resume-header h1 { width: 100%; text-align: center; }
	.resume-header .button { width: 100%; justify-content: center; }
	.resume-item {
		grid-template-columns: 1fr; gap: 8px; text-align: center;
	}
	.resume-date {
		font-weight: 600; color: var(--text); margin-bottom: 4px;
	}
	.resume-content { text-align: center; }
	
	/* Cards mobile */
	.cards { grid-template-columns: 1fr; gap: 16px; }
	.card { margin: 0 auto; max-width: 100%; }
	
	/* Hero mobile */
	.hero { grid-template-columns: 1fr; text-align: center; padding: 20px; }
	.hero-avatar { justify-self: center; margin-top: 16px; }
	
	/* Footer mobile */
	.footer-inner {
		flex-direction: column; gap: 12px; text-align: center;
	}
	.footer-links {
		flex-direction: column; gap: 8px; width: 100%;
	}
	.footer-links .nav-link {
		display: block; padding: 8px; width: 100%;
	}
}

@media (max-width: 480px) {
	.container { padding: 12px; }
	.about-hello { font-size: 40px; }
	.about-subtitle { font-size: 18px; }
	.about-portrait img { width: 200px; height: 200px; }
	.btn-circle { width: 70px; height: 70px; font-size: 13px; }
	.about-buttons { gap: 12px; }
	.resume-header h1 { font-size: 28px; }
	.section h1 { font-size: 24px; }
	.section h2 { font-size: 20px; }
}


