/* ==========================================================
   Versative Digital Solutions - Company Profile
   ========================================================== */

:root {
    --v-purple: #912b8f;      /* ungu atas gradient logo */
    --v-indigo: #303192;      /* biru-ungu bawah gradient logo */
    --v-yellow: #fff200;      /* bintang di logo */
    --v-ink: #000;
    --v-line: #bdbdbd;
    --v-wa: #25d366;
    --v-gradient: linear-gradient(180deg, var(--v-purple) 0%, var(--v-indigo) 100%);
    --nav-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--v-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
body:focus { outline: none; }

/* ---------- Navbar ---------- */
.navbar-versative {
    background: var(--v-gradient);
    min-height: var(--nav-h);
    padding-block: .35rem;
}
.brand-logo { height: 62px; width: auto; display: block; }

.navbar-versative .nav-link {
    color: #fff;
    font-weight: 500;
    padding-block: .5rem;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
}
.navbar-versative .nav-link:hover,
.navbar-versative .nav-link:focus-visible { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.navbar-versative .nav-link.active { color: #fff; border-bottom-color: var(--v-yellow); }

.navbar-toggler {
    color: #fff;
    border: 1px solid rgba(255,255,255,.55);
    font-size: 1.6rem;
    line-height: 1;
    padding: .2rem .5rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.35); }

@media (max-width: 767.98px) {
    .navbar-versative .navbar-collapse { padding: .5rem 0 .75rem; }
    .navbar-versative .nav-link { padding-inline: .25rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 7rem); }

.hero-title {
    font-weight: 800;
    font-size: clamp(2.8rem, 8.5vw, 5.75rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    margin-bottom: 1.25rem;
    max-width: 9ch;
}
.hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    max-width: 34rem;
    margin-bottom: 0;
}
.hero-logo {
    width: min(100%, 420px);
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(48, 49, 146, .28));
}

@media (max-width: 767.98px) {
    .hero-logo { width: min(62%, 260px); }
    .hero-title { max-width: none; }
}

/* ---------- Section umum ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-title {
    font-weight: 800;
    font-size: clamp(2.4rem, 7vw, 4.75rem);
    letter-spacing: -.02em;
    line-height: 1.1;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

#services .section-title { text-align: center; }

.section-gradient { background: var(--v-gradient); }

#services,
#portfolio { border-bottom: 1px solid var(--v-line); }
#services { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- About ---------- */
.info-card {
    background: #fff;
    border: 1px solid #d9d9e6;
    border-radius: .6rem;
    padding: clamp(1.1rem, 2.4vw, 1.75rem);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.4;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.info-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    text-align: left;
}
.mission-list { padding-left: 1.4rem; }
.mission-list li { margin-bottom: .55rem; padding-left: .2rem; }
.mission-list li:last-child { margin-bottom: 0; }

/* ---------- Services & Pricelist ---------- */
.poster-btn {
    position: relative;
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: .6rem;
    max-width: min(100%, 440px);
}
.poster-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .6rem;
    box-shadow: 0 10px 30px rgba(48, 49, 146, .25);
}
.poster-hint {
    position: absolute;
    left: 50%;
    bottom: .9rem;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: .8rem;
    font-weight: 500;
    padding: .35rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.poster-btn:hover .poster-hint,
.poster-btn:focus-visible .poster-hint { opacity: 1; }
.poster-btn:focus-visible { outline: 3px solid var(--v-indigo); outline-offset: 4px; }
@media (hover: none) { .poster-hint { opacity: 1; } }

.poster-modal { background: transparent; border: 0; }
.poster-modal img { border-radius: .6rem; }
.poster-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;
    background-color: #fff;
    opacity: 1;
    padding: .6rem;
    border-radius: 50%;
}

/* ---------- Portfolio ---------- */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--v-line);
    border-radius: .6rem;
    overflow: hidden;
}

.pf-card {
    --pf-a: var(--v-purple);
    --pf-b: var(--v-indigo);
    --thumb: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(210px, 26vw, 330px);
    padding: clamp(.9rem, 1.8vw, 1.4rem) clamp(.9rem, 1.8vw, 1.4rem) clamp(.9rem, 1.4vw, 1.1rem);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(0,0,0,.10) 35%, rgba(0,0,0,.55) 100%),
        var(--thumb) center / cover no-repeat,
        linear-gradient(135deg, var(--pf-a), var(--pf-b));
}
.pf-animation    { --pf-a: #f4f4f8; --pf-b: #bfc0d6; color: #1c1c3a; }
.pf-broadcasting { --pf-a: #7a3a8f; --pf-b: #3a2a6b; }
.pf-vcd          { --pf-a: #b01f2e; --pf-b: #5c1020; }
.pf-software     { --pf-a: #1d4f9c; --pf-b: #12275c; }
.pf-network      { --pf-a: #0f6f6a; --pf-b: #0b2f45; }
.pf-game         { --pf-a: #2b2f5e; --pf-b: #0c0d1f; }

/* tema terang untuk Animation: overlay gelap dimatikan */
.pf-animation {
    background:
        var(--thumb) center / cover no-repeat,
        linear-gradient(135deg, var(--pf-a), var(--pf-b));
}

.pf-icon {
    position: absolute;
    right: -.4rem;
    top: 28%;
    font-size: clamp(5rem, 11vw, 9rem);
    line-height: 1;
    opacity: .16;
    z-index: -1;
    transform: rotate(-8deg);
}

.pf-title {
    margin: 0;
    font-weight: 300;
    font-size: clamp(1.45rem, 3.2vw, 2.4rem);
    letter-spacing: .01em;
    line-height: 1.1;
    text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.pf-animation .pf-title { text-shadow: none; }

.drive-btn {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: #fff;
    color: #1f1f1f;
    text-decoration: none;
    font-size: clamp(.72rem, 1.05vw, .9rem);
    font-weight: 500;
    padding: .5rem .8rem;
    border-radius: .35rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transition: transform .15s, box-shadow .15s;
}
.drive-btn:hover,
.drive-btn:focus-visible {
    color: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.32);
}
.drive-btn:focus-visible { outline: 3px solid var(--v-yellow); outline-offset: 2px; }
.drive-ico { width: 1.3em; height: 1.3em; flex: none; }

@media (max-width: 991.98px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .pf-grid { grid-template-columns: 1fr; }
    .pf-card { min-height: 190px; }
}

/* ---------- Contact ---------- */
.contact-card {
    border: 1px solid var(--v-line);
    border-radius: .6rem;
    padding: clamp(1rem, 2.4vw, 1.75rem);
}
.contact-card .form-label {
    font-size: .95rem;
    margin-bottom: .2rem;
}
.contact-card .form-control {
    border: 1px solid #8d8d8d;
    border-radius: .45rem;
    padding: .55rem .75rem;
}
.contact-card .form-control:focus {
    border-color: var(--v-indigo);
    box-shadow: 0 0 0 .2rem rgba(48, 49, 146, .2);
}
.contact-card textarea.form-control { resize: vertical; min-height: 10rem; }

.btn-wa {
    background: var(--v-wa);
    border: 0;
    color: #fff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1rem;
    border-radius: .4rem;
}
.btn-wa:hover,
.btn-wa:focus-visible { background: #1ebe5a; color: #fff; }
.btn-wa:focus-visible { box-shadow: 0 0 0 .2rem rgba(37, 211, 102, .4); }
.btn-wa .bi { font-size: 1.25rem; line-height: 1; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--v-line);
    text-align: center;
    padding: clamp(1.75rem, 4vw, 2.75rem) 1rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

/* ---------- Aksesibilitas ---------- */
a:focus-visible, button:focus-visible, .form-control:focus-visible {
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Teks rata kiri di layar kecil supaya tidak muncul celah antar kata */
@media (max-width: 575.98px) {
    .info-card { text-align: left; hyphens: none; -webkit-hyphens: none; }
}
