@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --color-background: #f0f0f0;
    --color-background-dark: #e0e0e0;
    --color-background-darker: #b0b0b0;
    --color-background-semi-transparent: #f0f0f077;
    --color-text: #1a1a1a;
    --color-primary: #229ddd;
    --color-secondary: #ffc107;
}

html {
    scroll-behavior: smooth;
    scroll-padding: 90px;
}

* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;

		/*outline: 1px solid red;*/

	scrollbar-color: var(--color-primary) var(--color-background);
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

#mobile-warning {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

header {
    background-color: var(--color-background);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
}

header img {
    height: 75px;
}

header h1 {
    font-size: 1.5em;
}

header nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

header nav #menu-toggle {
    display: none;
}

header nav label[for="menu-toggle"] {
    cursor: pointer;
    font-size: 1.5em;
    transition: transform 0.3s;
}

header nav ul {
    display: flex;
    opacity: 0;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: opacity 0.3s;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a i {
    font-size: 1.2em;
}

header nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    margin-top: 80px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    
		/* align to right */
		align-items: flex-end;
}

main #image-stop {
	z-index: 500;
	background-color: var(--color-background);
	position: fixed;
	width: 100%;
	height: 85px;
}

main .project-type-header {
	position: sticky;
	top: 100px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 60px;
	background-color: var(--color-background);
	border-radius: 5px;
	padding: 10px;
	z-index: 1001;
	height: 75px;
}

main .project-type-header:not(.subcat-change) {
	width: 100%;
	justify-content: flex-end;
}

main .project-type-header h1 {
	color: var(--color-secondary);
	margin: 0;
}

main .project-type-header h2 {
	color: var(--color-primary);
	margin: 0;
}

main .project-type-header.subcat-change {
	padding-left: 55px;
}

main .project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(355px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
		overflow: hidden;
}

main .project-cards .project-card {
	position: relative;
	display: flex;
	flex-direction: column;
	/*aspect-ratio: 1 / 1;*/
	max-height: 500px;
	min-height: 355px;
    overflow: hidden;
    border-radius: 5px;
}

main .project-cards .project-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

main .project-cards .project-card .project-card-info {
    width: 100%;
	height: 32%;
	padding: 0 10px;
	background-color: var(--color-background-semi-transparent);
	backdrop-filter: blur(4px);
	padding: 10px;
	text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: width 0.25s, height 0.25s;
	position: absolute;
}

main .project-cards .project-card.vertical {
	flex-direction: row;
}

main .project-cards .project-card.vertical .project-card-info {
	height: 100%;
	width: 32%;
}

main .project-cards .project-card .project-card-info h2 {
	margin: 0;
	font-size: 1.25em;
	color: var(--color-primary);
}

main .project-cards .project-card .project-card-info p {
	font-size: 0.80em;
}

main .project-cards .project-card.vertical .project-card-info p {
	line-height: 1.5;
}

footer {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-image: linear-gradient(to bottom, var(--color-background), var(--color-background-dark) 90%);
    border-top: 1px dotted var(--color-text);
    gap: 40px;
    align-items: center;
}

footer p {
    font-size: 1.25em;
}

a {
    color: var(--color-text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.highlight {
    color: var(--color-primary);
    font-size: inherit;
    padding: 2.5px 5px;
    margin: 0 2.5px;
    border-radius: 5px;
}

.hidden {
	opacity: 0;
}

.w-span-2 {
    grid-column: span 2;
}

.h-span-2 {
    grid-row: span 2;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #1a1a1a;
        --color-background-dark: #2a2a2a;
        --color-background-darker: #5a5a5a;
        --color-background-semi-transparent: #1a1a1a77;
        --color-text: #f0f0f0;
    }
}

@media (max-width: 768px) {
    header img {
        height: calc(0.5vw * 10);
    }

    header nav ul li a, header nav ul li a i {
        font-size: calc(0.5vw * 4);
    }

    main {
        padding: 20px 10px;
    }

		main .project-type-header h1 {
			font-size: 1.25em;
		}
}