@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Poppins:wght@400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body{
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}
body{
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    font-family: "Poppins", sans-serif;
    overflow: hidden;
}

.brand{
    position: absolute;
    top: 20px;
    left: 40px;
    right: 90px;
    z-index: 10;
    color: #fff;
    pointer-events: none;
}
.brand .logo{
    display: inline-block;
    background: #fff;
    padding: 3px 14px 5px;
    border-radius: 10px;
    text-shadow: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    line-height: 1;
}
.slide-info{
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.logo{
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.logo .robo{
    color: #1F4EBD;
}
.logo .komputer{
    color: #F36F21;
}
.app-title{
    font-size: clamp(14px, 1.8vw, 20px);
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.2;
}
.app-desc{
    font-size: clamp(11px, 1.2vw, 13.5px);
    font-weight: 400;
    opacity: 0.85;
    margin-top: 4px;
    max-width: 400px;
    line-height: 1.45;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
/* Tombol lihat lebih banyak — hidden di desktop, diatur JS di mobile */
.desc-toggle{
    display: none;
    pointer-events: auto;
    background: none;
    border: none;
    padding: 2px 0 0;
    margin-top: 2px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.slide-info.expanded .app-desc{
    opacity: 1;
}

main{
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.swiper{
    width: 100%;
    height: 100%;
}
/* Transisi antar slide lebih smooth (buttery) */
.swiper-wrapper{
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
}
.swiper-slide{
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.swiper-slide{
    width: 100%;
    height: 100%;
}

.content{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.content .image{
    height: 60%;
    width: min(60%, 700px);
    max-width: 90vw;
    margin-top: clamp(40px, 10vh, 100px);
    z-index: 1;
    position: relative;
}

/* Tombol buku + video — rel vertikal di kanan dekat nomer slide */
.media-btns{
    position: absolute;
    top: 50%;
    right: 110px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20;
}
.media-btn{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E2725B;
    background: rgba(0,0,0,0.35);
    color: #E2725B;
    font-size: 16px;
    display: grid;
    place-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.25s ease, background 0.25s ease;
}
.media-btn:hover{
    transform: scale(1.12);
    background: rgba(0,0,0,0.55);
}

.content .image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    cursor: zoom-in;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

/* Hover enlarge — layar besar / laptop (mouse) */
@media (hover: hover) and (pointer: fine){
    .content .image:hover img{
        transform: scale(1.5);
        filter: drop-shadow(0 20px 30px rgba(0,0,0,0.45));
    }
}

/* Tap / touch enlarge — Tab / layar kecil */
.content .image img.zoomed{
    transform: scale(2.3);
    cursor: zoom-out;
    z-index: 20;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.45));
}

@media (max-width: 768px){
    .content .image img.zoomed{
        transform: scale(2);
    }
}

.yellow,.blue,.red,.green,.purple{
    position: absolute;
    top: 0;
    height: 100%;
    bottom: 0;
    width: 40%;
    background: #E2725B;
    z-index: -1;
}

.blue{
    background: #103A7E;
}

.blue-c{
    color: #103A7E !important;
    border-color: #103A7E !important;
}

.red{
    background: #972826;
}

.red-c{
    color: #d23f3d !important;
    border-color: #ca3634 !important;
}

.green{
    background: #2A9D8F;
}

.green-c{
    color: #2A9D8F !important;
    border-color: #2A9D8F !important;
}

.purple{
    background: #6D5CA5;
}

.purple-c{
    color: #A78BFA !important;
    border-color: #A78BFA !important;
}


.black{
    position: absolute;
    top: 0;
    height: 100%;
    bottom: 0;
    right: 0;
    width: 60%;
    background: #1A1A15;
    z-index: -1;
}

.title{
    position: absolute;
    color: #fff;
    padding-bottom: clamp(80px, 18vh, 170px);
    text-shadow: 2px 3px 12px rgba(0,0,0,0.65);
    width: 100%;
    text-align: center;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.big{
    font-weight: bold;
    font-size: clamp(72px, 20vw, 280px);
    line-height: 1;
    z-index: 5;
    position: relative;
    white-space: nowrap;
    opacity: 0.5;
    animation: buildFade 3.5s ease-in-out infinite alternate;
}

@keyframes buildFade{
    from{ opacity: 0.5; }
    to{ opacity: 0; }
}

.big span{
    display: inline-block;
}

.small{
    position: absolute;
    font-size: clamp(28px, 4vw, 50px);
    font-family: "Kaushan Script";
    top: 0;
    left: clamp(12%, 18%, 22%);
}

.brand .logo{
    font-size: clamp(16px, 2.2vw, 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.social{
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 10;
    font-size: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.social .bar{
    width: 1px;
    height: clamp(80px, 32vh, 350px);
    background: #fff;
    margin-bottom: clamp(16px, 5vh, 60px);
}

.social a{
    color: #fff;
    transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}
.social .lynk-icon{
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    display: block;
}

.specs{
    position: absolute;
    bottom: clamp(16px, 4vh, 40px);
    left: 40%;
    right: 12px;
    color: #E2725B;
    font-size: clamp(12px, 1.4vw, 16px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    z-index: 2;
}


.specs span{
    margin-left: 0;
    white-space: nowrap;
}


.specs button,
.specs .wa-btn{
    margin-left: 0;
    padding: 8px clamp(20px, 3vw, 40px);
    border-radius: 100px;
    border: 1px solid #E2725B;
    background: none;
    font-family: "Poppins", sans-serif;
    font-size: inherit;
    color: #E2725B;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

/* Visitor counter — sama seperti project robo */
.visitor-line{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
}
.visitor-line i{
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}
.visitor-line .visitor-count{
    height: 18px;
    display: inline-block;
}
.nav-visitor{
    margin-top: 6px;
}


.menu{
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 60;
    font-size: 18px;
    color: #fff;
    height: 40px;
    width: 40px;
    display: grid;
    place-content: center;
    border-radius: 50%;
    border: 1px solid #fff;
    cursor: pointer;
    user-select: none;
}
.menu:hover{
    background: rgba(255,255,255,0.15);
}

/* Dropdown hamburger — general, tampil di semua slide */
.nav-dropdown{
    position: absolute;
    top: 68px;
    right: 40px;
    z-index: 60;
    min-width: 230px;
    background: rgba(20,20,18,0.96);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-dropdown.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-dropdown a{
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nav-dropdown a:hover{
    background: rgba(255,255,255,0.12);
}
.nav-dropdown a.cta{
    background: #F36F21;
    font-weight: 600;
    justify-content: center;
    margin-top: 4px;
}
.nav-dropdown a.cta:hover{
    background: #ff7f36;
}
.nav-dropdown .has-sub .sub{
    display: none;
    flex-direction: column;
    padding-left: 8px;
}
.nav-dropdown .has-sub.expanded .sub{
    display: flex;
}
.nav-dropdown .has-sub .sub a{
    font-size: 13px;
    opacity: 0.9;
}
.nav-dropdown .chev{
    font-size: 11px;
    transition: transform 0.25s ease;
}
.nav-dropdown .has-sub.expanded .chev{
    transform: rotate(180deg);
}

.swiper-pagination{
    position: absolute;
    right: 40px !important;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.swiper-pagination-bullet{
    width: 50px;
    height: 50px;
    background: none;
    color: #fff;
    font-family: "Poppins", sans-serif;
    opacity: 0.5;
    display: grid !important;
    place-content: center;
}


.swiper-pagination-bullet-active{
    opacity: 1;
    font-size: 20px;
    border: 1px solid #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
    .content .image{
        width: 72%;
        height: 55%;
    }
    .specs{
        left: 32%;
        gap: 10px 20px;
    }
    .brand{
        left: 24px;
    }
    .app-desc{
        max-width: 320px;
    }
    .social{
        left: 24px;
    }
    .menu{
        right: 24px;
    }
    .nav-dropdown{
        right: 24px;
    }
    .swiper-pagination{
        right: 24px !important;
    }
    .media-btns{
        right: 92px;
    }
}

@media (max-width: 768px){
    .yellow,.blue,.red,.green,.purple{
        width: 100%;
        height: 42%;
        top: 0;
        bottom: auto;
    }
    .black{
        width: 100%;
        height: 58%;
        top: auto;
        bottom: 0;
        right: 0;
    }
    .content{
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 12vh;
    }
    .title{
        padding-bottom: 0;
        top: 18vh;
        left: 16px;
        right: 16px;
        width: auto;
        text-align: left;
    }
    .small{
        left: 0;
        right: auto;
        transform: none;
        top: -20px;
    }
    .big{
        text-align: left;
    }
    .content .image{
        width: min(86vw, 440px);
        height: 38vh;
        margin-top: 18vh;
    }
    .specs{
        left: 12px;
        right: 70px;
        bottom: 18px;
        justify-content: center;
        text-align: center;
        font-size: 13px;
    }
    .social{
        left: 16px;
        bottom: 16px;
        font-size: 16px;
        gap: 10px;
    }
    .social .bar{
        height: 60px;
        margin-bottom: 12px;
    }
    .brand{
        left: 16px;
        top: 14px;
        right: 60px;
    }
    .app-desc{
        max-width: 62vw;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
    }
    .slide-info.expanded .app-desc{
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: none;
        overflow: visible;
        max-width: 68vw;
        background: rgba(0,0,0,0.6);
        padding: 6px 8px;
        border-radius: 8px;
    }
    .menu{
        right: 16px;
        top: 14px;
    }
    .swiper-pagination{
        right: 12px !important;
        height: 160px;
    }
    .swiper-pagination-bullet{
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    .swiper-pagination-bullet-active{
        font-size: 16px;
    }
    .media-btns{
        right: 76px;
        gap: 10px;
    }
    .media-btn{
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

@media (max-width: 480px){
    .big{
        font-size: clamp(56px, 18vw, 84px);
    }
    .title{
        top: 20vh;
    }
    .small{
        left: 0;
        top: -18px;
        font-size: 24px;
    }
    .content .image{
        height: 32vh;
        margin-top: 16vh;
    }
    .specs{
        right: 58px;
        gap: 8px 12px;
        font-size: 12px;
        bottom: 52px;
    }
    .specs button,
    .specs .wa-btn{
        padding: 7px 20px;
        font-size: 12px;
    }
    .social{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        left: 16px;
        right: 60px;
        bottom: 10px;
        top: auto;
        font-size: 16px;
        gap: 16px;
    }
    .social .bar{
        display: none;
    }
    .social a{
        transform: none;
    }
    .social .visitor-line{
        margin-top: 0;
        margin-left: auto;
        padding: 2px 6px;
    }
    .social .visitor-line .visitor-count{
        height: 14px;
    }
    .social .lynk-icon{
        width: 16px;
        height: 16px;
    }
    .media-btns{
        top: calc(50% + 96px);
        right: 15px;
        transform: none;
        gap: 10px;
    }
    .media-btn{
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .brand .logo{
        font-size: 14px;
        letter-spacing: 2px;
    }
    .app-title{
        font-size: 13px;
    }
    .app-desc{
        font-size: 11px;
        max-width: 70vw;
    }
    .slide-info.expanded .app-desc{
        max-width: 72vw;
    }
    .menu{
        right: 16px;
    }
    .nav-dropdown{
        right: 16px;
        left: 16px;
        min-width: 0;
    }
}

.specs button,
.specs .wa-btn{
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* ===== Modal Tentang Kami ===== */
.modal-overlay{
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10,10,12,0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open{
    opacity: 1;
    pointer-events: auto;
}
.about-modal{
    position: relative;
    width: min(92vw, 560px);
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    background: linear-gradient(160deg, #23231e 0%, #1A1A15 55%, #1f2a4a 130%);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.55);
    padding: 28px 28px 24px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    transform: translateY(22px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.modal-overlay.open .about-modal{
    transform: translateY(0) scale(1);
}
.modal-close{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: grid;
    place-content: center;
}
.modal-close:hover{
    background: rgba(255,255,255,0.18);
}
.about-badge{
    display: inline-block;
    background: #fff;
    border-radius: 10px;
    padding: 3px 14px 5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.about-badge .robo{ color: #1F4EBD; }
.about-badge .komputer{ color: #F36F21; }
.about-modal h2{
    margin: 14px 0 10px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: 0.3px;
}
.about-modal p{
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.92;
    margin-bottom: 12px;
}
.about-modal .about-lead{
    border-left: 3px solid #F36F21;
    padding-left: 12px;
    font-weight: 500;
    opacity: 1;
}
.about-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}
.about-tags span{
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.07);
}
.about-cta{
    display: inline-block;
    background: #F36F21;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 100px;
}
.about-cta:hover{
    background: #ff7f36;
}

/* ===== Modal Video ===== */
.video-modal{
    position: relative;
    width: min(94vw, 720px);
    background: #0d0d10;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.55);
    padding: 20px 20px 16px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    transform: translateY(22px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.modal-overlay.open .video-modal{
    transform: translateY(0) scale(1);
}
.video-modal h3{
    margin: 0 44px 12px 0;
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 700;
}
.video-modal video{
    width: 100%;
    max-height: 70vh;
    max-height: 70dvh;
    border-radius: 10px;
    background: #000;
}
.video-error{
    margin-top: 10px;
    font-size: 13px;
    color: #ffb4b4;
}
@media (max-width: 480px){
    .about-modal{
        padding: 22px 18px 18px;
        border-radius: 16px;
    }
    .about-modal p{
        font-size: 13px;
    }
}