/* ===========================
   NAVBAR GENERAL STYLES
=========================== */

.navbar-custom {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Brand & Logo Styling */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand h5 {
    letter-spacing: -0.2px;
}

/* Toggler Button Focus State */
.navbar-toggler:focus {
    box-shadow: none;
}


/* ===========================
   NAVBAR MENU ITEMS (DESKTOP)
=========================== */

.navbar-nav {
    display: flex;
    gap: 6px;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    color: #495057 !important;
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    isolation: isolate; /* Isolasi z-index agar stacking context aman */
    transition: color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

/* Background Gradient Hover & Active */
.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    opacity: 0;
    transform: scale(0.6);
    border-radius: 12px;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

/* Underline Indicator */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 3px;
    border-radius: 30px;
    background: #ffffff;
    transition: width 0.35s ease;
    transform: translateX(-50%);
    z-index: 1;
}

/* Teks dan Icon di Atas Layer Background */
.navbar-nav .nav-link span,
.navbar-nav .nav-link i {
    position: relative;
    z-index: 1;
}

/* Hover State */
.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
}

.navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 50%;
}

/* Active State */
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}

.navbar-nav .nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}


/* ===========================
   BUTTON LOGIN STYLING
=========================== */

.navbar-nav .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #2563eb);
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.navbar-nav .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.navbar-nav .btn-primary:active {
    transform: translateY(0);
}


/* ===========================
   RESPONSIVE / MOBILE STYLES
=========================== */

@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 4px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    /* Penyesuaian Nav-Link di Layar Kecil */
    .navbar-nav .nav-link {
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 10px;
    }

    /* Hilangkan animasi TranslateY di Mobile agar UX lebih stabil */
    .navbar-nav .nav-link:hover {
        transform: translateY(0);
    }

    /* Sembunyikan garis bawah indicator di mobile */
    .navbar-nav .nav-link::after {
        display: none;
    }

    /* Styling Tombol Login saat Mode Mobile Collapse */
    .navbar-nav .btn-primary {
        width: 100%;
        margin-top: 8px;
        padding: 12px !important;
    }
}
/* ===========================
   HERO CAROUSEL & SLIDER
=========================== */

.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

/* Multi-layer Dark Shadow Overlay untuk Kontras & Legibilitas Teks */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

/* Elevasi Konten di Atas Layer Overlay */
.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

/* Badge Header Slide */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: rgba(13, 110, 253, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge.bg-success {
    background: rgba(25, 135, 84, 0.3) !important;
}

.hero-badge.bg-danger {
    background: rgba(220, 53, 69, 0.3) !important;
}

/* Typography Hero */
.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-content h1 span {
    display: block;
    color: #3b82f6;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

/* ===========================
   CAROUSEL CONTROLS & INDICATORS
=========================== */

/* Tombol Prev/Next Navigasi */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: #0d6efd;
    border-color: #0d6efd;
}

/* Indicator Bullets */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
    width: 32px;
    border-radius: 10px;
    background-color: #0d6efd;
}

/* ===========================
   SCROLL DOWN MOUSE ANIMATION
=========================== */

.scroll-down {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 0.3s ease, color 0.3s ease;
}

.scroll-down:hover {
    color: #ffffff;
}

.scroll-down small {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    position: relative;
}

.mouse span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: #ffffff;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Fade in Effect untuk Teks Konten Slider saat Berpindah */
.carousel-item-next.carousel-item-start .hero-content,
.carousel-item-prev.carousel-item-end .hero-content,
.carousel-item.active .hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   RESPONSIVE STYLES
=========================== */

@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none; /* Sembunyikan panah di layar HP agar tidak menutupi teks */
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .scroll-down {
        display: none; /* Hilangkan ikon scroll mouse pada layar kecil */
    }
}