/* TEMA WARNA: Kombinasi Navy Blue Premium dan Gold */
:root {
    --primary: #0a192f;       /* Navy Gelap Eksklusif */
    --secondary: #172a45;     /* Biru Safir Medium */
    --accent: #f59e0b;        /* Emas Mewah / Amber */
    --accent-glow: #fbbf24;   /* Emas Terang */
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #f4f7fa;      /* Latar Belakang Premium Ringan */
}
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
    scroll-behavior: smooth;
}
body { line-height: 1.6; color: var(--text-dark); background-color: var(--bg-light); overflow-x: hidden; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background-color: var(--primary); color: var(--text-light);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--secondary);
}
.navbar .logo-container { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    background-color: #ffffff;  /* Latar belakang area logo menjadi putih */
    padding: 6px 15px;          /* Ruang di dalam kotak putih */
    border-radius: 6px;         /* Sudut kotak melengkung elegan */
}
.navbar .logo-img { height: 45px; width: auto; object-fit: contain; }

/* Teks Logo disesuaikan agar kontras dengan background putih */
.navbar .logo-text { 
    color: #0a192f !important;  /* Mengubah warna teks utama menjadi Navy Gelap */
    font-size: 1.1rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.navbar .logo-text span { 
    color: #f59e0b !important;  /* Menjaga warna emas pada kata terakhir */
}
.navbar nav a { color: var(--text-light); text-decoration: none; margin-left: 1.5rem; font-weight: 500; transition: color 0.3s; }
.navbar nav a:hover { color: var(--accent); }

/* Hero Banner */
.hero {
    background: linear-gradient(rgba(10, 25, 47, 0.88), rgba(10, 25, 47, 0.88)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=1920') no-repeat center center/cover;
    height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--text-light); padding: 0 1rem;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease forwards; max-width: 900px; font-weight: 800; letter-spacing: 1px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.2rem; margin-bottom: 1rem; max-width: 700px; opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease forwards 0.3s; color: #cbd5e1; }
.hero p.tagline { font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-bottom: 2rem; }
.hero .btn { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease forwards 0.6s; }

/* Gaya Tombol */
.btn { 
    background-color: var(--accent); 
    color: var(--primary); 
    padding: 0.8rem 2.2rem; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    transition: all 0.3s; 
    display: inline-block; 
    border: none; 
    cursor: pointer; 
    font-size: 1rem; 
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover { background-color: var(--accent-glow); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3); }

/* Struktur Konten */
section { padding: 5rem 5%; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 700; }
.section-title .line { width: 80px; height: 4px; background-color: var(--accent); margin: 0 auto; border-radius: 2px; }
.sub-title { font-size: 1.4rem; color: var(--primary); margin: 2rem 0 1rem 0; width: 100%; border-left: 4px solid var(--accent); padding-left: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

/* Grid Layanan */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; width: 100%; }

/* CSS BARU: Mengatur Foto di Dalam Kartu Layanan */
.card-img {
    width: 100%;
    height: 180px; /* Tinggi gambar layanan */
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar terpotong rapi tanpa gepeng */
    transition: transform 0.3s ease;
}
.card:hover .card-img img {
    transform: scale(1.05); /* Efek zoom sedikit saat kartu di-hover */
}

/* Penyesuaian agar border atas berpindah menjadi estetis */
.card {
    padding: 1.5rem; /* Padding disesuaikan agar ruang foto lebih luas */
}
.card { background: #fff; padding: 2.5rem 2rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); text-align: left; transition: all 0.3s ease; border-top: 4px solid var(--secondary); }
.card:hover { transform: translateY(-8px); border-top: 4px solid var(--accent); box-shadow: 0 20px 40px rgba(10, 25, 47, 0.08); }
.card h3 { margin-bottom: 1rem; color: var(--primary); font-size: 1.3rem; font-weight: 700; }
.card p { color: #64748b; font-size: 0.95rem; }

/* Galeri Proyek */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.portfolio-item { position: relative; border-radius: 8px; overflow: hidden; height: 250px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10,25,47,0.95), rgba(10,25,47,0.4)); color: var(--text-light); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.3s; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h4 { color: var(--accent); margin-bottom: 0.25rem; font-size: 1.2rem; }

/* Tentang Kami */
.about { background-color: #fff; display: flex; align-items: center; gap: 3rem; box-shadow: inset 0 1px 0 rgba(0,0,0,0.05); }
.about-text { flex: 1; }
.about-text p { color: var(--text-dark); margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-img { flex: 1; width: 100%; }
.about-img img { width: 100%; height: 380px; object-fit: cover; border-radius: 8px; box-shadow: 0 20px 40px rgba(10,25,47,0.1); }

/* Formulir Kontak */
.contact { background-color: var(--primary); color: var(--text-light); }
.contact-container { display: flex; gap: 3rem; max-width: 1100px; margin: 0 auto; text-align: left; }
.contact-info { flex: 1; }
.contact-info p { margin-bottom: 1.5rem; color: #cbd5e1; }
.contact-form { flex: 1; background: var(--secondary); padding: 2.5rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-light); font-size: 0.9rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border-radius: 4px; border: 1px solid #334155; background: #0a192f; color: #fff; font-size: 0.95rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }

/* Tombol WA Melayang */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50px;
    text-align: center; font-size: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20ba5a; }

/* JENDELA POP-UP MODAL PRO */
.contact-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 0; pointer-events: none; transition: all 0.4s ease;
}
.contact-modal.open { opacity: 1; pointer-events: auto; }
.modal-content {
    background-color: #fff; padding: 2.5rem; border-radius: 8px;
    width: 90%; max-width: 450px; text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); transform: scale(0.8); transition: all 0.4s ease;
    border-top: 5px solid var(--accent);
}
.contact-modal.open .modal-content { transform: scale(1); }
.modal-content h3 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.5rem; font-weight: 700; }
.modal-content p { color: #64748b; margin-bottom: 2rem; font-size: 0.95rem; }

.modal-options { display: flex; flex-direction: column; gap: 1rem; }
.modal-btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 1rem; border-radius: 6px; text-decoration: none; font-weight: bold;
    font-size: 1.05rem; transition: all 0.3s ease; color: #fff;
}
.btn-wa { background-color: #25d366; }
.btn-wa:hover { background-color: #20ba5a; transform: translateY(-2px); }
.btn-email { background-color: #0284c7; }
.btn-email:hover { background-color: #0369a1; transform: translateY(-2px); }
.btn-phone { background-color: var(--primary); border: 1px solid var(--secondary); }
.btn-phone:hover { background-color: var(--secondary); transform: translateY(-2px); }
.modal-close {
    margin-top: 1.5rem; background: none; border: none;
    color: #94a3b8; cursor: pointer; font-weight: 600; font-size: 0.95rem;
}
.modal-close:hover { color: #64748b; }

footer { background-color: #020c1b; color: #64748b; text-align: center; padding: 2rem; font-size: 0.9rem; border-top: 1px solid #172a45; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
PENGATURAN RESPONSIF (MOBILE & TABLET FRIENDLY)
========================================================================== */
@media (max-width: 1024px) {
    section { padding: 4rem 5%; }
    .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 4%; flex-direction: column; gap: 0.8rem; }
    .navbar .logo-text { font-size: 0.95rem; text-align: center; }
    .navbar nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
    .navbar nav a { margin-left: 0; font-size: 0.9rem; }
    .hero { height: auto; padding: 5rem 1rem; }
    .hero h1 { font-size: 1.6rem; line-height: 1.3; }
    .hero p { font-size: 1rem; margin-bottom: 1rem; }
    section { padding: 3rem 4%; }
    .section-title { margin-bottom: 2rem; }
    .section-title h2 { font-size: 1.8rem; }
    .about { flex-direction: column; gap: 2rem; text-align: center; }
    .about .section-title { text-align: center !important; }
    .about .line { margin: 0 auto !important; }
    .about-img img { height: 220px; }
    .services-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .card { padding: 1.8rem 1.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 1rem; }
    .portfolio-item { height: 200px; }
    .contact-container { flex-direction: column; gap: 2rem; }
    .contact-form { padding: 1.5rem; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
}

