/* Palet Warna: Hitam (Teks), Putih (Background), Neon Cyan (Aksen) */
:root {
	--primary-color: #00ffd1; /* Neon Cyan/Hijau Muda */
	--secondary-color: #1a1a1a; /* Hampir Hitam */
	--text-color: #333;
	--bg-color: #f7f7f7; /* Off-White */
}

/* Reset dan Tipografi Dasar */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Poppins", sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--bg-color);
	overflow-x: hidden; /* Mencegah scroll horizontal */
}

main {
	padding-top: 80px; /* Jarak dari header fixed */
}

/* Header & Navigasi */
header {
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 5%;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

/* Logo (Gambar + Teks) */
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo img {
	height: 40px;
	width: auto;
}

.logo-text {
	font-size: 1.2em;
	font-weight: 800;
	color: var(--secondary-color);
}

.nav-menu a {
	text-decoration: none;
	color: var(--text-color);
	margin-left: 25px;
	font-weight: 600;
	transition: color 0.3s;
}

.nav-menu a:hover {
	color: var(--primary-color);
}

.burger-menu {
	display: none;
	background: none;
	border: none;
	font-size: 1.8em;
	cursor: pointer;
}

/* Teks Aksen & Harga */
.accent-text {
	color: var(--primary-color);
	text-shadow: 0 0 5px rgba(0, 255, 209, 0.5);
}
.price-text {
	font-weight: 800;
	color: var(--primary-color);
	font-size: 1.1em;
}

/* CTA (Button) */
.cta-button {
	background-color: var(--primary-color);
	color: var(--secondary-color);
	border: none;
	padding: 12px 25px;
	font-size: 1em;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	display: inline-block;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 0 0 var(--secondary-color);
}

.cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 0 0 var(--secondary-color);
}

/* Bagian Hero (Dua Kolom) */
.hero {
	min-height: 80vh;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 0 5%;
	background: linear-gradient(135deg, #ffffff, #e0f2ff);
	gap: 40px;
}

.hero-content {
	flex: 1;
	max-width: 55%;
}

.hero-content h1 {
	font-size: 3.5em;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: 20px;
}

.hero-content .subtitle {
	font-size: 1.3em;
	margin-bottom: 40px;
	color: #555;
}

.hero-image {
	flex: 1;
	max-width: 45%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-image img {
	width: 50%;
	border-radius: 15px;
	object-fit: cover;
	/* Efek Gen-Z: Aksen warna dan bayangan */
	box-shadow: 10px 10px 0 0 var(--primary-color), 20px 20px 0 0 rgba(0, 0, 0, 0.1);
}

/* Bagian Info Section */
.info-section,
.form-section {
	padding: 80px 5%;
	max-width: 1200px;
	margin: 0 auto;
}

.info-section h2,
.form-section h2 {
	font-size: 2.5em;
	font-weight: 800;
	margin-bottom: 40px;
	text-align: center;
}

.info-card-container {
	display: flex;
	gap: 30px;
	justify-content: space-between;
}

.info-card {
	flex: 1;
	background: white;
	padding: 30px;
	border-radius: 15px;
	border-left: 5px solid var(--primary-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
	color: var(--secondary-color);
	margin-bottom: 10px;
	font-size: 1.4em;
}

/* Form Styling */
#registration-form {
	max-width: 600px;
	margin: 0 auto;
	background: white;
	padding: 40px;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#registration-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	margin-top: 15px;
}

#registration-form input,
#registration-form select {
	width: 100%;
	padding: 12px;
	margin-bottom: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 1em;
	transition: border-color 0.3s;
}

#registration-form input:focus,
#registration-form select:focus {
	border-color: var(--primary-color);
	outline: none;
}

.form-note {
	text-align: center;
	margin-top: 20px;
	color: #888;
}

/* Footer */
footer {
	text-align: center;
	padding: 30px;
	background-color: var(--secondary-color);
	color: white;
	font-size: 0.9em;
}

/* -------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN (Media Queries) */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	/* Header Responsive */
	.nav-menu {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		background: white;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		padding: 20px 0;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-menu a {
		margin: 10px 5%;
		padding: 10px 0;
		border-bottom: 1px solid #eee;
	}

	.burger-menu {
		display: block;
	}

	/* Hero Responsive (Ubah menjadi tumpukan vertikal) */
	.hero {
		flex-direction: column;
		text-align: center;
		padding-top: 100px;
		padding-bottom: 50px;
	}

	.hero-content,
	.hero-image {
		max-width: 100%;
		flex: none;
	}

	.hero-content h1 {
		font-size: 2.5em;
		text-align: center;
	}

	.hero-image {
		order: -1;
		margin-bottom: 30px;
	}

	.hero-image img {
		max-width: 80%;
		box-shadow: 5px 5px 0 0 var(--primary-color), 10px 10px 0 0 rgba(0, 0, 0, 0.1);
	}

	/* Info Section Responsive */
	.info-card-container {
		flex-direction: column;
		gap: 20px;
	}
}

/* --- Styling Tambahan untuk Kuota Dinamis --- */

.bootcamp-container {
	/* Mengganti info-section h2, h3, card-container */
	display: flex;
	gap: 30px;
	justify-content: space-between;
	flex-wrap: wrap; /* Agar responsif di layar yang lebih kecil */
}

.info-card {
	flex: 1 1 calc(50% - 15px); /* Membagi 2 kolom per baris di desktop */
	min-width: 300px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 30px;
}

.card-footer {
	margin-top: 15px;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Status Kuota */
.kuota-status {
	font-size: 0.9em;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 5px;
}

.kuota-status.full {
	background-color: #ff4d4d; /* Merah */
	color: white;
}

.kuota-status.available {
	background-color: var(--primary-color);
	color: var(--secondary-color);
}

/* Gaya untuk Card Kuota Penuh */
.card-full {
	opacity: 0.6;
	border-left-color: #ff4d4d !important;
}

/* Tombol Nonaktif */
.cta-button-disabled {
	background-color: #aaa;
	color: #666;
	border: none;
	padding: 12px 25px;
	font-size: 1em;
	font-weight: 600;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	display: block;
	cursor: not-allowed;
	box-shadow: 0 4px 0 0 #666;
}
.cta-button-disabled:hover {
	transform: none;
	box-shadow: 0 4px 0 0 #666;
}

/* Responsive adjustment untuk info-card */
@media (max-width: 768px) {
	.bootcamp-container {
		flex-direction: column;
		gap: 20px;
	}
	.info-card {
		flex: none;
		width: 100%;
		min-width: unset;
	}
}

/* ========================================================== */
/* CSS ANIMATIONS: FADE IN & SLIDE */
/* ========================================================== */

/* 1. Keyframes untuk Fade-In */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

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

/* 2. Menerapkan Animasi pada Hero */
.hero-content h1 {
	animation: fadeIn 1s ease-out 0.2s backwards; /* Mulai 0.2s setelah load */
}

.hero-content .subtitle,
.hero-content .cta-button {
	animation: fadeIn 1s ease-out 0.5s backwards; /* Delay sedikit */
}

.hero-image img {
	animation: fadeIn 1.2s ease-out 0.8s backwards; /* Delay lebih lama untuk gambar */
}

/* 3. Menerapkan Animasi pada Card Bootcamps */
.bootcamp-container {
	/* Pastikan kontainer tidak menyembunyikan elemen sebelum animasi */
	overflow: hidden;
}

.info-card:nth-child(odd) {
	/* Card Ganjil: Fade In dari Kiri */
	opacity: 0;
	animation: slideInLeft 1s ease-out forwards;
}

.info-card:nth-child(even) {
	/* Card Genap: Fade In dari Kanan */
	opacity: 0;
	animation: slideInRight 1s ease-out forwards;
}

/* Menentukan Delay untuk setiap card: Gunakan loop jika banyak card */
.info-card:nth-child(1) {
	animation-delay: 0.2s;
}
.info-card:nth-child(2) {
	animation-delay: 0.4s;
}
.info-card:nth-child(3) {
	animation-delay: 0.6s;
}
.info-card:nth-child(4) {
	animation-delay: 0.8s;
}

/* ========================================================== */
/* MODAL/POP-UP SUCCESS STYLING */
/* ========================================================== */

.modal {
	display: none; /* Sembunyikan secara default */
	position: fixed;
	z-index: 2000; /* Di atas segalanya */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6); /* Background gelap transparan */
	backdrop-filter: blur(5px);
	animation: modalFadeIn 0.3s;
}

.modal-content {
	background-color: white;
	margin: 15% auto; /* Tengah vertikal dan horizontal */
	padding: 30px;
	border: none;
	width: 80%;
	max-width: 400px;
	border-radius: 15px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: modalSlideDown 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Animasi pop */
}

.modal-content h3 {
	color: var(--primary-color);
	margin-bottom: 15px;
	font-size: 2em;
}

.modal-content p {
	margin-bottom: 20px;
}

.modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: absolute;
	top: 10px;
	right: 20px;
	cursor: pointer;
	transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
	color: var(--secondary-color);
	text-decoration: none;
	cursor: pointer;
}

/* Keyframes untuk Modal */
@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalSlideDown {
	from {
		transform: translateY(-100px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Styling Khusus Modal Error */
.error-content {
	border-top: 5px solid red; /* Aksen merah */
}

.error-content h3 {
	color: red !important;
}

/* style.css (Tambahkan ini) */

/* 1. Kontainer Card Utama (Diubah menjadi Flex Container) */
.info-card {
	overflow: hidden;
	padding: 0;
	border-radius: 12px;
	display: flex; /* Mengaktifkan Flexbox untuk tata letak horizontal */
	flex-direction: row; /* Konten disusun dari kiri ke kanan */
	min-height: 180px; /* Tinggi minimal yang bagus untuk gambar portrait */
}

/* 2. Styling Gambar Poster */
.bootcamp-poster {
	width: 40%; /* Gambar mengambil 35% dari lebar card */
	height: auto; /* Biarkan tinggi menyesuaikan (penting) */
	min-height: 180px; /* Pastikan tinggi gambar sama dengan tinggi minimal card */
	object-fit: cover;
	margin-bottom: 0; /* Hapus margin bawah */
	flex-shrink: 0; /* Mencegah gambar menyusut */
}

/* 3. Konten Teks */
.info-card-content {
	/* Konten mengambil sisa ruang */
	flex-grow: 1;
	padding: 15px 20px 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between; /* Menjaga footer tetap di bawah */
}

/* --- RESPONSIVE: Balik ke Vertical di Layar Kecil --- */
@media (max-width: 768px) {
	.info-card {
		flex-direction: column; /* Ubah ke susunan vertikal */
	}
	.bootcamp-poster {
		width: 100%; /* Gambar ambil penuh lebar di mobile */
		height: 150px; /* Kembali ke tinggi tetap */
	}
}

/* Gaya untuk Modal Gambar (Lightbox) */
#imageModal {
	display: none;
	position: fixed;
	z-index: 2000; /* Pastikan di atas semua modal lain */
	padding-top: 60px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.9); /* Background gelap */
}

.modal-image-content {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	max-height: 90vh; /* Batasi tinggi agar sesuai layar */
}

/* Tombol Tutup */
.close-lightbox {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
	cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
	color: #bbb;
}
