/* =========================================
   1. VARIABLES & THEME (WOOD / COKLAT KAYU)
   ========================================= */
:root {
    /* Palet Warna Kayu */
    --primary: #8d5524;       /* Coklat Kayu Sedang */
    --primary-dark: #5e3614;  /* Coklat Tua */
    --accent: #c68642;        /* Coklat Keemasan */
    
    --bg-main: #f4efe6;       /* Krem Beige (Background) */
    --bg-card: #ffffff;       /* Putih (Kartu) */
    
    --text-dark: #3e2723;     /* Coklat Sangat Tua (Teks Utama) */
    --text-muted: #795548;    /* Coklat Abu (Teks Sekunder) */
    
    --border: #e6dbcf;        /* Garis Beige */
    --overlay-grad: linear-gradient(to top, rgba(62, 39, 35, 0.95) 15%, rgba(62, 39, 35, 0.5) 60%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
h1, h2, h3 { margin-top: 0; font-weight: 800; letter-spacing: -0.5px; }

/* Wrapper Utama */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. NAVBAR & HERO
   ========================================= */
.navbar {
    background: rgba(244, 239, 230, 0.95); /* Krem transparan */
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
    padding: 15px 0; border-bottom: 1px solid var(--border);
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

/* --- STYLE LOGO GAMBAR --- */
.logo { display: flex; align-items: center; }
.logo img {
    height: 45px; /* Tinggi logo dibatasi agar navbar rapi */
    width: auto;  /* Lebar menyesuaikan otomatis */
    display: block;
}

/* HERO SECTION */
.hero { text-align: center; padding: 80px 20px 50px; }
.hero h1 { 
    font-size: 2.5rem; margin-bottom: 15px; line-height: 1.2;
    color: var(--text-dark);
}
.hero h1 span.highlight { 
    color: var(--primary);
    position: relative;
    display: inline-block;
}
/* Garis bawah aksen kayu */
.hero h1 span.highlight::after {
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px;
    background: var(--accent); opacity: 0.3; z-index: -1; border-radius: 4px;
}
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }

/* Tombol Aksen Kayu */
.btn-cta { 
    display: inline-block;
    background: var(--primary); 
    color: white; 
    padding: 14px 40px; border-radius: 50px; font-weight: bold;
    box-shadow: 0 4px 15px rgba(141, 85, 36, 0.3);
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* =========================================
   3. PROJECT GRID (MOBILE FIRST)
   ========================================= */
.section-title { font-size: 1.8rem; margin-bottom: 30px; position: relative; display: inline-block; }

.project-grid { 
    display: grid; gap: 25px; margin-bottom: 60px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
    position: relative; height: 260px; border-radius: 16px; overflow: hidden;
    background: #d7ccc8;
    display: block;
    box-shadow: 0 10px 20px -5px rgba(62, 39, 35, 0.1);
    border: 1px solid var(--border);
}

.project-card img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Hover efek hanya di desktop */
@media (min-width: 768px) {
    .project-card:hover img { transform: scale(1.08); }
    .project-card:hover { box-shadow: 0 20px 30px -10px rgba(62, 39, 35, 0.2); border-color: var(--accent); }
}

/* Overlay Coklat Tua */
.card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--overlay-grad);
    padding: 25px; color: #fff9f5;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.card-overlay h3 { margin: 0 0 5px; font-size: 1.3rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.card-overlay p { 
    margin: 0; font-size: 0.9rem; opacity: 0.9; 
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ebdccc;
}

.icon-arrow {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Footer */
footer { 
    text-align: center; padding: 50px 20px; 
    color: var(--text-muted); font-size: 0.9rem; 
    border-top: 1px solid var(--border); background: #faf7f2;
}

/* =========================================
   4. ANIMASI (Fade In Up)
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* =========================================
   5. ADMIN DASHBOARD STYLES (Agar Admin tetap rapi)
   ========================================= */
.admin-nav {
    background: white; padding: 15px 20px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.dashboard-grid {
    display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.alert { background: #dcfce7; color: #166534; padding: 15px; border-radius: 6px; margin-bottom: 20px; text-align: center; }
.btn { display: inline-block; background: var(--primary); color: white; padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; }
.btn-danger { background: #ef4444; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.form-group { margin-bottom: 15px; }
input, textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Tabel Admin */
.table-responsive { overflow-x: auto; }
.custom-table { width: 100%; border-collapse: collapse; background: white; min-width: 600px; }
.custom-table th { background: #f1f5f9; text-align: left; padding: 12px; color: var(--text-muted); }
.custom-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.thumb-img { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; }

@media (min-width: 768px) {
    .dashboard-grid { grid-template-columns: 300px 1fr; } 
}