section.profile {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100dvh;
}

.background-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100dvh;
	object-fit: cover;
	z-index: -1;
}

.profile-container {
	display: grid;
	gap: 1rem 3rem;
	grid-template-columns: 15em 1fr;
	grid-template-rows: repeat(2, auto) 1fr;
	grid-template-areas: "picture links" "name links" "quote links";

	padding: 2rem 3rem;
	background-color: var(--bg-color-alpha);
	border-radius: 0.6rem;
	backdrop-filter: blur(10px);
}

.profile-picture {
	grid-area: picture;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.profile-picture > img {
	width: 15em;
	height: 15em;
	border-radius: 7.5em;
}

.profile-name {
	grid-area: name;
	color: var(--fg-color);
	font-size: 2rem;
	text-align: center;
}

.profile-quote {
	grid-area: quote;
	color: var(--fg-color);
	font-size: 1.1rem;
	font-style: italic;
	text-align: center;
}

.profile-links {
	grid-area: links;
	list-style: none;
	padding: 0;
	margin: 0;
}

.profile-link {
	background-color: var(--bg-primary-color-alpha);
	color: var(--fg-primary);
	font-size: 1.5rem;
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 0.5rem 0.8rem;
	margin: 0.5rem 0;
	border-radius: 0.6rem;
	min-width: 10em;
	transition: background-color 0.2s, transform 0.2s;
}

a.profile-link:hover {
	background-color: var(--bg-primary-color);
    transform: scale(1.1);
}

.profile-link-text {
	text-align: center;
	flex-grow: 1;
}

.sharkey-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    background-color: var(--bg-color-alpha);
    backdrop-filter: blur(10px);

    gap: 0.5rem;
    display: flex;
    overflow: hidden;
    user-select: none;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 3.5rem));
  }
}

.sharkey-marquee-content {
    flex-shrink: 0;
    gap: 3.5rem;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    list-style: " +++ ";
    color: var(--fg-secondary-color);
    margin: 0.5rem 0;
    animation: scroll 300s linear infinite;
}

.sharkey-marquee:hover > .sharkey-marquee-content {
    animation-play-state: paused
}

.sharkey-marquee-content-link {
    color: var(--fg-secondary-color);
}

@media screen and (max-width: 700px) {
	.background-image {
		display: none;
	}

    .sharkey-marquee {
        display: none;
    }

	.profile-container {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(3, auto) 1fr;
		grid-template-areas: "picture" "name" "quote" "links";
		background-color: transparent;
		backdrop-filter: none;
	}

	@media screen and (max-height: 850px) {
		section.profile {
			align-items: baseline;
		}
	}
}

@media (prefers-contrast: more) {
    .profile-container {
        background-color: var(--bg-primary-color);
    }

    .sharkey-marquee {
        background-color: var(--bg-primary-color);
    }

    .sharkey-marquee * {
        color: var(--fg-color);
    }
}
