/* =====================================================================
   Java Software - Design System Landing Page
   Palet, tipografi, dan komponen untuk tampilan corporate IT modern.
   Dibangun di atas Bootstrap 5. Font: Poppins (heading) + Inter (body).
   ===================================================================== */

:root {
    /* ---- Palet utama ---- */
    --primary:    #0F172A;
    --secondary:  #2563EB;
    --accent:     #06B6D4;
    --success:    #22C55E;
    --warning:    #F59E0B;
    --danger:     #EF4444;
    --bg:         #F8FAFC;

    /* ---- Turunan ---- */
    --primary-700: #1E293B;
    --primary-500: #334155;
    --secondary-600: #1D4ED8;
    --secondary-soft: rgba(37, 99, 235, .08);
    --accent-soft:    rgba(6, 182, 212, .1);
    --ink:      #0F172A;
    --body:     #475569;
    --muted:    #64748B;
    --line:     #E2E8F0;
    --white:    #FFFFFF;

    /* ---- Tipografi ---- */
    --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

    /* ---- Radius (12-16px) ---- */
    --r-sm: 10px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 999px;

    /* ---- Shadow halus berlapis ---- */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .07);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, .1);
    --shadow-brand: 0 12px 28px rgba(37, 99, 235, .25);

    /* ---- Spacing section ---- */
    --section-y: 7rem;
}

/* =====================================================================
   DASAR
   ===================================================================== */
* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--body);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

/* Pengaman agar media apa pun tidak pernah melebihi lebar layar */
img, svg, video, iframe { max-width: 100%; }
img, svg, video { height: auto; }

/* Kata yang sangat panjang (URL, email) dipatahkan daripada merusak tata letak */
p, li, h1, h2, h3, h4, h5, h6, td, th, blockquote { overflow-wrap: break-word; }

a { color: var(--secondary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--secondary-600); }

::selection { background: var(--secondary); color: #fff; }

/* Scrollbar tipis agar terasa rapi di desktop */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* =====================================================================
   UTILITAS SECTION
   ===================================================================== */
.section { padding: var(--section-y) 0; position: relative; }
.section-bg { background: var(--bg); }
.section-dark { background: var(--primary); color: #CBD5E1; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--secondary-soft);
    color: var(--secondary);
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .45rem 1rem;
    border-radius: var(--r-pill);
    margin-bottom: 1.1rem;
}
.section-dark .eyebrow { background: rgba(6, 182, 212, .14); color: var(--accent); }

.section-head { max-width: 680px; margin: 0 auto 4rem; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

.text-gradient {
    background: linear-gradient(100deg, var(--secondary) 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =====================================================================
   TOMBOL
   ===================================================================== */
.btn {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .94rem;
    border-radius: var(--r-md);
    padding: .8rem 1.6rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-brand {
    background: var(--secondary);
    border: 1px solid var(--secondary);
    color: #fff;
    box-shadow: var(--shadow-brand);
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--secondary-600);
    border-color: var(--secondary-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .32);
}

.btn-accent {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #06283A;
}
.btn-accent:hover { background: #0891B2; border-color: #0891B2; color: #fff; }

.btn-outline-ink {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}
.btn-outline-ink:hover { border-color: var(--secondary); color: var(--secondary); background: #fff; }

.btn-ghost-light {
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar-site {
    background: transparent;
    padding: 1.1rem 0;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.navbar-site.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: var(--shadow-sm);
    padding: .65rem 0;
}

.navbar-site .navbar-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -.02em;
}
.navbar-site.scrolled .navbar-brand { color: var(--ink); }

.brand-mark {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    font-size: 1.15rem;
    box-shadow: var(--shadow-brand);
    flex: 0 0 auto;
}
/* Logo yang diunggah admin ditampilkan apa adanya:
   tanpa latar, tanpa sudut membulat, dan tidak dipotong. */
.brand-logo {
    height: 42px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    flex: 0 0 auto;
}
.navbar-site.scrolled .brand-logo { height: 38px; }
.footer-brand .brand-logo { height: 40px; max-width: 170px; }

@media (max-width: 575.98px) {
    .brand-logo { height: 36px; max-width: 140px; }
}

.navbar-site .nav-link {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .93rem;
    color: rgba(255, 255, 255, .82);
    padding: .5rem 1rem !important;
    border-radius: var(--r-sm);
    position: relative;
}
.navbar-site .nav-link:hover,
.navbar-site .nav-link.active { color: #fff; }
.navbar-site .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .18rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}
.navbar-site.scrolled .nav-link { color: var(--body); }
.navbar-site.scrolled .nav-link:hover,
.navbar-site.scrolled .nav-link.active { color: var(--secondary); }
.navbar-site.scrolled .nav-link.active::after { background: var(--secondary); }

.navbar-toggler { border: 0; color: #fff; font-size: 1.5rem; padding: .25rem .5rem; }
.navbar-site.scrolled .navbar-toggler { color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    .navbar-site .navbar-collapse {
        background: #fff;
        border-radius: var(--r-lg);
        box-shadow: var(--shadow-lg);
        padding: 1rem;
        margin-top: .75rem;
    }
    .navbar-site .nav-link,
    .navbar-site.scrolled .nav-link { color: var(--body); }
    .navbar-site .nav-link.active::after { display: none; }
    .navbar-site .nav-link.active { color: var(--secondary); background: var(--secondary-soft); }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    background:
        radial-gradient(1100px 620px at 80% 6%,  rgba(37, 99, 235, .30), transparent 62%),
        radial-gradient(900px 520px at 8% 96%,   rgba(6, 182, 212, .18), transparent 66%),
        linear-gradient(180deg, #070C1A 0%, #0A1120 42%, var(--primary) 100%);
    color: #CBD5E1;
    padding: 11rem 0 8rem;
    overflow: hidden;
    isolation: isolate;
}

/* Wadah seluruh lapisan latar. Tetap di bawah konten lewat isolation di .hero */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* --- Lapisan 1: aurora yang bergerak pelan --- */
.hero-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    will-change: transform;
    animation: heroAurora 20s ease-in-out infinite;
}
.hero-aurora.a1 {
    width: 680px; height: 680px; top: -270px; right: -170px;
    background: radial-gradient(circle, rgba(59, 130, 246, .55) 0%, rgba(37, 99, 235, .16) 46%, transparent 70%);
}
.hero-aurora.a2 {
    width: 560px; height: 560px; bottom: -250px; left: -190px;
    background: radial-gradient(circle, rgba(6, 182, 212, .40) 0%, transparent 70%);
    animation-delay: -7s;
}
.hero-aurora.a3 {
    width: 440px; height: 440px; top: 18%; left: 40%;
    background: radial-gradient(circle, rgba(124, 58, 237, .28) 0%, transparent 70%);
    animation-delay: -13s;
}
@keyframes heroAurora {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

/* --- Lapisan 2: grid halus di paruh atas --- */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 197, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 197, 255, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 62% at 50% 0%, #000 35%, transparent 100%);
}

/* --- Lapisan 3: lantai grid perspektif yang mengalir --- */
.hero-floor {
    position: absolute;
    left: -30%; right: -30%; bottom: 0;
    height: 48%;
    perspective: 320px;
    perspective-origin: 50% 0%;
}
.hero-floor span {
    position: absolute;
    inset: 0;
    transform: rotateX(74deg);
    transform-origin: 50% 100%;
    background-image:
        linear-gradient(rgba(56, 189, 248, .30) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, .20) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 82%);
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .35) 45%, transparent 82%);
    animation: heroFloor 6s linear infinite;
}
@keyframes heroFloor {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 88px, 0 0; }
}

/* --- Lapisan 4: jalur sirkuit dengan pulsa data --- */
.hero-circuit {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}
.hero-circuit .wire {
    stroke: rgba(148, 163, 184, .18);
    stroke-width: 1.5;
}
.hero-circuit .node {
    fill: #22D3EE;
    filter: drop-shadow(0 0 7px rgba(34, 211, 238, .85));
    animation: heroNode 3.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}
.hero-circuit .spark {
    stroke: #38BDF8;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 26 720;
    filter: drop-shadow(0 0 7px rgba(56, 189, 248, .9));
    animation: heroSpark 7s linear infinite;
    animation-delay: var(--d, 0s);
}
@keyframes heroSpark {
    from { stroke-dashoffset: 746; }
    to   { stroke-dashoffset: 0; }
}
@keyframes heroNode {
    0%, 100% { opacity: .35; }
    50%      { opacity: .95; }
}

/* --- Lapisan 5: partikel kode yang naik --- */
.hero-code { position: absolute; inset: 0; }
.hero-code span {
    position: absolute;
    left: var(--x);
    top: 100%;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .8rem;
    letter-spacing: .16em;
    color: rgba(56, 189, 248, .55);
    text-shadow: 0 0 14px rgba(56, 189, 248, .45);
    animation: heroRise var(--dur, 22s) linear infinite;
    animation-delay: var(--d, 0s);
}
@keyframes heroRise {
    0%   { transform: translateY(0) scale(.9);         opacity: 0; }
    12%  {                                             opacity: .75; }
    85%  {                                             opacity: .3; }
    100% { transform: translateY(-115vh) scale(1.05);  opacity: 0; }
}

/* --- Lapisan 6: garis pindai & vignette agar teks tetap terbaca --- */
.hero-scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
    opacity: .55;
}
.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 92% 72% at 50% 45%, transparent 38%, rgba(2, 6, 23, .58) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, .55) 0%, transparent 20%, transparent 70%, rgba(15, 23, 42, .9) 100%);
}

@media (max-width: 767.98px) {
    .hero-code, .hero-scan { display: none; }
    .hero-circuit { opacity: .5; }
    .hero-aurora { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-aurora,
    .hero-floor span,
    .hero-circuit .spark,
    .hero-circuit .node { animation: none; }
    .hero-code { display: none; }
}

.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero .lead {
    color: #94A3B8;
    font-size: 1.1rem;
    max-width: 34rem;
    margin-bottom: 2.2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #E2E8F0;
    font-size: .84rem;
    font-weight: 500;
    padding: .45rem 1rem .45rem .5rem;
    border-radius: var(--r-pill);
    margin-bottom: 1.6rem;
}
.hero-badge .dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .18);
    color: var(--success);
    display: grid; place-items: center;
    font-size: .6rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-meta .item { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: #94A3B8; }
.hero-meta .item i { color: var(--accent); font-size: 1.1rem; }

/* Kartu visual / mockup editor */
.hero-visual {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2, 6, 23, .6);
    border: 1px solid rgba(255, 255, 255, .12);
}
.hero-visual img { width: 100%; height: auto; display: block; }

.code-card {
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-xl);
    box-shadow: 0 30px 70px rgba(2, 6, 23, .55);
    backdrop-filter: blur(14px);
    overflow: hidden;
}
.code-card .bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .85rem 1.15rem;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.code-card .bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code-card .bar span:first-child { background: #EF4444; }
.code-card .bar span:nth-child(2) { background: #F59E0B; }
.code-card .bar span:nth-child(3) { background: #22C55E; }
.code-card .bar .file {
    margin-left: auto;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .75rem;
    color: #64748B;
}
.code-card pre {
    margin: 0;
    padding: 1.4rem 1.35rem;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .84rem;
    line-height: 2;
    color: #CBD5E1;
    white-space: pre-wrap;
}
.code-card .c-key { color: #C084FC; }
.code-card .c-fn  { color: #60A5FA; }
.code-card .c-str { color: #34D399; }
.code-card .c-com { color: #475569; font-style: italic; }

/* Kartu kecil mengambang di sisi hero */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, .96);
    border-radius: var(--r-lg);
    padding: .85rem 1.1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: .75rem;
    animation: mengambang 5s ease-in-out infinite;
}
.float-card .ic {
    width: 38px; height: 38px;
    border-radius: var(--r-sm);
    display: grid; place-items: center;
    font-size: 1rem;
    flex: 0 0 auto;
}
.float-card .t { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); line-height: 1.3; }
.float-card .s { font-size: .72rem; color: var(--muted); }
.float-card.pos-1 { bottom: 1.75rem; left: -1.5rem; }
.float-card.pos-2 { top: 1.75rem; right: -1.25rem; animation-delay: 1.6s; }

@keyframes mengambang {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}

/* =====================================================================
   STATISTIK
   ===================================================================== */
.stats-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    padding: 2.25rem 1.25rem;
    margin-top: -4.5rem;
    position: relative;
    z-index: 3;
}
.stat-item { text-align: center; padding: .75rem .5rem; }
.stat-item .num {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-item .lbl { color: var(--muted); font-size: .88rem; margin-top: .5rem; }

/* =====================================================================
   KARTU LAYANAN
   ===================================================================== */
.service-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-card::before {
    /* garis aksen tipis yang muncul saat hover */
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, .28);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 58px; height: 58px;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--secondary-soft), var(--accent-soft));
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    transform: scale(1.06);
}

.service-card h3 { margin-bottom: .6rem; font-size: 1.12rem; }
.service-card .desc { color: var(--muted); font-size: .94rem; margin-bottom: 1.25rem; }
.service-card .desc p:last-child { margin-bottom: 0; }

.service-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border-top: 1px solid var(--line);
    padding-top: 1.1rem;
    margin-top: auto;
}
.service-price { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.service-price small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); }
.service-link { font-size: .85rem; font-weight: 600; color: var(--secondary); }
.service-link i { transition: transform .2s ease; }
.service-card:hover .service-link i { transform: translateX(4px); }

/* =====================================================================
   PORTOFOLIO
   ===================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 3rem; }
.filter-btn {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .88rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--body);
    border-radius: var(--r-pill);
    padding: .55rem 1.35rem;
    cursor: pointer;
    transition: all .2s ease;
}
.filter-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.porto-item.hide { display: none; }

.porto-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.porto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.porto-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary-600));
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, .45);
    font-size: 2.4rem;
}
.porto-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.porto-card:hover .porto-thumb img { transform: scale(1.06); }

.porto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, .82), rgba(15, 23, 42, .05) 60%);
    opacity: 0;
    transition: opacity .3s ease;
    display: grid;
    place-items: center;
}
.porto-card:hover .porto-overlay { opacity: 1; }
.porto-zoom {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    color: var(--secondary);
    display: grid; place-items: center;
    font-size: 1rem;
    transform: scale(.7);
    transition: transform .3s ease;
}
.porto-card:hover .porto-zoom { transform: scale(1); }

.porto-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.porto-tag {
    align-self: flex-start;
    background: var(--secondary-soft);
    color: var(--secondary);
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .28rem .75rem;
    border-radius: var(--r-pill);
    margin-bottom: .85rem;
}
.porto-body h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.porto-body .desc { font-size: .92rem; color: var(--muted); flex: 1 1 auto; }
.porto-body .desc p:last-child { margin-bottom: 0; }
.porto-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--muted);
}
.porto-meta i { color: var(--secondary); margin-right: .35rem; }

/* =====================================================================
   TEKNOLOGI (Swiper)
   ===================================================================== */
.tech-slider { padding: .5rem 0 1rem; }
.tech-slider .swiper-slide { width: auto; }

/* Isi sedikit sehingga muat satu baris: tampilkan statis dan rata tengah */
.tech-slider.statis .swiper-wrapper,
.klien-slider.statis .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    transform: none !important;
}
.tech-slider.statis .swiper-slide,
.klien-slider.statis .swiper-slide {
    width: auto;
    margin: 0 !important;
    flex: 0 0 auto;
}
.tech-chip {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: .9rem 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .3); }
.tech-chip i { font-size: 1.6rem; }
.tech-chip span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap; }

/* =====================================================================
   GALERI KEGIATAN
   ===================================================================== */
/* Semua foto berukuran sama supaya susunannya rapi dan sejajar */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.galeri-item {
    position: relative;
    margin: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}
.galeri-item a { display: block; width: 100%; height: 100%; }
.galeri-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.galeri-item:hover img { transform: scale(1.06); }

.galeri-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 23, 42, .88) 0%, rgba(15, 23, 42, .1) 55%, transparent 100%);
    opacity: 0;
    transition: opacity .3s ease;
}
.galeri-item:hover .galeri-overlay,
.galeri-item a:focus-visible .galeri-overlay { opacity: 1; }

.galeri-zoom {
    align-self: flex-end;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--secondary);
    display: grid;
    place-items: center;
    font-size: .85rem;
    transform: scale(.7);
    transition: transform .3s ease;
}
.galeri-item:hover .galeri-zoom { transform: scale(1); }

.galeri-overlay figcaption { color: #fff; }
.galeri-overlay strong {
    display: block;
    font-family: var(--font-head);
    font-size: .95rem;
    line-height: 1.35;
    margin-bottom: .2rem;
}
.galeri-overlay small { color: #CBD5E1; font-size: .78rem; }
.galeri-overlay small i { color: var(--accent); margin-right: .3rem; }

@media (max-width: 991.98px) {
    .galeri-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    /* Di layar sentuh keterangan langsung terlihat, tidak menunggu hover */
    .galeri-overlay { opacity: 1; background: linear-gradient(to top, rgba(15, 23, 42, .85) 0%, transparent 60%); }
    .galeri-zoom { display: none; }
}

/* =====================================================================
   KLIEN KAMI
   ===================================================================== */
.section-klien { background: #fff; }

.klien-slider { padding: .5rem 0; }
.klien-slider .swiper-slide { width: auto; }

.klien-item {
    display: grid;
    place-items: center;
    min-width: 170px;
    height: 96px;
    padding: 1rem 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-xs);
    /* Logo dibuat abu-abu agar tampil setara, warna asli muncul saat disorot */
    filter: grayscale(1);
    opacity: .7;
    transition: filter .3s ease, opacity .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.klien-item:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, .3);
}
.klien-item img {
    max-width: 150px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.klien-teks {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.35;
    white-space: nowrap;
}
.klien-item:hover .klien-teks { color: var(--secondary); }

.klien-catatan {
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
    margin: 2.5rem auto 0;
    max-width: 44rem;
}
.klien-catatan i { color: rgba(37, 99, 235, .35); margin-right: .4rem; }

@media (max-width: 575.98px) {
    .klien-item { min-width: 140px; max-width: 78vw; height: 84px; padding: .85rem 1.25rem; }
    .klien-item img { max-width: 118px; max-height: 46px; }
    /* Nama klien yang panjang boleh turun baris agar kartunya tidak melebar keluar layar */
    .klien-teks { white-space: normal; font-size: .85rem; }
}

/* =====================================================================
   TENTANG
   ===================================================================== */
.about-media { position: relative; }
.about-img {
    width: 100%;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    display: block;
}
.about-placeholder {
    border-radius: var(--r-xl);
    background: linear-gradient(140deg, var(--primary) 0%, var(--secondary-600) 70%, var(--accent) 160%);
    color: #fff;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.about-placeholder i { font-size: 3.2rem; opacity: .9; margin-bottom: 1rem; display: block; }

.about-exp {
    position: absolute;
    right: -1rem;
    bottom: -1.5rem;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.15rem 1.5rem;
    text-align: center;
}
.about-exp .n {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--secondary);
}
.about-exp .l { font-size: .75rem; color: var(--muted); }

.rich-text { color: var(--body); }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.2rem; }
.rich-text a { text-decoration: underline; }

.check-list { list-style: none; padding: 0; margin: 1.75rem 0 0; }
.check-list li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    margin-bottom: .9rem;
    font-size: .96rem;
}
.check-list .ic {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .12);
    color: var(--success);
    display: grid; place-items: center;
    font-size: .68rem;
    flex: 0 0 auto;
    margin-top: .2rem;
}

/* =====================================================================
   CTA & KONTAK
   ===================================================================== */
.cta-band {
    position: relative;
    background: linear-gradient(120deg, var(--primary) 0%, var(--secondary-600) 100%);
    border-radius: var(--r-xl);
    padding: 4rem 3rem;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-band::after {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    right: -120px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, .4) 0%, transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: #CBD5E1; max-width: 42rem; margin: 0 auto 2rem; }

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(37, 99, 235, .25); }
.contact-icon {
    width: 54px; height: 54px;
    margin: 0 auto 1.1rem;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--secondary-soft), var(--accent-soft));
    color: var(--secondary);
    font-size: 1.25rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.contact-card p, .contact-card a { font-size: .93rem; color: var(--muted); margin: 0; }
.contact-card a:hover { color: var(--secondary); }

.map-frame {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    display: block;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--primary);
    color: #94A3B8;
    padding: 5rem 0 1.75rem;
    font-size: .94rem;
}
.site-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.35rem;
    font-family: var(--font-head);
}
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}
.footer-link { display: block; padding: .32rem 0; }
.footer-link i { font-size: .65rem; margin-right: .5rem; color: var(--accent); opacity: 0; transition: opacity .2s ease; }
.footer-link:hover i { opacity: 1; }

.footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .09);
    color: #CBD5E1;
    font-size: 1rem;
    transition: all .25s ease;
}
.footer-social a:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-contact li { display: flex; gap: .75rem; margin-bottom: .85rem; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: .35rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    font-size: .87rem;
    color: #64748B;
}

/* =====================================================================
   ELEMEN MENGAMBANG
   ===================================================================== */
.wa-float {
    position: fixed;
    right: 1.35rem; bottom: 1.35rem;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
    z-index: 1035;
    transition: transform .25s ease;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }

.to-top {
    position: fixed;
    right: 1.35rem; bottom: 5.5rem;
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: var(--primary);
    color: #fff;
    border: 0;
    display: grid; place-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    z-index: 1035;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--secondary); }

/* Bar progres baca tipis di atas halaman */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    z-index: 1050;
    transition: width .1s linear;
}

/* =====================================================================
   RESPONSIF
   ===================================================================== */
@media (max-width: 1199.98px) {
    .float-card.pos-1 { left: .5rem; }
    .float-card.pos-2 { right: .5rem; }
}

@media (max-width: 991.98px) {
    :root { --section-y: 4.5rem; }
    .hero { padding: 8.5rem 0 5rem; text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero-meta { justify-content: center; }
    .hero-badge { margin-inline: auto; }
    .stats-wrap { margin-top: 2rem; }
    .float-card { display: none; }
    .cta-band { padding: 2.75rem 1.5rem; }
    .about-exp { right: 1rem; bottom: -1rem; }
}

@media (max-width: 575.98px) {
    body { font-size: .96rem; }
    .section-head { margin-bottom: 2.5rem; }
    .btn { padding: .72rem 1.35rem; }
    .map-frame { height: 280px; }

    /* Mockup kode: perkecil agar barisnya tidak terpotong di layar sempit */
    .code-card pre { font-size: .72rem; line-height: 1.85; padding: 1rem .9rem; }
    .code-card .bar { padding: .7rem .9rem; }

    /* Area sentuh tautan footer dilonggarkan agar mudah ditekan jari */
    .footer-link { padding: .6rem 0; }
    .footer-social a { width: 44px; height: 44px; }
    .footer-legal { gap: 1rem; row-gap: .5rem; }

    /* Tombol mengambang sedikit dikecilkan supaya tidak menutupi konten */
    .wa-float { width: 50px; height: 50px; font-size: 1.4rem; right: 1rem; bottom: 1rem; }
    .to-top   { width: 40px; height: 40px; right: 1rem; bottom: 4.6rem; }

    /* Kartu kontak & statistik lebih rapat */
    .contact-card { padding: 1.35rem 1.15rem; }
    .stat-item .num { font-size: 1.7rem; }
    .hero-badge { font-size: .78rem; }
}

/* Layar sangat sempit (mis. iPhone SE 320px) */
@media (max-width: 359.98px) {
    .navbar-site .navbar-brand { font-size: 1rem; }
    .brand-logo { height: 32px; max-width: 120px; }
    .galeri-grid { grid-template-columns: 1fr; }
    .filter-btn { font-size: .8rem; padding: .45rem 1rem; }
}

/* Hormati preferensi pengguna yang membatasi animasi */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}
