/* GENERAL */
:root {
    --blue-600: #005fcf;
    --blue-700: #004a9f;
    --bg: #f4f6fa;
    --text: #122028;
    --muted: #6b7280;
}

* {
    box-sizing: border-box
}

.text-justify {
    text-align: justify;
}


body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ============================================
   FADE-IN ANIMATION (Global)
   ============================================ */
.fade-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.in-view {
    opacity: 1;
    transform: translateY(0);
}



.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* HERO */
.hero {
    height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('images/hero.jpg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 90, 0.45);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
}

.hero-logo {
    width: 110px;
    margin-bottom: 12px
}

.hero h1 {
    font-size: 2.4rem;
    margin: 6px 0;
    letter-spacing: 0.5px;
}

.hero h2 {
    font-size: 1.3rem;
    margin: 0 0 10px;
}

.cta {
    display: inline-block;
    padding: 12px 20px;
    background: var(--blue-600);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.cta:hover {
    transform: translateY(-4px)
}

/* ABOUT */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 60px 0;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--blue-700);
}

.about-img img {
    width: 100%;
    border-radius: 10px;
}

/* SERVICES */
.services-header {
    text-align: center;
    padding-top: 10px;
    font-size: 1.1rem;
}

.services-header h3 {
    color: var(--blue-700)
}

.services {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(14px);
    transition: 0.6s;
}

.service-card h4 {
    text-align: center;
    color: var(--blue-700);
    font-weight: 600;
    margin-bottom: 8px;
}


.service-card.in-view {
    opacity: 1;
    transform: none;
}

.service-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}


/* CLIENT LIST */
.clients {
    padding: 60px 0;
    text-align: center;
}

.clients h3 {
    color: var(--blue-700);
    margin-bottom: 20px;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.client-logos img {
    height: 100px;
    object-fit: contain;
    filter: grayscale(60%);
    transition: .3s;
}

.client-logos img:hover {
    filter: grayscale(0%);
    transform: scale(1.08);
}


/* GALERY */
.gallery {
    padding: 60px 0;
}

.gallery h3 {
    text-align: center;
    color: var(--blue-700);
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: .3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}



/* CONTACT */
.contact {
    padding: 40px 0 70px;
    font-size: 1.1rem;
}

.contact-card h4 {
    color: var(--blue-700)
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border-top: 4px solid var(--blue-600);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* WHATSAPP FLOAT */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
}

.wa-float img {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    transition: 0.2s;
}

.wa-float:hover img {
    transform: translateY(-6px);
}

/* FOOTER */
.footer {
    background: var(--blue-700);
    color: #fff;
    text-align: center;
    padding: 18px 0;
}

/* ANIMATION */
.fade-section {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE FIX – HIERARCHY 100% BERES
   ========================================================= */

/* === 1024px ↓ (Tablet Landscape & iPad Pro) === */
@media(max-width:1024px) {
    .about {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
    }

    .about-text {
        order: 2;
    }

    .about-img {
        order: 1;
    }

    .about-img img {
        width: 100%;
        max-width: 480px;
        margin: 0 auto 20px;
        height: auto;
        display: block;
        border-radius: 10px;
    }
}

/* === 900px ↓ (Grid umum tablet potrait) === */
@media(max-width:900px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === 768px ↓ (Mobile Large / Tablet Mini) === */
@media(max-width:768px) {

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero-logo {
        width: 90px;
    }

    .about-text h3 {
        font-size: 1.45rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .about-img img {
        max-width: 350px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
}

/* === 600px ↓ (Mobile Medium) === */
@media(max-width:600px) {

    .services {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .service-card h4 {
        font-size: 1.2rem;
        /* default kecil → perbesar */
    }

    .service-card p {
        font-size: 1.05rem;
        /* paragraf jadi lebih jelas */
        line-height: 1.6;
    }

    .hero-logo {
        width: 80px;
    }

    .about-img img {
        max-width: 330px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .client-logos img {
        height: 55px;
    }
}

/* === 480px ↓ (Mobile Small) === */
@media(max-width:480px) {
    .about-text h3 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .about-img img {
        max-width: 300px;
    }

    .service-card h4 {
        font-size: 1.25rem;
    }

    .service-card p {
        font-size: 1.1rem;
    }

    .client-logos img {
        height: 50px;
    }

    .client-logos {
        gap: 10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .gallery-grid img {
        height: 120px;
    }

}

/* WA Float (tetap tampil semua device) */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
}