/*
  C.A. Kruger — extensions for HTML5 UP Aerial
  Certifications panel, scroll layout, CV-aligned background
*/

:root {
	--text-name: #d4d4d4;
	--text-shadow-name:
		0 1px 2px rgba(0, 0, 0, 0.45),
		0 3px 10px rgba(0, 0, 0, 0.28),
		0 6px 20px rgba(0, 0, 0, 0.18);
}

html {
	height: auto;
	min-height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

body {
	height: auto;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

#wrapper {
	height: auto;
	left: auto;
	min-height: 100vh;
	position: relative;
	top: auto;
	width: 100%;
}

#bg,
#overlay {
	pointer-events: none;
}

#bg {
	background: linear-gradient(160deg, #194a8a 0%, #347ac5 45%, #348cb2 100%);
	animation: none;
	width: 100%;
}

#main {
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 100vh;
	position: relative;
	padding: 2em 0 0;
	width: 100%;
}

#main:before {
	display: none;
}

#header {
	display: block;
	margin: 0 auto;
	max-width: 52rem;
	vertical-align: initial;
	width: 90%;
}

#header h1 {
	color: var(--text-name);
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-shadow: var(--text-shadow-name);
}

#header .intro {
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0.75em;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
	color: var(--text-name);
	font-size: 1em;
	line-height: 1.6;
	margin-top: 1.25em;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
	opacity: 1;
	padding: 1em 1.2em;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

#certs {
	margin: 2.5em auto 0;
	max-width: 52rem;
	width: 90%;
	text-align: left;
	opacity: 0;
	animation: header 1s 3.25s forwards;
	-moz-backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

#certs h2 {
	color: var(--text-name);
	font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 1.35em;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 0.35em;
	text-shadow: var(--text-shadow-name);
	text-transform: none;
}

#certs .certs-lead {
	color: var(--text-name);
	font-size: 0.95em;
	margin-bottom: 1.25em;
}

.cert-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.85em;
}

.cert-card {
	align-items: flex-start;
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0.45em;
	display: flex;
	gap: 0.85em;
	padding: 0.85em;
}

.cert-badge {
	flex: 0 0 48px;
	height: 48px;
	object-fit: contain;
	width: 48px;
}

.cert-badge-fallback {
	align-items: center;
	border-radius: 0.35em;
	color: #fff;
	display: flex;
	flex: 0 0 48px;
	font-size: 0.65em;
	font-weight: 900;
	height: 48px;
	justify-content: center;
	letter-spacing: 0.04em;
	width: 48px;
}

.cert-badge-fallback--comptia {
	background: #c8202f;
}

.cert-badge-fallback--cisco {
	background: #049fd9;
}

.cert-body h3 {
	color: var(--text-name);
	font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 0.2em;
}

.cert-meta {
	color: var(--text-name);
	font-family: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
	font-size: 0.8em;
	font-weight: 300;
	line-height: 1.45;
	margin: 0;
	opacity: 0.88;
}

#main a {
	border-bottom-style: solid;
}

.cert-link {
	border-bottom: solid 1px;
	color: var(--text-name);
	display: inline-block;
	font-family: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
	font-size: 0.82em;
	font-weight: 600;
	margin-top: 0.45em;
}

.cert-note {
	color: var(--text-name);
	font-size: 0.82em;
	margin-top: 1em;
}

#footer a {
	border-bottom: none;
	text-decoration: none;
}

#footer a:hover {
	border-bottom: none;
	text-decoration: none;
}

#contact {
	margin: 2em auto 0;
	max-width: 52rem;
	opacity: 0;
	animation: header 1s 3.5s forwards;
	text-align: center;
	width: 90%;
}

#contact p {
	font-size: 0.95em;
	margin: 0.35em 0;
	opacity: 0.8;
}

#footer {
	background-image: linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 75%);
	flex-shrink: 0;
	height: auto;
	line-height: 1.6;
	margin-top: auto;
	padding: 2em 1em 1.25em;
	position: relative;
	width: 100%;
}

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

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

	#overlay {
		background-attachment: scroll, scroll;
	}

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