/* ===============================
   GENERAL STYLING
================================= */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ===============================
   LOADING SCREEN
================================= */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 20px;
}

#loading img {
    width: 120px;
    max-width: 70%;
}

#welcomeText {
    margin-top: 15px;
    color: #003A79;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid #003A79;
}

/* ===============================
   HERO SECTION
================================= */
#content {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-text .tagline {
    background-color: #0d6efd;
    color: white;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 2.5rem;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.7;
}

.rotating-img {
    width: 300px;
    max-width: 100%;
    height: auto;
    animation: rotate 20s linear infinite;
    transition: transform 0.3s ease;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===============================
   FOOTER
================================= */
footer {
    background: #003A79;
}

footer a:hover {
    color: #ffc107;
    transition: color 0.3s;
}

/* ===============================
   RESPONSIVE TABLET & HP
================================= */
@media (max-width: 991.98px) {
 

    .navbar-brand img {
        height: 36px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .tagline {
        font-size: 0.85rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .rotating-img {
        width: 220px;
    }

    footer h5, footer h6 {
        font-size: 1rem;
    }

    footer ul li {
        font-size: 0.85rem;
    }
}

/* ===============================
   RESPONSIVE HP KECIL (≤768px)
================================= */
@media (max-width: 767.98px) {
    .hero-text {
        text-align: center !important;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .hero-text .tagline {
        font-size: 0.8rem;
    }

    .rotating-img {
        width: 180px;
        margin-bottom: 20px;
    }

    #loading img {
        width: 100px;
    }

    #welcomeText {
        font-size: 0.9rem;
        white-space: normal;
        border: none;
    }

    
    footer .col-md-2,
    footer .col-md-4 {
        margin-bottom: 20px;
    }

    footer p,
    footer ul li {
        font-size: 0.85rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* ===============================
   HP SUPER KECIL (≤480px)
================================= */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.85rem;
    }

    .rotating-img {
        width: 150px;
    }

    #welcomeText {
        font-size: 0.8rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}
