:root {
	--color-purple: #210858;
	--max-width: 42rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
  cursor: url('https://cdn.cursors-4u.net/previews/neon-tetra-fish-0a7289c4-32.webp') 32 32, auto !important;
}

body {
	color: var(--color-purple);
	font-family: 'Sansation', system-ui, sans-serif;
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 1rem clamp(1rem, 5vw, 4rem);
}

p + p {
	margin-top: 0.4em;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover{
	text-decoration: underline dashed;
	text-underline-offset: 0.2em;
}

b{
	font-weight: bold;
}

.languageSelector{
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	color: darkgray;
}

.headerTitle {
    font-size: 6rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    font-weight: bold;
}

.headerTitle img {
	height: 1.2em;
	width: auto;
	object-fit: contain;
}

.headerDescription {
	font-size: 1.2rem;
	font-style: normal;
	font-weight: 400;
	line-height: 112.295%;
}

footer {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1rem 0;
	font-size: 0.875rem;
}

.bubbles {
	position: absolute;
	bottom: 2rem;
	left: 2rem;
	width: 11rem;
	pointer-events: none;
}

.bubble {
	position: absolute;
	display: grid;
	place-items: center;
	background: url('../images/bubble.png') center / contain no-repeat;
	color: var(--color-purple);
	text-decoration: none;
	font-weight: 700;
    pointer-events: auto;
    border-radius: 50%;
    box-shadow: 7px 8px 4px rgba(0, 0, 0, 0.25);
	transition: transform 200ms ease-out;
}

.bubble:hover,
.bubble:focus-visible {
	transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
	.bubble {
		transition: none;
	}
	.bubble:hover,
	.bubble:focus-visible {
		transform: none;
	}
}

.bubble--cv {
	bottom: 11.4rem;
	left: 3rem;
	width: 4rem;
	height: 4rem;
	font-size: 1.2rem;
}

.bubble--linkedin {
	bottom: 3.7rem;
	left: 0;
	width: 7rem;
	height: 7rem;
	font-size: 1.2rem;
}

.bubble--email {
	bottom: 0;
	left: 6.5rem;
	width: 5rem;
	height: 5rem;
	font-size: 1.2rem;
}

.portfolio {
	margin-bottom: 1rem;
}

.sectionHeader{
	display: flex;
    flex-direction: row-reverse;
    align-items: center;
	
	gap: 1rem;
	font-size: clamp(1.1rem, 3.2vh, 1.8rem);
	font-weight: 700;
	margin-top: clamp(1rem, 5.3vh, 3rem);
	margin-bottom: clamp(0.5rem, 3.5vh, 2rem);
	text-align: right;

}


.sectionHeader .disc{
	display: inline-block;
	filter: drop-shadow(7px 8px 4px rgba(0, 0, 0, 0.32));
	will-change: filter;
	transform: translateZ(0);
}

.sectionHeader img{
	width: clamp(2.5rem, 7vh, 4rem);
	display: block;
	transform: rotate(var(--tilt, 0deg));
	transition: transform 300ms ease-out;
}

.section ul {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: clamp(0.5rem, 2vh, 1.25rem);
}

.section ul li {
	font-size: clamp(0.8rem, 2vh, 1.1rem);
	line-height: 1.3;
}

#minidisc1 { --tilt: 9.4deg; }
#minidisc2 { --tilt: -13.3deg; }
#minidisc3 { --tilt: 9.7deg; }

.section:hover #minidisc1 {
	transform: rotate(calc(var(--tilt) - 16deg));
}

.section:hover #minidisc2 {
	transform: rotate(calc(var(--tilt) + 20deg));
}

.section:hover #minidisc3 {
	transform: rotate(calc(var(--tilt) - 22deg));
}

.columns {
	display: grid;
	grid-template-columns: 50% 1fr;
	gap: 1rem;
	align-items: start;
}

.rightColumn {
	min-height: calc(100vh - 2rem);
	max-height: calc(100vh - 2rem);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: clamp(1rem, 2rem, 3rem);
}



ul {
	text-align: right;
}

li {
	position: relative;
	cursor: pointer;
}

li::before {
	content: '↖ ';
	display: inline-block;
	margin-right: 0.4em;
	opacity: 0;
	transition: opacity 150ms ease-out, translate 150ms ease-out;
	translate: -0.2em 0.1em;
}

li:hover::before {
	opacity: 1;
	translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
	li::before {
		transition: none;
	}
}

.preview {
	margin: 2rem 0 0;
	max-width: 22rem;
	opacity: 0;
	transition: opacity 200ms ease-out;
	text-align: left;
}

.preview.is-visible {
	opacity: 1;
}

.preview__thumb {
	display: block;
	max-width: 100%;
	max-height: 30vh;
	border-radius: 0.5rem;
	box-shadow: 0 8px 16px rgba(33, 8, 88, 0.2);
}

.preview__thumb:not([src]),
.preview__thumb[src=""] {
	display: none;
}

.preview__description {
	margin-top: 1rem;
	font-size: 1rem;
	line-height: 1.4;
}

.preview__description:empty {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.preview {
		transition: none;
	}
}

/* Mobile: stack columns, align everything left */
@media (max-width: 768px) {
	.headerTitle {
		font-size: 4rem;
		flex-wrap: wrap;
		margin-bottom: 1rem;
		
	}

	.headerTitle img {
		height: 1.5em;
		max-width: 8rem;
		max-height: 8rem;

	}

	.headerDescription {
		font-size: 0.95rem;
	}

	.columns {
		display: block;
	}

	.rightColumn {
		min-height: 0;
		max-height: none;
		display: block;
		padding-bottom: 1rem;
	}

	.portfolio {
		margin-bottom: 0;
	}

	.sectionHeader {
		flex-direction: row;
		text-align: left;
		font-size: 1.4rem;
		margin-top: 2rem;
		margin-bottom: 1rem;
	}

	.sectionHeader img {
		width: 3rem;
	}

	.section ul {
		align-items: flex-start;
		gap: 0.75rem;
	}

	.section ul li {
		font-size: 1rem;
	}

	ul {
		text-align: left;
	}

	.preview {
		display: none;
	}

	li::before {
		display: none;
	}

	.bubbles {
		position: relative;
		bottom: auto;
		left: auto;
		order: 2;
		margin: 2rem auto 0;
		width: 16rem;
		height: 7rem;
	}

	.bubble--cv {
		top: 0.5rem;
		bottom: auto;
		left: 0.4rem;
		width: 3.2rem;
		height: 3.2rem;
		font-size: 1rem;
	}

	.bubble--linkedin {
		top: 0;
		bottom: auto;
		left: 4.8rem;
		width: 5.6rem;
		height: 5.6rem;
		font-size: 1rem;
	}

	.bubble--email {
		top: 1.8rem;
		bottom: auto;
		left: 11.6rem;
		width: 4rem;
		height: 4rem;
		font-size: 1rem;
	}
}


.langSwitcher {
	position: absolute;
	top: 1rem;
	right: clamp(1rem, 5vw, 4rem);
	font-size: 0.95rem;
	display: flex;
	gap: 0.4rem;
	align-items: center;
	z-index: 10;
}

.langSwitcher a {
	color: var(--color-purple);
	opacity: 0.55;
	font-weight: 700;
	cursor: url('https://cdn.cursors-4u.net/previews/neon-tetra-fish-0a7289c4-32.webp') 32 32, pointer !important;
}

.langSwitcher a.is-active {
	opacity: 1;
}

.langSwitcher a:hover,
.langSwitcher a:focus-visible {
	opacity: 1;
}

@media (max-width: 768px) {
	.langSwitcher {
		top: 0.5rem;
		right: 1rem;
	}
}


.projectModal[hidden] {
	display: none;
}

.projectModal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.projectModal__backdrop {
	position: absolute;
	inset: 0;
	background: #ffffff;
}

.projectModal__card {
	position: relative;
	max-width: 24rem;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	color: var(--color-purple);
}

.projectModal__close {
	background: none;
	border: 0;
	padding: 0 0 0 0.75rem;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--color-purple);
	flex-shrink: 0;
}

.projectModal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.projectModal__title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.25;
}

.projectModal__thumb {
	display: block;
	max-width: 100%;
	max-height: 40vh;
	margin: 0 0 1rem;
}

.projectModal__thumb[hidden] {
	display: none;
}

.projectModal__description {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.4;
}

.projectModal__link {
	font-weight: 700;
}

body.is-modal-open {
	overflow: hidden;
}


.honor {
	display: block;
	margin-top: 0.5rem;
	color: #b8860b;
	font-size: 0.85em;
	line-height: 1.3;
}
