/* Import Font Manrope dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #A0AF93;       /* Warna Request User */
    --primary-dark: #7E8C73;  /* Versi lebih gelap untuk Hover/Aksen */
    --text-dark: #2C352D;     /* Dark Olive/Charcoal untuk Teks (bukan hitam pekat) */
    --text-light: #666F67;    /* Abu-abu kehijauan untuk teks sekunder */
    --bg-body: #FDFDFC;       /* Warm White (tidak putih silau) */
    --white: #FFFFFF;
    
    --font-main: 'Manrope', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: var(--font-main); 
    background: var(--bg-body); 
    color: var(--text-dark); 
    line-height: 1.7; 
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Layout Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }

/* Tombol (Button) Style */
.btn { 
    display: inline-block; 
    padding: 14px 28px; 
    background: var(--primary); 
    color: var(--white); 
    border: none; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600;
    letter-spacing: 0.5px; 
    border-radius: 6px; 
    box-shadow: 0 4px 10px rgba(160, 175, 147, 0.4); /* Bayangan halus warna tema */
}
.btn:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px);
}
.btn-outline { 
    background: transparent; 
    border: 1px solid var(--primary); 
    color: var(--primary); 
    padding: 8px 16px; 
    font-size: 12px; 
    border-radius: 4px;
    font-weight: 600;
}

/* HEADER & LOGO */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 0; 
    /* Garis bawah tipis gradasi */
    border-bottom: 1px solid rgba(160, 175, 147, 0.3); 
}

.logo a { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    text-decoration: none;
}

.logo img { 
    height: 50px; 
    width: auto; 
    object-fit: contain; 
}

.logo span { 
    font-size: 20px; 
    font-weight: 700;          
    color: var(--text-dark);   
    letter-spacing: -0.5px;
    white-space: nowrap;      
    text-transform: uppercase;
}

.nav a { 
    margin-left: 25px; 
    font-weight: 600; 
    font-size: 13px; 
    text-transform: uppercase; 
    color: var(--text-dark);
    letter-spacing: 0.5px;
}
.nav a:hover { color: var(--primary); }

/* HERO SECTION */
.hero { 
    height: 75vh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white); 
    overflow: hidden; 
    background: var(--text-dark);
    border-radius: 0 0 20px 20px; /* Lengkungan sedikit di bawah */
    margin-bottom: 60px;
}
.hero img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; 
    opacity: 0.7; /* Gambar agak transparan */
}
/* Overlay Gradasi agar teks terbaca & sesuai tema */
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
    background: linear-gradient(to bottom, rgba(44, 53, 45, 0.3), rgba(44, 53, 45, 0.8));
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 15px; 
    font-weight: 700; 
    line-height: 1.1;
}
.hero-content p { 
    font-size: 1.25rem; 
    margin-bottom: 30px; 
    font-weight: 300; 
    opacity: 0.9;
}

/* PORTFOLIO GRID */
.section-title { 
    margin: 0 0 40px; 
    font-weight: 700; 
    font-size: 28px; 
    text-align: center; 
    color: var(--text-dark);
    letter-spacing: -0.5px;
}
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 40px; 
    margin-bottom: 80px;
}
.card { 
    background: var(--white); 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Efek smooth */
    overflow: hidden; 
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}
.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
    border-color: var(--primary); /* Border berubah hijau saat hover */
}
.card-img { height: 260px; width: 100%; transition: transform 0.5s ease; }
.card:hover .card-img { transform: scale(1.03); } /* Zoom in dikit */
.card-body { padding: 25px; }
.card-title { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: var(--text-dark); 
}
.card-date { 
    font-size: 12px; 
    color: var(--primary); /* Tanggal warna hijau */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DETAIL PAGE */
.detail-header { margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.project-content { margin-top: 30px; }
.project-desc { 
    margin-top: 40px; 
    white-space: pre-line; 
    color: var(--text-light); 
    max-width: 800px; 
    font-size: 1.1rem; 
}
.project-desc h4 { color: var(--text-dark); margin-bottom: 10px; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 60px; }
.gallery-grid img { width: 100%; border-radius: 8px; transition: opacity 0.3s; }
.gallery-grid img:hover { opacity: 0.9; }

/* ADMIN PANEL */
.admin-panel { 
    background: var(--white); 
    padding: 30px; 
    max-width: 800px; 
    margin: 30px auto; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
    border-radius: 12px; 
    border-top: 4px solid var(--primary); /* Aksen di atas form admin */
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--text-light); }
.form-group input[type="text"], .form-group textarea, .form-group input[type="password"] { 
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; font-size: 14px;
    background: #FAFAFA;
}
.form-group input:focus { outline: none; border-color: var(--primary); background: #fff; }

.table { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin-top: 20px; }
.table th { padding: 15px; text-align: left; color: var(--text-light); font-size: 12px; text-transform: uppercase; }
.table td { padding: 15px; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.table td:first-child { border-left: 1px solid #eee; border-radius: 6px 0 0 6px; }
.table td:last-child { border-right: 1px solid #eee; border-radius: 0 6px 6px 0; }

.actions a { margin-right: 10px; font-size: 12px; padding: 6px 12px; border-radius: 4px; background: #f0f0f0; text-decoration: none; font-weight: 600; }
.actions a.edit { background: #E8F5E9; color: #2E7D32; } /* Warna edit kehijauan */
.actions a.delete { background: #FFEBEE; color: #C62828; }

/* Responsive */
@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .logo span { font-size: 18px; }
}