/* Polish layer — loads after main.css, additive only */

/* ---- Header tagline ---- */
#header p {
	margin: 0.6em 0 0;
	font-size: 1rem;
	letter-spacing: 0.04em;
	opacity: 0.85;
	font-weight: 300;
}

/* ---- Social icon buttons (Personal info) ---- */
.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	padding: 0;
	margin: 1.25em 0 0;
}

.social-links wa-button {
	--wa-color-brand-fill-loud: transparent;
}

.social-links wa-button i {
	font-size: 1.1em;
}

/* ---- "Built with" row ---- */
.builtwith {
	padding: 1.5em 2em;
}

.builtwith .builtwith-label {
	margin: 0 0 0.75em;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.55;
	font-weight: 400;
}

.builtwith-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4em 1.75em;
	row-gap: 0.6em;
}

.builtwith-list li {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	font-size: 0.95rem;
	font-weight: 400;
	color: inherit;
	opacity: 0.82;
	transition: opacity 0.2s ease;
}

.builtwith-list li:hover {
	opacity: 1;
}

.builtwith-list li i {
	font-size: 1.15em;
	width: 1.25em;
	text-align: center;
	line-height: 1;
}

.builtwith-list li img {
	height: 1.15em;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

/* ---- Card polish (projects & content grids) ---- */
wa-card {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
	border-radius: 14px;
	overflow: hidden;
}

wa-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 12px 24px rgba(0,0,0,0.1);
}

/* Content section: pin button to the bottom so card heights line up nicely */
#content wa-card .wa-stack {
	height: 100%;
	justify-content: space-between;
}

#content wa-card wa-button {
	align-self: flex-start;
	margin-top: 0.5em;
}

/* Carousel cards (projects): inherit the same polish but no transform jitter inside the carousel */
#git wa-carousel-item wa-card:hover {
	transform: none;
}

/* ---- Carousel a tiny bit more refined ---- */
wa-carousel {
	--aspect-ratio: auto;
}

/* ---- Section spacing breathing room ---- */
#main > section.main {
	margin-bottom: 0;
}

/* ---- Personal projects: repos grid ---- */
.repos-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	margin: 0 0 1.25em;
}

.repos-header h3 {
	margin: 0;
}

.repos-handle {
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.repos-handle:hover {
	opacity: 1;
}

.repos-handle i {
	margin-right: 0.35em;
}

.repos-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 0 2rem;
	text-align: left;
}

@media (max-width: 720px) {
	.repos-grid {
		grid-template-columns: 1fr;
	}
}

.repo-card {
	display: flex;
	flex-direction: row;
	gap: 0.9em;
	align-items: stretch;
	padding: 1.1em 1.2em;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	color: inherit;
	text-decoration: none;
}

.repo-thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	background: #f3f3f3;
	border: 1px solid rgba(0, 0, 0, 0.05);
	align-self: flex-start;
	margin-top: 0.15em;
}

.repo-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	min-width: 0;
	flex: 1 1 auto;
}

.repo-card:hover {
	transform: translateY(-2px);
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 12px 24px rgba(0,0,0,0.08);
	border-bottom-color: rgba(0, 0, 0, 0.12);
}

.repo-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
}

.repo-card-head strong {
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.repo-card-arrow {
	font-size: 0.8em;
	opacity: 0.35;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.repo-card:hover .repo-card-arrow {
	opacity: 0.75;
	transform: translate(2px, -2px);
}

.repo-card p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	flex: 1 1 auto;
	color: rgba(0, 0, 0, 0.62);
}

.repo-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.78rem;
	color: rgba(0, 0, 0, 0.55);
	margin-top: 0.25em;
}

.repo-lang-dot {
	display: inline-block;
	width: 0.65em;
	height: 0.65em;
	border-radius: 50%;
	background: #888;
}

.lang-python .repo-lang-dot     { background: #3572A5; }
.lang-jupyter .repo-lang-dot    { background: #DA5B0B; }
.lang-cpp .repo-lang-dot        { background: #f34b7d; }
.lang-typescript .repo-lang-dot { background: #3178c6; }

/* Activity image below the grid */
.repos-activity {
	margin: 0 auto 2rem;
	max-width: 100%;
}

.repos-activity img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	opacity: 0.95;
}

.repos-wb-heading {
	margin-top: 1.5em;
}
