/* Custom dark theme layered on top of the Photon (HTML5 UP) template.
   Loaded after main.css so these rules win at equal specificity. */

/* The theme only loads Source Sans Pro 300/400; pull in bold weights too. */
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700");

:root {
	--bg: #141519;
	--text: rgba(255, 255, 255, 0.7);
	--text-strong: #f4f4f6;
	--border: rgba(255, 255, 255, 0.12);
	--accent: #6bd4c8;
}

/* ---- Base surfaces ---- */

html, body {
	background-color: var(--bg);
}

#header,
.main,
#footer {
	background-image: none;
	background-color: var(--bg);
	color: var(--text);
}

/* ---- Typography colors on dark ---- */

.main,
.main p,
.main li {
	color: var(--text);
}

.main h1, .main h2, .main h3, .main h4, .main h5, .main h6,
.main strong, .main b {
	color: var(--text-strong);
}

.main a {
	color: var(--accent);
	border-bottom-color: rgba(107, 212, 200, 0.4);
}

.main a:hover {
	color: #ffffff;
}

/* Bold section headers, no underline rule. */
.main header.major {
	margin-bottom: 1.5em;
}

.main header.major h2 {
	font-weight: 700;
}

header.major:after {
	display: none;
}

hr {
	border-bottom-color: var(--border);
}

/* ---- Buttons on dark ---- */

.button {
	color: rgba(255, 255, 255, 0.85) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.button:hover {
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.06);
}

.button.disabled,
.button:disabled {
	opacity: 0.4;
}

/* Primary call-to-action */
.button.cta {
	background-color: #ffffff;
	color: #141519 !important;
	box-shadow: none;
	border-radius: 10px;
	font-weight: 700;
}

.button.cta:hover {
	background-color: rgba(255, 255, 255, 0.85);
	color: #141519 !important;
}

/* #header uses the theme's dark mixin, whose #header .button rule (higher
   specificity + !important) would force white text on the white CTA. */
#header .button.cta,
#header .button.cta:hover {
	color: #141519 !important;
	box-shadow: none;
}

/* ---- Header / hero ---- */

#header {
	padding: 11em 0 9em 0;
}

#header .inner {
	max-width: 46em;
	margin: 0 auto;
	padding: 0 2em;
}

#header h1 {
	font-size: 3.25em;
	font-weight: 700;
	letter-spacing: -0.02em;
}

#header p {
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.25em;
	line-height: 1.65;
	max-width: 32em;
	margin: 1.25em auto 0 auto;
}

#header .button {
	margin-top: 2em;
}

/* Replace the theme's slow zoom fade-in with a quick, subtle rise.
   The original scales from 1.05 over ~2s, which reads as a jarring flash
   against the dark background. */
#header .inner {
	-moz-transition: opacity 0.7s ease, -moz-transform 0.7s ease;
	-webkit-transition: opacity 0.7s ease, -webkit-transform 0.7s ease;
	-ms-transition: opacity 0.7s ease, -ms-transform 0.7s ease;
	transition: opacity 0.7s ease, transform 0.7s ease;
	-moz-transition-delay: 0.1s;
	-webkit-transition-delay: 0.1s;
	-ms-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

body.is-loading #header .inner {
	-moz-transform: translateY(10px);
	-webkit-transform: translateY(10px);
	-ms-transform: translateY(10px);
	transform: translateY(10px);
	opacity: 0;
}

/* ---- About ---- */

#about .image img {
	border-radius: 6px;
}

/* ---- Projects (cards) ---- */

.project-card {
	height: 100%;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 8px;
	padding: 2em;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
	transform: translateY(-4px);
	border-color: rgba(107, 212, 200, 0.4);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.project-card h3 {
	margin-top: 0;
	font-weight: 700;
	font-size: 1.5em;
}

/* Wider gap between the two project cards on desktop; also equalizes heights. */
@media screen and (min-width: 981px) {
	#projects .row {
		display: flex;
		gap: 3.5em;
	}

	#projects .row > div {
		width: auto;
		flex: 1;
		padding-left: 0;
	}
}

/* Vertical breathing room when the cards stack on smaller screens. */
@media screen and (max-width: 980px) {
	#projects .row > div + div {
		margin-top: 2.5em;
	}
}

/* Feature checklist inside project cards and overview pages. */
.feature-list {
	list-style: none;
	padding: 0;
	margin: 1.5em 0 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.6em 1.5em;
}

.feature-list li {
	position: relative;
	margin: 0;
	padding-left: 1.5em;
	font-size: 0.9em;
	line-height: 1.5;
}

.feature-list li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 700;
}

@media screen and (max-width: 480px) {
	.feature-list {
		grid-template-columns: 1fr;
	}
}

.project-card .image {
	margin: -2em -2em 1.5em -2em;
	width: calc(100% + 4em);
}

.project-card .image img {
	border-radius: 8px 8px 0 0;
}

.project-card .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin-top: 1.5em;
	margin-bottom: 0;
}

.project-card .actions li {
	margin: 0;
	padding: 0;
}

/* ---- Tag chips (projects + skills) ---- */

.tag-list {
	list-style: none;
	padding: 0;
	margin: 1.25em 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.tag-list.centered {
	justify-content: center;
}

.tag-list li {
	margin: 0;
}

.tag {
	display: inline-block;
	padding: 0.4em 1em;
	border-radius: 999px;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.75);
}

/* ---- Skills ---- */

#skills {
	text-align: center;
}

/* ---- Experience / dev journey (timeline, on a darker gradient) ---- */

#experience,
#journey {
	background-image: linear-gradient(160deg, #10201e 0%, #141519 62%);
	text-align: left;
}

.job-list {
	max-width: 46em;
	margin: 0 auto;
}

.job {
	position: relative;
	padding: 0 0 2.5em 2em;
	border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.job:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}

.job::before {
	content: '';
	position: absolute;
	left: -7px;
	top: 0.35em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(20, 21, 25, 0.9);
}

.job-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.35em 1.5em;
	margin-bottom: 0.5em;
}

.job-header h3 {
	margin: 0;
	font-size: 1.15em;
}

.job-date {
	font-size: 0.75em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.6;
	white-space: nowrap;
}

.job p {
	margin: 0;
	text-align: left;
}

/* ---- Contact ---- */

#contact {
	text-align: center;
}

.contact-card {
	max-width: 44em;
	margin: 0 auto;
	padding: 4.5em 3em;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
}

.contact-card header.major {
	margin-bottom: 0;
}

/* The theme's .major class is inline-block; force block so the CTA drops below. */
#contact header.major {
	display: block;
}

#contact .button {
	margin-top: 1.75em;
}

/* ---- Project detail pages (roomaid.html, hellopost.html) ---- */

/* Native cross-document transition between pages (Chrome/Safari 18+;
   other browsers simply ignore it). No SPA machinery needed. */
@view-transition {
	navigation: auto;
}

/* Article-style hero: left-aligned on the journey gradient, so detail
   pages read differently from the centered landing hero. */
#header.page-hero {
	padding: 7em 0 5em 0;
	background-image: linear-gradient(160deg, #10201e 0%, #141519 62%);
	text-align: left;
}

#header.page-hero .inner {
	max-width: 58em;
}

#header.page-hero h1 {
	font-size: 2.75em;
}

#header.page-hero p {
	margin-left: 0;
}

.eyebrow {
	margin: 0 0 1.5em 0;
}

.eyebrow a {
	border-bottom: none;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
}

.eyebrow a:hover {
	color: #ffffff;
}

/* Product overview grid */
.overview-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5em 3.5em;
	text-align: left;
}

.overview-grid h3 {
	font-weight: 700;
	font-size: 1.1em;
	margin: 0 0 0.4em 0;
}

.overview-grid p {
	margin: 0;
	font-size: 0.95em;
}

@media screen and (max-width: 736px) {
	.overview-grid {
		grid-template-columns: 1fr;
		gap: 2em;
	}
}

/* ---- Footer ---- */

#footer {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Responsive ---- */

@media screen and (max-width: 980px) {
	#header h1 {
		font-size: 2.75em;
	}
}

@media screen and (max-width: 736px) {
	#header {
		padding: 8em 0 6em 0;
	}

	#header h1 {
		font-size: 2.25em;
	}

	#header p {
		font-size: 1.1em;
	}

	.job {
		padding-left: 1.5em;
	}
}
