:root {
    --main-color-1: 20, 20, 20;
    --main-color-2: 58, 87, 67;
    --main-color-3: 219, 173, 106;
	--main-color-4: 158, 223, 255;
    --main-color-5: 252, 247, 255;

    --background: rgb(var(--main-color-1));
    --text-color: rgb(var(--main-color-4));
    --tag-background: rgba(var(--main-color-3), 0.2);
    --tag-text-color: #aaa;
    --portfolio-background: #040f18aa;

    --text-font: 'Roboto', Tahoma, arial, sans-serif;
    --title-font: 'Lora', Tahoma, arial, sans-serif;
}

body, html {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: var(--text-font);
    font-weight: 300;
    background-color: #04263c;
	color: var(--text-color);
}

h1, h2, h3, h4, .subtitle {
    font-family: var(--title-font);
    font-weight: 500;
    font-style: normal;
    color: var(--text-color);
    position: relative;
}

ul {
	padding-inline-start: 32px;
}

.top .title {
    text-align: center;
}

.title {
    position: relative;
}

.subtitle {
    left: calc(50% - 90px);
    top: 73px;
    position: absolute;
    text-align: left;
    z-index: 100;
}

@media screen and (max-width: 420px) {
    .top h1 {
        line-height: 0.9;
    }
    .subtitle {
        top: 150px;
    }
}

h1, h2 {
    margin: 0;
    font-size: clamp(40px, 8vw, 64px);
    line-height: 1;
    z-index: 10;
    letter-spacing: -1px;
}

a {
    color: var(--text-color)
}
a:hover, a:active, a:focus {
    color: white;
    text-decoration-color: var(--text-color);
    outline: none;
}

p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
}

strong {
    font-weight: 500;
}

::selection {
    color: var(--background);
    background: var(--text-color);
}

.top {
    background: var(--text-color);
    padding: 1rem 2rem 2.5rem;
    margin: 16px clamp(0px, 4vw, 64px) 0;
    border-radius: 6px;
    z-index: 2;
    position: relative;
}

.top h1 {
    font-size: 80px;
    margin: 0;
    letter-spacing: -4px;
    text-shadow: 1px 1px rgba(255,255,255,0.4);
}

.top h1, .top .subtitle {
    color: var(--background);
}

.container {
    margin: 0 auto;
    max-width: 1000px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 2rem 1rem;
}

#me {
    width: 30%;
    left: -7vw;
    bottom: 0;
    z-index: 0;
    position: fixed;
    pointer-events: none;
}

#avatar-credits{
    color: var(--text-color);
    position: fixed;
    bottom: 6px;
    left: 8px;
    z-index: 1;
    font-size: 12px;
}

.ornaments {
    width: 100%;
    display: flex;
    z-index: 99;
    position: sticky;
    top: 0;
    justify-content: space-between;
    pointer-events: none;
    margin-bottom: -5em;
}

.ornament {
    fill: var(--text-color);
    position: sticky;
    top: -2px;
    left: -2px;
    opacity: 0.8;
    width: clamp(100px, 12vw, 150px);
    height: clamp(100px, 12vw, 150px);
    z-index: 40;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.ornament-right {
    transform: scaleX(-1);
}

.portfolios {
    display: grid;
    padding: 0 1rem 0;
    gap: 4rem 0;
    z-index: 5;
    position: relative;
	max-width: 650px;
}

.intro {
    z-index: 1;
    background: var(--portfolio-background);
    padding: 2rem;
    border-radius: 12px;
    gap: 1rem;
    align-items: center;
}

.intro p:last-child {
    margin-bottom: 0;
}

.outro {
    text-align: right;
    padding: 0 2rem 5rem 3.5rem;
    z-index: 1;
}

.achievement {
	z-index: 1;
	background: #040f1844;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	backdrop-filter: blur(3px);
	border-radius: 12px;
	padding: 2rem;
	justify-content: flex-start;
	align-items: flex-start;
}

.achievement h2 {
	font-size: clamp(24px, 5vw, 32px);
}

.achievement .icon {
	border-radius: 100%;
	background-color: var(--text-color);
	padding: .5rem;
	width: 32px;
	height: 32px;
	display: flex;
    justify-content: center;
    align-items: center;
	align-self: center;
}

.achievement p {
	margin-bottom: 0;
}

.icon svg {
	stroke: var(--background);
}

.portfolio {
    z-index: 1;
    background: var(--portfolio-background);
    padding: 2rem 2rem 2rem 1rem;
    border-radius: 12px;
    display: flex;
    backdrop-filter: blur(3px);
    gap: 1rem;
    align-items: center;
    outline: 8px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

.portfolio.personal_project {
	background: #040f1844;
}

.portfolio h2 {
    left: -0.25rem;
    text-shadow: 2px 2px rgba(0,0,0,1);
}

.portfolio.personal_project h2 {
	font-size: clamp(32px, 6vw, 48px);
}

.portfolio .location {
    text-transform: uppercase;
    font-weight: 300;
    font-style: normal;
    font-size: 1.5rem;
    font-family: var(--text-font);
    filter: brightness(50%);
    margin: -.4rem 0 0;
    z-index: 1;
    color: var(--text-color);
    position: relative;
}

.portfolio .timeframe {
    text-transform: uppercase;
    font-size: 3em;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 600;
    filter: brightness(50%);
    text-shadow: -1px 1px black;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    flex-grow: 1;
    font-family: var(--title-font);
    font-style: normal;
    color: var(--text-color);
}

aside.sidebar {
	max-width: 300px;
	display: flex;
	gap: 2rem;
	flex-direction: column;
}

aside.sidebar .achievement {
	
}

.content {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.description {
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1;
    background-color: var(--tag-background);
    color: var(--tag-text-color);
    text-transform: uppercase;
}
