/* =========================================================
   ROOT
========================================================= */

:root {
    --black: #050505;
    --black-soft: #090909;
    --black-card: #101010;

    --red: #780008;
    --red-light: #a5000b;
    --red-hover: #c0000d;

    --white: #ffffff;
    --text: #d5d5d5;
    --muted: #808080;

    --border: rgba(255, 255, 255, 0.08);

    --max-width: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}


body {
    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at 80% 5%,
            rgba(120, 0, 8, 0.13),
            transparent 30%
        ),
        var(--black);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}


body.lightbox-open {
    overflow: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


img {
    max-width: 100%;
    display: block;
}


::selection {
    background: var(--red);
    color: #ffffff;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(5, 5, 5, 0.82);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.navbar {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    height: 72px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {
    font-family: "Space Grotesk", sans-serif;

    font-size: 24px;

    font-weight: 800;

    letter-spacing: -1px;

    color: #ffffff;

    transition: 0.25s ease;
}


.logo:hover {
    transform: translateY(-1px);
}


.logo span {
    color: var(--red-light);
}


.nav-menu {
    display: flex;

    align-items: center;

    gap: 34px;
}


.nav-link {
    position: relative;

    color: #999999;

    font-size: 13px;

    transition: 0.25s ease;
}


.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--red-light);

    transition: 0.25s ease;
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: #111111;

    color: #ffffff;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   GENERAL SECTION
========================================================= */

.section {
    width: min(
        calc(100% - 40px),
        var(--max-width)
    );

    margin: 0 auto;

    padding-top: 70px;
    padding-bottom: 70px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding-top: 125px;
    padding-bottom: 48px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(320px, 0.92fr);

    align-items: center;

    gap: 55px;
}


.hero-content {
    max-width: 700px;
}


.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 6px 12px;

    margin-bottom: 17px;

    border: 1px solid rgba(120, 0, 8, 0.35);

    border-radius: 100px;

    background: rgba(120, 0, 8, 0.08);

    color: #999999;

    font-size: 11px;
}


.status-dot {
    width: 6px;
    height: 6px;

    background: #00c853;

    border-radius: 50%;

    box-shadow: 0 0 10px #00c853;
}


.hero-small {
    color: var(--red-light);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 9px;
}


.hero h1 {
    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(
        43px,
        5.6vw,
        70px
    );

    line-height: 1.03;

    letter-spacing: -3.5px;

    color: #ffffff;
}


.hero h1 span {
    display: block;

    color: var(--red-light);
}


.hero-description {
    max-width: 630px;

    color: var(--muted);

    font-size: 14px;

    margin-top: 19px;
}


.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;
}


.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 11px 18px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    transition: 0.25s ease;
}


.btn-primary {
    color: #ffffff;

    background: var(--red);

    border: 1px solid var(--red);
}


.btn-primary:hover {
    background: var(--red-hover);

    transform: translateY(-2px);
}


.btn-outline {
    color: #ffffff;

    border: 1px solid var(--border);

    background: transparent;
}


.btn-outline:hover {
    border-color: var(--red);

    background: rgba(120, 0, 8, 0.08);

    transform: translateY(-2px);
}


.hero-info {
    display: flex;

    gap: 30px;

    margin-top: 30px;

    flex-wrap: wrap;
}


.hero-info div {
    display: flex;

    flex-direction: column;
}


.hero-info strong {
    color: var(--red-light);

    font-size: 10px;
}


.hero-info span {
    color: #777777;

    font-size: 11px;
}


/* =========================================================
   CODE CARD
========================================================= */

.hero-decoration {
    display: flex;

    justify-content: flex-end;
}


.code-card {
    width: 100%;

    max-width: 400px;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            #121212,
            #080808
        );

    border-radius: 15px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        0 0 70px rgba(120, 0, 8, 0.07);

    transform: rotate(1.5deg);

    transition: 0.35s ease;
}


.code-card:hover {
    transform: rotate(0deg) translateY(-4px);
}


.code-header {
    height: 40px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 0 15px;

    border-bottom: 1px solid var(--border);
}


.code-header span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #333333;
}


.code-content {
    padding: 28px;

    font-family: monospace;

    font-size: 13px;

    line-height: 1.9;
}


.code-content p {
    color: #777777;
}


.indent {
    padding-left: 18px;
}


.code-red {
    color: #c0000c;
}


.code-blue {
    color: #9b8cff;
}


.code-white {
    color: #dddddd;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    max-width: 680px;

    margin-bottom: 32px;
}


.section-heading.center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.section-number {
    color: var(--red-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 3px;
}


.section-heading h2 {
    margin-top: 8px;

    font-family: "Space Grotesk", sans-serif;

    color: #ffffff;

    font-size: clamp(
        32px,
        4vw,
        48px
    );

    line-height: 1.08;

    letter-spacing: -2px;
}


.section-heading h2 span {
    color: var(--red-light);
}


.section-heading p {
    margin-top: 11px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   SERVICES
========================================================= */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.service-card {
    position: relative;

    padding: 35px 25px 30px;

    background: var(--black-card);

    border: 1px solid var(--border);

    border-radius: 13px;

    overflow: hidden;

    text-align: center;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.service-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--red-light),
        transparent
    );

    transform: scaleX(0);

    transition: transform 0.35s ease;
}


.service-card:hover {
    transform: translateY(-7px);

    border-color: rgba(165, 0, 11, 0.45);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35);
}


.service-card:hover::before {
    transform: scaleX(1);
}


/* NOMOR SERVICE */

.service-number {
    position: absolute;

    top: 15px;
    right: 18px;

    color: #444444;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* ICON SERVICE BARU */

.service-icon {
    width: 92px;
    height: 92px;

    margin:
        0 auto 23px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at top,
            rgba(165, 0, 11, 0.25),
            rgba(120, 0, 8, 0.08)
        );

    border:
        1px solid
        rgba(165, 0, 11, 0.32);

    color: var(--red-light);

    font-size: 40px;

    box-shadow:
        0 12px 30px
        rgba(120, 0, 8, 0.14);

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}


.service-card:hover .service-icon {
    transform:
        translateY(-5px)
        scale(1.05);

    background:
        radial-gradient(
            circle at top,
            rgba(192, 0, 13, 0.4),
            rgba(120, 0, 8, 0.15)
        );

    box-shadow:
        0 15px 40px
        rgba(120, 0, 8, 0.28);
}


.service-card h3 {
    color: #ffffff;

    font-size: 20px;

    margin-bottom: 8px;
}


.service-card p {
    max-width: 300px;

    margin: auto;

    color: #777777;

    font-size: 12px;
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.035);
}


.portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


.portfolio-card {
    background: var(--black-card);

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.portfolio-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(120, 0, 8, 0.4);
}


.portfolio-image {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    cursor: zoom-in;

    background: #111111;

    outline: none;
}


.portfolio-image:focus-visible {
    box-shadow:
        inset 0 0 0 2px
        var(--red-light);
}


.portfolio-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.portfolio-card:hover
.portfolio-image img {
    transform: scale(1.05);
}


.image-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, 0.5);

    opacity: 0;

    transition: opacity 0.3s ease;
}


.portfolio-image:hover .image-overlay,
.portfolio-image:focus .image-overlay {
    opacity: 1;
}


.zoom-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(120, 0, 8, 0.88);

    font-size: 17px;

    transform: scale(0.8);

    transition: transform 0.3s ease;
}


.portfolio-image:hover .zoom-icon,
.portfolio-image:focus .zoom-icon {
    transform: scale(1);
}


.portfolio-content {
    padding: 20px;
}


.portfolio-category {
    color: var(--red-light);

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 700;
}


.portfolio-content h3 {
    color: #ffffff;

    margin-top: 5px;

    font-size: 18px;
}


.portfolio-content p {
    color: #777777;

    font-size: 12px;

    margin-top: 5px;
}


.portfolio-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 14px;

    color: #dddddd;

    font-size: 12px;

    font-weight: 600;

    transition: color 0.25s ease;
}


.portfolio-link:hover {
    color: var(--red-light);
}


/* =========================================================
   PARTNERS
========================================================= */

.partners {
    overflow: hidden;
    width: 100%;
}

.partner-wrapper {
    position: relative;
    width: 100vw;

    margin-left:
        calc(
            (var(--max-width) - 100vw) / 2
        );

    overflow: hidden;

    border-top:
        1px solid var(--border);

    border-bottom:
        1px solid var(--border);

    padding: 20px 0;

    /* Hilangkan kemungkinan ruang kosong dari browser */
    white-space: nowrap;
}


/* TRACK */
.partner-track {
    display: flex;
    align-items: center;

    width: max-content;

    /* JANGAN menggunakan justify-content */
    justify-content: flex-start;

    /* Jarak antar logo */
    gap: 40px;

    /* Animasi infinite */
    animation:
        partnerMove 28s linear infinite;

    will-change: transform;
}


/* Pause ketika mouse diarahkan */
.partner-wrapper:hover .partner-track {
    animation-play-state: paused;
}


/* ITEM LOGO */
.partner-item {
    width: 170px;
    height: 65px;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 170px;

    filter: grayscale(1);
    opacity: 0.5;

    transition:
        filter 0.3s ease,
        opacity 0.3s ease;
}


.partner-item:hover {
    filter: grayscale(0);
    opacity: 1;
}


/* IMAGE */
.partner-item img {
    display: block;

    width: auto;
    height: auto;

    max-width: 115px;
    max-height: 48px;

    object-fit: contain;
}


/*
=========================================================
   SEAMLESS LOOP

   Track harus berisi 2 SET logo yang sama:

   SET 1:
   Logo 1
   Logo 2
   Logo 3

   SET 2:
   Logo 1
   Logo 2
   Logo 3

   Animasi hanya bergerak sejauh 1 set.
=========================================================
*/

@keyframes partnerMove {

    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .partner-wrapper {
        margin-left: -20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .partner-wrapper {
        width: 100vw;
        margin-left: -15px;

        padding: 20px 0;
    }

    .partner-track {
        gap: 30px;

        animation-duration: 22s;
    }

    .partner-item {
        width: 150px;
        height: 60px;

        flex-basis: 150px;
    }

    .partner-item img {
        max-width: 105px;
        max-height: 44px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .partner-track {
        gap: 25px;

        animation-duration: 19s;
    }

    .partner-item {
        width: 135px;
        flex-basis: 135px;
    }

    .partner-item img {
        max-width: 95px;
        max-height: 42px;
    }

}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.035);
}


.contact-wrapper {
    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 60px;

    align-items: start;
}


.contact-text h2 {
    margin-top: 10px;

    font-family:
        "Space Grotesk",
        sans-serif;

    color: #ffffff;

    font-size: clamp(
        36px,
        4.5vw,
        52px
    );

    line-height: 1.05;

    letter-spacing: -2px;
}


.contact-text h2 span {
    display: block;

    color: var(--red-light);
}


.contact-text > p {
    color: var(--muted);

    margin-top: 18px;

    font-size: 13px;
}


.contact-whatsapp {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 25px;
}


.whatsapp-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background: #102417;

    color: #25d366;

    font-size: 21px;
}


.contact-whatsapp div:last-child {
    display: flex;

    flex-direction: column;
}


.contact-whatsapp small {
    color: #666666;

    font-size: 10px;
}


.contact-whatsapp strong {
    color: #ffffff;

    font-size: 13px;
}


/* =========================================================
   CONTACT FORM
========================================================= */

.contact-form-wrapper {
    padding: 24px;

    background: var(--black-card);

    border: 1px solid var(--border);

    border-radius: 15px;
}


.form-group {
    margin-bottom: 15px;
}


.form-group label {
    display: block;

    color: #aaaaaa;

    font-size: 11px;

    margin-bottom: 6px;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    background: #080808;

    color: #ffffff;

    border-radius: 8px;

    outline: none;

    padding: 11px 12px;

    font-size: 13px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.form-group textarea {
    resize: vertical;

    min-height: 115px;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555555;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px
        rgba(120, 0, 8, 0.1);
}


.form-group select option {
    background: #101010;

    color: #ffffff;
}


.btn-submit {
    width: 100%;

    border: none;

    border-radius: 8px;

    background: var(--red);

    color: #ffffff;

    padding: 12px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.btn-submit:hover {
    background: var(--red-hover);

    transform: translateY(-2px);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        rgba(0, 0, 0, 0.95);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


.lightbox.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.lightbox img {
    max-width: 92vw;

    max-height: 88vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 7px;

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.8);

    transform: scale(0.9);

    transition:
        transform 0.3s ease;
}


.lightbox.active img {
    transform: scale(1);
}


.lightbox-close {
    position: absolute;

    top: 20px;

    right: 22px;

    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 19px;

    cursor: pointer;

    transition: 0.25s ease;
}


.lightbox-close:hover {
    background: var(--red);

    border-color: var(--red);

    transform: rotate(5deg);
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    border-top:
        1px solid var(--border);

    padding: 24px 20px;

    text-align: center;

    color: #555555;

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        padding-top: 120px;

        padding-bottom: 55px;

        gap: 40px;
    }


    .hero-decoration {
        justify-content: flex-start;
    }


    .code-card {
        max-width: 520px;
    }


    .service-grid,
    .portfolio-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .contact-wrapper {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .partner-wrapper {
        margin-left: -20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .navbar {
        height: 68px;
    }


    .menu-toggle {
        display: flex;
    }


    .nav-menu {
        position: absolute;

        top: 68px;

        left: 15px;
        right: 15px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 8px;

        background:
            rgba(10, 10, 10, 0.98);

        border:
            1px solid var(--border);

        border-radius: 12px;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }


    .nav-menu.open {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);
    }


    .nav-link {
        padding: 12px;
    }


    .nav-link::after {
        display: none;
    }


    .section {
        width: min(
            calc(100% - 30px),
            var(--max-width)
        );

        padding-top: 62px;

        padding-bottom: 62px;
    }


    .hero {
        padding-top: 112px;

        padding-bottom: 42px;

        gap: 38px;
    }


    .hero h1 {
        font-size: 44px;

        letter-spacing: -2.5px;
    }


    .hero-description {
        font-size: 13px;
    }


    .hero-info {
        gap: 18px;

        margin-top: 25px;
    }


    .code-card {
        transform: none;
    }


    .code-card:hover {
        transform: none;
    }


    .code-content {
        padding: 22px;

        font-size: 11px;
    }


    .service-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }


    .service-card {
        padding: 35px 25px 30px;
    }


    .service-icon {
        width: 88px;
        height: 88px;

        font-size: 38px;
    }


    .section-heading {
        margin-bottom: 27px;
    }


    .section-heading h2 {
        font-size: 34px;
    }


    .partner-wrapper {
        width: 100vw;

        margin-left: -15px;
    }


    .contact-form-wrapper {
        padding: 20px;
    }


    .lightbox {
        padding: 15px;
    }


    .lightbox-close {
        top: 13px;

        right: 13px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 38px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .btn {
        width: 100%;
    }


    .hero-info {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}