:root {
	--primary-color: #0047c3;
	/* Biru utama: fresh, energik */
	--secondary-color: #1e1e1e;
	/* Hitam: kuat & elegan */
	--accent-color: #ffcc00;
	/* Kuning: aksen cerah & kontras */
	--dark-color: #0a0a0a;
	/* Hitam sangat gelap untuk variasi */
	--light-color: #f8f9fa;
	/* Warna terang untuk teks dan elemen kontras */
	--gradient-dark: linear-gradient(135deg, #1e1e1e, #000000);
	/* Background gelap */
	--gradient-primary: linear-gradient(135deg, #0047c3, #0047c3);
	/* Gradien biru keren */
}

html,
body {
	margin: 0;
	height: 100%;
	font-family: 'Poppins', sans-serif;
	background-color: #f0f0f0;
	color: var(--dark-color);
	overflow-x: hidden;
}

.racing-font {
	font-family: 'Poppins', cursive;
	font-weight: 700;
	font-style: italic;
}

.teko-font {
	font-family: 'Teko', sans-serif;
}

.page-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.main-container {
	position: relative;
	overflow: hidden;
	color: white;
	background-color: var(--gradient-dark);
	max-width: 100%;
	margin: 0 auto;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.main-container::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('/images/bg-1.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.main-container::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.8);
	/* 🔹 Lapisan gelap transparan */
	z-index: 1;
}

.main-container>* {
	position: relative;
	z-index: 2;
	/* 🔹 Konten di atas semuanya */
}

/* .main-container .bg-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('/images/bg-2.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.9;
	z-index: 0;
}

.main-container>*:not(.bg-overlay) {
	position: relative;
	z-index: 1;
} */

/* Header Section */
.header-section {
	padding: 10px 7px;
	text-align: center;
	position: relative;
	background: var(--gradient-primary);
	border-bottom: 5px solid var(--accent-color);
	margin-bottom: 10px;
}

.logo-title {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 0;
	color: white;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-subtitle {
	font-size: 1rem;
	margin-bottom: 10px;
	color: white;
	font-weight: 600;
	letter-spacing: 3px;
}

.racing-flag {
	position: absolute;
	width: 40px;
	height: 40px;
	opacity: 0.9;
}

.flag-left {
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.flag-right {
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
}

/* Championship Title */
.championship-title {
	text-align: center;
	margin: 20px 15px;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	border-left: 5px solid var(--primary-color);
	border-right: 5px solid var(--primary-color);
}

.event-name {
	font-size: 1.5rem;
	color: var(--accent-color);
	font-weight: 700;
	margin-bottom: 5px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.event-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: white;
	line-height: 1;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-details {
	font-size: 1rem;
	color: #cccccc;
	line-height: 1.4;
	margin-bottom: 0;
}

/* Main Image */
.main-image-container {
	position: relative;
	margin: 0 15px 20px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-image {
	width: 100%;
	height: auto;
	display: block;
}

.image-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	padding: 20px 15px;
	text-align: center;
}

.overlay-text {
	color: white;
	font-size: 1.2rem;
	font-weight: 600;
	margin: 0;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Category Cards */
.category-section {
	padding: 0px 15px 0px 15px;
}

.category-card {
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
	position: relative;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 160px;
	border: 2px solid var(--accent-color);
}

.category-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.category-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.category-card:hover img {
	transform: scale(1.05);
}

.category-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8));
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.category-title {
	color: white;
	font-size: 1.5rem;
	font-weight: 700;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	text-align: center;
	margin-bottom: 10px;
}

.register-btn {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 8px 20px;
	border-radius: 30px;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.9rem;
	transition: all 0.3s;
	text-decoration: none;
	display: inline-block;
}

.register-btn:hover {
	background-color: var(--accent-color);
	color: var(--dark-color);
	transform: scale(1.05);
}

/* WhatsApp Button */
.contact-section {
	padding: 0 15px 20px;
}

.contact-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #25D366;
	color: white;
	border-radius: 10px;
	padding: 12px 20px;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
	color: white;
}

.contact-btn i {
	font-size: 2rem;
	margin-left: 10px;
}

.contact-text {
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Countdown Timer */
.countdown-section {
	text-align: center;
	margin: 20px 15px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	padding: 15px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	border-top: 3px solid var(--accent-color);
}

.countdown-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: white;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.countdown-timer {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.countdown-item {
	background-color: var(--primary-color);
	color: white;
	border-radius: 8px;
	padding: 10px 5px;
	min-width: 65px;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.countdown-number {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
	font-family: 'Teko', sans-serif;
}

.countdown-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	margin-top: 5px;
}

/* Decorative Elements */
.checkered-pattern {
	position: absolute;
	width: 100%;
	height: 20px;
	background-image:
		linear-gradient(45deg, #000 25%, transparent 25%),
		linear-gradient(-45deg, #000 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #000 75%),
		linear-gradient(-45deg, transparent 75%, #000 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
	opacity: 0.7;
}

.top-pattern {
	top: 0;
	z-index: 10;
}

.bottom-pattern {
	bottom: 0;
}

.race-car {
	position: absolute;
	width: 80px;
	right: -30px;
	top: 40%;
	transform: rotate(15deg);
	animation: carMove 15s linear infinite;
	z-index: 1;
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.race-bike {
	position: absolute;
	width: 80px;
	left: -30px;
	top: 60%;
	transform: rotate(-15deg) scaleX(-1);
	animation: bikeMove 12s linear infinite;
	z-index: 1;
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes carMove {
	0% {
		right: -80px;
		top: 40%;
	}

	50% {
		right: 110%;
		top: 30%;
	}

	50.1% {
		right: -80px;
		top: 45%;
	}

	100% {
		right: 110%;
		top: 35%;
	}
}

@keyframes bikeMove {
	0% {
		left: -80px;
		top: 60%;
	}

	50% {
		left: 110%;
		top: 50%;
	}

	50.1% {
		left: -80px;
		top: 65%;
	}

	100% {
		left: 110%;
		top: 55%;
	}
}

/* Schedule Section */
.schedule-section {
	margin: 20px 15px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	padding: 15px;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
	border-top: 3px solid var(--accent-color);
}

.schedule-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: white;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.schedule-item {
	display: flex;
	margin-bottom: 12px;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	padding: 10px;
	transition: transform 0.2s;
}

.schedule-item:hover {
	transform: translateX(5px);
	background-color: rgba(255, 255, 255, 0.1);
}

.schedule-date {
	background-color: var(--primary-color);
	color: white;
	padding: 8px;
	border-radius: 8px;
	min-width: 80px;
	text-align: center;
	font-weight: 600;
	font-size: 0.9rem;
	margin-right: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.schedule-info {
	flex: 1;
}

.schedule-event {
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 2px;
	color: white;
}

.schedule-location {
	font-size: 0.8rem;
	color: #aaaaaa;
}

/* Sponsors Section */
.sponsors-section {
	margin: 20px 15px;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 10px;
	padding: 15px;
	text-align: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sponsors-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 15px;
	color: white;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.sponsors-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin-top: 15px;
}

.sponsor-logo {
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	padding: 10px;
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s;
}

.sponsor-logo:hover {
	transform: scale(1.1);
}

.sponsor-logo img {
	max-width: 100%;
	max-height: 100%;
}

/* Footer */
.footer {
	background-color: var(--dark-color);
	padding: 20px 15px;
	text-align: center;
	border-top: 3px solid var(--primary-color);
}

/* Container yang menyesuaikan lebar .main-container */
.container-footer {
	margin: 0 auto;
	width: 100%;
	max-width: 100%;
	/* Default, bisa ditimpa oleh media query */
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	background-color: var(--gradient-dark);
}

/* Responsive max-width sama dengan .main-container */
@media (min-width: 768px) {
	.container-footer {
		max-width: 400px;
		border-radius: 20px;
	}
}

@media (min-width: 1200px) {
	.container-footer {
		max-width: 1000px;
		border-radius: 20px;
	}
}

.footer-text {
	color: #aaaaaa;
	font-size: 0.9rem;
	margin-bottom: 10px;
}

.social-icons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 15px;
}

.social-icon {
	color: white;
	font-size: 1.5rem;
	transition: color 0.3s;
}

.social-icon:hover {
	color: var(--accent-color);
}

/* Tambahkan di bagian bawah file */
.nav-link {
	transition: all 0.3s ease;
	position: relative;
	padding: 5px 15px;
	border-radius: 20px;
}

.nav-link:hover {
	background-color: var(--accent-color);
	color: var(--dark-color) !important;
	transform: translateY(-2px);
}

.nav-link.active {
	background-color: var(--accent-color);
	color: var(--dark-color) !important;
	font-weight: 700 !important;
}

.nav-link.active:after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	/* background-color: var(--accent-color); */
	border-radius: 50%;
}

/* .navbar {
	border-bottom: 3px solid var(--accent-color);
	margin-bottom: 10px;
} */

.navbar {
	position: sticky !important;
	top: 0;
	z-index: 1000;
}

/* Desktop Styles */
@media (min-width: 768px) {
	body {
		background: linear-gradient(135deg, #222, #000);
		padding: 30px 0;
	}

	.main-container {
		max-width: 400px;
		border-radius: 20px 20px 0px 0px;
		margin: 0 auto;
		overflow: hidden;
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	}

	/* .main-container .bg-overlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-image: url('/images/bg-2.jpg');
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		opacity: 0.5;
		z-index: 0;
	} */

	/* Phone frame for desktop view */
	.phone-frame {
		display: block;
		position: absolute;
		top: -20px;
		left: -20px;
		right: -20px;
		bottom: -20px;
		border: 20px solid #111;
		border-radius: 40px;
		pointer-events: none;
		z-index: 100;
	}

	.phone-notch {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 150px;
		height: 25px;
		background-color: #111;
		border-bottom-left-radius: 15px;
		border-bottom-right-radius: 15px;
	}

	.phone-button {
		position: absolute;
		right: -30px;
		top: 100px;
		width: 5px;
		height: 60px;
		background-color: #222;
		border-radius: 3px;
	}

	.phone-button.volume-up {
		left: -30px;
		top: 100px;
		height: 40px;
	}

	.phone-button.volume-down {
		left: -30px;
		top: 150px;
		height: 40px;
	}

	.phone-home {
		position: absolute;
		bottom: -10px;
		left: 50%;
		transform: translateX(-50%);
		width: 120px;
		height: 5px;
		background-color: #333;
		border-radius: 3px;
	}

	/* Status bar for desktop view */
	.status-bar {
		display: flex;
		justify-content: space-between;
		padding: 5px 15px;
		background-color: #111;
		color: white;
		font-size: 0.8rem;
	}

	.time {
		font-weight: 600;
	}

	.status-icons {
		display: flex;
		gap: 5px;
	}
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
	.main-container {
		max-width: 1000px;
		border-radius: 20px 20px 0px 0px;
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	}

	/* .main-container .bg-overlay {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-image: url('/images/bg-2.jpg');
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		opacity: 0.;
		z-index: 0;
	} */

	.phone-frame {
		display: none;
	}

	.status-bar {
		display: none;
	}

	.content-wrapper {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 30px;
		padding: 30px;
	}

	.full-width {
		grid-column: 1 / -1;
	}

	.header-section {
		padding: 10px;
	}

	.logo-title {
		font-size: 3.5rem;
	}

	.logo-subtitle {
		font-size: 1.5rem;
	}

	.championship-title {
		margin-bottom: 0;
		padding: 30px;
	}

	.event-name {
		font-size: 2rem;
	}

	.event-title {
		font-size: 1.4rem;
	}

	.event-details {
		font-size: 1.2rem;
	}

	.category-card {
		height: 250px;
	}

	.category-title {
		font-size: 2.5rem;
	}

	.register-btn {
		padding: 10px 30px;
		font-size: 1.1rem;
	}

	.countdown-section,
	.schedule-section,
	.sponsors-section {
		margin-bottom: 0;
	}

	.countdown-title,
	.schedule-title,
	.sponsors-title {
		font-size: 1.5rem;
	}

	.countdown-item {
		min-width: 80px;
		padding: 15px 10px;
	}

	.countdown-number {
		font-size: 2.5rem;
	}

	.countdown-label {
		font-size: 0.8rem;
	}

	.schedule-item {
		margin-bottom: 15px;
	}

	.schedule-date {
		min-width: 100px;
		font-size: 1rem;
	}

	.schedule-event {
		font-size: 1.2rem;
	}

	.schedule-location {
		font-size: 0.9rem;
	}

	.race-car,
	.race-bike {
		width: 120px;
	}

	.sponsor-logo {
		width: 100px;
		height: 100px;
	}
}