﻿/* --- HERO BENTO LAYOUT --- */
.services-hero-bento {
    padding: 110px 20px 100px;
    background: #000;
    position: relative;
    min-height: 100vh;
}

.hero-bg-blur {
    position: absolute;
    inset: 0;
    background: url('../Images/herobanner1.png') center;
    filter: blur(25px) brightness(0.2);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text-header {
    text-align: center;
    color: #fff;
    margin-bottom: 80px;
}

    .hero-text-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 4rem;
        color: #c2a45d;
        margin-bottom: 15px;
    }

    .hero-text-header p {
        color: #ccc;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }

/* Services Bento Grid */
.bento-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
}

    .glass-card:hover {
        transform: translateY(-15px);
        background: rgba(194, 164, 93, 0.1);
        border-color: #c2a45d;
    }

.bento-img-wrap {
    width: 100%;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 4px solid #fff;
}

    .bento-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.bento-info h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.bento-info p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.explore-tag {
    color: #c2a45d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- RE-DESIGNED ACCORDION SECTION (FIXED VISIBILITY) --- */
.expandable-services-section {
    padding: 50px 0px;
    background-color: #121212; /* Dark background */
}

.container-inner {
    max-width: 900px;
    margin: 0 auto;
}

.gold-text-main {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #fff;
    text-align: center;
}

.gold-line-center {
    width: 80px;
    height: 3px;
    background: #c2a45d;
    margin: 20px auto 40px;
}

.glass-card-v2 {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.accordion-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

    .accordion-header h3 {
        color: #c2a45d;
        font-size: 1.5rem;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        margin: 0;
    }

.plus-icon {
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.accordion-item.active .plus-icon {
    transform: rotate(45deg);
    color: #c2a45d;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.2);
}

.content-inner {
    padding: 0 30px 40px 30px;
}

.service-desc {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-list-v2 {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

    .service-list-v2 li {
        color: #fff;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 15px;
    }

        .service-list-v2 li i {
            color: #c2a45d;
            font-size: 14px;
        }

.price-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .price-footer span {
        color: #999;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

.gold-price {
    font-size: 1.5rem;
    color: #c2a45d;
}

/* --- PINTEREST MASONRY LAYOUT --- */
.portfolio-showcase-masonry {
    background-color: rgba(255, 255, 255, 0.1); /* Latar belakang gelap */
    padding: 30px 20px 120px;
}

/* --- MOSAIC 8 PORTFOLIO LAYOUT --- */
.mosaic-8-container {
    display: grid;
    /* Mencipta grid dengan 4 lajur utama */
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px; /* Tinggi asas setiap baris */
    gap: 15px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

    /* Mengatur spesifikasi Mosaic 8 mengikut urutan item */
    /* Kotak Besar (Utama) */
    .mosaic-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Kotak Menegak (Tall) */
    .mosaic-item:nth-child(2),
    .mosaic-item:nth-child(7) {
        grid-row: span 2;
    }

    /* Kotak Melintang (Wide) */
    .mosaic-item:nth-child(5) {
        grid-column: span 2;
    }

/* Kotak Kecil (Standard 1x1) - Item lain secara automatik akan mengisi ruang */

/* --- ARTWORK STYLING --- */
.artwork-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #1a1a1a;
}

    .artwork-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

/* --- OVERLAY STYLING --- */
.artwork-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-item:hover .artwork-overlay {
    opacity: 1;
}

.overlay-content h4 {
    color: #c2a45d; /* Warna Emas Artisan */
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin: 0;
}

.overlay-content span {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- RESPONSIVE OPTIMIZATION --- */
@media (max-width: 1024px) {
    .mosaic-8-container {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Reset span untuk tablet supaya grid tidak hancur */
    .mosaic-item:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .mosaic-8-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .mosaic-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }
    /* Kekalkan 1 kotak besar untuk impak visual di mobile */
    .mosaic-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* --- REFINED PROCESS SECTION --- */
.process-section-v2 {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.section-title-dark {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #1c1c1e;
}

.process-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 60px auto;
}

.process-step {
    position: relative;
    padding: 20px;
}

.step-num {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(194, 164, 93, 0.1);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.step-icon {
    color: #c2a45d;
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.process-step h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1c1c1e;
    position: relative;
    z-index: 2;
}

.process-step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Banner */
.cta-banner-v2 {
    margin-top: 80px;
}

    .cta-banner-v2 p {
        font-family: 'Playfair Display', serif;
        font-size: 2rem;
        font-style: italic;
        color: #1c1c1e;
        margin-bottom: 30px;
    }

.btn-gold-pill {
    background: #c2a45d;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    border: 2px solid #c2a45d;
}

    .btn-gold-pill:hover {
        background: transparent;
        color: #c2a45d;
    }

/* --- REVEAL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

    .reveal-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
    .bento-services-grid {
        grid-template-columns: 1fr;
    }

    .bento-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .hero-text-header h1 {
        font-size: 2.8rem;
    }

    .gold-text-main, .section-title-dark {
        font-size: 2.2rem;
    }

    .process-grid-v2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes bentoEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- HERO BENTO STYLING WITH ANIMATION --- */
.bento-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    perspective: 1000px; /* Penting untuk kesan 3D */
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    cursor: pointer;
    text-align: center;
    /* Entrance Animation */
    opacity: 0;
    animation: bentoEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

    /* Staggered Delay (Muncul satu persatu) */
    .glass-card:nth-child(1) {
        animation-delay: 0.2s;
    }

    .glass-card:nth-child(2) {
        animation-delay: 0.4s;
    }

    .glass-card:nth-child(3) {
        animation-delay: 0.6s;
    }

    /* Kesan Hover yang lebih 'Alive' */
    .glass-card:hover {
        transform: translateY(-15px) rotateX(5deg) rotateY(2deg);
        background: rgba(194, 164, 93, 0.15);
        border-color: #c2a45d;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(194, 164, 93, 0.2);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

/* Animasi Imej dalam Card */
.bento-img-wrap {
    overflow: hidden;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.glass-card:hover .bento-img-wrap {
    transform: scale(1.05);
    border-color: #c2a45d;
}

/* Animasi Ikon Explore */
.explore-tag i {
    transition: transform 0.3s ease;
}

.glass-card:hover .explore-tag i {
    transform: translateX(8px);
}

/* Background Blur Animation */
.hero-bg-blur {
    animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        filter: blur(25px) brightness(0.2) hue-rotate(0deg);
    }

    100% {
        filter: blur(35px) brightness(0.25) hue-rotate(15deg);
    }
}

/* =========================================
   5. REFINED MOBILE OPTIMIZATION
   ========================================= */

@media (max-width: 900px) {
    /* HERO BANNER: Jarak zon selamat dari navbar mobile */
    .services-hero-bento {
        padding-top: 140px !important;
        padding-bottom: 60px;
        height: auto;
        min-height: auto;
    }

    .hero-text-header {
        margin-bottom: 50px;
    }

        .hero-text-header h1 {
            font-size: 2.8rem;
        }

    /* BENTO GRID: Menegak 1 lajur yang lebih kompak */
    .bento-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 24px; /* Kekalkan bucu bulat premium */
    }

    .bento-img-wrap {
        height: 180px; /* Rendahkan tinggi imej supaya tak makan ruang skrin phone */
        border-radius: 16px;
        margin-bottom: 15px;
    }

    /* ACCORDION RE-STYLE */
    .expandable-services-section {
        padding: 60px 15px;
    }

    .container-inner {
        width: 100%;
        padding: 0 10px;
    }

    .gold-text-main, .section-title-dark {
        font-size: 2.2rem;
    }

    .accordion-header {
        padding: 20px;
    }

        .accordion-header h3 {
            font-size: 1.15rem; /* Saiz teks bersesuaian dengan lebar phone */
        }

    .content-inner {
        padding: 0 20px 30px 20px;
    }

    /* PROCESS SECTION */
    .process-grid-v2 {
        grid-template-columns: 1fr;
        gap: 50px; /* Jarak antara langkah proses */
        margin: 40px auto;
    }

    .process-step {
        padding: 10px 0;
    }

    .step-num {
        font-size: 4rem; /* Kecilkan sedikit nombor latar belakang gergasi */
        top: -25px;
    }

    .cta-banner-v2 {
        margin-top: 50px;
    }

        .cta-banner-v2 p {
            font-size: 1.6rem;
        }
}

/* Penyelarasan khusus untuk skrin paparan tablet/phone sederhana */
@media (max-width: 768px) {
    /* MOSAIC 8 GALLERY PORTFOLIO */
    .portfolio-showcase-masonry {
        padding: 40px 10px 80px;
    }

    .mosaic-8-container {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 140px !important; /* Rendahkan asas baris mengikut skrin */
        gap: 10px !important; /* Rapatkan gap untuk impak gaya Pinterest */
        padding: 0 10px;
    }

    /* Aturan semula kedudukan Mosaic 8 untuk mobile */
    .mosaic-item:nth-child(n) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Kekalkan item pertama sebagai hero gergasi (2x2) untuk visual dominan */
    .mosaic-item:nth-child(1) {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }

    .mosaic-item {
        border-radius: 12px; /* Lekukan bucu halus pada portfolio */
    }
}

/* Penyelarasan tambahan untuk telefon skrin kecil */
@media (max-width: 480px) {
    .services-hero-bento {
        padding-top: 120px !important;
    }

    .hero-text-header h1 {
        font-size: 2.3rem;
    }

    .gold-text-main, .section-title-dark {
        font-size: 1.8rem;
    }

    .price-footer {
        flex-direction: column; /* Pecahkan harga dan teks kepada 2 baris di phone kecil */
        gap: 10px;
        text-align: center;
    }

    .btn-gold-pill {
        width: 100%;
        display: inline-block;
        box-sizing: border-box;
    }
}