﻿/* =========================================
   ARTISAN VISUAL - STYLEPORTFOLIO COMPLETE
   ========================================= */

/* --- 1. ASAS & TIPOGRAFI (GLOBAL STYLES) --- */
body {
    background-color: #0c0c0c;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Sembunyikan footer Master Page khusus untuk halaman portfolio sahaja */
.site-footer {
    display: none !important;
}

/* Meneutralkan semula padding/margin milik Master Page (.container) */
.container {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
}

/* --- 2. CONTAINER UTAMA & REKABENTUK DESKTOP --- */
.landing-slider.landing-center {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ==================================================================
   KOD PERISAI DESKTOP VIEW SAHAJA (Skrin 769px ke atas)
   Dua baris kod ini hanya akan berjalan di PC/Laptop sahaja. 
   Ia dijamin 100% TIDAK AKAN menceroboh atau merosakkan versi mobile!
   ================================================================== */
@media (min-width: 769px) {
    html, body {
        overflow: hidden !important;
        height: 100vh !important;
    }

    .landing-slider.landing-center {
        padding-top: 100px !important;
        box-sizing: border-box !important;
    }
}

/* Latar Belakang Cinematic */
.bg-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .bg-slide-item.active {
        opacity: 1;
        visibility: visible;
    }

    .bg-slide-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(12px) brightness(0.25);
    }

/* Overlay Fokus Tengah */
.gradient-overlay-center {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

/* Wrapper Kandungan */
.center-layout-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-height: 100vh;
    padding: 20px;
    justify-content: center;
}

/* --- LOGIK TEKS (ANTI-BERTINDIH) --- */
.hero-text-center {
    width: 100%;
    margin-bottom: 20px;
}

.hero-item {
    display: none;
    opacity: 0;
}

    .hero-item.active {
        display: block;
        opacity: 1;
        animation: artisanFadeIn 0.8s forwards;
    }

.brand-tag {
    color: #c2a45d;
    letter-spacing: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.main-display-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    color: #fff;
    line-height: 1.1;
    margin: 10px 0;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-subtext {
    color: #ccc;
    font-size: 0.9rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- BUTANG EXPLORE WORK (GOLD THEME) --- */
.btn-discover-gold {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    color: #fff;
    border: 2px solid #c2a45d;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    margin-top: 25px;
    margin-bottom: 35px;
}

    .btn-discover-gold:hover {
        background: #c2a45d;
        color: #000;
        box-shadow: 0 0 25px rgba(194, 164, 93, 0.5);
        transform: translateY(-3px);
    }

/* --- KAD NAVIGASI (ANIMASI & KECIL) --- */
.nav-cards-center-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    flex-wrap: nowrap;
}

.nav-card-item {
    width: 180px;
    height: 260px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    flex-shrink: 1;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

    /* Delay animasi untuk setiap kad */
    .nav-card-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-card-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-card-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-card-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-card-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-card-item:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-card-item:nth-child(7) {
        animation-delay: 0.7s;
    }

    .nav-card-item:nth-child(8) {
        animation-delay: 0.8s;
    }

    .nav-card-item:hover {
        transform: translateY(-12px) scale(1.03);
        border-color: #c2a45d;
        background: rgba(255, 255, 255, 0.1);
    }

/* Imej Kad Full Display */
.card-img-mask {
    position: absolute;
    inset: 0;
}

    .card-img-mask img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.4;
        transition: 0.6s;
    }

.nav-card-item:hover .card-img-mask img {
    opacity: 0.8;
    transform: scale(1.1);
}

.card-details {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.card-number {
    color: #c2a45d;
    font-weight: 800;
    font-size: 1.4rem;
    display: block;
}

.card-details h4 {
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* --- ANIMASI KEYFRAMES --- */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes artisanFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   3. RESPONSIVE ADJUSTMENTS (KOD ASAL ANDA)
   ========================================= */

/* Tablet & Mobile (Layar Bawah 768px) */
@media (max-width: 768px) {
    /* 1. Paksa skrol berlaku secara natural pada peringkat PAGE sahaja */
    html, body, form, .container {
        overflow: visible !important;
        overflow-x: hidden !important;
        height: auto !important;
    }

    /* 2. MATIKAN terus sebarang skrol/slider dalaman pada webbanner */
    .landing-slider.landing-center {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        padding-top: 140px !important;
        padding-bottom: 60px !important;
    }

    /* 3. BUANG SEKATAN DESKTOP (max-height) supaya tiada double scrollbar */
    .center-layout-wrapper {
        padding: 0 15px !important;
        height: auto !important;
        max-height: none !important; /* KOD MAGIK: Membunuh bar skrol putih pada webbanner */
        overflow: visible !important;
    }

    .main-display-title {
        font-size: 2.5rem;
    }

    /* 4. SUSUNAN 2 LAJUR KAD PORTFOLIO (KEKAL SEPERTI ASAL AWAK) */
    .nav-cards-center-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-card-item {
        width: 100% !important;
        height: 220px !important;
        margin-bottom: 0 !important;
    }

    .card-number {
        font-size: 1.1rem;
    }

    .card-details h4 {
        font-size: 0.65rem;
    }
}

/* Telefon Kecil (Layar Bawah 480px) */
@media (max-width: 480px) {
    .landing-slider.landing-center {
        padding-top: 120px;
    }

    .nav-cards-center-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .nav-card-item {
        height: 180px;
    }

    .main-display-title {
        font-size: 2rem;
    }
}
