/* ============================================
   BIRAWA KONTRAKTOR - PREMIUM VIDEO BACKGROUND THEME
   (Versi Rapi & Berkomentar Lengkap)
   ============================================ */

/* ============================================
   1. VARIABEL CSS (PUSAT PENGATURAN TEMA)
   Ganti nilai di sini untuk mengubah tema seluruh website sekaligus
   ============================================ */
:root {
    /* Warna Dasar (Background & Kartu) */
    --color-bg-primary: #0a0a0a;     /* Hitam pekat untuk fallback background */
    --color-bg-secondary: #111111;   /* Hitam sedikit lebih terang */
    --color-bg-tertiary: #1a1a1a;    /* Hitam abu-abu */
    --color-bg-card: #161616;        /* Warna dasar kartu sebelum ditambah efek kaca */
    
    /* Warna Teks */
    --color-text-primary: #ffffff;   /* Putih murni untuk judul utama */
    --color-text-secondary: #e2e8f0; /* Putih sedikit abu-abu (Slate 200) untuk paragraf */
    --color-text-muted: #cbd5e1;     /* Abu-abu terang untuk teks tambahan/placeholder */
    
    /* Warna Aksen (Emas) */
    --color-accent-gold: #d4af37;       /* Emas standar Birawa */
    --color-accent-gold-light: #fef08a; /* Kuning terang untuk efek kilauan/cahaya */
    --color-accent-gold-dark: #b8960c;  /* Emas gelap untuk bayangan */
    
    /* Pengaturan Font (Huruf) */
    --font-primary: 'Poppins', sans-serif;    /* Font utama (untuk paragraf & tombol) */
    --font-secondary: 'Montserrat', sans-serif; /* Font kedua (untuk Judul besar) */
    
    /* Ukuran Jarak & Tata Letak Dasar */
    --section-padding: 100px;           /* Jarak (ruang kosong) atas & bawah setiap bagian (section) */
    --container-max-width: 1200px;      /* Lebar maksimal isi website di layar komputer besar */
    
    /* Kecepatan Animasi Transisi (Saat di-hover/disentuh kursor) */
    --transition-fast: 0.3s ease;       /* Cepat (0.3 detik) */
    --transition-medium: 0.5s ease;     /* Sedang (0.5 detik) */
}


/* ============================================
   2. PENGATURAN DASAR & RESET
   ============================================ */
/* Menghapus jarak bawaan browser agar layout rapi */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Efek scroll halus saat menu navbar diklik */
    font-size: 16px;         /* Ukuran font dasar website */
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    line-height: 1.6;        /* Jarak antar baris teks (spasi baris) */
    overflow-x: hidden;      /* Mencegah website bisa digeser ke samping (mencegah layar kepotong) */
    background: transparent !important; /* WAJIB TRANSPARAN agar video di belakangnya terlihat */
}

a { 
    text-decoration: none; /* Menghilangkan garis bawah pada link */
    color: inherit; 
    transition: var(--transition-fast); 
}

ul { list-style: none; /* Menghilangkan titik (bullet) pada list menu */ }

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

.container { 
    max-width: var(--container-max-width); 
    margin: 0 auto;       /* Membuat konten selalu berada di tengah layar */
    padding: 0 20px;      /* Jarak aman kiri & kanan sebesar 20px */
}


/* ============================================
   3. ANIMASI KEYFRAMES (EFEK BERGERAK)
   ============================================ */
/* Animasi teks Hero: Muncul perlahan dari bawah ke atas */
@keyframes premiumTitleSlide {
    0% { 
        opacity: 0; 
        letter-spacing: 5px; /* Spasi huruf lebar di awal */
        transform: translateY(30px); /* Posisi awal di bawah */
    }
    100% { 
        opacity: 1; 
        letter-spacing: 1px; /* Spasi huruf kembali normal */
        transform: translateY(0); /* Posisi kembali ke tempat semula */
    }
}

/* Animasi cahaya mengalir pada teks warna emas */
@keyframes shimmerGradient {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}


/* ============================================
   4. VIDEO BACKGROUND LAYAR PENUH
   ============================================ */
.video-bg-wrapper {
    position: fixed; /* Mengunci posisi agar tidak ikut terscroll */
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100vh; /* 100vh = 100% tinggi layar */
    z-index: -10;  /* Menaruh elemen ini di lapisan paling belakang */
    overflow: hidden;
    background: #0a0a0a; /* Warna cadangan jika video gagal dimuat */
}

#bgVideo {
    position: fixed;
    top: 50%; 
    left: 50%;
    min-width: 100%; 
    min-height: 100%;
    transform: translateX(-50%) translateY(-50%); /* Memastikan video pas di tengah layar */
    object-fit: cover; /* Memaksa video menutupi seluruh layar tanpa mengubah rasio asli */
}

/* Lapisan Kaca Gelap di Atas Video (Agar teks terbaca) */
.video-overlay-dark {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important;
    width: 100vw !important; 
    height: 100vh !important;
    /* GANTI ANGKA 0.75: 0.90 = makin gelap, 0.50 = makin terang (video makin jelas) */
    background: rgba(5, 5, 10, 0.75) !important; 
    z-index: -8 !important; /* Berada di atas video, tapi di bawah teks */
}


/* ============================================
   5. LOADING SCREEN (LAYAR SAAT MEMUAT)
   ============================================ */
#loading-screen {
    position: fixed; 
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: #0a0a0a; 
    display: flex; 
    justify-content: center; 
    align-items: center; /* Membuat isi loading tepat di tengah layar */
    z-index: 9999;       /* Lapisan paling depan menutupi segalanya */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Kecepatan hilang saat web selesai dimuat */
}

#loading-screen.hidden { 
    opacity: 0; 
    visibility: hidden; 
}

.loading-logo {
    font-family: var(--font-secondary); 
    font-size: 2rem; 
    font-weight: 700;
    color: var(--color-accent-gold); 
    margin-bottom: 30px; 
    letter-spacing: 2px;
}

.loading-bar {
    width: 200px; /* Panjang garis loading */
    height: 3px;  /* Ketebalan garis loading */
    background: rgba(255,255,255,0.1);
    border-radius: 3px; 
    overflow: hidden; 
    margin: 0 auto;
}

.loading-progress {
    width: 0; 
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
    animation: loadingProgress 1.5s ease forwards; /* Waktu loading: 1.5 detik */
}

@keyframes loadingProgress { 
    0% { width: 0; } 
    100% { width: 100%; } 
}


/* ============================================
   6. NAVBAR (MENU ATAS) & LOGO
   ============================================ */
.navbar {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    z-index: 1000; 
    padding: 20px 0; /* Jarak atas-bawah navbar saat posisi paling atas */
    transition: var(--transition-medium); 
    background: transparent;
}

/* Navbar saat layar di-scroll ke bawah */
.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95); /* Latar belakang hitam transparan 95% */
    backdrop-filter: blur(10px);        /* Efek blur kaca di belakang menu */
    padding: 15px 0;                    /* Ukuran navbar mengecil sedikit (15px) */
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5); /* Bayangan bawah menu */
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; /* Logo di kiri, Menu di kanan */
    align-items: center; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* Jarak antara gambar logo dan teks logo */
}

/* Pengaturan Logo Gambar */
.custom-logo {
    height: 100px; /* UBAH ANGKA INI: untuk membesarkan/mengecilkan gambar logo */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 5px rgba(0,0,0,0.5));
}

/* Teks Logo Birawa Kontraktor */
.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.4rem;  /* UBAH ANGKA INI: untuk ukuran huruf logo (contoh: 1.6rem) */
    font-weight: 700;
    letter-spacing: 1px;
    
    /* Efek gradasi warna emas */
    background: linear-gradient(to right, #ffffff 20%, var(--color-accent-gold-light) 50%, #ffffff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmerGradient 4s linear infinite; /* Menjalankan animasi cahaya */
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
}

.nav-menu { 
    display: flex; 
    gap: 35px; /* Jarak antar teks menu (Home, Layanan, Kontak, dll) */
}

.nav-link { 
    font-size: 0.95rem; 
    font-weight: 500; 
    color: #ffffff; 
    position: relative; 
    padding: 5px 0; 
    text-shadow: 0 1px 3px #000; 
}

/* Garis bawah animasi saat menu di-hover (disentuh kursor) */
.nav-link::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; /* Lebar awal 0 (sembunyi) */
    height: 2px;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active { 
    color: var(--color-accent-gold-light); 
}
.nav-link:hover::after, .nav-link.active::after { 
    width: 100%; /* Garis memanjang penuh saat menu disentuh */
}

/* Menu Garis Tiga (Hamburger) untuk Layar HP */
.hamburger { 
    display: none; /* Disembunyikan di layar komputer */
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    z-index: 1001; 
}
.bar { 
    width: 28px; 
    height: 2px; 
    background: #fff; 
    transition: var(--transition-fast); 
    border-radius: 2px; 
}

/* Animasi perubahan garis tiga menjadi tanda silang (X) */
.hamburger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================
   7. HERO SECTION (BAGIAN SAMBUTAN AWAL)
   ============================================ */
.hero {
    position: relative; 
    height: 100vh;      /* Tinggi hero menutupi 100% layar (full screen) */
    min-height: 700px;  /* Batas tinggi minimal */
    display: flex; 
    align-items: center;  /* Mengatur isi (teks & tombol) berada di tengah vertikal */
    justify-content: center; /* Mengatur isi berada di tengah horizontal */
    background: transparent !important;
}

.hero-content { 
    text-align: center; 
    padding: 0 20px; 
    max-width: 900px; /* Lebar maksimal teks agar tidak memanjang sampai ke ujung layar */
}

/* Judul Utama (H1) */
.hero-title {
    font-family: var(--font-secondary);
    font-size: 3.8rem; /* UBAH ANGKA INI: untuk memperbesar/memperkecil teks utama */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px; /* Jarak antara Judul H1 dengan Sub-judul di bawahnya */
    
    /* Warna gradasi yang mengalir */
    background: linear-gradient(to right, #ffffff 20%, var(--color-accent-gold-light) 50%, #ffffff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Memanggil efek animasi masuk (fade in) & warna mengalir (shimmer) */
    animation: premiumTitleSlide 1.5s ease-out forwards, shimmerGradient 5s linear infinite;
    animation-delay: 0.5s, 0s;
    opacity: 0;
    
    /* Bayangan teks hitam sangat tebal agar tidak menyatu dengan video putih/terang */
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 1)) drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.9));
}

/* Sub-judul di bawah H1 */
.hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 40px; /* Jarak antara Teks ini dengan Tombol di bawahnya */
    text-shadow: 1px 1px 3px #000000, 0px 0px 10px #000000, 0px 0px 25px rgba(0,0,0,0.9) !important;
}

/* Bungkus Tombol (Merapikan posisi 2 tombol sejajar) */
.hero-cta { 
    display: flex; 
    gap: 20px; /* Jarak antar tombol */
    justify-content: center; 
    flex-wrap: wrap; /* Jika layar kecil, tombol ke-2 akan turun ke baris baru otomatis */
}


/* ============================================
   8. PENGATURAN TOMBOL (BUTTONS)
   ============================================ */
.btn {
    display: inline-flex; 
    align-items: center; 
    gap: 10px; /* Jarak antara icon dan teks dalam tombol */
    
    /* PADDING KOTAK TOMBOL: 
       15px = Ketebalan atas & bawah 
       35px = Lebar kiri & kanan */
    padding: 15px 35px; 
    
    font-size: 1rem; 
    font-weight: 600;
    border-radius: 8px; /* UBAH ANGKA INI: untuk membuat ujung tombol makin bulat (misal 50px) */
    transition: var(--transition-fast);
    cursor: pointer; 
    border: none; 
    font-family: var(--font-primary);
}

/* Tombol Emas (Utama) */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
    color: #000; 
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover { /* Efek saat disentuh mouse */
    transform: translateY(-3px); /* Tombol melompat ke atas 3px */
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6); 
}

/* Tombol Transparan (Kedua) */
.btn-secondary { 
    background: rgba(0,0,0,0.4); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.5); 
    backdrop-filter: blur(5px); 
}
.btn-secondary:hover { 
    background: #fff; 
    color: #000; 
    border-color: #fff; 
    transform: translateY(-3px); 
}

/* Tombol WhatsApp (Hijau) */
.btn-whatsapp { 
    background: #25d366; 
    color: #ffffff; 
    padding: 15px 30px; 
    margin-top: 20px; 
}
.btn-whatsapp:hover { 
    background: #128c7e; 
    transform: translateY(-3px); 
}

/* Penanda Panah Scroll ke Bawah */
.scroll-indicator {
    position: absolute; 
    bottom: 40px; 
    left: 50%; 
    transform: translateX(-50%);
    text-align: center; 
    color: rgba(255,255,255,0.8); 
    animation: bounce 2s infinite; /* Efek lompat-lompat */
    text-shadow: 0 2px 4px #000;
}
.scroll-indicator p { font-size: 0.8rem; margin-top: 10px; text-transform: uppercase; letter-spacing: 2px; }
.mouse { width: 26px; height: 40px; border: 2px solid rgba(255,255,255,0.8); border-radius: 20px; margin: 0 auto; position: relative; }
.wheel { width: 4px; height: 8px; background: var(--color-accent-gold); border-radius: 2px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: scrollWheel 1.5s infinite; }

@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-10px); } 60% { transform: translateX(-50%) translateY(-5px); } }
@keyframes scrollWheel { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 20px; } }


/* ============================================
   9. PENGATURAN SECTION UMUM (JUDUL-JUDUL HALAMAN)
   ============================================ */
section { 
    padding: var(--section-padding) 0; /* var(--section-padding) = 100px. Memberi jarak lega antar blok halaman */
    background: transparent !important; 
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-subtitle {
    display: inline-block; 
    font-size: 0.9rem; 
    font-weight: 800 !important; 
    color: var(--color-accent-gold);
    text-transform: uppercase; 
    letter-spacing: 4px !important; 
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px #000000, 0px 0px 15px rgba(0, 0, 0, 0.9) !important;
}

.section-title {
    font-family: var(--font-secondary); 
    font-size: 2.5rem; 
    font-weight: 700; 
    color: #ffffff !important; 
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px #000000, 0px 0px 25px rgba(0, 0, 0, 0.95) !important;
}

/* Garis emas pemisah di bawah judul */
.section-line {
    width: 80px; 
    height: 3px; 
    margin: 0 auto; 
    border-radius: 3px;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%) !important;
}


/* ============================================
   10. TENTANG KAMI SECTION
   ============================================ */
.about-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Membagi halaman jadi 2 kolom (Kiri: Gambar, Kanan: Teks) */
    gap: 60px; /* Jarak antara kotak gambar dan kotak teks */
    align-items: center; 
}

.about-image { position: relative; }
.image-wrapper { 
    position: relative; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); 
}
.image-wrapper img { width: 100%; border-radius: 15px; transition: var(--transition-medium); }
.image-wrapper:hover img { transform: scale(1.05); /* Foto membesar sedikit saat disentuh */ }

/* Label 10+ Tahun Pengalaman */
.experience-badge {
    position: absolute; 
    bottom: -20px; /* Posisi melebihi batas bawah foto sedikit */
    right: -20px;  /* Posisi melebihi batas kanan foto sedikit */
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
    color: #000; 
    padding: 25px 30px; 
    border-radius: 15px; 
    text-align: center; 
    box-shadow: 0 0 30px rgba(212,175,55,0.4);
}
.experience-badge .years { display: block; font-family: var(--font-secondary); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.experience-badge .text { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Kotak Kaca Gelap Pembungkus Teks (Glassmorphism) */
.about-text {
    background: rgba(10, 10, 10, 0.70) !important; /* Warna dasar hitam tembus pandang 70% */
    backdrop-filter: blur(12px); /* Efek blur ala kaca */
    
    /* PADDING KOTAK KACA:
       35px = Ketebalan Atas & Bawah
       40px = Lebar Kiri & Kanan (Ruang lega dalam kotak) */
    padding: 35px 40px !important; 
    
    border-radius: 20px !important; /* Ujung kotak melengkung */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* Garis tepi warna putih sangat tipis */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
}

.about-text h3 {
    font-family: var(--font-secondary); 
    font-size: 2rem; 
    font-weight: 700;
    color: var(--color-accent-gold); 
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px #000000, 0px 0px 20px rgba(0,0,0,0.9) !important;
}

.about-description { 
    margin-bottom: 20px; 
    line-height: 1.8; 
    color: #ffffff !important; 
    text-shadow: 1px 1px 3px #000000 !important; 
    font-weight: 500 !important; 
}

/* List Centang Keunggulan */
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0; }
.feature-item { display: flex; align-items: center; gap: 10px; }
.feature-icon {
    width: 24px; height: 24px; background: rgba(212, 175, 55, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--color-accent-gold); font-size: 0.8rem;
}
.feature-item span { font-size: 0.95rem; color: #ffffff !important; text-shadow: 1px 1px 3px #000000 !important; font-weight: 500 !important; }


/* ============================================
   11. LAYANAN & KEUNGGULAN SECTION (KARTU KACA)
   ============================================ */
.services-grid, .advantages-grid {
    display: grid; 
    /* Kartu akan otomatis menyesuaikan diri. Lebar minimal 260px, maksimal seukuran layar (1fr) */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; /* Jarak antar kartu (misal antara Desain dan Renovasi) */
}

/* Desain Kotak Kartu */
.service-card, .advantage-card {
    background: rgba(10, 10, 10, 0.55) !important; /* Latar belakang kaca */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px; 
    padding: 40px 30px; 
    text-align: center;
    transition: var(--transition-fast); 
    position: relative; 
    overflow: hidden;
}

/* Garis Emas di Atas Kartu (Animasi) */
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
    transform: scaleX(0); /* Awalnya tidak terlihat (lebar 0) */
    transition: var(--transition-fast);
}

/* Efek Hover (Saat Kartu Disentuh Mouse) */
.service-card:hover, .advantage-card:hover {
    transform: translateY(-10px); /* Kartu naik ke atas 10px */
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    background: rgba(10, 10, 10, 0.8) !important; /* Warna kaca makin gelap */
    border-color: rgba(212, 175, 55, 0.4) !important; /* Garis tepi jadi emas */
}
.service-card:hover::before { 
    transform: scaleX(1); /* Garis emas memanjang menutupi batas atas kartu */
}

/* Icon / Simbol di dalam kartu */
.service-icon, .advantage-icon {
    width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px; font-size: 2rem; transition: var(--transition-fast);
}
.service-icon { background: rgba(212, 175, 55, 0.1); color: var(--color-accent-gold); }
.advantage-icon { background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%); color: #000; }

.service-card:hover .service-icon { background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%); color: #000; transform: rotateY(360deg); }

/* Teks di dalam kartu */
.service-card h3, .advantage-card h3 {
    font-family: var(--font-secondary); font-size: 1.3rem; font-weight: 1000; margin-bottom: 15px; color: #ffffff; text-shadow: 0 2px 4px #000;
}
.service-card p, .advantage-card p { 
    color: #ffffff !important; font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); 
}

.service-link { display: inline-flex; align-items: center; gap: 8px; color: var(--color-accent-gold-light); font-weight: 600; font-size: 0.95rem; text-shadow: 0 1px 2px #000; }
.service-link:hover { gap: 12px; color: #fff; }


/* ============================================
   12. PORTOFOLIO SECTION (FOTO PROYEK)
   ============================================ */
/* Foto Cover Utama */
.portfolio-intro {
    position: relative; 
    width: 100%; 
    height: 600px; /* Tinggi kotak foto Cover (UBAH JIKA INGIN LEBIH PENDEK/PANJANG) */
    border-radius: 20px;
    overflow: hidden; 
    margin-bottom: 20px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}
.portfolio-intro-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Mencegah foto gepeng */
    transition: transform 15s ease; /* Animasi bergerak otomatis pelan */
}
.portfolio-intro:hover .portfolio-intro-img { transform: scale(1.15); /* Foto membesar otomatis saat disorot */ }

.portfolio-intro-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 10%, rgba(10,10,10,0.3) 100%);
    display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 60px 20px;
}
.portfolio-intro-overlay h3 {
    font-family: var(--font-secondary); font-size: 5.0rem; color: #ffff; margin-bottom: 150px; max-width: 8000px; line-height: 1.4; text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}
.btn-lihat-semua {
    display: inline-flex; align-items: center; gap: 15px; font-size: 3.2rem; font-weight: 600; color: var(--color-accent-gold); text-transform: uppercase; margin-bottom: 100;letter-spacing: 3px; animation: slowPulse 3s infinite ease-in-out; text-shadow: 0 2px 4px #000;
}
.btn-lihat-semua:hover i { transform: translateX(15px); }

/* Bungkus Slider yang muncul saat "Lihat Semua" diklik */
.portfolio-full-wrapper {
    position: relative; width: 100%; 
    height: 0; /* Awalnya 0, jadi slidernya sembunyi */
    overflow: hidden; border-radius: 20px;
    transition: height 1.2s cubic-bezier(0.86, 0, 0.07, 1), margin-top 1.2s ease;
}
.portfolio-full-wrapper.active { 
    height: 650px; /* Tinggi slider saat terbuka penuh (UBAH SESUAI KEBUTUHAN FOTO) */
    margin-top: 40px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}

.portfolio-full-slider { display: flex; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1); }
.full-slide { min-width: 100%; height: 100%; position: relative; }
.full-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Teks Info Alamat Lokasi Proyek */
.slide-info {
    position: absolute; 
    bottom: 40px; /* Jarak dari bawah batas foto */
    left: 40px;   /* Jarak dari kiri batas foto */
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px); 
    padding: 25px 35px; 
    border-radius: 15px; 
    border-left: 5px solid var(--color-accent-gold); 
    border: 1px solid rgba(255,255,255,0.1);
}
.slide-info h4 { font-family: var(--font-secondary); font-size: 1.8rem; color: #ffffff; margin-bottom: 5px; }
.slide-info p { color: #ffffff !important; font-size: 1rem; opacity: 1 !important; }

/* Tombol Panah Geser Slide */
.full-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%; color: var(--color-accent-gold); font-size: 1.5rem; cursor: pointer; transition: all 0.4s ease;
    display: flex; justify-content: center; align-items: center;
}
.full-slider-btn:hover { background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%); color: #000; transform: translateY(-50%) scale(1.1); box-shadow: 0 0 20px rgba(212,175,55,0.5); }
.prev-btn { left: 30px; } .next-btn { right: 30px; }


/* ============================================
   13. STATS SECTION (Angka Penghitung/Counter)
   ============================================ */
.stats {
    background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(10px); padding: 80px 0;
    position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; position: relative; z-index: 1; }
.stat-item { text-align: center; }
.stat-icon {
    width: 60px; height: 60px; background: rgba(212, 175, 55, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem; color: var(--color-accent-gold);
}
.stat-number { font-family: var(--font-secondary); font-size: 3rem; font-weight: 800; color: #ffffff; line-height: 1; margin-bottom: 10px; text-shadow: 0 2px 5px #000; }
.stat-label { font-size: 1rem; color: #ffffff !important; opacity: 1 !important; text-shadow: 0 1px 3px #000; }


/* ============================================
   14. KONTAK SECTION (INFORMASI & FORM)
   ============================================ */
.contact-content { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; /* Membagi halaman. Kiri(Kontak Info): Lebih kecil (1), Kanan(Form): Lebih besar (1.2) */
    gap: 50px; 
}
.contact-card, .contact-form-wrapper {
    background: rgba(10, 10, 10, 0.6) !important; backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 15px; padding: 40px; box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* Profil Owner */
.contact-person { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.person-avatar {
    width: 70px; height: 70px; background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #000;
}
.person-info h3 { font-family: var(--font-secondary); font-size: 1.4rem; font-weight: 700; color: #ffffff; margin-bottom: 5px; text-shadow: 0 2px 4px #000; }
.person-role { color: var(--color-accent-gold); font-size: 0.95rem; font-weight: 500; }

/* Detail Kontak (Alamat dll) */
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 15px; }
.contact-icon {
    width: 45px; height: 45px; background: rgba(212, 175, 55, 0.15); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: var(--color-accent-gold); font-size: 1rem; flex-shrink: 0;
}
.contact-text .label { display: block; font-size: 0.85rem; color: #ffffff !important; opacity: 1 !important; text-shadow: 0 1px 2px #000; margin-bottom: 3px; }
.contact-text p { font-size: 0.95rem; color: #ffffff !important; text-shadow: 0 1px 3px #000; font-weight: 500; }

/* Styling Form Input (Kotak Isian Teks) */
.contact-form h3 { font-family: var(--font-secondary); font-size: 1.5rem; font-weight: 600; margin-bottom: 30px; color: #fff; text-shadow: 0 2px 4px #000; }
.form-group { position: relative; margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.9rem; color: #ffffff !important; opacity: 1 !important; text-shadow: 0 1px 2px #000; margin-bottom: 8px; }

/* Kolom Isian Data */
.form-group input, .form-group textarea {
    width: 100%; 
    padding: 15px 20px; /* Lebar Kotak Input */
    padding-left: 50px; /* Sisakan ruang di kiri untuk posisi icon fontawesome */
    background: rgba(0,0,0,0.5); /* Tembus pandang gelap di kotak input */
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 10px; color: #ffffff; font-size: 1rem; font-family: var(--font-primary); transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus { /* Saat kotak diklik akan menyala emas */
    outline: none; background: rgba(0,0,0,0.8); border-color: var(--color-accent-gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); 
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #cccccc !important; opacity: 1 !important; }
.form-group i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1rem; color: #fff !important; }
.form-group textarea + i { top: 45px; }
.form-group textarea { resize: vertical; min-height: 120px; /* Tinggi kotak pesan */ }


/* ============================================
   15. FOOTER (BAGIAN BAWAH WEBSITE)
   ============================================ */
.footer {
    background: rgba(10, 10, 10, 0.8) !important; backdrop-filter: blur(10px); padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-secondary); font-size: 1.3rem; font-weight: 700; color: #ffffff; margin-bottom: 20px; }
.footer-logo i {
    width: 40px; height: 40px; background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
    border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #000;
}
.footer-description, .footer-links a, .footer-contact-item p {
    color: #ffffff !important; font-size: 0.95rem; line-height: 1.8; text-shadow: 1px 1px 3px #000000, 0px 0px 10px rgba(0,0,0,0.9) !important; font-weight: 500;
}
.footer-links h4, .footer-contact h4 { font-family: var(--font-secondary); font-size: 1.1rem; font-weight: 600; color: #ffffff; margin-bottom: 25px; text-shadow: 0 2px 4px #000; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a:hover { color: var(--color-accent-gold) !important; padding-left: 5px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.footer-contact-item i { color: var(--color-accent-gold); font-size: 1rem; margin-top: 3px; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover { background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%); color: #000; transform: translateY(-3px); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { color: #ffffff !important; font-size: 0.9rem; text-shadow: 0 1px 2px #000 !important; opacity: 1 !important; }
.footer-bottom i { color: #e74c3c; }


/* ============================================
   16. FLOAT BUTTONS (TOMBOL WA & SCROLL TOP MENGAMBANG)
   ============================================ */
/* Mengatur letak tombol WA agar terus berada di pojok kanan bawah layar */
.whatsapp-float {
    position: fixed; 
    bottom: 30px; /* Jarak dari bawah 30px */
    right: 30px;  /* Jarak dari tepi kanan layar 30px */
    width: 60px; height: 60px;
    background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 2rem; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5); z-index: 999;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(10deg); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7); }

/* Tulisan kecil yang keluar saat tombol WA disentuh mouse */
.whatsapp-tooltip {
    position: absolute; right: 75px; background: rgba(10, 10, 10, 0.95); color: #fff;
    padding: 10px 15px; border-radius: 8px; font-size: 0.85rem; white-space: nowrap; opacity: 0; visibility: hidden; border: 1px solid rgba(255,255,255,0.2);
}
.whatsapp-tooltip::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-left-color: rgba(10, 10, 10, 0.95); }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; }

/* Mengatur letak tombol Back to Top di pojok kiri bawah */
.back-to-top {
    position: fixed; 
    bottom: 30px; /* Jarak dari bawah 30px */
    left: 30px;   /* Jarak dari tepi kiri layar 30px */
    width: 50px; height: 50px;
    background: rgba(10,10,10,0.7); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%); color: #000; }

/* Custom Scrollbar (Mempercantik barisan scroll di sisi layar) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-gold); }
::selection { background: var(--color-accent-gold); color: #000; } /* Warna text saat disorot/diblok kursor */


/* ============================================
   17. MEDIA QUERIES (RESPONSIVE LAYOUT UNTUK HP/TABLET)
   Di sinilah tempat mengubah ukuran tampilan jika website dibuka di layar kecil.
   ============================================ */

/* Untuk Tablet dan layar sedang (Maksimal Lebar Layar: 1024px) */
@media (max-width: 1024px) {
    .about-content, .contact-content { grid-template-columns: 1fr; gap: 40px; /* Berubah menjadi 1 kolom menurun */ }
    .about-image { order: -1; }
    .experience-badge { right: 20px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Untuk Handphone / Layar Kecil (Maksimal Lebar Layar: 768px) */
@media (max-width: 768px) {
    :root { --section-padding: 70px; /* Jarak atas/bawah dikecilkan di HP */}
    
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px; height: 100vh;
        background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; justify-content: center; align-items: center; gap: 30px; box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.2rem; }
    .hamburger { display: flex; }
    
    .hero-title { font-size: 2.5rem; /* Ukuran H1 di HP dikecilkan agar tak tumpah */ }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    .section-title { font-size: 1.8rem; }
    
    .about-features, .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-social, .footer-contact-item { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    
    .whatsapp-float { width: 55px; height: 55px; font-size: 1.8rem; bottom: 20px; right: 20px; }
    .whatsapp-tooltip { display: none; }
    .back-to-top { width: 45px; height: 45px; bottom: 20px; left: 20px; }
    
    .about-text { padding: 25px 20px !important; }
    
    /* FIX PORTOFOLIO DI HP (Agar Gambar Tampil Penuh di HP) */
    .portfolio-intro {
        height: auto !important; /* Jangan gunakan tinggi tetap */
        min-height: 250px;       
        aspect-ratio: 16 / 9;    /* Paksa kotak proporsional bentuk landscape tv */
        background: #0a0a0a;     
    }
    .portfolio-full-wrapper.active {
        height: auto !important; 
        aspect-ratio: 16 / 9; /* Ukuran slider mengikuti aspek yang sama */
    }
    .portfolio-intro-img,
    .full-slide img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important; 
    }
    .full-slider-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
}

/* Khusus untuk Layar HP yang sangat sempit / berdiri (Maksimal 480px) */
@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .experience-badge { padding: 15px 20px; }
    .experience-badge .years { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .contact-card, .contact-form-wrapper { padding: 25px; }
    
    /* Menyesuaikan gambar portofolio khusus layar hp yg sangat tipis */
    .portfolio-intro,
    .portfolio-full-wrapper.active {
        aspect-ratio: 4 / 3;  /* Membuatnya agak kotak agar tak terlalu gepeng */
    }
    .portfolio-intro-overlay h3 {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }
}
