/* Ocean-inspired homepage background */
:root {
	--ocean-deep: #003758;
	--ocean-blue: #0077be;
	--sun-gold: #f6c945;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	position: relative;
	min-height: 100vh;
	overflow-x: hidden;
	color: #fff;
	background: linear-gradient(180deg, var(--ocean-blue) 0%, #00649f 48%, var(--ocean-deep) 100%);
	font-family: Arial, Helvetica, sans-serif;
}

/* Keep page content above the decorative scenery. */
body > * {
	position: relative;
	z-index: 1;
}

body::before {
	content: "";
	position: fixed;
	z-index: 0;
	top: clamp(0.75rem, 2vw, 1.5rem);
	right: clamp(1rem, 5vw, 5rem);
	width: clamp(7rem, 14vw, 12rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 38% 35%, #fff4a3 0%, var(--sun-gold) 42%, #d69400 78%, #a96a00 100%);
	box-shadow: 0 0 3rem rgba(255, 218, 77, 0.45), 0 0 8rem rgba(255, 190, 0, 0.2);
}

/* Animated wave, anchored to the bottom of the viewport. */
body::after {
	content: "";
	position: fixed;
	z-index: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 55vh;
	pointer-events: none;
	background: url("wave-haikei.svg") center bottom / 100% 100% no-repeat;
}

/* ---------- Portfolio layout ---------- */
.portfolio {
	width: min(60rem, 100%);
	margin: 0 auto;
	padding-block: clamp(8rem, 18vw, 12rem) 4rem;
	padding-inline: 1rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Frosted-glass card shared by header and table */
.welcome,
.projects {
	background: rgba(0, 40, 70, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 1rem;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 1rem 2.5rem rgba(0, 20, 40, 0.35);
}

/* ---------- Welcome header ---------- */
.welcome {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem;
}

.avatar {
	flex-shrink: 0;
	width: clamp(6rem, 18vw, 9rem);
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--sun-gold);
	background: rgba(255, 255, 255, 0.1); /* visible placeholder until a photo exists */
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* crops any photo to fill the circle */
	display: block;
}

.welcome h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	text-align: center;
}

.welcome p {
	margin: 0;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	text-align: center;
}

@media (max-width: 600px) {
	.welcome {
		flex-direction: column;
		text-align: center;
	}
}

/* ---------- Projects table ---------- */
.projects {
	padding: 0.5rem;
}

.table-wrap {
	overflow-x: auto; /* table scrolls sideways on phones instead of breaking layout */
}

table {
	width: 100%;
	border-collapse: collapse;
	min-width: 36rem;
}

th,
td {
	padding: 0.85rem 1rem;
	text-align: center;
	vertical-align: top;
}

th {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--sun-gold);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

tbody tr + tr td {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
}

tbody tr:hover {
	background: rgba(255, 255, 255, 0.05);
}

td a {
	color: #9fdcff;
	font-weight: bold;
}

.status {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.8rem;
	white-space: nowrap;
}

.status-active   { background: rgba(80, 200, 120, 0.25); color: #9ff0bb; }
.status-progress { background: rgba(246, 201, 69, 0.25); color: #ffe38a; }
.status-archived { background: rgba(255, 255, 255, 0.15); color: #ddd; }

/* ---------- Contact links ---------- */
.contact-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem 0.4rem 0.4rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
}

.contact-links a:hover,
.contact-links a:focus-visible {
	background: rgba(246, 201, 69, 0.25);
	transform: translateY(-2px);
}

/* Placeholder icon circle; also sizes a real <img> or <svg> when you swap it in */
.contact-links .icon {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--sun-gold);
	color: var(--ocean-deep);
	font-size: 0.75rem;
	font-weight: bold;
	overflow: hidden;
}

.contact-links .icon img,
.contact-links .icon svg {
	display: block;
	width: 60%;
	height: 60%;
	object-fit: contain;
}