:root {
	--bg-dark: #0b0b0b;
	--bg-soft: #121212;
	--text-main: #f4f4f4;
	--text-muted: #b7b7b7;
	--accent: #e43b2c;
	--overlay-opacity: 0.65;
	--logo-scale: 1;
	--logo-top: 50vh;
	--logo-letterspace: 10px;
	--banner-pos: 0%;
}

* {
	box-sizing: border-box;
}

body {
	margin: 5vh 5vw;
	font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	background: url("images/banner.jpeg") center var(--banner-pos) / cover no-repeat;
	color: var(--text-main);
	position: relative;
}

.page-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, var(--overlay-opacity));
	pointer-events: none;
	z-index: 0;
}

.hero {
	position: relative;
	min-height: 100vh;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	z-index: 3;
}


.logo {
	position: fixed;
	top: var(--logo-top);
	left: 50%;
	transform: translate(-50%, -50%) scale(var(--logo-scale));
	margin: 0;
	font-family: "Bebas Neue", sans-serif;
	font-size: clamp(3.5rem, 10vw, 9rem);
	letter-spacing: var(--logo-letterspace);
	color: var(--text-main);
	z-index: 3;
	text-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
	transition: letter-spacing 0.2s ease-out;
}

.logo::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 120px;
	width: 100%;
	background: transparent;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	mask-image: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.3) 5%,
		rgba(0, 0, 0, 0.7) 12%,
		rgba(0, 0, 0, 1) 18%,
		rgba(0, 0, 0, 1) 70%,
		rgba(0, 0, 0, 0) 100%
	);
	-webkit-mask-image: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.3) 5%,
		rgba(0, 0, 0, 0.7) 12%,
		rgba(0, 0, 0, 1) 18%,
		rgba(0, 0, 0, 1) 70%,
		rgba(0, 0, 0, 0) 100%
	);
}

.logo.is-collapsed {
	margin-top: 5vh;
}

.logo.is-collapsed::before {
	opacity: 1;
}

main {
	background: transparent;
	padding-bottom: 80px;
	position: relative;
	z-index: 2;
}

.timeline-section {
	position: relative;
	padding: 120px 0 40px;
}

.timeline {
	width: min(1100px, 92vw);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 90px;
	position: relative;
}

.timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.3) 20%,
		rgba(255, 255, 255, 0.3) 80%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: translateX(-50%);
}

.timeline-item {
	position: relative;
	display: flex;
	align-items: center;
}

.timeline-item.left {
	justify-content: flex-start;
}

.timeline-item.right {
	justify-content: flex-end;
}

.timeline-date {
	position: absolute;
	left: 50%;
	transform: translate(-50%, -50%);
	top: 50%;
	background: var(--bg-soft);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.8rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 1px;
	text-align: center;
	line-height: 1.3;
}

.timeline-card {
	width: clamp(260px, 30vw, 420px);
	background: rgba(14, 14, 14, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 16px;
	display: grid;
	gap: 14px;
	cursor: pointer;
	position: relative;
	transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
	opacity: 0;
	transform: translateX(60px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	margin: 0;
	z-index: 2;
}


.timeline-item.right .timeline-card {
	margin-left: 5vw;
}

.timeline-item.left .timeline-card{
	margin-right: 5vw;
}

.timeline-item.left .timeline-card {
	transform: translateX(-60px);
}

.timeline-item.in-view .timeline-card {
	opacity: 1;
	transform: translateX(0);
}

.timeline-card:hover {
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

.timeline-card img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

.card-meta h3 {
	margin: 0;
	font-size: 1.2rem;
	letter-spacing: 1px;
    color: var(--text-main);
}

.card-meta p {
	margin: 4px 0 0;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.platform-menu {
	position: absolute;
	display: flex;
	bottom: -90px;
	left: 50%;
	gap: 20px;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
	transition: opacity 0.25s ease, transform 0.25s ease;
	transform: translate(-50%, -180px);
}

.timeline-item.open .platform-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.platform-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(24, 24, 24, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	width: 65px;
	height: 65px;
	color: var(--text-main);
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

.platform-link:hover {
	background: rgba(32, 32, 32, 0.95);
	transform: scale(1.1);
}

.platform-link svg {
	width: 36px;
	height: 36px;
}

.icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.footer {
	padding: 40px 0 80px;
	background: transparent;
	position: relative;
	z-index: 2;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.footer-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text-main);
	text-decoration: none;
	font-size: 1rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.9);
}

.footer-link svg {
	width: 24px;
	height: 24px;
}

@media (max-width: 860px) {
	.timeline::before {
		left: 20%;
	}

	.timeline-item {
		padding-left: 0;
		padding-right: 15%;
	}

	.timeline-item.left,
	.timeline-item.right {
		justify-content: space-between;
	}

	.timeline-date {
		left: 20%;
		transform: translate(-50%, -50%);
		white-space: normal;
		max-width: 80px;
		padding: 4px 8px;
		font-size: 0.7rem;
	}

	.timeline-card {
		width: 50vw;
		margin: 0 !important;
		margin-left: auto !important;
		margin-right: 0 !important;
		transform: translateX(60px);
	}

	.timeline-item.left .timeline-card {
		transform: translateX(60px);
	}

	.timeline-item.in-view .timeline-card {
		transform: translateX(0);
	}

	.platform-menu {
		left: 50%;
		bottom: -50px;
		gap: 12px;
		transform: translate(-50%, -120px);
	}

	.platform-link {
		width: 45px;
		height: 45px;
	}

	.platform-link svg {
		width: 24px;
		height: 24px;
	}

	.timeline-item.open .platform-menu {
		transform: translate(-50%, 0);
	}

	.footer-links {
		max-width: 500px;
		margin: 0 auto;
	}

	.footer-link:nth-child(1),
	.footer-link:nth-child(2) {
		flex: 0 1 auto;
	}

	.footer-link:nth-child(3),
	.footer-link:nth-child(4),
	.footer-link:nth-child(5) {
		flex: 0 1 auto;
	}
}
