:root {
    --bg-color: #FFFFFF;
    --bg-soft: #F8F9FA;
    --border-color: #DEE2E6;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --accent-color: #0D6EFD;
    --font-primary: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); line-height: 1.7; color: var(--text-dark); background-color: var(--bg-color); overflow-x: hidden; }

/* --- PRELOADER --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.75s ease, visibility 0.75s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo { font-family: var(--font-primary); font-weight: 700; font-size: clamp(1.5rem, 10vw, 2.5rem); color: var(--accent-color); animation: pulse 1.5s infinite ease-in-out; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
header { position: fixed; top: 0; left: 0; width: 100%; padding: 1rem 0; z-index: 1000; transition: background-color 0.4s ease, box-shadow 0.4s ease; background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: clamp(1.4rem, 5vw, 1.8rem); text-decoration: none; color: var(--text-dark); display: flex; align-items: center; animation: pulse 2.5s infinite ease-in-out; }
.logo i { color: var(--accent-color); margin-right: 0.5rem; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--accent-color); }
.header-button { display: block; }

/* --- HERO SECTION & PARTICLES JS --- */
#hero { padding: 12rem 0 6rem; position: relative; overflow: hidden; }
#particles-js { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
.hero-image { background-color: var(--text-dark); border-radius: 20px; padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.hero-image img { max-width: 100%; border-radius: 15px; }
.hero-content .subtitle { font-weight: 600; color: var(--accent-color); margin-bottom: 0.5rem; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: 1.5rem; }
.hero-content p { color: var(--text-muted); margin-bottom: 2.5rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; background-color: var(--accent-color); color: white; padding: 0.8rem 1.8rem; text-decoration: none; font-weight: 500; border-radius: 8px; border: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }

section { padding: 6rem 0; }
section.soft-bg { background-color: var(--bg-soft); }
.section-title { font-size: clamp(2rem, 6vw, 2.8rem); text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 4rem; }

/* Layanan Section */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; justify-content: center; }
.service-button { display: flex; align-items: center; gap: 1rem; background-color: #343a40; color: #f8f9fa; padding: 0.8rem 1.5rem; border-radius: 50px; text-decoration: none; font-weight: 500; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; }
.service-button:hover { transform: translateY(-5px) scale(1.02); background-color: var(--accent-color); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }
.service-button img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #6c757d; transition: border-color 0.3s ease; }
.service-button:hover img { border-color: #ffffff; }
.service-button span { flex-grow: 1; font-size: clamp(0.9rem, 2.5vw, 1rem); }

/* Portofolio Section */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.portfolio-item { display: block; position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); cursor: pointer; }
.portfolio-item img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; color: white; font-size: 2.5rem; opacity: 0; transition: opacity 0.4s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Keunggulan Kami */
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.why-us-item { text-align: center; }
.icon-bg { width: 70px; height: 70px; margin: 0 auto 1rem; background-color: var(--bg-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--accent-color); }
.why-us-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.why-us-item p { color: var(--text-muted); }

/* Pricelist */
.pricelist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pricelist-item { background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 2rem; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pricelist-item:hover, .pricelist-item.popular { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.pricelist-item.popular { border-color: var(--accent-color); }
.pricelist-item h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.pricelist-item .price { font-size: 2.5rem; font-weight: 700; color: var(--accent-color); margin: 1rem 0; }
.pricelist-item ul { list-style: none; text-align: left; margin: 2rem 0; }
.pricelist-item ul li { margin-bottom: 1rem; color: var(--text-muted); }
.pricelist-item ul li i { color: var(--accent-color); margin-right: 0.5rem; }

/* Testimoni */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-item { background-color: var(--bg-color); padding: 2rem; border-radius: 12px; border-left: 5px solid var(--accent-color); box-shadow: 0 10px 30px rgba(0,0,0,0.05);}
.testimonial-item p { font-style: italic; color: var(--text-muted); border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 1rem; }
.author h4 { margin: 0; }
.author span { font-size: 0.9rem; color: var(--text-muted); }

/* News Section */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.news-item { background: var(--bg-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); transition: transform 0.3s ease; padding: 2rem; text-align: center; }
.news-item:hover { transform: translateY(-5px); }
.news-icon { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 1rem; }
.news-content .date { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-content h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-dark); }
.news-content a { text-decoration: none; color: var(--accent-color); font-weight: 600; }

/* Footer */
footer { padding: 4rem 0; background-color: var(--text-dark); color: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: white; }
.footer-col p, .footer-col ul li { color: var(--text-muted); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li i { margin-right: 0.5rem; color: var(--accent-color); }
.social-links a { color: var(--text-muted); font-size: 1.5rem; margin-right: 1rem; transition: color 0.3s; }
.social-links a:hover { color: var(--accent-color); }
.copyright { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #495057; font-size: 0.9rem; color: var(--text-muted); }

/* --- FLOATING BUTTONS --- */
.floating-container { position: fixed; bottom: 90px; right: 15px; z-index: 998; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.floating-btn { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; color: white; border-radius: 50%; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s ease; }
.floating-btn:hover { transform: scale(1.1); }
#whatsapp-button { background-color: #25D366; font-size: 1.8rem; }
#back-to-top { background-color: var(--accent-color); font-size: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease; }
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#theme-switcher { position: relative; }
#theme-toggle { width: 50px; height: 50px; background-color: var(--text-dark); border: none; color: white; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
#theme-panel { position: absolute; bottom: 0; right: 60px; background-color: var(--bg-color); padding: 1rem; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border-color); opacity: 0; visibility: hidden; transform: translateX(20px); transition: all 0.3s ease; width: 250px; }
#theme-panel.active { opacity: 1; visibility: visible; transform: translateX(0); }
#theme-panel h4 { text-align: center; margin-bottom: 0.5rem; color: var(--text-dark); }
.color-grid { display: flex; justify-content: center; gap: 10px; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid var(--border-color); transition: transform 0.2s ease; }
.color-dot:hover { transform: scale(1.15); }

/* --- BOTTOM NAVIGATION (MOBILE ONLY) --- */
.bottom-nav { display: none; }

/* --- LIGHTBOX MODAL --- */
#lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; backdrop-filter: blur(5px); }
#lightbox.active { opacity: 1; visibility: visible; }
#lightbox-image { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.4s ease; }
#lightbox.active #lightbox-image { transform: scale(1); }
#lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: white; background: none; border: none; cursor: pointer; text-shadow: 0 0 10px black; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .container { padding: 0 1rem; }
    .nav-links, .header-button { display: none; }
    .navbar { justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { order: -1; padding: 1rem; }
    .hero-content { text-align: center; }
    #hero { padding: 8rem 0 4rem; }
    .bottom-nav { display: block; position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-top: 1px solid var(--border-color); z-index: 999; }
    .bottom-nav-links { display: flex; list-style: none; justify-content: space-around; padding: 0.3rem 0; }
    .bottom-nav-links a { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); text-decoration: none; padding: 0.3rem 0.5rem; font-size: 0.65rem; transition: color 0.3s ease; width: 20%; }
    .bottom-nav-links a i { font-size: 1.2rem; margin-bottom: 0.2rem; }
    .bottom-nav-links a.active { color: var(--accent-color); }
    body { padding-bottom: 70px; }
    .floating-container { bottom: 85px; right: 15px; }
    section { padding: 4rem 0; }
    .pricelist-item.popular { transform: translateY(0); }
    .footer-grid { text-align: center; }
}