@charset "utf-8";

/* Fonts */
@font-face {
	  font-family: "Fog";
	  src: url("fonts/FoglihtenNo07.otf") format("opentype");
}
@font-face {
	  font-family: "Fragment";
	  src: url("fonts/Fragmentcore.otf") format("opentype");
}

/* Base Style */
html {
	background-color: #2a2723;
}

body {
	font-family: 'Fragment', 'Times New Roman', serif;
	color: rgb(243, 229, 221);
	font-size: 18px;
	min-height: 100vh;
	margin: 0;
}

/* Header */
header {
	text-align: center;
	padding: 1em 0;
	background-color: #2a2723;
}

header img {
	max-width: 80%;
	height: auto;
}

/* Navigation */
nav.horizontal ul {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding: 0;
	margin: 0;
	gap: 1em;
}

nav.horizontal ul li a {
	color: white;
	text-decoration: none;
	display: block;
	padding: 0.5em 1em;
	border-radius: 0.5em;
	background-color: #1e1c19;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(184,133,99,0.5);
}

nav.horizontal ul li a:hover {
	background-color: #6d553b;
	color: orange;
	text-decoration: underline;
}

/* Home Page */
body.home {
	margin: auto;
}
body.home article {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 30px;
	align-items: start;
	padding: 1em;
}

body.home aside,
body.home section.intro {
	background-color: #3a3733;
	border-radius: 20px;
	padding: 15px;
	box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

body.home main {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	background: url('images/leaf.bkgrnd.png') center/cover no-repeat;
	border-radius: 1em;
	padding: 1em;
	margin: 2em auto;
	width: 80%;
	box-shadow: 0 4px 12px rgba(184,133,99,0.5);
}

body.home img#portrait {
	width: 100%;
	height: auto;
	border-radius: 0.5em;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
	background-color: #1e1c19;
	filter: sepia(0.3);
}

body.home article > header {
	display: grid;
	grid-column: 1 / -1;
	font-family: 'Fog', 'Times New Roman', serif;
	color: white;
	font-size: 24pt;
	text-align: center;
	background: none;
}

body.home section.intro p {
	line-height: 1.6;
	font-size: 18px;
}

body.home section.intro a {
	color: white;
	text-decoration: none;
}

body.home section.intro a:hover {
	color: orange;
	text-decoration: underline;
}

@media (max-width: 768px) {
	body.home article {
		grid-template-columns: 1fr;
		text-align: center;
  }

	body.home #portrait {
		max-width: 200px;
  }

	body.home section.intro h1 {
		text-align: center;
  }
}

/* Portfolio Page */
body.portfolio {
	margin: auto;
	overflow-x: hidden;
}
body.portfolio main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    max-width: 80%;
    margin: 2em auto;
    padding: 2em;
    border-radius: 1em;
    position: relative;
    overflow: hidden;
	box-shadow: 0 4px 12px rgba(184,133,99,0.5);
	box-sizing: border-box;
}
body.portfolio section.skills img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 0.5em auto;
	border-radius: 0.5em;
}
body.portfolio main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1em;
    background: url('images/leaf.bkgrnd.png') center/cover no-repeat;
	filter: blur(2px);
    opacity: 0.5;
    z-index: 0;
}

body.portfolio main > * {
    position: relative;
    z-index: 1;
}

body.portfolio main h1 {
	text-align: center;
	font-family: 'Fog', 'Times New Roman', serif;
	color: white;
	margin-bottom: 1em;
	grid-column: 1 / -1;
}

/* Skills Sections */
body.portfolio aside {
	background-color: #3a3733;
	border-radius: 1em;
	box-shadow: 0 4px 12px rgba(0,0,0,0.5);
	padding: 1em;
	display: grid;
}

body.portfolio aside h2 {
	text-align: center;
}

body.portfolio ul.list {
	display: grid;
	list-style-type: none;
	text-align: left;
}
body.portfolio section.skills {
	background-color: #3a3733;
	border-radius: 1em;
	box-shadow: 0 4px 12px rgba(0,0,0,0.5);
	padding: 2em;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1em;
	max-width: 100%;
	box-sizing: border-box;
	overflow-wrap: break-word;
}

body.portfolio section.skills h2 {
	font-family: 'Fragment', 'Times New Roman', serif;
	font-size: 16pt;
	text-align: center;
	grid-column: 1 / -1;
	margin-bottom: 1em;
}
body.portfolio section.skills h2 a {
	color: #D1D2CA;
	text-decoration: none;
}
body.portfolio section.skills .item a {
	display: block;
	text-align: center;
	color: white;
	text-decoration: none;
	background-color: rgba(255,255,255,0.05);
	padding: 1em;
	border-radius: 10px;
	transition: background-color 0.3s;
}
body.portfolio section.skills a:hover {
	text-decoration: underline;
	color: orange;
}
body.portfolio section.skills .item a:hover {
	background-color: rgba(255,165,0,0.2);
	color: orange;
}

@media (max-width: 800px) {
	body.portfolio main {
		grid-template-columns: 1fr;
	}
	body.portfolio section.skills {
		grid-template-columns: 1fr;
	}
}


/* Footer */
footer {
	text-align: center;
	padding: 0.5em;
	background-color: #1e1c19;
	font-size: 0.9em;
	color: rgb(210,200,190);
}
footer a {
	color: white;
	text-decoration: none;
	margin: 0 0.5em;
	transition: color 0.3s;
}
footer a:hover {
	color: orange;
	text-decoration: underline;
}

/* Print Styles */
@media print {
	body {
		background: white;
		color: black;
	}
	body img {
		display: none;
	}
	body header, body footer, body nav {
		background: none;
		box-shadow: none;
		color: black;
	}
	body a {
		color: black;
		text-decoration: underline;
	}
	body.portfolio main {
		display: block;
		width: 100%;
		margin: 0;
		padding: 0;
		background: none;
	}
	body.portfolio section.skills {
		background: white;
		border: 1px solid black;
		box-shadow: none;
		display: block;
		padding: 1em;
		grid-template-columns: 1fr;
	}
	body.portfolio section.skills .item a {
		background: none;
		color: black;
		display: block;
		padding: 0.5em 0;
	}
	body.portfolio main h1 {
		color: black;
		text-align: center;
	}
}
