﻿/* Primahome site styles */

html,
body,
button,
input,
textarea,
select {
    font-family: "Lexend", sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}

.scroll-ease {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease-in, transform 700ms ease-in;
    will-change: opacity, transform;
}

.scroll-ease.scroll-ease-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-ease {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

#timelineSection .timeline-line {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 900ms ease-in;
}

#timelineSection.timeline-visible .timeline-line {
    transform: scaleX(1);
}

#timelineSection .timeline-mobile-line {
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 900ms ease-in;
}

#timelineSection.timeline-visible .timeline-mobile-line {
    transform: scaleY(1);
}

#timelineSection .timeline-point {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35);
    transition: opacity 350ms ease-in, transform 450ms ease-in;
    transition-delay: var(--delay, 0ms);
}

#timelineSection.timeline-visible .timeline-point {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#timelineSection .timeline-mobile-point {
    opacity: 0;
    transform: scale(0.35);
    transition: opacity 350ms ease-in, transform 450ms ease-in;
    transition-delay: var(--delay, 0ms);
}

#timelineSection.timeline-visible .timeline-mobile-point {
    opacity: 1;
    transform: scale(1);
}

#timelineSection .timeline-content {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 550ms ease-in, translate 550ms ease-in;
    transition-delay: var(--delay, 0ms);
}

#timelineSection.timeline-visible .timeline-content {
    opacity: 1;
    translate: 0 0;
}

#heroImage {
    background-image:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #253340, #9a805e 48%, #e7e2d6);
    background-position: center center;
}

@media (max-width: 639px) {
    #heroImage {
        background-position: 72% center;
    }
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

#heroSection .hero-title {
    font-size: 32px;
    line-height: 1.14;
}

@media (max-width: 374px) {
    #heroSection .hero-title {
        font-size: 30px;
    }
}

@media (max-width: 340px) {
    #heroSection .hero-title {
        font-size: 27px;
    }
}

@media (min-width: 640px) {
    #heroSection .hero-title {
        font-size: 60px;
    }
}

@media (min-width: 1024px) {
    #heroSection .hero-title {
        font-size: 76px;
    }
}

.site-nav,
.mobile-menu-panel {
    transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
}

.site-nav.is-over-hero,
.mobile-menu-panel.is-over-hero {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.site-nav.is-solid,
.mobile-menu-panel.is-solid {
    background-color: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.site-nav-link,
.site-nav-menu-button,
.mobile-menu-link,
.site-nav-contact,
.mobile-menu-contact {
    transition: color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}

.site-nav.is-over-hero .site-nav-link,
.site-nav.is-over-hero .site-nav-menu-button,
.mobile-menu-panel.is-over-hero .mobile-menu-link {
    color: #ffffff;
}

.site-nav.is-over-hero .site-nav-link:hover,
.site-nav.is-over-hero .site-nav-menu-button:hover,
.mobile-menu-panel.is-over-hero .mobile-menu-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

.site-nav.is-solid .site-nav-link,
.site-nav.is-solid .site-nav-menu-button,
.mobile-menu-panel.is-solid .mobile-menu-link {
    color: #0f172a;
}

.site-nav.is-solid .site-nav-link:hover,
.site-nav.is-solid .site-nav-menu-button:hover,
.mobile-menu-panel.is-solid .mobile-menu-link:hover {
    color: #18a974;
}

.site-nav.is-over-hero .site-nav-contact,
.mobile-menu-panel.is-over-hero .mobile-menu-contact {
    background-color: #ffffff;
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.site-nav.is-over-hero .site-nav-contact:hover,
.mobile-menu-panel.is-over-hero .mobile-menu-contact:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.site-nav.is-solid .site-nav-contact,
.mobile-menu-panel.is-solid .mobile-menu-contact {
    background-color: #91e900;
    color: #000000;
    box-shadow: none;
}

.site-nav.is-solid .site-nav-contact:hover,
.mobile-menu-panel.is-solid .mobile-menu-contact:hover {
    background-color: #7fd900;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid;
    border-radius: 9999px;
    padding: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

.language-option {
    min-width: 34px;
    border-radius: 9999px;
    padding: 7px 9px;
    transition: background-color 250ms ease, color 250ms ease;
}

.site-nav.is-over-hero .language-toggle,
.mobile-menu-panel.is-over-hero .language-toggle {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.site-nav.is-solid .language-toggle,
.mobile-menu-panel.is-solid .language-toggle {
    background-color: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: #334155;
}

.site-nav.is-over-hero .language-option.is-active,
.mobile-menu-panel.is-over-hero .language-option.is-active {
    background-color: #ffffff;
    color: #334155;
}

.site-nav.is-solid .language-option.is-active,
.mobile-menu-panel.is-solid .language-option.is-active {
    background-color: #91e900;
    color: #000000;
}

@keyframes logoMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-marquee {
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.logo-marquee-track {
    animation: logoMarquee 34s linear infinite;
    width: max-content;
}

.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

.map-pin::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 9999px;
    border: 1px solid rgba(145, 233, 0, 0.5);
    animation: mapPulse 1800ms ease-out infinite;
}

@keyframes mapPulse {
    from {
        opacity: 0.8;
        transform: scale(0.55);
    }

    to {
        opacity: 0;
        transform: scale(1.6);
    }
}

#serviceSection .service-card-track {
    scrollbar-width: none;
    touch-action: pan-y;
    user-select: none;
}

#serviceSection .service-card-track::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    #serviceSection .card:hover {
        box-shadow: 0 18px 34px rgba(17, 24, 39, 0.14);
    }
}

@media (max-width: 639px) {
    #descriptionText {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        line-clamp: 4;
        -webkit-line-clamp: 4;
    }
}

#whyChooseSection {
    /* UBAH KECEPATAN GARIS HIJAU DI SINI: angka lebih kecil = lebih cepat. */
    --why-flow-speed: 1.6s;
}

#whyChooseSection .why-network-wrap {
    position: relative;
    width: min(1400px, 100%);
    height: 620px;
    margin: 0 auto;
}

#whyChooseSection .why-connection-svg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#whyChooseSection .why-base-line,
#whyChooseSection .why-flow-line {
    fill: none;
    stroke-linecap: round;
}

#whyChooseSection .why-base-line {
    stroke: #dddddd;
    stroke-width: 3;
}

#whyChooseSection .why-flow-line {
    stroke: #aee82e;
    stroke-width: 4;
    stroke-dasharray: 105 900;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 8px rgba(174, 232, 46, 0.55));
    opacity: 0;
}

#whyChooseSection.why-visible .why-flow-line {
    opacity: 1;
    animation: whyFlowOutward var(--why-flow-speed) linear infinite;
}

#whyChooseSection .why-delay-1 {
    animation-delay: 0s;
}

#whyChooseSection .why-delay-2 {
    animation-delay: 0.45s;
}

#whyChooseSection .why-delay-3 {
    animation-delay: 0.9s;
}

@keyframes whyFlowOutward {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -1005;
    }
}

#whyChooseSection .why-value-card {
    position: absolute;
    z-index: 2;
    display: block;
    width: 360px;
    height: 82px;
    overflow: hidden;
    border-radius: 22px;
    padding: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

#whyChooseSection .why-value-card::before {
    content: "";
    display: none;
}

#whyChooseSection .why-card-mark {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 15px;
    font-weight: 600;
}

#whyChooseSection .why-card-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

#whyChooseSection .why-card-design {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

#whyChooseSection .why-card-design:not([src]) {
    display: none;
}

#whyChooseSection .why-card-copy h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

#whyChooseSection .why-card-copy p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    opacity: 0.9;
}

#whyChooseSection .why-left.why-top {
    left: 150px;
    top: 58px;
}

#whyChooseSection .why-left.why-middle {
    left: 0;
    top: 269px;
}

#whyChooseSection .why-left.why-bottom {
    left: 150px;
    bottom: 58px;
}

#whyChooseSection .why-right.why-top {
    right: 150px;
    top: 58px;
}

#whyChooseSection .why-right.why-middle {
    right: 0;
    top: 269px;
}

#whyChooseSection .why-right.why-bottom {
    right: 150px;
    bottom: 58px;
}

@media (min-width: 1024px) {
    #whyChooseSection .why-value-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 24px 46px rgba(17, 24, 39, 0.16);
    }
}

#whyChooseSection .why-center-area {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    width: 300px;
    height: 300px;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

#whyChooseSection .why-ring {
    position: absolute;
    border-radius: 9999px;
    background: rgba(174, 232, 46, 0.12);
    animation: whyCenterPulse 3.2s ease-in-out infinite;
}

#whyChooseSection .why-ring-1 {
    width: 160px;
    height: 160px;
    background: rgba(174, 232, 46, 0.26);
}

#whyChooseSection .why-ring-2 {
    width: 220px;
    height: 220px;
    animation-delay: 0.3s;
}

#whyChooseSection .why-ring-3 {
    width: 290px;
    height: 290px;
    background: rgba(174, 232, 46, 0.08);
    animation-delay: 0.6s;
}

@keyframes whyCenterPulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

#whyChooseSection .why-center-icon {
    position: relative;
    z-index: 4;
    display: flex;
    width: 124px;
    height: 124px;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
    border-radius: 9999px;
    background: #96ff65;
    box-shadow: 0 0 44px rgba(174, 232, 46, 0.45);
}

#whyChooseSection .why-center-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1023px) {
    #whyChooseSection .why-network-wrap {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 220px 0 20px;
    }

    #whyChooseSection .why-connection-svg {
        display: none;
    }

    #whyChooseSection .why-center-area {
        top: 0;
        width: 190px;
        height: 190px;
        transform: translateX(-50%);
    }

    #whyChooseSection .why-ring-1 {
        width: 104px;
        height: 104px;
    }

    #whyChooseSection .why-ring-2 {
        width: 145px;
        height: 145px;
    }

    #whyChooseSection .why-ring-3 {
        width: 188px;
        height: 188px;
    }

    #whyChooseSection .why-center-icon {
        width: 82px;
        height: 82px;
        padding: 19px;
        box-shadow: 0 0 30px rgba(174, 232, 46, 0.38);
    }

    #whyChooseSection .why-value-card,
    #whyChooseSection .why-left.why-top,
    #whyChooseSection .why-left.why-middle,
    #whyChooseSection .why-left.why-bottom,
    #whyChooseSection .why-right.why-top,
    #whyChooseSection .why-right.why-middle,
    #whyChooseSection .why-right.why-bottom {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}
.timeline-delay-150 {
    --delay: 150ms;
}

.timeline-delay-250 {
    --delay: 250ms;
}

.timeline-delay-260 {
    --delay: 260ms;
}

.timeline-delay-350 {
    --delay: 350ms;
}

.timeline-delay-370 {
    --delay: 370ms;
}

.timeline-delay-400 {
    --delay: 400ms;
}

.timeline-delay-480 {
    --delay: 480ms;
}

.timeline-delay-500 {
    --delay: 500ms;
}

.timeline-delay-550 {
    --delay: 550ms;
}

.timeline-delay-590 {
    --delay: 590ms;
}

.timeline-delay-650 {
    --delay: 650ms;
}

.timeline-delay-700 {
    --delay: 700ms;
}

.timeline-delay-800 {
    --delay: 800ms;
}

.timeline-delay-850 {
    --delay: 850ms;
}

.timeline-delay-950 {
    --delay: 950ms;
}
