/* ============================================================
   SIMETRIK — Super Responsive CSS
   Covers: 320px → 1920px+
   Breakpoints:
     xs  : < 480px   (small phones)
     sm  : 480–639px (phones)
     md  : 640–767px (large phones / small tablets)
     lg  : 768–1023px (tablets)
     xl  : 1024–1279px (small laptops)
     2xl : 1280px+ (desktops)
   ============================================================ */

/* =========================
   BASE RESPONSIVE RESETS
   ========================= */
*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Webview & In-App Browser Global Resets */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    -webkit-overflow-scrolling: touch !important;
    -webkit-text-size-adjust: 100%;
}

/* ===========================
   NAVBAR RESPONSIVE FIXES
   =========================== */

/* Ensure nav stays within viewport */
header#main-header {
    width: 100% !important;
    max-width: 100% !important;
    pointer-events: auto !important;
    left: 0 !important;
    top: 0 !important;
    box-sizing: border-box !important;
}

header#main-header * {
    pointer-events: auto;
}

header#main-header > div {
    width: 100% !important;
    max-width: 80rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

/* Touch-optimized Hamburger Button */
#nav-mobile-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.05) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    cursor: pointer !important;
}

#nav-mobile-btn svg {
    pointer-events: none !important;
}

/* Mobile Menu Drawer Z-index & Backdrop */
#mobileMenuContainer {
    position: relative !important;
    z-index: 1000000 !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15) !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

#mobileMenuBackdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999998 !important;
    background-color: rgba(255, 255, 255, 0.70) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    pointer-events: auto !important;
}

@media (max-width: 767px) {
    header nav {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ===========================
   HERO SECTION RESPONSIVE
   =========================== */

@media (max-width: 1023px) {
    .hero #beranda > .container {
        flex-direction: column !important;
        padding-top: 6rem !important;
    }
    .hero #beranda > .container > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }
    .hero #beranda > .container > div:last-child {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 2rem !important;
    }
    .hero #beranda > .container > div:last-child > div {
        position: relative !important;
        left: auto !important;
        right: auto !important;
    }
    .hero #beranda > .container > div:last-child img {
        margin-top: 1rem !important;
    }
}

@media (max-width: 639px) {
    .hero #beranda > .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 5rem !important;
    }
    .hero h1.top {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    .hero h5 {
        font-size: 0.75rem !important;
    }
    .hero p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1.top {
        font-size: 1.75rem !important;
    }
    .hero #beranda > .container > .z-30 .flex-col.sm\:flex-row,
    .hero #beranda > .container > .z-30 > .flex.flex-col {
        width: 100% !important;
    }
    .hero #beranda > .container > .z-30 .flex-col.sm\:flex-row a,
    .hero #beranda > .container > .z-30 > a {
        width: 100% !important;
        text-align: center !important;
        font-size: 0.85rem !important;
        padding: 0.7rem 1rem !important;
    }
}

/* ===========================
   FEATURES SECTION RESPONSIVE
   =========================== */

#fitur .mx-auto.grid.lg\:grid-cols-2 {
    gap: 2rem !important;
}

@media (max-width: 1023px) {
    #fitur .mx-auto.grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    #fitur .mx-auto.grid.lg\:grid-cols-2 img {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 639px) {
    #fitur {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    #fitur .text-4xl {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    #fitur dl .font-semibold {
        font-size: 0.85rem !important;
    }
}

/* ===========================
   FASKES SECTION RESPONSIVE
   =========================== */

@media (max-width: 1023px) {
    #fitur ~ .overflow-hidden .mx-auto.grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    #fitur ~ .overflow-hidden .mx-auto.grid.lg\:grid-cols-2 > img {
        max-width: 100% !important;
        width: 100% !important;
        order: -1;
    }
}

@media (max-width: 639px) {
    #fitur ~ .overflow-hidden {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .text-4xl.font-extrabold,
    .sm\:text-5xl {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
}

/* ===========================
   CTA / SUPPORT SECTION
   =========================== */

.bg-indigo-800 .flex .mx-auto.grid.lg\:grid-cols-2 {
    align-items: center;
}

@media (max-width: 1023px) {
    .bg-indigo-800 .flex .mx-auto.grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    .bg-indigo-800 .flex .mx-auto.grid.lg\:grid-cols-2 > img {
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    .bg-indigo-800 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .bg-indigo-800 .text-3xl {
        font-size: 1.5rem !important;
    }
    .bg-indigo-800 a.flex {
        font-size: 0.8rem !important;
        padding: 0.75rem 1rem !important;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        word-break: break-word;
    }
    .bg-indigo-800 a.flex img {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .bg-indigo-800 .text-3xl {
        font-size: 1.25rem !important;
    }
    .bg-indigo-800 .text-lg {
        font-size: 0.9rem !important;
    }
}

/* ===========================
   PRICING SECTION RESPONSIVE
   =========================== */

/* ===========================
   PRICING SECTION RESPONSIVE — CENTER FIX (HP ONLY)
   Hanya CSS responsive, tanpa ubah alur/HTML/PHP
   Root cause: Tailwind mx-4 + max-w-md + display:block pada HP
   membuat card “mepet ke kanan”. Override → center dengan auto.
   =========================== */
#pricing {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Desktop ≥1024: biarkan layout asli (row-nowrap) */
@media (min-width: 1024px) {
    #pricing .max-w-full .relative.flex,
    #pricing ~ .max-w-full .relative.flex {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    #pricing .pricing-card,
    #pricing ~ .max-w-full .pricing-card,
    #pricing .max-w-full .relative.flex > div,
    #pricing ~ .max-w-full .relative.flex > div {
        flex: 1 1 0% !important;
        max-width: 400px !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Tablet ≤1023: tumpuk vertikal & CENTER */
@media (max-width: 1023px) {
    #pricing .max-w-full,
    #pricing ~ .max-w-full {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    #pricing .max-w-full .relative.flex,
    #pricing ~ .max-w-full .relative.flex {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        gap: 0 !important;
    }
    #pricing .pricing-card,
    #pricing ~ .max-w-full .pricing-card,
    #pricing .max-w-full .relative.flex > div,
    #pricing ~ .max-w-full .relative.flex > div,
    #pricing .max-w-full .relative.flex > div.pricing-card,
    #pricing ~ .max-w-full .relative.flex > div.pricing-card {
        width: 100% !important;
        max-width: 520px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        flex: 0 0 auto !important;
        float: none !important;
        box-sizing: border-box !important;
    }
}

/* HP ≤639: gutter simetris 12px + benar-benar tengah */
@media (max-width: 639px) {
    .relative.px-8.py-10.bg-white.border-t {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    #pricing .text-xl.font-black {
        font-size: 1.1rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    #pricing .pricing-card,
    #pricing ~ .max-w-full .pricing-card,
    #pricing .max-w-full .relative.flex > div,
    #pricing ~ .max-w-full .relative.flex > div,
    #pricing .max-w-full .relative.flex > div.pricing-card,
    #pricing ~ .max-w-full .relative.flex > div.pricing-card {
        width: calc(100% - 24px) !important;
        max-width: 400px !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}

/* ===========================
   MITRA / PARTNERS SECTION
   =========================== */

.loop-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.partner-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    width: 220px !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
    flex: 0 0 auto !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.partner-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.12) !important;
}

.partner-card img {
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    margin-bottom: 12px !important;
    -webkit-filter: grayscale(100%) !important;
    filter: grayscale(100%) !important;
    opacity: 0.75 !important;
    -webkit-transition: -webkit-filter 0.3s ease, filter 0.3s ease, opacity 0.3s ease !important;
    transition: -webkit-filter 0.3s ease, filter 0.3s ease, opacity 0.3s ease !important;
}

.partner-card:hover img,
.partner-card:active img,
.partner-card:focus img {
    -webkit-filter: grayscale(0%) !important;
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* ===========================
   TESTIMONIALS & FORM BOUNDARIES
   =========================== */

#testimonials {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    clear: both !important;
    overflow: hidden !important;
    padding-bottom: 3rem !important;
}

#default-carousel {
    position: relative !important;
    width: 100% !important;
    max-width: 750px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

#default-carousel [data-carousel-item] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    margin-right: 0 !important;
}

#default-carousel [data-carousel-item].hidden {
    display: none !important;
}

#default-carousel [data-carousel-item].block {
    display: block !important;
}

#testimonials .card {
    padding: 1.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 700px !important;
}

@media (max-width: 767px) {
    #testimonials {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    #testimonials .w-5\/6 {
        width: 100% !important;
    }
    #testimonials .text-4xl,
    #testimonials .sm\:text-5xl,
    #testimonials .md\:text-6xl {
        font-size: 1.5rem !important;
    }
    #testimonials .card-text {
        font-size: 0.85rem !important;
    }
    /* Make carousel controls more touch-friendly */
    #testimonials button[data-carousel-prev] span,
    #testimonials button[data-carousel-next] span {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    #testimonials .card {
        padding: 1rem !important;
    }
    #testimonials .card h4 {
        font-size: 1rem !important;
    }
}

/* ===========================
   TESTIMONIAL FORM RESPONSIVE
   =========================== */

.internship-form-section {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    position: relative !important;
    margin-top: 3rem !important;
    padding-top: 2rem !important;
}

.internship-form {
    margin: 2rem auto 4rem auto !important;
    max-width: 800px !important;
    width: 100% !important;
    position: relative !important;
    clear: both !important;
}

.col-lg-5 {
    width: 100% !important;
    padding: 0 1rem !important;
    margin-bottom: 2rem !important;
}

@media (max-width: 767px) {
    .internship-form {
        padding: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .internship-form h2 {
        font-size: 1.1rem !important;
    }
    .form-control {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    .btn-submit {
        width: 100% !important;
        padding: 12px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .internship-form {
        padding: 16px !important;
        border-radius: 12px !important;
    }
    .formgroup {
        margin-bottom: 14px !important;
    }
    label {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }
}

/* ===========================
   FOOTER RESPONSIVE
   =========================== */

footer.border-t {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

footer .container.flex {
    flex-wrap: wrap !important;
}

footer .container.flex > div:first-child {
    width: 100% !important;
    margin-bottom: 2rem;
}

footer .block.w-full.pl-10 {
    flex-wrap: wrap !important;
    gap: 1.5rem;
}

footer .block.w-full.pl-10 > ul {
    flex: 1 1 250px !important;
    min-width: 200px !important;
}

/* Google Maps responsive */
footer iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: 200px !important;
}

footer div[style*="position: relative"][style*="width: 300px"] {
    width: 100% !important;
    max-width: 100% !important;
}

/* Social links responsive */
.social-icons {
    flex-wrap: wrap !important;
}

.social-icons a {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap;
}

/* Social Media Icons Default Gray & Hover Colors */
.social-icons a i {
    color: #9ca3af !important;
    transition: color 0.25s ease !important;
}

.social-icons a span {
    color: #6b7280 !important;
    transition: color 0.25s ease !important;
}

.social-icons a:hover i.fa-whatsapp {
    color: #10b981 !important;
}

.social-icons a:hover i.fa-tiktok {
    color: #000000 !important;
}

.social-icons a:hover i.fa-instagram {
    color: #e1306c !important;
}

.social-icons a:hover i.fa-youtube {
    color: #ef4444 !important;
}

.social-icons a:hover span {
    color: #111827 !important;
}

@media (max-width: 1023px) {
    footer .container.flex {
        flex-direction: column !important;
    }
    footer .container.flex > div:first-child {
        text-align: center !important;
        padding-left: 0 !important;
    }
    footer .container.flex > div:first-child a {
        justify-content: center !important;
    }
    footer .block.w-full.pl-10 {
        padding-left: 0 !important;
        flex-direction: column !important;
    }
    footer .block.w-full.pl-10 > ul {
        width: 100% !important;
    }
}

@media (max-width: 767px) {
    footer {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }
    footer .social-icons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    footer .social-icons a {
        padding-left: 0 !important;
    }
    footer iframe {
        height: 180px !important;
    }
    footer .footer-map {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    footer .text-base {
        font-size: 0.85rem !important;
    }
    footer iframe {
        height: 150px !important;
    }
    footer .footer-map {
        height: 150px !important;
    }
    footer .pt-4.mt-10 {
        font-size: 0.8rem !important;
        margin-top: 1.5rem !important;
    }
    footer .pt-2.mt-2 {
        font-size: 0.75rem !important;
    }
}

/* ===========================
   MODAL RESPONSIVE
   =========================== */

@media (max-width: 767px) {
    #detailModal > div#modalCard {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 90vh !important;
        height: 90vh !important;
        border-radius: 1rem 1rem 0 0 !important;
        margin-top: auto !important;
    }
    #detailModal {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    #detailModal .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    #detailModal h3.text-xl {
        font-size: 1rem !important;
    }
    #detailModal .grid.sm\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    #detailModal .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    #detailModal > div#modalCard {
        max-height: 95vh !important;
        height: 95vh !important;
    }
    #detailModal .p-6 {
        padding: 1rem !important;
    }
    #detailModal .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   GENERAL TYPOGRAPHY RESPONSIVE
   =========================== */

@media (max-width: 639px) {
    .text-6xl, .xl\:text-6xl, .lg\:text-6xl, .md\:text-6xl {
        font-size: 1.75rem !important;
    }
    .text-5xl, .xl\:text-5xl, .sm\:text-5xl {
        font-size: 1.5rem !important;
    }
    .text-4xl {
        font-size: 1.35rem !important;
    }
    .text-3xl {
        font-size: 1.25rem !important;
    }
    .text-2xl {
        font-size: 1.1rem !important;
    }
    .text-xl {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .text-6xl, .xl\:text-6xl, .lg\:text-6xl, .md\:text-6xl {
        font-size: 1.5rem !important;
    }
    .text-5xl, .xl\:text-5xl, .sm\:text-5xl {
        font-size: 1.3rem !important;
    }
    .text-4xl {
        font-size: 1.2rem !important;
    }
}

/* ===========================
   TOUCH TARGET IMPROVEMENTS
   =========================== */

@media (max-width: 1023px) {
    /* Ensure minimum 44px touch targets on mobile */
    a, button, [role="button"], input[type="submit"] {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Exception for inline text links */
    p a, li a, span a, .card-text a {
        min-height: auto;
        display: inline;
    }
    
    /* Nav links override */
    header nav ul a {
        min-height: auto;
    }
}

/* ===========================
   SECTION PADDING RESPONSIVE
   =========================== */

@media (max-width: 639px) {
    .py-10, .sm\:py-25, .sm\:py-32 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .xl\:py-40, .lg\:py-24, .md\:py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .px-8, .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .py-10 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ===========================
   WHATSAPP CTA BUTTON FIXES
   =========================== */

a[href*="wa.me"] {
    word-break: break-word !important;
    text-align: center !important;
}

@media (max-width: 480px) {
    a[href*="wa.me"] {
        font-size: 0.8rem !important;
        padding: 0.7rem 1rem !important;
    }
    a[href*="wa.me"] img {
        height: 18px !important;
        margin-right: 6px !important;
    }
}

/* ===========================
   SCROLL INDICATOR / CAROUSEL DOTS
   =========================== */

@media (max-width: 639px) {
    .bottom-5.left-1\/2 {
        bottom: 0.5rem !important;
    }
}

/* ===========================
   FIX: PREVENT HORIZONTAL OVERFLOW
   FROM DESKTOPONE.CSS ELEMENTS
   =========================== */

@media (max-width: 1050px) {
    .paket-harga {
        padding: 20px 16px !important;
    }
    .swiper-slider img,
    .swiper-sliderr img {
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    .event-section {
        height: auto !important;
        margin-top: 0 !important;
    }
    .footer__row {
        margin-left: 0 !important;
    }
    .footer__column--legal {
        margin-right: 0 !important;
    }
    .footer__column--contact {
        margin-right: 0 !important;
    }
    .column-daftar__button--demo1 {
        margin-left: 0 !important;
    }
    .row__subrow {
        margin-right: 0 !important;
    }
    .partner-info__divider {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 550px) {
    .stackdaftar,
    .section-1,
    .section__image,
    .event-section__image--fifth,
    .event-section__image--sixth,
    .footer,
    .rowdescription,
    .stacktontonvide,
    .stackvidimgtwo,
    .video-image__img,
    .row,
    .section,
    .images__stack,
    .stack__image--secondary,
    .support-section__images-stack,
    .support-section__image--cs,
    .section__slider-stack,
    .row_eight {
        height: auto !important;
        min-height: auto !important;
    }
    .column {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .section__content-1 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .section__contact {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ===========================
   EXTRA RESPONSIVE FIXES (ADDED)
   =========================== */

@media (max-width: 767px) {
    /* 4. Footer Fixes */
    footer .w-full.pl-12 { padding-left: 0 !important; }
    
    /* 11. Loop Track animation speed for mobile */
    .loop-track {
        animation: scrollLeft 20s linear infinite !important;
        -webkit-animation: scrollLeft 20s linear infinite !important;
        animation-play-state: running !important;
        gap: 16px !important;
    }
}

@media (max-width: 639px) {
    /* 2. Mitra Section Title */
    #mitra h3 { font-size: 1.5rem !important; }
    #mitra .text-xl { font-size: 0.95rem !important; }
    
    /* 3. Testimonials Section Header */
    #testimonials .max-w-2xl.pr-8 { padding-right: 0 !important; }
}

@media (max-width: 480px) {
    /* 1. Partner/Mitra Cards */
    .partner-card {
        width: 160px !important;
        min-height: 150px !important;
        padding: 14px !important;
    }
    .partner-card img {
        max-width: 70px !important;
        max-height: 70px !important;
    }
    .partner-card h3 {
        font-size: 12px !important;
    }
    
    /* 2. Mitra Section Title */
    #mitra h3 { font-size: 1.25rem !important; }
    
    /* 4. Footer Fixes */
    footer div[style*="max-width: 400px"] { max-width: 100% !important; }
    
    /* 5. Pricing Cards - centered, not flush right */
    #pricing .max-w-full .relative.flex > div,
    #pricing ~ .max-w-full .relative.flex > div,
    #pricing .max-w-full .relative.flex > div.pricing-card,
    #pricing ~ .max-w-full .relative.flex > div.pricing-card {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .block.max-w-sm.px-8 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 6. Support/CTA Banner Section */
    .bg-indigo-800 a.flex img { height: 20px !important; margin-right: 6px !important; }
    
    /* 9. Features Section Image overflow protection */
    #fitur img[alt="Product screenshot"] {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* 10. Faskes Section text */
    #fitur ~ .overflow-hidden .text-4xl.font-extrabold {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 380px) {
    /* 1. Partner/Mitra Cards */
    .partner-card {
        width: 140px !important;
        min-height: 130px !important;
        padding: 10px !important;
    }
    
    /* 7. Hero Section CTA Buttons */
    .hero .flex.flex-col a.zoom-link {
        font-size: 0.8rem !important;
        padding: 0.6rem 0.8rem !important;
    }
    
    /* 8. Modal for very small screens */
    #detailModal > div#modalCard {
        max-height: 98vh !important;
        height: 98vh !important;
        border-radius: 0 !important;
    }
}

/* 13. Add ultra-small screen (320px) breakpoint */
@media (max-width: 360px) {
    body {
        font-size: 14px !important;
    }
    header nav {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    header nav .text-lg {
        font-size: 1rem !important;
    }
    .hero h1.top {
        font-size: 1.5rem !important;
    }
    .hero p {
        font-size: 0.85rem !important;
    }
    #pricing .text-xl.font-black {
        font-size: 1rem !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    .partner-card {
        width: 120px !important;
        min-height: 110px !important;
        padding: 8px !important;
    }
    .partner-card img {
        max-width: 55px !important;
        max-height: 55px !important;
    }
    .partner-card h3 {
        font-size: 10px !important;
    }
    .loop-track {
        gap: 10px !important;
    }
    footer .social-icons a span {
        font-size: 0.75rem !important;
    }
}

/* ===========================
   ANIMATION PERFORMANCE ON MOBILE
   =========================== */

@media (max-width: 767px) {
    /* Reduce motion for performance on mobile */
    .zoom-link:hover {
        transform: scale(1.03) !important;
    }
    .internship-form:hover {
        transform: translateY(-2px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* Keep loop-track animating even with reduced motion preference */
    .loop-track {
        animation: scrollLeft 30s linear infinite !important;
        -webkit-animation: scrollLeft 30s linear infinite !important;
        animation-play-state: running !important;
    }
}

/* ===========================
   LANDSCAPE PHONE FIX
   =========================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero #beranda > .container {
        padding-top: 5rem !important;
    }
    #testimonials .overflow-hidden.relative {
        min-height: 180px !important;
    }
    #detailModal > div#modalCard {
        max-height: 95vh !important;
        height: 95vh !important;
    }
}

/* ===========================
   SAFE AREA INSET
   =========================== */

@supports (padding: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }
    header#main-header {
        padding-top: env(safe-area-inset-top) !important;
    }
    #detailModal {
        padding-top: env(safe-area-inset-top) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    header#main-header {
        position: static !important;
    }
    .loop-track {
        animation: none !important;
    }
    #detailModal {
        display: none !important;
    }
    .zoom-link:hover {
        transform: none !important;
    }
}
