body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Noto Sans KR", Arial, sans-serif;
	font-size: 16px;
	color: #222;
	background-color: #fff;
	padding: 32px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

section {
	margin-bottom: 3rem;
}

/* =========================
   Typography
========================= */
h1 {
	font-size: 2.4rem;
	font-weight: 700;
}

h2 {
	font-size: 1.6rem;
	margin-bottom: 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #ddd;
}

h3 {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

p {
	max-width: 760px;
	margin: 0.5rem 0;
	color: #444;
}

.tagline {
	margin-top: 0.5rem;
	color: #555;
}

/* =========================
   Hero
========================= */
.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 10px 36px;
	background: linear-gradient(180deg, #f3f6fa, #ffffff);
	border-radius: 14px;
	margin-bottom: 4rem;
}

.hero h1 {
	margin-bottom: 0;
}

/* =========================
   About
========================= */
#about {
	background: #fafafa;
	padding: 36px;
	border-radius: 14px;
}

/* =========================
   Frontend Philosophy
========================= */
#frontend-philosophy {
	padding: 36px;
	background: #fffdf7;
	border-radius: 14px;
}

.philosophy-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	margin-top: 1.5rem;
}

.philosophy-grid h3 {
	margin-bottom: 0.75rem;
	font-size: 1.15rem;
}

.philosophy-card {
	padding: 28px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #eaeaea;
}

/* =========================
   Resume as Project
========================= */
#resume-project {
	padding: 28px 36px;
	border-left: 4px solid #386e4a;
	background: #fdfefe;
	border-radius: 8px;
}

.resume-point {
	margin-top: 1rem;
}

.resume-point li {
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
}

/* =========================
   Skills
========================= */
.skill-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

.skill-group {
	padding: 24px;
	background: #f8f8f8;
	border-radius: 12px;
}

.skill-group ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.skill-group li {
	padding: 6px 12px;
	font-size: 0.9rem;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
}

/* =========================
   Portfolio
========================= */
.project-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 1.5rem;
}

.project {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
}

.project figcaption {
	padding: 16px;
}

.project a {
	display: inline-block;
	margin-top: 6px;
	color: #386e4a;
	font-weight: 600;
}

/* =========================
   Project Background
========================= */
.project {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	aspect-ratio: 16 / 9;
}

/* 카드별 배경 */
.project-netflix {
	background-image: url("../images/port01.png");
}

.project-cardflip {
	background-image: url("../images/port02.png");
}

.project-component {
	background-image: url("../images/port03.png");
}

.project::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.8);
	transition: background 0.2s ease;
}

.project:hover::before {
	background: rgba(255, 255, 255, 0.2);
}

.project figcaption {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -40%);
	opacity: 0;
	width: calc(100% - 32px);
	max-width: 420px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
	transition: transform 0.25s ease, opacity 0.25s ease;
	z-index: 1;
}

.project:hover figcaption {
	transform: translate(-50%, -50%);
	opacity: 1;
}

.project figcaption p {
	margin-bottom: 8px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.project figcaption a {
	display: inline-block;
	margin-top: 6px;
}

.project figcaption h3 {
	margin-top: 0;
}

.project-link {
	position: relative;
	font-weight: 600;
	color: #386e4a;
	padding-right: 1.2em;
}

.project-link::after {
	content: "→";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-55%);
	transition: transform 0.2s ease;
}

.project-link:hover::after {
	transform: translate(4px, -55%);
}

/* =========================
   Footer
========================= */
footer ul {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
	body {
		padding: 20px;
	}

	section {
		margin-bottom: 2.5rem;
	}

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

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

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

	.project figcaption {
		opacity: 1;
		transform: translate(-50%, -50%);
	}

	/* hover 효과 무력화 */
	.project:hover figcaption {
		transform: translate(-50%, -50%);
	}

	.project::before {
		background: rgba(255, 255, 255, 0.8);
	}
}
