:root {
    --primary-color: #005086; /* Biru Laut Dalam */
    --secondary-color: #3282b8; /* Biru Air Cerah */
    --accent-color: #ffa41b; /* Oranye Pelampung (Aksen) */
    --bg-light: #f0f8ff; /* Alice Blue */
    --text-dark: #1b262c;
    --dark-custom: #0f1c23;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: #bfa034;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.navbar .btn {
    white-space: nowrap;
    font-size: 0.95rem;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-color: var(--dark-custom);
    overflow: hidden;
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.6);
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Footer */
.bg-dark-custom {
    background-color: var(--dark-custom);
}

.hover-white:hover {
    color: #fff !important;
}

/* Animations */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Countdown */
.countdown-box {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--accent-color);
}
.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}
.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Loader / Utils */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s;
}
.lazy-image.loaded {
    opacity: 1;
}

/* Leaderboard Highlights */
.rank-1 { background-color: rgba(212, 175, 55, 0.15) !important; font-weight: bold; }
.rank-2 { background-color: rgba(192, 192, 192, 0.15) !important; font-weight: bold; }
.rank-3 { background-color: rgba(205, 127, 50, 0.15) !important; font-weight: bold; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-padding {
        padding: 50px 0;
    }
    .countdown-number {
        font-size: 1.8rem;
    }
    
    /* Responsive Banner Scaling for Mobile */
    .hero-slider {
        height: auto;
        min-height: 0 !important;
    }
    .carousel-item {
        height: auto;
        min-height: 0 !important;
        background-color: var(--dark-custom); /* Latar belakang tombol */
    }
    .carousel-item img {
        height: auto !important;
        min-height: 0 !important;
        width: 100%;
        object-fit: contain; /* Gambar akan proporsional tanpa ada ruang kosong */
        filter: brightness(0.9); /* Jangan terlalu gelap di HP */
    }
    
    /* Pindahkan tombol tepat ke bawah gambar agar sangat rapi */
    .hero-caption {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding: 15px 20px 25px 20px;
        background: transparent;
    }
    .hero-caption .btn {
        width: 100%;
        padding: 12px !important;
        font-size: 1.1rem !important;
        font-weight: bold;
        margin-top: 0 !important;
        border-radius: 12px !important;
    }
}
