/* ==============================================
   MAINPRO INOVASI PERTAMA — BLUE & WHITE MODERN
   ============================================== */

/* ---- FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

/* ---- RESET & TOKENS ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* === BRAND BLUES (from logo) === */
    --black: #0f1f5c;
    /* deep navy — replaces black */
    --black-2: #152269;
    /* navy 2 */
    --black-3: #1a2d80;
    /* navy 3 */
    --blue: #2563EB;
    /* electric blue primary */
    --blue-dark: #1E3A8A;
    /* deep blue */
    --blue-mid: #3B82F6;
    /* medium blue */
    --blue-lite: #93C5FD;
    /* light blue */
    --cyan: #06B6D4;
    /* cyan accent from logo */
    --gray-dark: #1e3a8a;
    /* navy gray */
    --gray-mid: #64748B;
    /* slate */
    --gray-lite: #94A3B8;
    /* light slate */
    --white: #ffffff;
    --off-white: #F0F4FF;
    /* blue-tinted off white */

    /* === Gradient === */
    --grad-primary: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #06B6D4 100%);
    --grad-hero: linear-gradient(160deg, #0f1f5c 0%, #1a3a9f 40%, #06B6D4 100%);
    --grad-card: linear-gradient(135deg, #1E3A8A, #2563EB);

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease2: cubic-bezier(0.16, 1, 0.3, 1);

    --section-gap: 120px;
    --container: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--black);
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ---- CUSTOM CURSOR ---- */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s;
}

.cursor-follower {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--black);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s var(--ease), width 0.2s, height 0.2s, border-color 0.2s;
}

body:hover .cursor {
    opacity: 1;
}

/* ---- PRELOADER ---- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.preloader-logo {
    width: 60px;
    height: 60px;
    animation: rotateLogo 2s linear infinite;
}

@keyframes rotateLogo {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

.preloader-text {
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ---- CONTAINER ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---- TYPOGRAPHY ---- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-mid);
    display: block;
    margin-bottom: 16px;
}

.section-eyebrow.light {
    color: rgba(255, 255, 255, 0.5);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--black);
}

.section-title em {
    font-style: italic;
    font-weight: 400;
}

/* ---- BUTTONS ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--black);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
    cursor: none;
}

.btn-primary:hover {
    background: transparent;
    color: var(--black);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--black);
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
    cursor: none;
}

.btn-ghost:hover {
    background: var(--black);
    color: var(--white);
}

/* ==================================================
   HEADER
================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.4s var(--ease), border-color 0.4s;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(37, 99, 235, 0.12);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.nav-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* On dark/transparent header, invert logo to white */

.hero .nav-logo,
.header:not(.scrolled) .nav-logo {
    color: var(--white);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    transition: opacity 0.2s;
}

.header.scrolled .nav-link {
    color: var(--black);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 22px;
    background: var(--white);
    color: var(--blue-dark);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: 2px solid var(--white);
    transition: background 0.3s, color 0.3s;
    cursor: none;
    border-radius: 4px;
}

.header.scrolled .nav-cta {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.header.scrolled .nav-cta:hover {
    background: var(--blue-dark);
    color: var(--white);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 4px 6px;
    transition: color 0.3s, background 0.3s;
    border-radius: 3px;
}

.lang-btn.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.lang-btn:hover {
    color: var(--white);
}

.header.scrolled .lang-btn {
    color: rgba(0, 0, 0, 0.35);
}

.header.scrolled .lang-btn.active {
    color: var(--black);
    background: rgba(0, 0, 0, 0.08);
}

.header.scrolled .lang-btn:hover {
    color: var(--black);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    user-select: none;
}

.header.scrolled .lang-sep {
    color: rgba(0, 0, 0, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.header.scrolled .nav-toggle span {
    background: var(--black);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

/* ==================================================
   HERO FULLSCREEN SLIDER
================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--grad-hero);
}

/* ---- Slides ---- */
.slider-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 6s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;

}

/* ---- Center Content ---- */
.slider-center-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 0;
}

.slider-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
    animation: logoPulse 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image fills the container */
.slider-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6));
    }

    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 12px 40px rgba(255, 255, 255, 0.15));
    }
}

.slider-brand {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(6, 182, 212, 0.4);
}

.slider-brand span {
    color: var(--cyan);
    font-weight: 400;
}

.slider-tagline {
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 36px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.slider-cta {
    display: inline-block;
    padding: 14px 44px;
    background: transparent;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
    cursor: none;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.slider-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
    z-index: -1;
}

.slider-cta:hover {
    color: var(--white);
    border-color: var(--cyan);
}

.slider-cta:hover::before {
    transform: scaleX(1);
}

/* ---- Arrows ---- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow svg {
    width: 22px;
    height: 22px;
}

.slider-prev {
    left: 28px;
}

.slider-next {
    right: 28px;
}

/* ---- Dots ---- */
.slider-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: none;
    transition: background 0.3s, width 0.3s, transform 0.3s;
    padding: 0;
    border-radius: 2px;
}

.dot.active {
    background: var(--white);
    width: 48px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 20;
    /* hide scroll indicator in slider mode — dots are there instead */
    display: none;
}


/* ==================================================
   MARQUEE
================================================== */
.marquee-section {
    background: var(--grad-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    overflow: hidden;
}

.marquee-track {
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-content span {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.marquee-dot {
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 0.6rem !important;
}

/* ==================================================
   ABOUT
================================================== */
.about {
    background: var(--off-white);
    padding: var(--section-gap) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    overflow: hidden;
}

.about-img-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.about-pattern-bg {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    height: 60%;
    z-index: 0;
}

.about-exp-badge {
    position: absolute;
    bottom: 40px;
    right: -24px;
    background: var(--black);
    color: var(--white);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
    border: 4px solid var(--off-white);
}

.exp-num {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 0.78rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    letter-spacing: 1px;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--gray-mid);
    line-height: 1.8;
    margin: 24px 0 40px;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.pillar {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pillar:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pillar-num {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-lite);
    min-width: 32px;
    padding-top: 2px;
}

.pillar h4 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pillar p {
    font-size: 0.875rem;
    color: var(--gray-mid);
    line-height: 1.6;
}

/* ==================================================
   SERVICES
================================================== */
.services {
    background: var(--grad-hero);
    padding: var(--section-gap) 0;
    position: relative;
}

.section-border-top {
    line-height: 0;
}

.section-border-top svg {
    display: block;
}

.services .section-title {
    color: var(--white);
}

.services .section-eyebrow {
    color: rgba(255, 255, 255, 0.4);
}

.section-header {
    margin-bottom: 72px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-item {
    display: grid;
    grid-template-columns: 60px 280px 1fr 60px;
    gap: 0;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
    cursor: none;
}

.service-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.service-num {
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.service-img {
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) contrast(1.1);
    transition: filter 0.4s, transform 0.5s;
    display: block;
}

.service-item:hover .service-img img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.04);
}

.service-body {
    padding: 40px 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.service-body h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.service-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--cyan);
    flex-shrink: 0;
}

.service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s, transform 0.3s;
    cursor: none;
}

.service-item:hover .service-arrow {
    color: var(--white);
    transform: translateX(4px) translateY(-4px);
}

.service-arrow svg {
    width: 24px;
    height: 24px;
}

/* ==================================================
   PORTFOLIO
================================================== */
.portfolio {
    background: var(--off-white);
    padding: var(--section-gap) 0;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}

.portfolio-sub {
    max-width: 320px;
    font-size: 0.9rem;
    color: var(--gray-mid);
    line-height: 1.7;
}

/* ---- Filter Pills ---- */
.port-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.port-filter {
    padding: 9px 22px;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    color: var(--gray-mid);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 100px;
    cursor: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.port-filter:hover {
    border-color: var(--black);
    color: var(--black);
    transform: translateY(-1px);
}

.port-filter.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* ---- Port Badge ---- */
.port-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--white);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    z-index: 2;
}

/* ---- Filter hide/show ---- */
.port-card.hidden {
    display: none;
}

.port-card.fade-in {
    animation: fadeInUp 0.4s var(--ease2) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.port-card {
    position: relative;
    overflow: hidden;
    cursor: none;
}

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.5s, transform 0.6s var(--ease2);
    display: block;
    min-height: 240px;
}

.port-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.port-large {
    grid-row: span 2;
}

.port-large img {
    min-height: 500px;
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s;
}

.port-card:hover .port-overlay {
    opacity: 1;
}

.port-cat {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.port-overlay h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.port-overlay p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================================================
   BLOG
================================================== */
.blog {
    background: var(--black);
    padding: var(--section-gap) 0;
}

.blog .section-title {
    color: var(--white);
}

.blog .section-eyebrow {
    color: rgba(255, 255, 255, 0.4);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
}

.blog-card {
    cursor: none;
}

.blog-featured .blog-img {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.blog-featured .blog-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.4s, transform 0.5s;
    display: block;
}

.blog-featured:hover .blog-img img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
}

.blog-featured .blog-body time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.blog-featured .blog-body h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.3;
}

.blog-featured .blog-body h3 a:hover {
    text-decoration: underline;
}

.blog-featured .blog-body p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    transition: border-color 0.3s;
}

.read-more:hover {
    border-color: var(--white);
}

.blog-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.blog-small {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    transition: background 0.2s;
}

.blog-small:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-small:hover {
    background: rgba(255, 255, 255, 0.02);
}

.blog-small-content .blog-tag {
    position: static;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.blog-small-content h3 {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-small-content h3 a:hover {
    text-decoration: underline;
}

.blog-small-content time {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

.blog-small-img {
    overflow: hidden;
    margin-left: 20px;
}

.blog-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    display: block;
    transition: filter 0.3s;
}

.blog-small:hover .blog-small-img img {
    filter: grayscale(0%);
}

/* ==================================================
   CONTACT
================================================== */
.contact {
    background: var(--grad-hero);
    padding: var(--section-gap) 0;
    position: relative;
    overflow: hidden;
}

.contact .section-title {
    color: var(--white);
}

.contact-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1.8;
    margin: 24px 0 48px;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ci-icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.7);
}

.ci-icon svg {
    width: 18px;
    height: 18px;
}

.contact-item h4 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Form */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.form-field input,
.form-field select,
.form-field textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-field select {
    appearance: none;
    cursor: none;
}

.form-field select option {
    background: var(--black);
    color: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.06);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: var(--cyan);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: none;
    transition: background 0.3s, transform 0.2s;
    border-radius: 4px;
}

.btn-submit:hover {
    background: var(--blue-mid);
    transform: translateY(-2px);
}

/* ==================================================
   FOOTER
================================================== */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 16px 0 28px;
    max-width: 280px;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-row a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    cursor: none;
}

.social-row a:hover {
    border-color: var(--cyan);
    color: var(--white);
    background: var(--cyan);
}

.footer-links h4 {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links ul a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    cursor: none;
}

.footer-links ul a:hover {
    color: var(--white);
}

.footer-newsletter h4 {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-newsletter p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-bottom: 20px;
}

.nl-form {
    display: flex;
}

.nl-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
}

.nl-form input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.nl-form input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.nl-form button {
    width: 48px;
    background: var(--cyan);
    color: var(--white);
    border: none;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nl-form button:hover {
    background: var(--blue-mid);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==================================================
   PARTNER / CUSTOMER LOGO SLIDER
================================================== */
.logos-section {
    background: var(--black);
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logos-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.logos-section .section-eyebrow {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.logos-section .section-title {
    color: var(--white);
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.logos-row-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin-bottom: 20px;
}

.logos-track-wrap {
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

.logos-track-wrap::before,
.logos-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logos-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--black), transparent);
}

.logos-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--black), transparent);
}

.logos-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    width: max-content;
    padding: 8px 0;
    animation: logoScroll 35s linear infinite;
}

.logos-track.reverse {
    animation-direction: reverse;
    animation-duration: 40s;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes logoScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 90px;
    width: 200px;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-sizing: border-box;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.logo-item:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.logo-item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.logo-item:hover img {
    opacity: 1;
}

/* ==================================================
   AOS — SIMPLE ANIMATION
================================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease2), transform 0.7s var(--ease2);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   TESTIMONIALS
================================================== */
.testimonials {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    color: var(--white);
    background-image: linear-gradient(180deg, rgba(15, 31, 92, 0.78) 0%, rgb(15 31 92 / 48%) 100%), url(../images/testimonial_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.testimonials .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.testimonials-slider {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    transform: translateY(20px);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.testimonial-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 2;
}

.testimonial-avatar-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 3px;
    background: var(--grad-primary);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--black);
}

.testimonial-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
    margin-bottom: 6px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.testimonial-quote {
    position: relative;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-style: italic;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

.quote-icon-left,
.quote-icon-right {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--cyan);
    opacity: 0.6;
    line-height: 1;
    position: absolute;
}

.quote-icon-left {
    top: -20px;
    left: -25px;
}

.quote-icon-right {
    bottom: -40px;
    right: -25px;
}

.quote-text {
    display: inline;
}

/* Dots */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: none;
    transition: background 0.3s, transform 0.3s, width 0.3s;
    padding: 0;
}

.t-dot.active {
    background: var(--cyan);
    transform: scale(1.2);
    width: 24px;
    border-radius: 5px;
}

.t-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* ==================================================
   WHATSAPP FLOAT
================================================== */
.wa-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 900;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.wa-float:hover {
    background: #20b858;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 1024px) {
    :root {
        --section-gap: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-img-frame img {
        height: 380px;
    }

    .hero-card-live {
        left: 0;
    }

    .hero-card-count {
        right: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-exp-badge {
        right: 0;
    }

    .service-item {
        grid-template-columns: 40px 200px 1fr 50px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .port-large {
        grid-row: span 1;
    }

    .port-large img {
        min-height: 300px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Disable custom cursor on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: #0f1f5c;
        /* deep navy solid */
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: right 0.4s var(--ease);
        padding: 80px 40px;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    /* All nav links WHITE in mobile menu */
    .nav-link,
    .header.scrolled .nav-link {
        font-size: 1.5rem;
        color: #ffffff !important;
        font-weight: 600;
    }

    .nav-cta,
    .header.scrolled .nav-cta {
        font-size: 1rem;
        background: var(--cyan) !important;
        color: #ffffff !important;
        border-color: var(--cyan) !important;
        width: 100%;
        text-align: center;
        border-radius: 4px;
    }

    /* Brand text WHITE on transparent header (at top of page) */
    .header:not(.scrolled) .nav-logo span,
    .header:not(.scrolled) .nav-logo b {
        color: #ffffff;
    }

    /* Brand text NAVY on scrolled header */
    .header.scrolled .nav-logo span,
    .header.scrolled .nav-logo b {
        color: var(--black);
    }

    /* Hamburger bars */
    .nav-toggle span {
        background: var(--white);
    }

    .header.scrolled .nav-toggle span {
        background: var(--black);
    }

    .nav-toggle {
        display: flex;
    }

    /* Hero slider logo — lebih besar di mobile */
    .slider-logo {
        width: 180px;
        height: 180px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .service-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        border-left: none;
    }

    .service-num {
        display: none;
    }

    .service-img {
        height: 200px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .service-img img {
        height: 200px;
    }

    .service-arrow {
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .service-body {
        border: none;
        padding: 24px;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Stack floating buttons: WA at bottom, arrow above it */
    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .back-to-top {
        bottom: 82px;
        right: 22px;
        width: 44px;
        height: 44px;
    }

    /* Logo section responsive */
    .logo-item {
        min-width: 100px;
        padding: 6px 16px;
    }



    /* Testimonials mobile */
    .testimonials {
        padding: 80px 0;
    }

    .testimonials-slider {
        min-height: 420px;
    }

    .testimonial-avatar-wrap {
        width: 80px;
        height: 80px;
    }

    .testimonial-quote {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 10px;
    }

    .quote-icon-left {
        left: -10px;
        top: -15px;
        font-size: 1.8rem;
    }

    .quote-icon-right {
        right: -10px;
        bottom: -30px;
        font-size: 1.8rem;
    }
}