@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --gold: #D4AF37;
    --gold-dark: #b5952f;
    --dark: #1a1a1a;
    --grey: #f9f9f9;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: #fff;
}

/* =========================================
   BAGIAN HEADER (UPDATED)
   ========================================= */
.proyek-hero-combined {
    position: relative;
    width: 100%;

    /* UKURAN DESKTOP: Tetap 600px sesuai request "mantep" */
    height: 600px;

    margin-top: 70px;

    background-image: url('/imgheader/gambar3.jpeg');
    background-size: cover;
    background-position: center bottom; /* Fokus ke bawah */
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    overflow: hidden;
}

/* Matikan div background lama */
.hero-bg {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 1rem;
    color: #ccc;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.current {
    color: var(--gold);
    font-weight: 600;
}

.separator {
    margin: 0 10px;
    color: var(--gold);
}

/* --- STATS DI HEADER --- */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-stat-card:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* =========================================
   BAGIAN KONTEN LAIN (TIDAK BERUBAH)
   ========================================= */
.stats-section {
    background-color: var(--dark);
    color: white;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box {
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.project-gallery {
    padding: 0 20px 80px;
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

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

.project-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 300px;
    transition: 0.3s ease;
}

.project-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.cat-badge {
    background: var(--gold);
    color: var(--dark);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.overlay-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
}

.overlay-content p {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 15px;
}

.see-detail {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-dark-section {
    background-color: #121212;
    padding: 100px 20px;
    overflow: hidden;
}

.featured-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-image-box {
    position: relative;
    padding: 20px 0 0 20px;
}

.main-feat-img {
    width: 100%;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.gold-frame-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 8px;
    z-index: 1;
    transform: translate(-20px, -20px);
}

.feat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feat-icon {
    color: var(--gold);
    font-size: 1.2rem;
}

.feat-subtitle {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.feat-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feat-desc {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1rem;
    text-align: justify;
}

.feat-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.feat-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 8px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: 0.3s;
}

.feat-stat-card:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.feat-stat-card i {
    font-size: 24px;
    color: var(--gold);
}

.feat-stat-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.feat-stat-card span {
    font-size: 0.8rem;
    color: #999;
}

.btn-gold-solid {
    background-color: var(--gold);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-gold-solid:hover {
    background-color: white;
    color: var(--gold);
    transform: translateY(-3px);
}

.mt-4 {
    margin-top: 20px;
}

/* --- CTA SECTION --- */
.cta-section {
    background-color: #121212;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    margin-top: 0;
}

.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}

.glow-left { top: -100px; left: -100px; }
.glow-right { bottom: -100px; right: -100px; }

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 50px;
    line-height: 1.6;
}

.cta-contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    padding: 20px 30px;
    border-radius: 12px;
    min-width: 280px;
}

.contact-icon i {
    color: var(--gold);
    font-size: 28px;
}

.contact-info-text {
    text-align: left;
}

.contact-info-text span {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.contact-info-text strong {
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.5px;
}

.cta-footer-note {
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.btn-gold-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 40px;
    border: 2px solid var(--gold);
    background-color: transparent;
    color: var(--gold);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-gold-outline:hover {
    background-color: var(--gold);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-gold-outline i {
    font-size: 1.4rem;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   MEDIA QUERIES (HP / MOBILE)
   ========================================= */

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .gold-frame-outline {
        transform: translate(-10px, -10px);
    }
    .feat-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 1. HEADER LOGIC (FIXED UNTUK STATS MUNCUL) */
    .proyek-hero-combined {
        /* Gunakan height: auto agar background memanjang mengikuti isi (stats) */
        height: auto;

        /* Matikan rasio 16/9 karena isi stats akan membuatnya lebih tinggi */
        aspect-ratio: auto;

        background-position: center bottom;
        padding: 40px 20px; /* Kasih jarak atas bawah yang lega */

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .hero-text {
        margin-bottom: 20px;
    }

    /* 2. STATS MUNCUL KEMBALI DI HP */
    .hero-stats-grid {
        display: grid; /* MUNCULKAN */
        grid-template-columns: repeat(2, 1fr); /* 2 Kolom Kiri Kanan */
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }

    /* 3. STYLE KOTAK KECIL HP */
    .hero-stat-card {
        flex-direction: column;
        justify-content: center;
        padding: 15px 10px;
        background: rgba(255, 255, 255, 0.15); /* Lebih terang dikit */
    }

    .stat-number {
        font-size: 1.5rem;
        margin: 5px 0 0 0;
    }

    .stat-icon i {
        font-size: 1.5rem;
        margin: 0;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* --- Style Lainnya --- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .feat-title {
        font-size: 2.2rem;
    }
    .feat-stats-grid {
        grid-template-columns: 1fr;
    }
    .btn-gold-solid {
        width: 100%;
        text-align: center;
    }
    .cta-title {
        font-size: 2rem;
    }
    .cta-contact-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .contact-box {
        width: 100%;
        justify-content: center;
    }
}