﻿/* =========================================
   STYLEARTWORK.CSS - Project Detail
   ========================================= */

body {
    background-color: #fdfdfd; /* Putih bersih */
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin: 0;
    overflow-x: hidden;
}

/* --- 1. HERO SECTION (PREMIUM BLEND) --- */
.artwork-hero-premium {
    position: relative;
    width: 100%;
    height: 65vh; /* Tinggi dominan untuk impak visual */
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-img-blend {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1);
    transition: transform 10s ease;
}

/* Kesan zoom perlahan secara automatik */
.artwork-hero-premium:hover .hero-img-blend {
    transform: scale(1.08);
}

/* Gradient Mask - Memudar dari gelap ke putih #fdfdfd */
.hero-gradient-to-white {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.1) 50%, #fdfdfd 100% );
}

.hero-content-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.sub-heading-gold {
    display: block;
    color: #c2a45d;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-title-display {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
}

.gold-line-premium {
    width: 80px;
    height: 3px;
    background: #c2a45d;
    margin: 25px auto 0;
}

/* --- 2. PROJECT INFO SECTION --- */
.project-info-section {
    max-width: 850px;
    margin: 0 auto 80px;
    text-align: center;
    padding: 60px 20px 0;
}

.client-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #c2a45d;
    font-weight: 700;
    margin-bottom: 25px;
    display: block;
}

/* Penggunaan DIV untuk mengelak ralat nesting HTML5 */
.project-desc-wrapper {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 50px;
    text-align: justify;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.btn-get-touch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #c2a45d;
    color: #fff;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(194, 164, 93, 0.3);
}

    .btn-get-touch:hover {
        background-color: #1c1c1e;
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        color: #fff;
    }

/* --- 3. GALLERY GRID (SQUARE MASONRY MIX) --- */
.gallery-container {
    max-width: 1300px;
    margin: 0 auto 100px;
    padding: 0 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    width: 100%;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Kekalkan bentuk segi empat sama */
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

/* --- 4. FOOTER NAVIGATION --- */
.project-footer {
    text-align: center;
    padding-bottom: 100px;
}

.back-link-premium {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .back-link-premium:hover {
        color: #c2a45d;
    }

/* --- RESPONSIVE MOBILE (LENGKAP & SELAMAT) --- */

@media (max-width: 768px) {
    /* 1. FIX BANNER: Kandungan ditolak ke bawah dengan zon selamat dari navbar mobile */
    .artwork-hero-premium {
        align-items: flex-start; /* Ubah dari center ke flex-start */
        padding-top: 150px; /* Ruang zon selamat elak bertindih navbar */
        padding-bottom: 40px;
        height: auto; /* Biar tinggi kontainer fleksibel mengikut teks */
    }

    .project-title-display {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    /* 2. DESCRIPTION - DIUBAH MENJADI CENTER */
    .project-desc-wrapper {
        text-align: center; /* KOD BAHARU: Teks penerangan projek di tengah */
        font-size: 1rem;
    }

    /* 3. GALLERY - PAKSA SUSUNAN 2 GAMBAR SEBARIS */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Paksa 2 lajur di tablet & phone */
        gap: 15px;
    }

        /* 4. KOD MAGIK: Centerkan gambar terakhir jika jumlah gambar adalah ganjil (baki 1 di bawah) */
        .gallery-grid > .gallery-item:nth-child(odd):last-child {
            grid-column: 1 / span 2; /* Ambil ruang merentasi kedua-dua lajur grid */
            justify-self: center; /* Tolak dirinya tepat di tengah-tengah skrin */
            width: 100%;
            max-width: calc(50% - 7.5px); /* Formula tepat supaya saiznya kekal sama besar dengan gambar lain */
        }
}

@media (max-width: 480px) {
    /* Penyelarasan tambahan khusus untuk skrin telefon yang lebih kecil */
    .artwork-hero-premium {
        padding-top: 130px; /* Dioptimumkan jarak atas untuk skrin phone */
    }

    .project-title-display {
        font-size: 1.9rem;
    }

    /* Kekalkan 2 lajur gambar sebaris di phone kecil */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

        /* Imbangi lebar formula gambar ganjil terakhir untuk gap skrin phone kecil */
        .gallery-grid > .gallery-item:nth-child(odd):last-child {
            grid-column: 1 / span 2;
            justify-self: center;
            width: 100%;
            max-width: calc(50% - 5px); /* Nisbah saiz single-column dilaraskan mengikut gap 10px */
        }

    .btn-get-touch {
        width: 100%;
        justify-content: center;
    }
}