/* ===== CSS RESET ========================================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
}

/* ===== PAGE DEFAULTS ====================================================== */

html {
	font-size: 100%;
	background-color: #333333;
}

body {
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: 1rem;
	color: #CCCCCC;
	margin: 0;
	width: 100vw;
	height: 100vh;
	background-color: #000000;
	background-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
	background-size: 100% 100%;
	animation: gradientChange 10s ease infinite;
}

/* ===== PAGE CONTAINER ===================================================== */

body > div#container {
	display: grid;
	height: 100vh;
	grid-template-rows: min-content 1fr min-content;
	grid-template-areas: "header" "body" "footer";
}

/* ===== PAGE SECTIONS ====================================================== */

body > div > header {
	grid-area: header;
	border-bottom: 5px solid #FFCC00;
}

body > div > main {
	grid-area: body;
	margin: 20px;
}

body > div > footer {
	grid-area: footer;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ===== PAGE BANNER ======================================================== */

.banner {
	display: grid;
	grid-template-areas: "header";
	background-color: #AAAAAA;
}

.banner > svg {
	grid-area: header;
}

.banner-svg-content {
	z-index: 100;
}

.portrait {
	grid-area: header;
	background-image: url("/images/portrait.png");
	background-position: right;
	background-repeat: no-repeat;
	background-size: contain;
	z-index: 100;
}

.svg-bg-line-1 { animation: 1.0s linear 0.2s shake; }
.svg-bg-line-2 { animation: 0.8s linear 0.4s shake; }
.svg-bg-line-3 { animation: 1.8s linear 0.5s shake; }
.svg-bg-line-4 { animation: 1.4s linear 0.3s shake; }

@keyframes shake {
	0% { transform: translateX(-5px); }
	30% { transform: translateX(5px); }
	60% { transform: translateX(-5px); }
	90% { transform: translateX(5px); }
}

/* ===== HTML ELEMENTS ====================================================== */

h1 {
	font-size: 1.5rem;
	margin-bottom: 5px;
}

h2 {
	font-size: 1.2rem;
	margin-bottom: 5px;
}

form > div {
	width: 100%;
	max-width: 800px;
	display: flex;
	justify-content: flex-end;
}

button {
	grid-column: 2;
	padding: 10px 20px;
	border-radius: 0.25rem;
	min-width: 200px;
	color: white;
	background-color: rgb(27, 211, 27);
	font: 1.25rem / 1.5 sans-serif;
}

label {
	align-self: center;
	justify-content: center;
}

input, textarea, select {
	font: 1.25rem / 1.5 sans-serif;
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem 0.75rem;
	margin-bottom: 5px;
	border: 2px solid #333;
	background-color: white;
	border-radius: 0.25rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
	height: 200px;
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: #67ace4;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

input:hover {
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

input:disabled {
	background-color: #eee;
	border-color: #ccc;
	cursor: not-allowed;
	color: #777;
}

input[readonly] {
	border-style: dotted;
	cursor: not-allowed;
	color: #777;
}

ul {
	margin: 10px 0px 10px 40px;
}

li {
	padding: 2px;
}

a {
	color: #FFCC00;
}

/* ===== DIV CLASSES ======================================================== */

div.services {
    display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px 20px;
}

div.section {
	margin-top: 20px;
}

div.card {
    display: grid;
    grid-template-rows: min-content 1fr min-content;
    grid-template-areas: "header" "body" "footer";
    grid-gap: 20px;
    border: 2px #BBBBBB solid;
	border-radius: 0.5rem;
}

div.list {
	margin: 10px 0px 0px 20px;
}

/* ===== CARD LAYOUT ======================================================== */

.card-title {
    grid-area: header;
    display: flex;
    justify-content: center;
    color: #000000;
    background-color: #BBBBBB;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

.card-body {
    grid-area: body;
    padding: 10px;
}

.card-footer {
    grid-area: footer;
    min-height: 12px;
    background-color: #BBBBBB;
}

/* ===== SOCIAL MEDIA ======================================================= */

.social-icons {
	display: flex;
    flex-direction: row;
	gap: 10px;
	padding: 20px;
	text-align: center;
	margin: 10px 0;
}

.social-icons a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	margin: 5px;
	font-size: 24px;
	color: white;
	border-radius: 50%;
	transition: opacity 0.3s ease;
	text-decoration: none;
}

.social-icons a:hover {
	opacity: 0.8;
}

.facebook { background: #3B5998; }
.twitter { background: #55ACEE; }
.instagram { background: #125688; }
.linkedin { background: #0077b5; }
.youtube { background: #bb0000; }

/* ===== NAVIGATION ========================================================= */

body > div > header > nav a {
	display: inline-block;
	color: #CCCCCC;
	font-weight: 600;
	padding: 15px;
}

body > div > header > nav a.active {
	color: #FFCC00;
}

body > div > header > nav a:hover {
	background-color: #000000;
}

@media (max-width: 560px) {
	.menu {
		display: flex;
		flex-direction: column;
		align-items: center;
		position: fixed;
		margin: auto;
		top: 80px;
		left: 15%;
		width: 70%;
		background: #CCCCCC;
		opacity: 0;
		transition: opacity 1s ease;
		box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.65);
		border: 4px solid #000000;
		z-index: 1000;
	}
	.menu a {
		display: block;
		width: 100%;
		text-align: center;
		color: #000000;
	}
	.menu a:hover {
		background-color: #000000;
		color: #CCCCCC;
	}
}

/* ===== BURGER ICON ======================================================== */

.burger {
	display: none;
	padding: 0.5rem;
	cursor: pointer;
}

.line {
height: 3px;
	width: 35px;
	margin: 0.5rem 0;
	background: #CCCCCC;
	transition: transform 0.75s ease, opacity 0.75s ease;
}

body > div > header > nav.show .line1 {
	transform: translate(-10px) rotate(45deg) translate(15px);
}

body > div > header > nav.show .line2 {
	opacity: 0;
}

body > div > header > nav.show .line3 {
	transform: translate(-10px) rotate(-45deg) translate(15px);
}

body > div > header > nav.show .menu {
	opacity: 1;
}

@media (max-width: 560px) {
	.burger {
		display: block;
	}
}

/* ===== ANIMATIONS ========================================================= */

@keyframes gradientChange {
	0%, 100% { background-color: #2b4ba1; }
	50% { background-color: #132350; }
}		
