:root {
    --primary: #4F6F52;
    --secondary: #1A1A1A;
    --bg: #F9F9F9;
    --white: #FFFFFF;
    --text: #333333;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.btn { display: inline-block; padding: 12px 24px; background: var(--primary); color: var(--white); border: none; cursor: pointer; font-size: 14px; letter-spacing: 1px; border-radius: 4px; }
.btn:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 8px 16px; font-size: 12px; border-radius: 4px; }

/* Header Updated */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid #eee; }
.logo a { display: flex; align-items: center; gap: 12px; } /* Flexbox agar sejajar */
.logo img { height: 50px; width: auto; object-fit: contain; } 
.logo span { font-weight: 700; font-size: 20px; color: var(--primary); letter-spacing: 0.5px; } /* Style Teks KNG.studio */
.nav a { margin-left: 20px; font-weight: 500; font-size: 14px; text-transform: uppercase; }

/* Hero */
.hero { height: 80vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; background: #333; }
.hero img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; filter: brightness(0.6); }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-size: 3rem; margin-bottom: 10px; font-weight: 300; }
.hero-content p { font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 2px; }

/* Grid Proyek */
.section-title { margin: 60px 0 30px; font-weight: 300; font-size: 24px; text-align: center; text-transform: uppercase; letter-spacing: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.card { background: var(--white); transition: transform 0.3s; overflow: hidden; border: 1px solid #eee; border-radius: 8px; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-img { height: 250px; width: 100%; }
.card-body { padding: 20px; }
.card-title { font-size: 18px; margin-bottom: 5px; color: var(--secondary); }
.card-date { font-size: 12px; color: #888; }

/* Halaman Detail */
.detail-header { margin-bottom: 30px; }
.project-desc { margin-top: 30px; white-space: pre-line; color: #555; max-width: 800px; line-height: 1.8; font-size: 1.1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 50px; }

/* Admin */
.admin-panel { background: var(--white); padding: 30px; max-width: 800px; margin: 30px auto; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 8px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 12px; text-transform: uppercase; color: #555; }
.form-group input[type="text"], .form-group textarea, .form-group input[type="password"] { width: 100%; padding: 10px; border: 1px solid #ddd; font-family: inherit; border-radius: 4px; }
.table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table th, .table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
.table th { background: #f4f4f4; }
.actions a { margin-right: 10px; font-size: 12px; display:inline-block; padding: 4px 8px; border-radius: 4px; background: #eee; }
.delete { color: red; background: #ffebeb !important; }

/* Responsive */
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}