/* ============ GENERAL ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */

/* ============ NAVBAR TOGGLER (GARIS 3) ============ */
.navbar-custom .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5); /* garis luar tombol */
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-custom .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
}

/* GARIS 3 DIBUAT TERANG */
.navbar-custom .navbar-toggler-icon {
    background-image: none; /* matikan icon default */
    position: relative;
    width: 26px;
    height: 20px;
    display: inline-block;
}

.navbar-custom .navbar-toggler-icon::before,
.navbar-custom .navbar-toggler-icon::after,
.navbar-custom .navbar-toggler-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff; /* WARNA TERANG */
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6); /* efek glow biar makin terang */
}

.navbar-custom .navbar-toggler-icon::before {
    top: 0;
}
.navbar-custom .navbar-toggler-icon span {
    top: 8px;
}
.navbar-custom .navbar-toggler-icon::after {
    top: 16px;
}

/* Efek saat aktif (opsional) */
.navbar-custom
    .navbar-toggler[aria-expanded="true"]
    .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 8px;
}
.navbar-custom .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
}
.navbar-custom
    .navbar-toggler[aria-expanded="true"]
    .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 8px;
}
.navbar-custom {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .navbar-brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.navbar-custom .navbar-brand i {
    color: #4f46e5;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.navbar-custom .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-custom .btn-login-nav {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-custom .btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
}

/* Tombol Pengajuan di Navbar (warna hijau) */
.btn-pengajuan-nav {
    background: linear-gradient(135deg, #7d13ef, #710fcd);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pengajuan-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 91, 197, 0.937);
    color: white;
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: white;
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 500px;
    margin: 20px 0 30px;
}

.hero-content .btn-hero {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-content .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(79, 70, 229, 0.4);
    color: white;
}

.hero-content .btn-outline-hero {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.hero-content .btn-outline-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Tombol Pengajuan di Hero (warna hijau terang) */
.btn-pengajuan-hero {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.btn-pengajuan-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(34, 197, 94, 0.4);
    color: white;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ============ FEATURES ============ */
.features-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-section h2 {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 2.5rem;
}

.features-section .subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.feature-card .detail-link {
    display: inline-block;
    margin-top: 12px;
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-card .detail-link i {
    transition: transform 0.3s ease;
}

.feature-card:hover .detail-link i {
    transform: translateX(4px);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.feature-card h5 {
    font-weight: 700;
    color: #1a1a2e;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #101022 100%);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 160px;
    background: radial-gradient(
        ellipse at center,
        rgba(79, 70, 229, 0.15),
        transparent 70%
    );
    pointer-events: none;
}

.footer h5 {
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.footer .footer-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .footer-links a {
    display: inline-block;
    padding: 3px 0;
}

.footer .footer-links a:hover {
    color: #a5b4fc;
    transform: translateX(4px);
}

.footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer .social-link:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.footer .footer-contact p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer .footer-contact i {
    width: 20px;
    color: #818cf8;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 40px;
}

/* ============ RESPONSIVE ============ */
/* ============ RESPONSIVE NAVBAR ============ */
@media (max-width: 991.98px) {
    .navbar-custom {
        padding: 10px 0;
    }

    .navbar-custom .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        margin-top: 12px;
        padding: 15px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar-custom .nav-link {
        padding: 10px 14px;
        margin-bottom: 4px;
    }

    .navbar-custom .btn-login-nav,
    .navbar-custom .btn-pengajuan-nav {
        display: block;
        width: 100%;
        margin-top: 8px;
        text-align: center;
    }

    /* Hero di HP */
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content .btn-hero,
    .hero-content .btn-outline-hero,
    .hero-content .btn-pengajuan-hero {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }

    .hero-image {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .navbar-custom .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-custom .navbar-brand img {
        width: 32px;
        height: 32px;
    }
}
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-image img {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content .btn-hero,
    .hero-content .btn-outline-hero,
    .hero-content .btn-pengajuan-hero {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .features-section h2 {
        font-size: 2rem;
    }
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Opsional: sesuaikan dengan tema Anda */
}

.features-section h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
}

/* Card Styling */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%; /* Memastikan semua card sama tinggi */
}

/* Efek Hover */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

/* Ikon */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Teks */
.feature-card h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
}

.feature-card p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
    flex-grow: 1; /* Mendorong tombol Selengkapnya ke bawah */
}

/* Link Selengkapnya */
.detail-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
}

/* Penyesuaian Responsif untuk HP */
@media (max-width: 576px) {
    .features-section {
        padding: 40px 0;
    }

    .feature-card {
        padding: 20px;
        text-align: center; /* Teks rata tengah di HP agar lebih rapi */
    }

    .feature-icon {
        margin: 0 auto 15px auto; /* Ikon di tengah */
    }

    .features-section h2 {
        font-size: 1.8rem;
    }
}

/* ============ POPUP FULL LAYAR ============ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* POPUP BOX - FULL LAYAR */
.popup-box {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* GAMBAR FULL LAYAR */
.popup-box img {
    width: 50%;
    height: 40%;
    object-fit: contain;
    /* Biar gambar full tapi proporsional */
    display: block;
}

/* TOMBOL CLOSE */
.popup-close {
    position: fixed;
    top: 25px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: not-allowed;
    opacity: 0.4;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.popup-close.enabled {
    cursor: pointer;
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.popup-close.enabled:hover {
    background: rgba(255, 0, 0, 0.7);
    transform: rotate(90deg) scale(1.1);
    border-color: red;
}

/* COUNTDOWN */
.popup-countdown {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 18px;
    backdrop-filter: blur(4px);
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.popup-countdown strong {
    color: #4f46e5;
    font-size: 26px;
    font-weight: 800;
}
