@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: #050505;
	--text: #e8e8e8;
	--muted: #888888;
	--accent: #ffffff;
	--comment-dim: rgba(255, 255, 255, 0.3);
	--comment-bright: rgba(255, 255, 255, 0.95);
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: "Space Grotesk", sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* --- DYNAMIC AMBIENT SUNRISE --- */
.sunrise-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: -1;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px);
	animation: sunrise-entry 12s cubic-bezier(0.2, 0, 0.2, 1)
		forwards;
	animation-delay: 0.5s;
}

@keyframes sunrise-entry {
	0% {
		opacity: 0;
		transform: translateY(30px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.atmosphere-glow {
	position: absolute;
	bottom: -20vh;
	left: 50%;
	width: 150vw;
	height: 80vh;
	transform: translateX(-50%);
	background: radial-gradient(
		circle at 50% 100%,
		rgba(255, 140, 60, 0.15) 0%,
		rgba(150, 80, 200, 0.08) 40%,
		rgba(0, 0, 0, 0) 70%
	);
	filter: blur(80px);
	mix-blend-mode: screen;
	animation: breathe-light 10s ease-in-out infinite alternate;
}

.horizon-line {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 300px;
	background: linear-gradient(
		to top,
		rgba(255, 100, 50, 0.1) 0%,
		transparent 100%
	);
	filter: blur(40px);
}

.sun-bloom {
	position: absolute;
	bottom: -100px;
	left: 50%;
	width: 500px;
	height: 500px;
	transform: translateX(-50%);
	background: radial-gradient(
		circle,
		rgba(255, 200, 150, 0.1) 0%,
		transparent 70%
	);
	filter: blur(60px);
	animation: slow-rise 20s ease-in-out infinite alternate;
}

/* --- LAYOUT & COMPONENTS --- */
.flag-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 80px 20px 40px;
	position: relative;
	z-index: 1;
}

canvas#flag {
	display: block;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 20px 60px;
	text-align: center;
	z-index: 2;
}

.quote {
	font-size: clamp(1.1rem, 3vw, 1.5rem);
	font-weight: 300;
	letter-spacing: 0.02em;
	color: var(--muted);
	margin-top: 8px;
	font-family: "JetBrains Mono", monospace;
	min-height: 1.5em;
}

.contact {
	margin-top: 60px;
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.contact a {
	color: var(--muted);
	text-decoration: none;
	font-family: "JetBrains Mono", monospace;
	font-size: 0.85rem;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}

.contact a:hover {
	color: var(--accent);
	background: rgba(255, 255, 255, 0.05);
}

.contact a svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* --- FOOTER STYLING --- */
footer {
	padding: 40px 20px 24px;
	text-align: center;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

/* Subtle separator line */
footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 180, 150, 0.2) 50%,
		transparent 100%
	);
}

/* --- MANIFESTO COMPONENT --- */
.manifesto-container {
	font-family: "JetBrains Mono", monospace;
	font-size: 0.8rem;
	color: var(--comment-dim);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: default;
}

/* The isolated flag (No shimmer, fully visible) */
.manifesto-flag {
	font-size: 1rem;
	opacity: 0.9;
	filter: grayscale(20%);
	transition: filter 0.3s ease;
}
.manifesto-container:hover .manifesto-flag {
	filter: grayscale(0%);
}

/* Wrapper for the entire sentence + link to apply unified shimmer */
.manifesto-content {
	background: linear-gradient(
		120deg,
		var(--comment-dim) 40%,
		var(--comment-bright) 50%,
		var(--comment-dim) 60%
	);
	background-size: 200% auto;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	/* Slow, elegant animation (14s) */
	animation: elegant-shimmer 14s linear infinite;
}

/* The link inside needs to behave correctly within the clip */
.manifesto-content a {
	text-decoration: none;
	color: inherit; /* Inherits transparent fill from parent */
	cursor: pointer;
	transition: text-shadow 0.3s ease;
}

/* On hover, make the link solid white to emphasize interactivity */
.manifesto-content a:hover {
	-webkit-text-fill-color: var(--accent);
	text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

@keyframes elegant-shimmer {
	0% {
		background-position: 200% center;
	}
	100% {
		background-position: -200% center;
	}
}

/* Copyright Line */
.footer-copyright {
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.2);
	font-family: "JetBrains Mono", monospace;
}

.footer-copyright a {
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: color 0.3s ease;
	margin: 0 4px;
}

.footer-copyright a:hover {
	color: var(--accent);
}

/* --- GRAIN OVERLAY --- */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 9999;
}

@keyframes breathe-light {
	0% {
		opacity: 0.8;
		transform: translateX(-50%) scale(1);
	}
	100% {
		opacity: 1;
		transform: translateX(-50%) scale(1.05);
	}
}
@keyframes slow-rise {
	0% {
		transform: translateX(-50%) translateY(0);
	}
	100% {
		transform: translateX(-50%) translateY(-20px);
	}
}
