/* VARIABLES - TEMA TERANG & MODERN */
:root {
    --bg-main: #f8fafc; --bg-white: #ffffff; --bg-soft-green: #f0fdf4;
    --primary: #16a34a; --primary-dark: #15803d; --accent: #eab308;
    --text-dark: #0f172a; --text-muted: #64748b; --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-float: 0 30px 60px -15px rgba(22, 163, 74, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--bg-main); color: var(--text-dark); line-height: 1.7; }

/* CUSTOM CURSOR */
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--primary); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(22, 163, 74, 0.5); transition: width 0.2s, height 0.2s, background-color 0.2s; }
.cursor-hovering .cursor-outline { width: 60px; height: 60px; background-color: rgba(22, 163, 74, 0.1); border-color: transparent; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 20px; }
.badge-text { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #dcfce7; color: var(--primary-dark); border-radius: 100px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; border: 1px solid #bbf7d0; }

/* HEADER / NAVBAR */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); transition: all 0.4s ease; }
.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 50px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.4rem; font-weight: 900; color: var(--text-dark); line-height: 1.1; }
.logo-text span { color: var(--primary); font-size: 1rem; display: block; letter-spacing: 1px; }
nav { display: flex; gap: 30px; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 1rem; font-weight: 600; position: relative; transition: color 0.3s ease; }
nav a:hover, nav a.active { color: var(--primary); }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease; }
nav a.active::after { width: 100%; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; border-radius: 100px; transition: all 0.4s; border: none; box-shadow: 0 10px 20px -10px var(--primary); }
.btn:hover { transform: translateY(-5px); box-shadow: 0 20px 30px -10px var(--primary); }
.btn-outline { background: transparent; color: var(--text-dark); border: 2px solid var(--border-color); box-shadow: none; }
.btn-outline:hover { background: var(--bg-soft-green); border-color: var(--primary); color: var(--primary); }

/* LAYOUTING GLOBAL */
section { padding: 120px 5%; position: relative; z-index: 2; }
.container { max-width: 1300px; margin: 0 auto; position: relative; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.page-header { padding: 180px 5% 80px; text-align: center; background: radial-gradient(circle at top, var(--bg-soft-green) 0%, var(--bg-main) 100%); margin-bottom: 40px; border-bottom: 1px solid var(--border-color); }

/* INDEX: HERO */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; padding-top: 150px; padding-bottom: 100px; min-height: 90vh; background: radial-gradient(circle at top left, #dcfce7 0%, transparent 40%), radial-gradient(circle at bottom right, #fef3c7 0%, transparent 40%); }
.hero h1 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 24px; }
.hero h1 span { background: linear-gradient(120deg, var(--primary), #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 550px; }
.hero-image-wrapper { position: relative; }
.hero-blob { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background: var(--bg-soft-green); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; z-index: -1; animation: morph 8s ease-in-out infinite alternate; }
@keyframes morph { 0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 100% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }
.hero-img { width: 100%; height: 600px; object-fit: cover; border-radius: 40px; box-shadow: var(--shadow-lg); transition: transform 1.2s cubic-bezier(0.25, 1, 0.2, 1); }

/* ANIMASI SUPER UPGRADE: BLUR-REVEAL & HOVER ZOOM */
.reveal { opacity: 0; transform: translateY(50px) scale(0.96); filter: blur(8px); transition: all 1.2s cubic-bezier(0.25, 1, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.stagger-1 { transition-delay: 0.15s; } .stagger-2 { transition-delay: 0.3s; } .stagger-3 { transition-delay: 0.45s; }
.hover-zoom-container { overflow: hidden; border-radius: inherit; }
.hover-zoom-container img { transition: transform 1.2s cubic-bezier(0.25, 1, 0.2, 1); will-change: transform; width: 100%; height: 280px; object-fit: cover; object-position: center; display: block; }
.service-card:hover .hover-zoom-container img, .hero-image-wrapper:hover .hero-img, .gallery-item:hover img, .article-card:hover img { transform: scale(1.08) rotate(-1deg); }

/* KARTU SERVICES & PROSES */
.stats-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; background: var(--bg-white); padding: 40px; border-radius: 30px; box-shadow: var(--shadow-float); transform: translateY(-80px); margin: 0 5%; position: relative; z-index: 10; }
.stat-item { padding: 0 40px; text-align: center; border-right: 1px solid var(--border-color); }
.stat-item:last-child { border-right: none; }
.stat-item h3 { font-size: 3.5rem; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.stat-item p { font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; }
.video-container { max-width: 1100px; margin: 0 auto; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); border: 10px solid var(--bg-white); }
.video-container video { width: 100%; border-radius: 20px; display: block; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.service-card { background: var(--bg-main); border-radius: 30px; overflow: hidden; border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: all 0.6s cubic-bezier(0.25, 1, 0.2, 1); }
.service-card:hover { transform: translateY(-12px); background: var(--bg-white); box-shadow: 0 25px 50px -12px rgba(22, 163, 74, 0.25); border-color: var(--primary); }
.service-content { padding: 40px; flex-grow: 1; }
.service-icon { width: 60px; height: 60px; background: var(--bg-soft-green); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 20px; font-size: 1.5rem; margin-bottom: 20px; }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.process-card { background: var(--bg-white); padding: 40px; border-radius: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: all 0.6s cubic-bezier(0.25, 1, 0.2, 1); }
.process-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px -12px rgba(22, 163, 74, 0.25); border-color: var(--primary); }
.process-num { font-size: 5rem; font-weight: 900; color: rgba(22, 163, 74, 0.1); line-height: 1; margin-bottom: -20px; }

/* GALERI & ARTIKEL */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.gallery-item { border-radius: 24px; overflow: hidden; position: relative; height: 350px; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.25, 1, 0.2, 1); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); opacity: 0; transition: 0.4s; display: flex; align-items: flex-end; padding: 30px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-weight: 700; font-size: 1.2rem; transform: translateY(20px); transition: 0.4s; }
.gallery-item:hover .gallery-overlay span { transform: translateY(0); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.article-card { background: var(--bg-white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.6s cubic-bezier(0.25, 1, 0.2, 1); border: 1px solid var(--border-color); }
.article-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px -12px rgba(22, 163, 74, 0.25); border-color: var(--primary); }
.article-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 1.2s cubic-bezier(0.25, 1, 0.2, 1); }
.article-content { padding: 30px; }
.article-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; font-weight: 600; }
.article-tag { background: #dcfce7; color: var(--primary-dark); padding: 4px 12px; border-radius: 20px; }

/* TOAST NOTIFICATION, FILTER & ADMIN COMPONENTS */
#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--text-dark); color: #fff; padding: 16px 24px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: translateX(120%); animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, slideOut 0.4s ease forwards 3.5s; display: flex; align-items: center; gap: 10px; border-left: 4px solid var(--primary); }
@keyframes slideIn { to { transform: translateX(0); } } @keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }

.filter-container { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: var(--bg-white); border: 2px solid var(--border-color); padding: 8px 20px; border-radius: 100px; font-weight: 600; color: var(--text-muted); transition: 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 5px 15px rgba(22, 163, 74, 0.3); }

.admin-card { background: var(--bg-white); padding: 40px; border-radius: 30px; box-shadow: var(--shadow-lg); max-width: 800px; margin: 0 auto; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; text-align: left; }
.admin-table th, .admin-table td { padding: 15px; border-bottom: 1px solid var(--border-color); }
.admin-table th { background: var(--bg-soft-green); color: var(--primary-dark); font-weight: 700; }
.admin-table img { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; }
.btn-hapus { background: #ef4444; color: white; border: none; padding: 6px 12px; border-radius: 6px; font-weight: bold; transition: 0.2s; }
.btn-hapus:hover { background: #dc2626; transform: scale(1.05); }

.image-preview-box { width: 100%; height: 200px; border: 2px dashed var(--border-color); border-radius: 12px; margin-top: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); overflow: hidden; background: var(--bg-main); }
.image-preview-box img { width: 100%; height: 100%; object-fit: cover; display: none; }

.admin-form .form-group { margin-bottom: 20px; }
.admin-form label { display: block; font-weight: bold; margin-bottom: 8px; color: var(--text-dark); }
.admin-form input, .admin-form textarea { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--border-color); font-family: inherit; font-size: 1rem; }
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1); }

/* FOOTER */
footer { background: #064e3b; color: #ecfdf5; padding: 100px 5% 40px; position: relative; margin-top: 50px;}
.footer-curve { position: absolute; top: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.footer-curve svg { display: block; width: calc(133% + 1.3px); height: 70px; }
.footer-curve .shape-fill { fill: var(--bg-main); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; margin-bottom: 60px; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.legal-box { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;}
.legal-box:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px);}
.legal-box strong { display: block; color: var(--accent); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 5px; }

/* LIGHTBOX MODAL */
.lightbox { display: none; position: fixed; z-index: 10000; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s; }
.lightbox.show { display: block; opacity: 1; }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 80vh; border-radius: 12px; transform: scale(0.8); transition: transform 0.3s; }
.lightbox.show .lightbox-content { transform: scale(1); }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; }
.close-lightbox:hover { color: var(--primary); }
#lightbox-caption { margin: auto; display: block; width: 80%; max-width: 700px; text-align: center; color: #ccc; padding: 10px 0; font-size: 1.2rem; font-weight: 600;}

@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; text-align: center; } .hero p { margin: 0 auto 40px; } .stats-container { transform: translateY(-40px); }
    .footer-grid, .legal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { * { cursor: auto; } .cursor-dot, .cursor-outline { display: none; } nav { display: none; } }