/* --- BUTTONS --- */
.carousel-wrapper .btn {
	padding: 12px 25px;
	border-radius: 10px;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	text-decoration: none; 
}
.carousel-wrapper .btn-primary {
	background-color: #007bff;
	color: #ffffff;
	border-color: #007bff;
}
.carousel-wrapper .btn-primary:hover {
	background-color: #0056b3;
	border-color: #0056b3;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}
.carousel-wrapper .btn-outline {
	background-color: transparent;
	color: #007bff;
	border-color: #007bff;
}
.carousel-wrapper .btn-outline:hover {
	background-color: #007bff;
	color: #ffffff;
}

@keyframes hydro-pulse {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* --- HERO SECTION: CAROUSEL STYLES --- */
.carousel-wrapper .hero-section {
	perspective: 1000px;
	background-color: #f4f9ff; 
	background-image: linear-gradient(270deg, rgba(0, 123, 255, 0.1), #f4f9ff, rgba(0, 123, 255, 0.1));
	background-size: 200% 200%;
	animation: hydro-pulse 20s ease infinite; 
	
	padding: 0;
	position: relative; 
	min-height: 550px; 
	margin: 20px auto;
	border-radius: 12px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); 
}
.carousel-wrapper {
	position: relative; 
	height: 100%; 
	cursor: grab;
	outline: none;
	overflow: hidden;
}
.carousel-wrapper:focus-within {
	 box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.4);
	 border-radius: 12px;
}
.carousel-wrapper.dragging {
	cursor: grabbing;
}

.carousel-slides {
	display: flex; 
	width: 100%; 
	height: 100%;
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); 
	will-change: transform; 
	opacity: 0; 
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease-out;
}

.carousel-slides.loaded {
	opacity: 1;
}

.slide {
	position: relative; 
	flex-shrink: 0; 
	width: calc(100% / 3); 
	padding: 0; 
	z-index: 2; 
	transition: none;
    background-repeat: no-repeat;
    background-size: cover;
	background-position: center;
}

.carousel-wrapper .hero-content {
	display: flex;
	align-items: center; 
	justify-content: end;
	gap: 40px;
	position: relative;
	z-index: 3; 
	padding: 0 100px;
	height: 100%; 
}

.carousel-wrapper .hero-text { 
	max-width: 50%; 
	display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end;
	background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
	text-align: right;
}
/* --- DEPTH EFFECT START --- */
.carousel-wrapper .hero-text { 
	/* max-width: 100%;  */
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
	transform: translateZ(0); 
	opacity: 0.8;
}
.slide.active .hero-text {
	transform: translateZ(20px); 
	opacity: 1;
}
/* --- DEPTH EFFECT END --- */

.carousel-wrapper .hero-text h1 { 
	font-size: 3.2em; 
	margin-bottom: 15px; 
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
} 
.carousel-wrapper .tagline { font-size: 1.25em; margin-bottom: 30px; color: #2c3e50; opacity: 0.8; }
.carousel-wrapper .hero-actions { display: flex; gap: 15px; }

.carousel-wrapper .hero-image { position: relative; }
.carousel-wrapper .hero-image img { 
	max-width: 100%; 
	height: auto; 
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 30px 60px rgba(0, 0, 0, 0.15); 
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); 
	display: block;
}
.slide.active .hero-image img {
	 transform: translateY(-10px) scale(1.02);
}

/* Carousel Controls */
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85); 
	color: #007bff;
	border: none;
	padding: 15px;
	cursor: pointer;
	z-index: 10;
	font-size: 1.5em;
	transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
	border-radius: 50%;
	width: 55px;
	height: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.carousel-btn:hover { 
	background: #007bff; 
	color: white; 
	transform: translateY(-50%) scale(1.1); 
	box-shadow: 0 6px 15px rgba(0, 123, 255, 0.5); 
}

/* Focus State Maksimal */
.carousel-btn:focus-visible {
	outline: 4px solid #007bff; 
	outline-offset: 4px;
	border: 2px solid white;
	box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.3); 
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Carousel Dots */
.carousel-dots {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 10;
}
.dot {
	width: 10px;
	height: 10px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s, background-color 0.4s ease; 
	border: 2px solid transparent; 
	position: relative; 
	overflow: hidden; 
	outline: none; 
}
.dot.active {
	background-color: #007bff;
	transform: scale(1.4); 
	border-color: #ffffff; 
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); 
}
.dot:hover {
	transform: scale(1.2); 
	background-color: #0056b3;
}
.dot:focus-visible {
	outline: 2px solid #007bff;
	outline-offset: 2px;
}

/* --- PROGRESS INDICATOR START --- */
.dot.active::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.6); 
	transform: scaleX(0); 
	transform-origin: left;
	border-radius: 50%;
	z-index: 1;
}

@keyframes fillProgress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.dot.active.progress-anim::after {
	/* Durasi animasi akan diset oleh JS, 5s adalah yang kita gunakan di inisialisasi */
	animation: fillProgress 5s linear forwards; 
}
/* --- PROGRESS INDICATOR END --- */

/* Responsiveness */
@media (max-width: 768px) {
	.carousel-wrapper .hero-content { 
		flex-direction: column; 
		text-align: center; 
		justify-content: center;
		padding-top: 40px; 
		padding: 0 20px;
	}
	.carousel-wrapper {
		height: unset;
		flex: 1;
	}
	.carousel-wrapper .hero-text { max-width: 100%; }
	.carousel-wrapper .hero-text h1 { font-size: 2.5em; }
	.carousel-wrapper .hero-image { order: -1; margin-bottom: 30px; }
	.carousel-wrapper .hero-actions { justify-content: center; flex-wrap: wrap; }
	.slide { padding: 0; }
	.carousel-wrapper .hero-section { min-height: 650px; }
	.carousel-btn { width: 40px; height: 40px; padding: 10px; font-size: 1.2em; }
	.prev-btn { left: 10px; }
	.next-btn { right: 10px; }
	.dot { width: 8px; height: 8px; gap: 8px; }
	.dot.active { transform: scale(1.3); }
}