@import url('https://fonts.googleapis.com/css2?family=Battambang:wght@400;700&family=Inter:wght@400;600;700&display=swap');

:root {
	/* exact stops lifted from the live site's particle-wave background */
	--wave-blue: #44b0ff;
	--wave-purple: #8b44ff;
	--wave-orange: #ff6644;
	--wave-yellow: #ebff70;
	--card-bg: rgba(255, 255, 255, 0.78);
	--text-main: #1f2430;
	--text-muted: #5b6270;
	--fb-1: #0086c4;
	--btn-shadow: 0 0 20px rgba(22, 0, 89, 0.3);
	--ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	position: relative;
	min-height: 100vh;
	font-family: 'Battambang', 'Inter', sans-serif;
	color: var(--text-main);
	background: #f9fafb;
	display: flex;
	justify-content: center;
	padding: 48px 16px 80px;
	overflow-x: hidden;
}

/* soft blurred colour blobs approximating the live site's particle-wave canvas */
body::before,
body::after {
	content: "";
	position: fixed;
	inset: -20%;
	z-index: -1;
	filter: blur(70px);
	pointer-events: none;
}
body::before {
	background:
		radial-gradient(circle at 15% 20%, var(--wave-blue) 0%, transparent 42%),
		radial-gradient(circle at 85% 15%, var(--wave-purple) 0%, transparent 45%),
		radial-gradient(circle at 20% 85%, var(--wave-yellow) 0%, transparent 40%),
		radial-gradient(circle at 80% 90%, var(--wave-orange) 0%, transparent 45%);
	opacity: 0.55;
	animation: driftBlobs 22s ease-in-out infinite;
}
body::after {
	background: radial-gradient(circle at 50% 45%, #ffffff 0%, rgba(255, 255, 255, 0) 60%);
	opacity: 0.6;
}

@keyframes driftBlobs {
	0%   { transform: translate(0, 0) scale(1); }
	50%  { transform: translate(-3%, 3%) scale(1.08); }
	100% { transform: translate(0, 0) scale(1); }
}

.page {
	width: 100%;
	min-width: 300px;
	max-width: 800px;
}

.card {
	position: relative;
	border-radius: 28px;
	padding: 32px 28px 40px;
}

/* ---------- reveal-on-scroll animation (mirrors the old slider's fade+rise-in) ---------- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--ease-reveal), transform 0.9s var(--ease-reveal);
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.logo-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 22px;
}
.logo-wrap img {
	width: 132px;
	height: 132px;
	border-radius: 24px;
	object-fit: cover;
	box-shadow: 0 12px 30px rgba(31, 36, 48, 0.25);
}

h1.title {
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 14px;
	letter-spacing: 0;
}

p.lead {
	text-align: center;
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 26px;
}

h2.section-heading {
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 16px;
	position: relative;
}

.links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 30px;
}

.link-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 20px;
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	position: relative;
	overflow: hidden;
}
.link-btn:hover,
.link-btn:focus-visible {
	background: #000000 !important;
	transform: translateY(-3px) scale(1.015);
	box-shadow: 0 6px 24px rgba(22, 0, 89, 0.45);
}
.link-btn:active {
	transform: translateY(-1px) scale(0.99);
}
.link-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.link-btn.facebook { background: linear-gradient(135deg, rgba(0,134,196,1) 0%, rgba(0,82,154,1) 100%); }
.link-btn.tiktok   { background: linear-gradient(135deg, rgba(255,52,52,1) 0%, rgba(12,0,0,1) 25%, rgba(12,0,0,1) 75%, rgba(10,255,222,1) 100%); }
.link-btn.linkedin { background: linear-gradient(135deg, rgba(12,0,0,1) 0%, rgba(12,0,0,1) 50%, rgba(29,98,240,1) 100%); }
.link-btn.x        { background: linear-gradient(135deg, rgba(29,98,240,1) 0%, rgba(12,0,0,1) 50%, rgba(12,0,0,1) 100%); }

.contact-block {
	text-align: center;
	margin: 6px 0 30px;
}
.contact-block a {
	display: block;
	color: var(--text-main);
	text-decoration: none;
	font-size: 14px;
	line-height: 2;
}
.contact-block a:hover {
	color: var(--fb-1);
}

.cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 4px auto 28px;
	padding: 15px 26px;
	max-width: 320px;
	border-radius: 10px;
	background: #000000;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	box-shadow: var(--btn-shadow);
	transition: transform 0.25s var(--ease-reveal), box-shadow 0.25s var(--ease-reveal);
}
.cta:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 6px 24px rgba(22, 0, 89, 0.45);
}
.cta svg {
	width: 16px;
	height: 16px;
}

.lang-toggle {
	display: flex;
	justify-content: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-muted);
}
.lang-toggle button {
	background: none;
	border: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 6px;
	transition: color 0.2s ease;
}
.lang-toggle button.active {
	color: var(--text-main);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.lang-toggle .sep {
	opacity: 0.4;
}

[data-lang-el] {
	transition: opacity 0.35s ease;
}
body[data-lang="en"] [data-lang-el="km"],
body:not([data-lang="en"]) [data-lang-el="en"] {
	display: none;
}
body[data-lang="en"] [lang-btn="en"],
body:not([data-lang="en"]) [lang-btn="km"] {
	pointer-events: none;
}

@media (max-width: 380px) {
	.card { padding: 26px 18px 32px; }
	h1.title { font-size: 21px; }
}
