/* Additional mobile-friendly styles for better responsiveness */

/* Improved mobile responsiveness */
@media (max-width: 992px) {
    .container {
        padding: 0 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid, .why-cards {
        gap: 20px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }
    
    section {
        padding: 60px 0 !important;
    }
    
    #hero {
        padding-top: 100px !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .features-grid, .why-cards {
        grid-template-columns: 1fr;
    }
    
    .why-card, .feature {
        padding: 20px;
        width: 100%;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-links-column {
        width: 100%;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .testimonial {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .quote {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .app-badges {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .app-badge {
        width: 80%;
        max-width: 200px;
    }
    
    .app-badge img {
        height: 40px;
        width: 100%;
        object-fit: contain;
    }
    
    .author-image {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-slide {
        padding: 0 5px;
    }
    
    .why-card .icon, .feature-icon, .step-icon {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .feature-icon, .step-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    header .container {
        padding: 12px 16px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero-image img {
        max-width: 70%; /* Ukuran gambar dikurangi menjadi 70% dari ukuran sebelumnya */
        width: auto; /* Ubah menjadi auto agar tidak full width */
    }
}

/* Device-specific adjustments */
@media (max-width: 375px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .why-cards, .features-grid {
        width: 100%;
    }
    
    .why-card, .feature, .step {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* iPad adjustments */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .feature, .why-card, .step {
        height: 100%;
    }
    
    .features-grid, .why-cards {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    nav {
        padding: 60px 0;
    }
    
    nav ul li {
        margin: 10px 0 !important;
    }
}
