/* ============================================
   Game Official Website Template — v3.0
   Single-game showcase layout with image gallery
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--color-highlight: #e94560;
	--color-gold: #f5c842;
	--color-text: #e8e8ec;
	--color-text-light: #9ca3af;
	--color-bg-dark: #07080f;
	--color-bg-card: rgba(16, 20, 36, 0.9);
	--color-bg-glass: rgba(255, 255, 255, 0.05);
	--font-heading: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--radius-xl: 24px;
	--radius-lg: 18px;
	--radius-md: 12px;
	--transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
	scrollbar-width: thin;
	scrollbar-color: rgba(233, 69, 96, 0.25) transparent;
}
body {
	font-family: var(--font-body);
	background: var(--color-bg-dark);
	color: var(--color-text);
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
::selection {
	background: rgba(233, 69, 96, 0.25);
	color: #fff;
}
a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}
a:hover {
	color: var(--color-highlight);
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
::-webkit-scrollbar {
	width: 5px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: rgba(233, 69, 96, 0.28);
	border-radius: 3px;
}

/* ========== NAVBAR ========== */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(7, 8, 15, 0.82);
	backdrop-filter: blur(22px) saturate(180%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.03);
	transition:
		background 0.35s,
		box-shadow 0.35s,
		border-color 0.35s;
}
.navbar.scrolled {
	background: rgba(7, 8, 15, 0.97);
	box-shadow: 0 1px 40px rgba(0, 0, 0, 0.5);
	border-bottom-color: rgba(255, 255, 255, 0.05);
}
.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
	height: 66px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.nav-brand {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nav-brand::before {
	content: "";
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	background: linear-gradient(
		135deg,
		var(--color-highlight),
		var(--color-gold)
	);
	border-radius: 7px;
}
.nav-brand:hover {
	color: var(--color-highlight);
}
.nav-links {
	list-style: none;
	display: flex;
	gap: 38px;
}
.nav-links a {
	font-size: 0.91rem;
	font-weight: 500;
	color: var(--color-text-light);
	position: relative;
	padding: 6px 0;
	transition: color 0.2s;
}
.nav-links a::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--color-highlight), var(--color-gold));
	border-radius: 1px;
	transition: width 0.35s;
}
.nav-links a:hover,
.nav-links a.active {
	color: #fff;
}
.nav-links a:hover::after,
.nav-links a.active::after {
	width: 100%;
}

/* Mobile nav */
.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}
.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: 0.3s;
	transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
	opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO SECTION ========== */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: linear-gradient(
		145deg,
		#071014 0%,
		#0a1628 30%,
		#111a2e 60%,
		#0d0d1a 100%
	);
}
.hero-canvas {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		radial-gradient(
			ellipse at 25% 75%,
			rgba(233, 69, 96, 0.06) 0%,
			transparent 55%
		),
		radial-gradient(
			ellipse at 75% 25%,
			rgba(16, 185, 129, 0.04) 0%,
			transparent 50%
		),
		radial-gradient(
			ellipse at 50% 90%,
			rgba(245, 200, 66, 0.03) 0%,
			transparent 50%
		);
	pointer-events: none;
}
.hero-content {
	position: relative;
	z-index: 3;
	max-width: 780px;
	text-align: center;
	padding: 110px 28px 90px;
}

.hero-badge {
	display: inline-block;
	padding: 6px 18px;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--color-highlight);
	background: rgba(233, 69, 96, 0.1);
	border: 1px solid rgba(233, 69, 96, 0.2);
	border-radius: 999px;
	margin-bottom: 24px;
	animation: fadeInDown 0.8s ease both;
}
.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(2.6rem, 6.5vw, 4.6rem);
	font-weight: 900;
	color: #fff;
	margin-bottom: 18px;
	letter-spacing: -0.03em;
	line-height: 1.06;
	background: linear-gradient(135deg, #fff 0%, #c8c8d8 40%, #e94560 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-subtitle {
	font-size: clamp(1rem, 2.4vw, 1.35rem);
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 34px;
	max-width: 540px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.55;
	animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-company-intro {
	background: var(--color-bg-glass);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--radius-lg);
	padding: 28px 32px;
	backdrop-filter: blur(16px);
	text-align: left;
	animation: fadeInUp 0.8s ease 0.45s both;
}
.hero-company-intro p {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.92rem;
	line-height: 1.85;
	white-space: pre-line;
}
.hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
	padding: 14px 32px;
	font-size: 0.94rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--color-highlight), #c73b54);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(233, 69, 96, 0.25);
	animation: fadeInUp 0.8s ease 0.6s both;
	transition: all 0.3s;
}
.hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(233, 69, 96, 0.4);
	color: #fff;
}
.hero-cta svg {
	transition: transform 0.2s;
}
.hero-cta:hover svg {
	transform: translate(2px, -2px);
}

/* Carousel arrows */
.carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.45);
	font-size: 1.1rem;
	cursor: pointer;
	backdrop-filter: blur(10px);
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.carousel-arrow:hover {
	background: rgba(233, 69, 96, 0.15);
	border-color: rgba(233, 69, 96, 0.25);
	color: #fff;
}
.carousel-arrow-left {
	left: 20px;
}
.carousel-arrow-right {
	right: 20px;
}

/* Scroll hint */
.scroll-hint {
	position: absolute;
	bottom: 34px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	animation: fadeInUp 0.8s ease 0.85s both;
}
.scroll-hint span {
	font-size: 0.68rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.25);
}
.scroll-hint-line {
	width: 1px;
	height: 34px;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.28),
		transparent
	);
	animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
	0%,
	100% {
		transform: scaleY(1);
		opacity: 1;
	}
	50% {
		transform: scaleY(0.4);
		opacity: 0.25;
	}
}

/* ========== GAMES SHOWCASE (Single Game Layout) ========== */
.games-section {
	padding: 100px 28px;
	max-width: 1140px;
	margin: 0 auto;
}

.section-header {
	text-align: center;
	margin-bottom: 56px;
}
.section-header h2 {
	font-family: var(--font-heading);
	font-size: clamp(1.85rem, 3.8vw, 2.5rem);
	font-weight: 800;
	color: #fff;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}
.section-desc {
	font-size: 0.98rem;
	color: var(--color-text-light);
	margin-bottom: 18px;
}
.section-divider {
	width: 52px;
	height: 3px;
	background: linear-gradient(90deg, var(--color-highlight), var(--color-gold));
	margin: 0 auto;
	border-radius: 3px;
}

/* Showcase container: horizontal split on desktop */
.game-showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: stretch;
	background: var(--color-bg-card);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: var(--radius-xl);
	overflow: hidden;
	position: relative;
	transition: all 0.4s;
}
.game-showcase::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius-xl);
	padding: 1px;
	background: linear-gradient(135deg, transparent 45%, rgba(233, 69, 96, 0.12));
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box;
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
}
.game-showcase:hover {
	transform: translateY(-6px);
	box-shadow:
		0 24px 72px rgba(0, 0, 0, 0.35),
		0 0 48px rgba(233, 69, 96, 0.07);
}
.game-showcase:hover::before {
	opacity: 1;
}

/* --- Gallery (left side) --- */
.game-gallery {
	position: relative;
	overflow: hidden;
	min-height: 480px;
	background: linear-gradient(160deg, #0d1525, #151c2e);
}
.gallery-track {
	display: flex;
	height: 100%;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-slide {
	min-width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.gallery-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-md);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Gallery navigation dots */
.gallery-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 5;
}
.gallery-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	border: none;
	cursor: pointer;
	transition: all 0.3s;
	padding: 0;
}
.gallery-dot.active {
	width: 24px;
	border-radius: 4px;
	background: var(--color-highlight);
}

/* Gallery arrows */
.gallery-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.85rem;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: all 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gallery-btn:hover {
	background: rgba(233, 69, 96, 0.3);
	border-color: rgba(233, 69, 96, 0.4);
	color: #fff;
}
.gallery-prev {
	left: 12px;
}
.gallery-next {
	right: 12px;
}

/* --- Game Info (right side) --- */
.game-info {
	padding: 44px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.game-icon-wrap {
	width: 88px;
	height: 88px;
	margin-bottom: 24px;
	background: linear-gradient(
		135deg,
		rgba(233, 69, 96, 0.1),
		rgba(245, 200, 66, 0.08)
	);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.game-icon-img {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	object-fit: contain;
}
.game-name-lg {
	font-family: var(--font-heading);
	font-size: 1.85rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}
.game-intro-lg {
	color: var(--color-text-light);
	font-size: 0.93rem;
	line-height: 1.85;
	margin-bottom: 28px;
}
.game-tags {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.tag {
	padding: 6px 16px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.04);
	transition: all 0.25s;
}
.tag:hover {
	border-color: var(--color-highlight);
	color: var(--color-highlight);
	background: rgba(233, 69, 96, 0.08);
}

/* ========== CONTACT — Centered Focus Design ========== */
.contact-section {
	padding: 100px 28px 120px;
	background: linear-gradient(180deg, var(--color-bg-dark) 0%, #080c18 100%);
	position: relative;
}
.contact-section::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0; height: 1px;
	background: linear-gradient(90deg, transparent 20%, rgba(233,69,96,.15) 50%, transparent 80%);
}

.contact-content {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.contact-heading {
	font-family: var(--font-heading);
	font-size: clamp(1.6rem, 3.2vw, 2.1rem);
	font-weight: 700;
	color: #fff;
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}

.contact-subtitle {
	font-size: 1rem;
	color: rgba(255,255,255,.45);
	margin-bottom: 44px;
	line-height: 1.6;
}

/* Email CTA card */
.contact-email-card {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 22px 36px;
	background: linear-gradient(135deg, rgba(233,69,96,.08), rgba(245,200,66,.04));
	border: 1px solid rgba(233,69,96,.15);
	border-radius: var(--radius-xl);
	text-decoration: none;
	transition: all .35s cubic-bezier(.4,0,.2,1);
	position: relative;
	overflow: hidden;
}
.contact-email-card::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(233,69,96,.12), rgba(245,200,66,.06));
	opacity: 0;
	transition: opacity .35s;
}
.contact-email-card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 12px 40px rgba(233,69,96,.2),
		0 0 60px rgba(233,69,96,.06);
	border-color: rgba(233,69,96,.3);
}
.contact-email-card:hover::before { opacity: 1; }

/* Email icon */
.contact-email-icon {
	width: 52px; height: 52px;
	flex-shrink: 0;
	background: linear-gradient(135deg, var(--color-highlight), #ff6b81);
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 22px rgba(233,69,96,.3);
	position: relative; z-index: 1;
	transition: transform .3s;
}
.contact-email-card:hover .contact-email-icon {
	transform: scale(1.06) rotate(-3deg);
}
.contact-email-icon svg { width: 24px; height: 24px; color: #fff; }

/* Email text */
.contact-email-text {
	display: flex; flex-direction: column; gap: 3px;
	position: relative; z-index: 1;
	text-align: left;
}
.contact-email-label {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.4);
}
.contact-email-value {
	font-size: 1.15rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: -.01em;
	transition: color .3s;
}
.contact-email-card:hover .contact-email-value { color: var(--color-highlight); }

/* Arrow */
.contact-email-arrow {
	flex-shrink: 0;
	color: rgba(255,255,255,.25);
	position: relative; z-index: 1;
	transition: all .3s;
}
.contact-email-card:hover .contact-email-arrow {
	color: var(--color-highlight);
	transform: translateX(4px);
}
.contact-email-arrow svg { width: 20px; height: 20px; }

/* ========== FOOTER ========== */
.footer {
	text-align: center;
	padding: 26px;
	color: var(--color-text-light);
	font-size: 0.82rem;
	border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* ========== ANIMATIONS ========== */
.fade-in {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
	.game-showcase {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.game-gallery {
		min-height: 340px;
		order: -1;
	}
	.game-info {
		padding: 32px 28px;
	}
	.game-icon-wrap {
		width: 72px;
		height: 72px;
		margin-bottom: 18px;
	}
	.game-icon-img {
		width: 52px;
		height: 52px;
		border-radius: 14px;
	}
	.game-name-lg {
		font-size: 1.55rem;
	}

	/* Contact centered focus responsive */
	.contact-email-card {
		padding: 18px 24px;
		gap: 14px;
	}
	.contact-email-icon {
		width: 44px; height: 44px;
		border-radius: 12px;
	}
	.contact-email-icon svg { width: 20px; height: 20px; }
	.contact-email-value { font-size: 1rem; }
}

@media (max-width: 768px) {
	.nav-links {
		display: none;
		position: absolute;
		top: 66px;
		left: 0;
		right: 0;
		background: rgba(7, 8, 15, 0.98);
		backdrop-filter: blur(24px);
		flex-direction: column;
		padding: 26px 24px;
		gap: 18px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	}
	.nav-links.open {
		display: flex;
	}
	.nav-toggle {
		display: flex;
	}
	.hero-content {
		padding: 96px 20px 76px;
	}
	.hero-company-intro {
		padding: 22px;
	}
	.carousel-arrow {
		width: 38px;
		height: 38px;
		font-size: 1rem;
	}
	.carousel-arrow-left {
		left: 10px;
	}
	.carousel-arrow-right {
		right: 10px;
	}
	.scroll-hint {
		display: none;
	}
	.games-section {
		padding: 72px 16px;
	}
	.contact-section {
		padding: 56px 16px;
	}
}

@media (max-width: 480px) {
	.nav-container {
		padding: 0 16px;
		height: 56px;
	}
	.hero-title {
		font-size: 2.1rem;
	}
	.game-gallery {
		min-height: 260px;
	}
	.gallery-slide {
		padding: 16px;
	}
	.gallery-btn {
		width: 30px;
		height: 30px;
	}
	.contact-item {
		padding: 13px 20px;
		max-width: 100%;
	}
}
