/* --- 🔥 Style Loading Screen 🔥 --- */
#loading-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #000, #222); /* Warna elegan */
    display: flex;
    align-items: center;
    justify-content: center;    
    flex-direction: column;
    z-index: 9999;
    transition: opacity 1s ease-in-out;
    padding: 20px; /* Added padding for small screens */
    box-sizing: border-box;
}

/* --- Animasi Logo --- */
.loader img {
    width: 120px;
    max-width: 80vw; /* Responsive max width */
    height: auto;
    animation: fadeInZoom 2s ease-in-out infinite alternate, glow 2s ease-in-out infinite alternate;
}

/* Glow animation */
@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px #FFD700);
    }
    50% {
        filter: drop-shadow(0 0 20px #FFD700);
    }
    100% {
        filter: drop-shadow(0 0 5px #FFD700);
    }
}

/* --- Efek Fade-in & Zoom --- */
@keyframes fadeInZoom {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* --- Teks Loading --- */
.loader p {
    color: #fff;
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    margin-top: 10px;
    text-align: center;
    animation: glowText 2s ease-in-out infinite alternate;
    padding: 0 10px; /* Padding for small screens */
}

/* --- Tombol "Masuk" --- */
#enter-btn {
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
    min-width: 120px; /* Ensure button is not too small */
}

/* --- Efek Hover --- */
#enter-btn:hover {
    transform: scale(1.1);
}

/* --- Animasi Hilang (Fade Out) --- */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    visibility: hidden;
}

/* Spinner for loading screen */
.spinner {
    margin: 15px auto 10px auto;
    width: 40px;
    height: 40px;
    border: 5px solid rgba(255, 215, 0, 0.3);
    border-top: 5px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Additional improvements for hero section */
.hero {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ button icon improvements */
.btn-link::after {
    content: "▼";
    float: right;
    transition: transform 0.3s ease;
}

.btn-link.collapsed::after {
    transform: rotate(-90deg);
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #FFD700;
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
    transition: background 0.3s ease;
}

#back-to-top:hover {
    background: #FFC107;
}

/* Gaya Umum */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://media-hosting.imagekit.io//e2ebbac9210d4754/02b9e120-5aca-4eb6-a9df-7a97d73aa42d.jpeg?Expires=1836354567&Key-Pair-Id=K2ZIVPTIP2VGHC&Signature=ofhzgTh3YGbAPtDNYRPi1oPDpTFP2AqEs~22vqLFHjIQExSwK4Y~0lWmbFlnLvomZmQsXyJZCd4V1vV9GpokbphQEIGM8l2-md5v3umglgxmfG5yK03zsNM42I9Xnxjz6mxqcpw4BNlSSdfX~O-pcG7IBKE~Hdzq30Qh7D~1x2f3qfR6SaITPUQq-KjJSkB-VoobqivMN0hV4csInOKvK~Cy2jUU8gcGrWwVcSB93IM8BGVI8UFhAM-q7LB0eDm2YQomqR87GbBx5kHJ7wY6NUxb76a80xMhfarZhTpBhfH4fq3re-WGOV2YQmxFNv2qGMEd7-vVGKe59v7KxWnwCA__') 
    no-repeat center center fixed;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Gaya Hero */
.hero {
    text-align: center;
    margin: 50px 0;
    background: url('background grr.jpg') no-repeat center center/cover;
    position: relative;
    color: white;
    padding: 60px 20px;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Overlay untuk memastikan teks tetap terbaca */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Transparan hitam */
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Gaya Section */
.section {
    margin: 40px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: left;
}

.section p {
    font-size: 18px;
    line-height: 1.6;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Gaya Gambar */
.img-fluid {
    border-radius: 10px;
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.img-fluid:hover {
    transform: scale(1.05);
}

/* Gaya Kartu FAQ */
.card-header {
    background-color: white;
    color: white;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 15px;
    font-weight: bold;
    text-align: center;
}

.card-header:hover {
    background-color: white;
    cursor: pointer;
}

.card-body {
    background-color: #0056b3;
    border-radius: 0 0 10px 10px;
    padding: 15px;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card {
    margin-bottom: 15px;
}

/* Gaya Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    box-sizing: border-box;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section h2 {
        font-size: 1.8rem;
    }
    .section p {
        font-size: 1rem;
        min-height: auto;
    }
    .container {
        padding: 10px;
        max-width: 100%;
    }
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    #loading-screen {
        padding: 10px;
    }
    #enter-btn {
        width: 100%;
        font-size: 20px;
        padding: 15px 0;
        min-width: unset;
    }
}
