/* Triple Eh? Website Styles */

/* region FONTS */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;700&family=Poppins:wght@500&display=swap');
/* endregion */

/* ------------------------------------------------------------------ */

/* region VARIABLES */
:root {
	/* Core palette */
	--white: hsl(188, 33%, 83%);
	--black: hsl(254, 49%, 29%);
	--accent: hsl(66, 62%, 69%);
	--dark-accent: hsl(254, 55%, 71%);
	--light-accent: hsl(182, 56%, 73%);

	/* Functional */
	--bg: var(--white);
	--text: var(--black);
	--header-bg: rgba(0, 0, 0, 0.5);

	/* Typography */
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Nunito', sans-serif;

	/* Layout */
	--max-width: 1500px;
	--content-padding: 2rem;

	/* Divider */
	--divider-height: 15vw;
	--divider-stroke: 6px;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region RESET */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

ul {
	list-style: none;
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1.2;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region HEADER */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--header-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0.75rem var(--content-padding);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.header-logo img {
	height: 40px;
	width: auto;
}

.nav-links {
	display: flex;
	gap: 1.5rem;
}

.nav-links a {
	color: var(--light-accent);
	font-weight: 400;
	transition: opacity 0.2s ease;
}

.nav-links a:hover {
	opacity: 0.7;
}

.header-cta {
	background: var(--accent);
	color: var(--black);
	padding: 0.5rem 1.25rem;
	border-radius: 6px;
	font-weight: 700;
	box-shadow: 0 3px 0 hsl(66, 50%, 50%), 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-cta:hover {
	background: hsl(66, 70%, 75%);
	transform: translateY(-2px);
	box-shadow: 0 5px 0 hsl(66, 50%, 50%), 0 6px 12px rgba(0, 0, 0, 0.25);
}

.header-cta:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 hsl(66, 50%, 50%), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile header */
@media (max-width: 768px) {
	.nav-links {
		display: none;
	}

	.header-logo {
		position: static;
		transform: none;
	}

	.header-cta {
		padding: 0.4rem 0.75rem;
		font-size: 0.85rem;
	}

	.hero-logo {
		max-width: 80vw;
	}
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region HERO */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero-bg img,
.hero-bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-bg iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 100vh;
	transform: translate(-50%, -50%) scale(1.2);
	pointer-events: none;
	border: none;
}

@media (min-aspect-ratio: 16/9) {
	.hero-bg iframe {
		height: 56.25vw;
	}
}

@media (max-aspect-ratio: 16/9) {
	.hero-bg iframe {
		width: 177.78vh;
	}
}

.hero-content {
	text-align: center;
	padding: var(--content-padding);
}

.hero-logo {
	max-width: 800px;
	margin: -4rem auto 2rem;
	filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-cta {
	display: inline-block;
	background: var(--accent);
	color: var(--black);
	padding: 1rem 2.5rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 1.1rem;
	box-shadow: 0 3px 0 hsl(66, 50%, 50%), 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-cta:hover {
	background: hsl(66, 70%, 75%);
	transform: translateY(-2px);
	box-shadow: 0 5px 0 hsl(66, 50%, 50%), 0 6px 12px rgba(0, 0, 0, 0.25);
}

.hero-cta:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 hsl(66, 50%, 50%), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Game page hero - shorter */
.hero--game {
	min-height: 60vh;
}

.hero--game .hero-logo {
	max-width: 500px;
}

@media (max-width: 768px) {
	.hero-logo {
		max-width: 80vw;
	}

	.hero--game .hero-logo {
		max-width: 80vw;
	}
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region SLANTED DIVIDERS */
.divider {
	position: relative;
	height: var(--divider-height);
	margin-top: calc(var(--divider-height) * -1);
	pointer-events: none;
}

.divider--down {
	background: linear-gradient(to bottom right, transparent 49.5%, var(--bg) 50.5%);
}

.divider--up {
	background: linear-gradient(to top right, transparent 49.5%, var(--bg) 50.5%);
}

.divider::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.divider--down::after {
	background: linear-gradient(to bottom right, transparent calc(50% - 3px), var(--dark-accent) 50%, transparent calc(50% + 3px));
}

.divider--up::after {
	background: linear-gradient(to top right, transparent calc(50% - 3px), var(--dark-accent) 50%, transparent calc(50% + 3px));
}

/* Divider colour variants */
.divider--to-dark {
	--bg: var(--black);
}

.divider--to-light {
	--bg: var(--white);
}

.divider--to-accent {
	--bg: var(--accent);
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region SECTIONS */
.section {
	padding: 4rem var(--content-padding) calc(4rem + var(--divider-height));
}

.section--dark {
	background: var(--black);
	color: var(--white);
}

.section--accent {
	background: var(--accent);
	color: var(--black);
}

.section-inner {
	max-width: var(--max-width);
	margin: 0 auto;
}

.section-heading {
	font-size: clamp(2rem, 5vw, 3.5rem);
	margin-bottom: 1.5rem;
	text-align: center;
}

.section-text {
	font-size: 1.1rem;
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region GAME CARDS */
.game-cards {
	display: grid;
	gap: 4rem;
	justify-items: center;
}

.game-card {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	padding: 2rem;
	text-align: center;
	max-width: 700px;
}

.game-card__image {
	display: block;
	max-width: 600px;
	margin: 0 auto 1.5rem;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.game-card__image:hover {
	transform: scale(1.02);
}

.game-card__image img {
	width: 100%;
}

.game-card__title {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: 0.75rem;
}

.game-card__desc {
	font-size: 1.1rem;
	max-width: 600px;
	margin: 0 auto;
	font-weight: 300;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region DEV SECTION */
.dev-section {
	padding: 4rem var(--content-padding);
}

.dev-section__heading {
	font-size: 1.5rem;
	text-align: center;
	margin-bottom: 2rem;
	color: var(--dark-accent);
}

.dev-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2rem;
}

.dev-card {
	display: block;
	max-width: 300px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	padding: 1.5rem;
	text-align: center;
	transition: transform 0.3s ease;
}

.dev-card:hover {
	transform: scale(1.03);
}

.dev-card img {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.dev-card__title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	color: var(--accent);
	margin-bottom: 0.5rem;
}

.dev-card__desc {
	font-size: 0.9rem;
	color: var(--white);
	line-height: 1.4;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region GALLERY */
.gallery {
	position: relative;
	max-width: 1000px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: var(--black);
	border-radius: 8px;
	overflow: hidden;
}

.gallery__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.gallery__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.gallery__slide.active {
	opacity: 1;
}

.gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery__dots {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
}

.gallery__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gallery__dot.active,
.gallery__dot:hover {
	background: var(--light-accent);
}

/* No-JS fallback */
.gallery__slide:first-child {
	opacity: 1;
}

/* Video embed */
.video-embed {
	position: relative;
	max-width: 800px;
	margin: 0 auto 2rem;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region VIDEO GRID */
.video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
}

.video-grid .video-embed {
	margin: 0;
	max-width: none;
}

@media (max-width: 768px) {
	.video-grid {
		grid-template-columns: 1fr;
	}
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region GAME PAGE CONTENT */
.game-info {
	text-align: center;
}

.game-desc {
	font-size: 1.2rem;
	max-width: 800px;
	margin: 0 auto 2rem;
	font-weight: 300;
}

.game-platforms {
	margin-bottom: 1.5rem;
}

.game-platforms span {
	display: inline-block;
	background: var(--dark-accent);
	color: var(--white);
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	margin: 0.25rem;
	font-size: 0.9rem;
}

.store-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.store-link {
	display: inline-block;
	background: var(--accent);
	color: var(--black);
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-weight: 700;
	box-shadow: 0 3px 0 hsl(66, 50%, 50%), 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.store-link:hover {
	background: hsl(66, 70%, 75%);
	transform: translateY(-2px);
	box-shadow: 0 5px 0 hsl(66, 50%, 50%), 0 6px 12px rgba(0, 0, 0, 0.25);
}

.store-link:active {
	transform: translateY(1px);
	box-shadow: 0 1px 0 hsl(66, 50%, 50%), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-section-heading {
	font-size: clamp(1.5rem, 4vw, 2rem);
	margin: 3rem 0 1rem;
	text-align: center;
}

.game-section-heading:first-child {
	margin-top: 0;
}

.game-section-text {
	font-size: 1.1rem;
	max-width: 800px;
	margin: 0 auto 1.5rem;
	text-align: center;
	font-weight: 300;
}

.game-section-text strong {
	font-weight: 700;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region PRESS QUOTES */
.press-quotes {
	max-width: 800px;
	margin: 0 auto;
}

.press-quote {
	text-align: center;
	margin-bottom: 2rem;
}

.press-quote:last-child {
	margin-bottom: 0;
}

.press-quote__text {
	font-size: 1.3rem;
	font-style: italic;
	margin-bottom: 0.5rem;
	font-weight: 300;
}

.press-quote__source {
	font-weight: 700;
	color: var(--dark-accent);
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region FOOTER */
.site-footer {
	background: var(--black);
	color: var(--white);
	padding: 3rem var(--content-padding);
	text-align: center;
}

.footer-credits {
	margin-bottom: 1rem;
	font-weight: 300;
}

.footer-credits strong {
	font-weight: 700;
}

.footer-copyright {
	font-size: 0.9rem;
	opacity: 0.7;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.footer-social a {
	color: var(--light-accent);
	font-weight: 400;
	transition: opacity 0.2s ease;
}

.footer-social a:hover {
	opacity: 0.7;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region ANIMATIONS */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	opacity: 0;
}

.fade-in.visible {
	animation: fadeInUp 0.6s ease forwards;
}
/* endregion */

/* ------------------------------------------------------------------ */

/* region UTILITIES */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
/* endregion */
