/* IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* VARIABEL WARNA */
:root {
    --primary: #007BFF;
    --primary-dark: #0056b3;
    --dark: #333;
    --light: #f8f9fa;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: #fff;
}

/* =========================================
   1. NAVBAR (HEADER) - FIX LOGO BESAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between; /* Logo kiri, Menu kanan */
    align-items: center; /* Rata tengah vertikal */
    padding: 15px 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    
    /* Agar navbar melayang di atas & tidak mendorong layout */
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 80px; /* Kunci tinggi navbar */
}

.nav-brand-container {
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

/* KUNCI UKURAN LOGO DISINI */
.nav-logo-img {
    height: 50px !important;    /* Paksa tinggi 50px */
    width: auto !important;     /* Lebar menyesuaikan */
    max-width: 150px;
    object-fit: contain;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* =========================================
   2. HERO SECTION (TAMPILAN TENGAH)
   ========================================= */
.hero {
    /* Background Image - Pastikan URL benar atau ganti dengan gambar lokal */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1555099962-4199c345e5dd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* PENGATURAN CENTER PASTI */
    height: 100vh;             /* Penuhi 1 layar penuh */
    width: 100%;
    display: flex;             /* Mode Flexbox */
    flex-direction: column;    /* Susun Atas-Bawah */
    justify-content: center;   /* Center secara Vertikal (Tengah layar) */
    align-items: center;       /* Center secara Horizontal (Kiri-Kanan) */
    text-align: center;        /* Teks rata tengah */
    
    padding-top: 80px; /* Kompensasi karena navbar fixed */
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
}

/* === FIX POSISI SUBTITLE AGAR TENGAH === */
.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    
    /* Pengaturan agar benar-benar di tengah */
    max-width: 700px;      /* Batasi lebar agar rapi */
    width: 150%;           /* Pastikan elemen responsif */
    margin-left: auto;     /* Dorong otomatis dari kiri */
    margin-right: auto;    /* Dorong otomatis dari kanan */
    text-align: center;    /* Pastikan teks di dalamnya rata tengah */
    display: block;        /* Pastikan dianggap sebagai blok */
}

/* =========================================
   3. TOMBOL & LAINNYA
   ========================================= */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cta-button {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.cta-button.primary {
    background-color: var(--primary);
    color: white;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* CSS LAINNYA TETAP SAMA SEPERTI SEBELUMNYA (Container, Services, dll) */
.container { padding: 80px 10%; }
.bg-light { background-color: #f9f9f9; }
.section-header { text-align: center; margin-bottom: 50px; }
.services-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item, .portfolio-card { background: white; padding: 20px; border-radius: 10px; box-shadow: var(--shadow); }
.portfolio-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; }
.footer { background: #333; color: white; padding: 20px; text-align: center; }

/* RESPONSIF HP */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { display: none; } /* Perlu JS untuk menu HP */
}