/* ==================== FANTASY GAME THEME STYLES ==================== */
/* Inspired by Toram Online with Wei Fantasy branding */

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

:root {
	/* Fantasy Color Palette */
	--primary-dark: #0a0e27;
	--secondary-dark: #1a1f3a;
	--accent-purple: #4a3ba8;
	--accent-cyan: #0088cc;
	--accent-gold: #cc9900;
	--accent-green: #00cc66;
	--text-light: #e8eaf6;
	--text-gray: #b0bec5;

	/* Gradients - Darker versions */
	--gradient-hero: linear-gradient(
		135deg,
		rgba(10, 14, 39, 0.75) 0%,
		rgba(26, 31, 58, 0.75) 100%
	);
	--gradient-card: linear-gradient(
		145deg,
		rgba(15, 20, 40, 0.95) 0%,
		rgba(8, 10, 25, 0.95) 100%
	);
	--gradient-accent: linear-gradient(135deg, #3d2d7a 0%, #005580 100%);
	--gradient-gold: linear-gradient(135deg, #cc9900 0%, #b38600 100%);
	--gradient-blue-text: linear-gradient(to top, #0055cc 0%, #00ddff 100%);

	/* Shadows */
	--shadow-glow: 0 0 30px rgba(74, 59, 168, 0.5);
	--shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
	--shadow-hover: 0 12px 48px rgba(0, 136, 204, 0.3);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Segoe UI", "Roboto", Arial, sans-serif;
	line-height: 1.6;
	color: var(--text-light);
	background: var(--primary-dark);
	overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 1rem;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

h1 {
	font-size: 2.5rem;
	background: var(--gradient-blue-text);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
}

h2 {
	font-size: 1.8rem;
	color: var(--accent-cyan);
	font-weight: 600;
}

h3 {
	font-size: 1.3rem;
	color: var(--accent-purple);
	font-weight: 600;
}

p {
	margin-bottom: 1rem;
	color: var(--text-gray);
	font-size: 1rem;
	line-height: 1.6;
}

a {
	color: var(--accent-cyan);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--accent-gold);
	text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ==================== HEADER / NAVIGATION ==================== */
header {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(10, 14, 39, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 2px solid rgba(108, 92, 231, 0.3);
	z-index: 1000;
	padding: 1rem 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 1.4rem;
	font-weight: 600;
	background: var(--gradient-blue-text);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-shadow: none;
}

.logo:hover {
	filter: brightness(1.2);
}

.nav-links {
	display: flex;
	list-style: none;
	gap: 2rem;
	align-items: center;
}

.nav-links a {
	color: var(--text-light);
	font-weight: 400;
	font-size: 0.95rem;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
	background: rgba(108, 92, 231, 0.2);
	color: var(--accent-cyan);
	box-shadow: 0 0 15px rgba(108, 92, 231, 0.4);
}

/* Hamburger Menu */
.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 5px;
	z-index: 1001;
}

.hamburger span {
	width: 30px;
	height: 3px;
	background: var(--accent-cyan);
	border-radius: 3px;
	transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(8px, -8px);
}

/* ==================== BUTTONS ==================== */
.btn {
	padding: 0.75rem 1.75rem;
	border-radius: 8px;
	font-weight: 500;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	display: inline-block;
	text-align: center;
}

.btn-primary {
	background: var(--gradient-accent);
	color: white;
	box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-glow);
}

.btn-secondary {
	background: transparent;
	border: 2px solid var(--accent-cyan);
	color: var(--accent-cyan);
}

.btn-secondary:hover {
	background: var(--accent-cyan);
	color: var(--primary-dark);
	box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-gold {
	background: var(--gradient-gold);
	color: var(--primary-dark);
	box-shadow: 0 4px 15px rgba(204, 153, 0, 0.3);
}

.btn-gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(204, 153, 0, 0.4);
	background: linear-gradient(135deg, #b38600 0%, #996600 100%);
	color: white;
}

/* ==================== HERO SECTION ==================== */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 8rem 2rem 4rem;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--gradient-hero);
	z-index: 1;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 1000px;
	animation: fadeInUp 1s ease-out;
}

.hero h1 {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	animation: fadeInUp 1s ease-out 0.2s backwards;
	font-weight: 600;
}

.hero-subtitle {
	font-size: 1.3rem;
	color: var(--accent-cyan);
	margin-bottom: 1rem;
	animation: fadeInUp 1s ease-out 0.4s backwards;
	font-weight: 500;
}

.hero-description {
	font-size: 1.05rem;
	color: var(--text-gray);
	margin-bottom: 2rem;
	animation: fadeInUp 1s ease-out 0.6s backwards;
	font-weight: 400;
}

.hero-buttons {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
	flex-wrap: wrap;
	animation: fadeInUp 1s ease-out 0.8s backwards;
	margin-bottom: 2.5rem;
}

.hero-countdown {
	margin: 2.5rem 0;
	animation: fadeInUp 1s ease-out 1s backwards;
}

.hero-countdown-timer {
	justify-content: center;
	margin: 0 auto;
}

.hero-countdown-timer .countdown-number {
	font-size: 2.5rem;
}

.hero-countdown-timer .countdown-item {
	min-width: 80px;
}

.hero-countdown-timer .countdown-label {
	font-size: 0.8rem;
}

.hero-countdown-timer .countdown-separator {
	font-size: 2rem;
}

/* ==================== STATS CARDS ==================== */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	margin: 3rem 0;
	animation: fadeInUp 1s ease-out 1s backwards;
}

.stat-card {
	background: var(--gradient-card);
	padding: 2rem;
	border-radius: 15px;
	text-align: center;
	border: 1px solid rgba(108, 92, 231, 0.3);
	box-shadow: var(--shadow-card);
	transition: all 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
	border-color: var(--accent-cyan);
}

.stat-number {
	font-size: 2rem;
	font-weight: 600;
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.stat-label {
	color: var(--text-gray);
	font-size: 0.95rem;
}

/* ==================== COUNTDOWN TIMER SECTION ==================== */
.countdown-section {
	padding: 6rem 2rem;
	background: linear-gradient(
		135deg,
		rgba(10, 14, 39, 0.98) 0%,
		rgba(26, 31, 58, 0.98) 100%
	);
	position: relative;
	overflow: hidden;
}

.countdown-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(
		circle at 30% 50%,
		rgba(74, 59, 168, 0.15) 0%,
		transparent 50%
	);
	pointer-events: none;
}

.countdown-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
	z-index: 1;
}

.countdown-character {
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeInLeft 1s ease-out;
}

.character-image {
	max-width: 100%;
	height: auto;
	max-height: 600px;
	object-fit: contain;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
	transition: transform 0.3s ease;
}

.character-image:hover {
	transform: scale(1.02);
}

.countdown-content {
	text-align: center;
	animation: fadeInRight 1s ease-out;
}

.countdown-title {
	font-size: 2.5rem;
	color: var(--accent-cyan);
	margin-bottom: 1rem;
	font-weight: 600;
	background: none;
	-webkit-text-fill-color: var(--accent-cyan);
	text-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
}

.countdown-subtitle {
	font-size: 1.2rem;
	color: var(--text-gray);
	margin-bottom: 3rem;
	font-weight: 400;
}

.countdown-timer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
}

.countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 100px;
}

.countdown-number {
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--accent-gold);
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	margin-bottom: 0.5rem;
	text-shadow: 0 0 30px rgba(204, 153, 0, 0.5);
	font-variant-numeric: tabular-nums;
	transition: transform 0.3s ease;
}

.countdown-item:hover .countdown-number {
	transform: scale(1.1);
}

.countdown-label {
	font-size: 0.9rem;
	color: var(--text-gray);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 500;
}

.countdown-separator {
	font-size: 2.5rem;
	color: var(--accent-cyan);
	font-weight: 300;
	opacity: 0.6;
	margin: 0 0.5rem;
	animation: pulse 2s ease-in-out infinite;
}

.countdown-cta {
	margin-top: 2rem;
}

.btn-large {
	padding: 1rem 2.5rem;
	font-size: 1.1rem;
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Responsive countdown */
@media (max-width: 968px) {
	.countdown-container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.countdown-character {
		order: 2;
	}

	.countdown-content {
		order: 1;
	}

	.character-image {
		max-height: 400px;
	}

	.countdown-title {
		font-size: 2rem;
	}

	.countdown-number {
		font-size: 2.5rem;
	}

	.countdown-item {
		min-width: 80px;
	}

	.countdown-separator {
		font-size: 2rem;
	}
}

@media (max-width: 640px) {
	.countdown-timer {
		gap: 0.5rem;
	}

	.countdown-number {
		font-size: 2rem;
	}

	.countdown-item {
		min-width: 70px;
	}

	.countdown-label {
		font-size: 0.75rem;
	}

	.countdown-separator {
		font-size: 1.5rem;
		margin: 0 0.25rem;
	}

	.character-image {
		max-height: 300px;
	}
}

/* ==================== SECTIONS ==================== */
section {
	padding: 6rem 2rem;
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
}

.section-dark {
	background: var(--primary-dark);
}

.section-darker {
	background: var(--secondary-dark);
}

.section-title {
	text-align: center;
	font-size: 2.2rem;
	margin-bottom: 1rem;
	background: var(--gradient-gold);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 600;
}

.section-subtitle {
	text-align: center;
	font-size: 1.1rem;
	color: var(--text-gray);
	margin-bottom: 4rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	font-weight: 400;
}

/* ==================== FEATURE CARDS ==================== */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
}

.feature-card {
	background: var(--gradient-card);
	padding: 2.5rem;
	border-radius: 15px;
	border: 1px solid rgba(108, 92, 231, 0.2);
	box-shadow: var(--shadow-card);
	transition: all 0.3s ease;
	animation: fadeInUp 0.8s ease-out backwards;
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
	border-color: var(--accent-cyan);
}

.feature-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	display: block;
	object-fit: contain;
}

.feature-card h3 {
	color: var(--accent-cyan);
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.feature-card p {
	color: var(--text-gray);
	line-height: 1.7;
	font-size: 0.95rem;
}

/* ==================== TIMELINE / ROADMAP ==================== */
.timeline {
	position: relative;
	margin: 4rem 0;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 100%;
	background: var(--gradient-accent);
	border-radius: 2px;
}

.timeline-item {
	display: flex;
	margin-bottom: 4rem;
	position: relative;
	animation: fadeInUp 0.8s ease-out backwards;
}

.timeline-item:nth-child(even) {
	flex-direction: row-reverse;
}

.timeline-content {
	flex: 1;
	background: var(--gradient-card);
	padding: 2rem;
	border-radius: 15px;
	margin: 0 3rem;
	border: 1px solid rgba(108, 92, 231, 0.3);
	box-shadow: var(--shadow-card);
	transition: all 0.3s ease;
}

.timeline-content:hover {
	transform: scale(1.05);
	box-shadow: var(--shadow-hover);
	border-color: var(--accent-cyan);
}

.timeline-marker {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	background: var(--gradient-gold);
	border-radius: 50%;
	border: 4px solid var(--primary-dark);
	z-index: 10;
	animation: pulse 2s infinite;
}

.timeline-quarter {
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--accent-gold);
	margin-bottom: 0.5rem;
}

.timeline-status {
	display: inline-block;
	padding: 0.3rem 1rem;
	background: var(--accent-green);
	color: var(--primary-dark);
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.timeline-status.upcoming {
	background: var(--accent-purple);
	color: white;
}

.timeline-item ul {
	list-style: none;
	padding-left: 0;
}

.timeline-item li {
	padding: 0.5rem 0;
	padding-left: 2rem;
	position: relative;
	color: var(--text-gray);
}

.timeline-item li::before {
	content: "⚔️";
	position: absolute;
	left: 0;
	color: var(--accent-cyan);
}

/* ==================== TEAM CARDS ==================== */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.team-card {
	background: var(--gradient-card);
	padding: 2rem;
	border-radius: 15px;
	text-align: center;
	border: 1px solid rgba(108, 92, 231, 0.2);
	box-shadow: var(--shadow-card);
	transition: all 0.3s ease;
	animation: fadeInUp 0.8s ease-out backwards;
}

.team-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
	border-color: var(--accent-cyan);
}

.team-avatar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	margin: 0 auto 1.5rem;
	border: 4px solid var(--accent-purple);
	object-fit: cover;
	box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
	transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
	transform: scale(1.1);
	box-shadow: 0 0 40px rgba(0, 212, 255, 0.7);
}

.team-placeholder {
	width: 150px;
	height: 150px;
	background: var(--gradient-accent);
	border-radius: 50%;
	margin: 0 auto 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	border: 4px solid var(--accent-purple);
	box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.team-card h3 {
	color: var(--accent-cyan);
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
	font-weight: 600;
}

.team-role {
	color: var(--accent-gold);
	font-weight: 500;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.team-bio {
	color: var(--text-gray);
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ==================== FOOTER ==================== */
footer {
	background: var(--secondary-dark);
	border-top: 2px solid rgba(108, 92, 231, 0.3);
	padding: 3rem 2rem;
	text-align: center;
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
}

.footer-links {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.footer-links a {
	color: var(--text-gray);
	transition: all 0.3s ease;
}

.footer-links a:hover {
	color: var(--accent-cyan);
	transform: translateY(-2px);
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin: 2rem 0;
	font-size: 1.5rem;
}

.social-links a {
	transition: all 0.3s ease;
}

.social-links a:hover {
	transform: translateY(-5px) scale(1.2);
}

.copyright {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(108, 92, 231, 0.2);
	color: var(--text-gray);
}

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

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes pulse {
	0%,
	100% {
		transform: translateX(-50%) scale(1);
		box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
	}
	50% {
		transform: translateX(-50%) scale(1.1);
		box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
	}
}

@keyframes glow {
	0%,
	100% {
		box-shadow: 0 0 20px rgba(108, 92, 231, 0.5);
	}
	50% {
		box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
	}
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
	.hero h1 {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1.1rem;
	}

	/* Show hamburger menu on mobile */
	.hamburger {
		display: flex;
	}

	/* Hide nav links by default on mobile */
	.nav-links {
		position: fixed;
		top: 80px;
		right: -100%;
		width: 70%;
		max-width: 300px;
		height: calc(100vh - 80px);
		background: rgba(10, 14, 39, 0.98);
		backdrop-filter: blur(10px);
		flex-direction: column;
		padding: 2rem;
		gap: 0.5rem;
		transition: right 0.3s ease;
		border-left: 2px solid rgba(74, 59, 168, 0.3);
		box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
		overflow-y: auto;
	}

	/* Show nav links when mobile menu is active */
	.nav-links.mobile-active {
		right: 0;
	}

	.nav-links li {
		width: 100%;
	}

	.nav-links a {
		display: block;
		padding: 1rem;
		width: 100%;
		text-align: left;
		border-radius: 8px;
	}

	.nav-links .btn {
		width: 100%;
		text-align: center;
	}

	.timeline::before {
		left: 20px;
	}

	.timeline-item,
	.timeline-item:nth-child(even) {
		flex-direction: row;
	}

	.timeline-marker {
		left: 20px;
	}

	.timeline-content {
		margin-left: 5rem;
		margin-right: 0;
	}

	.section-title {
		font-size: 1.8rem;
	}

	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.6rem;
	}

	h3 {
		font-size: 1.2rem;
	}

	.feature-icon {
		width: 70px;
		height: 70px;
	}

	.hero-countdown-timer .countdown-number {
		font-size: 1.8rem;
	}

	.hero-countdown-timer .countdown-item {
		min-width: 60px;
	}

	.hero-countdown-timer .countdown-label {
		font-size: 0.7rem;
	}

	.hero-countdown-timer .countdown-separator {
		font-size: 1.5rem;
	}
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
	text-align: center;
}

.mb-2 {
	margin-bottom: 2rem;
}

.mt-2 {
	margin-top: 2rem;
}

.fade-in-section {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==================== SPECIAL EFFECTS ==================== */
.glowing-text {
	animation: glow 2s ease-in-out infinite;
}

.magic-border {
	position: relative;
	border: 2px solid transparent;
	background: var(--gradient-card);
	background-clip: padding-box;
}

.magic-border::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: var(--gradient-accent);
	border-radius: inherit;
	z-index: -1;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.magic-border:hover::before {
	opacity: 1;
}
