/* Fix for the Beranda (home) section on mobile devices */

/* Home section spacing fix */
@media (max-width: 768px) {
    #home.hero {
        padding-top: 150px !important; /* Increased padding to ensure there's enough space below the header */
        margin-top: 0 !important; /* Remove margin, use padding instead */
        min-height: 0 !important; /* Let content determine height */
    }
    
    /* Fix hero content positioning */
    .hero-content {
        padding-top: 30px !important;
        z-index: 2 !important; /* Ensure content is above particles */
    }
    
    /* Ensure hero title is fully visible */
    .hero-title {
        margin-top: 0 !important;
        font-size: 28px !important;
        line-height: 1.4 !important;
    }
    
    /* Properly space hero text */
    .text-reveal {
        margin: 15px 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure hero buttons are visible */
    .hero-buttons {
        margin-top: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Space between buttons on mobile */
    .hero-buttons .btn:not(:last-child) {
        margin-bottom: 15px !important;
    }
    
    /* Fix buttons to be fully visible */
    .btn {
        display: inline-block !important;
        padding: 12px 25px !important;
        min-width: 150px !important;
        text-align: center !important;
    }
    
    /* Fix particles background */
    #particles-js {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    #home.hero {
        padding-top: 80px !important;
        margin-top: 50px !important;
    }
    
    .hero-title {
        font-size: 24px !important;
    }
    
    .text-reveal {
        font-size: 14px !important;
    }
    
    .btn {
        padding: 10px 20px !important;
        min-width: 140px !important;
    }
}
