/* ==========================================
   PT. LAMADHIA - MASTER STYLESHEET (FIXED RESPONSIVE LOGOS)
   ========================================== */

/* --- 1. PENGATURAN DASAR & CUSTOM SCROLLBAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #E22128; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b91a20; }
body { background-color: #ffffff; color: #1a1a1a; line-height: 1.6; transition: background-color 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bg-grey { background-color: #f7f9fa; }

/* --- 2. NAVIGASI ENTERPRISE & STATUS BADGE --- */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 48px; background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.logo img { height: 32px; display: block; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: #ffffff; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #E22128 !important; font-weight: 700; }
.nav-extra { display: flex; align-items: center; gap: 16px; }

.lang-switcher { display: flex; align-items: center; gap: 4px; color: #ffffff; font-size: 0.85rem; font-weight: 600; }
.lang-btn { background: transparent; border: none; color: #a0aec0; cursor: pointer; font-size: 0.85rem; font-weight: 600; padding: 2px 6px; transition: color 0.2s; }
.lang-btn:hover { color: #ffffff; }
.lang-btn.active { color: #E22128; font-weight: 700; }
.btn-outline-small { padding: 8px 16px; border: 1px solid #ffffff; border-radius: 50px; text-decoration: none; color: #ffffff; font-weight: 600; font-size: 0.85rem; transition: all 0.2s; }
.btn-outline-small:hover { background-color: #E22128; border-color: #E22128; color: #ffffff; }
.theme-toggle { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: white; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s; }
.theme-toggle:hover { background: rgba(255, 255, 255, 0.1); }

/* --- 3. HERO & CANVAS ANIMASI --- */
.hero-bg-container { position: relative; height: 100vh; min-height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg-image { position: absolute; top: -10px; left: -10px; right: -10px; bottom: -10px; background-image: url('images/home.png'); background-size: cover; background-position: center; filter: blur(6px); z-index: 1; }
#heroCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.75)); z-index: 3; }
.hero-content-center { position: relative; z-index: 4; max-width: 900px; margin-top: 50px; }
.hero-title-white { font-size: 4.5rem; font-weight: 800; line-height: 1.1; color: #ffffff; margin-bottom: 24px; letter-spacing: -1px; }
.hero-title-white span { color: #E22128; }
.hero-subtitle-white { font-size: 1.25rem; color: #e0e0e0; margin-bottom: 40px; line-height: 1.6; margin-left: auto; margin-right: auto; max-width: 750px; }

/* --- 4. SEKSI GENERAL & BADGES --- */
.about-corporate, .services-corporate, .clients-corporate, .stats-section { padding: 100px 0; }
.section-header-center { text-align: center; max-width: 700px; margin: 0 auto 50px auto; }
.section-title-center { font-size: 2.5rem; font-weight: 800; color: #1a1a1a; letter-spacing: -0.5px; }
.section-tagline { color: #E22128; font-weight: 700; font-size: 1.1rem; margin-top: 5px; }
.section-badge { display: inline-block; background-color: rgba(226, 33, 40, 0.08); color: #E22128; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 12px; text-transform: uppercase; }

/* --- 5. STATISTIK BERJALAN (COUNTERS) --- */
.stats-section { background-color: #121212; color: #ffffff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 3.2rem; font-weight: 800; color: #E22128; margin-bottom: 8px; }
.stat-item p { font-size: 1rem; color: #aaa; font-weight: 500; }

/* --- 6. ABOUT US & SERVICES --- */
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.about-text-content p { margin-bottom: 18px; font-size: 1.05rem; color: #4a4a4a; line-height: 1.8; }

/* Menampilkan Gambar Asli di About Us */
.about-image { 
    width: 100%; 
    height: 450px; 
    object-fit: cover; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border: 1px solid #eaeaea; 
    display: block; 
}

.trust-badges-wrapper { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.badge-item { background: rgba(226, 33, 40, 0.08); color: #E22128; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; border: 1px solid rgba(226, 33, 40, 0.2); }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 60px; }
.vm-card { background: #ffffff; border: 1px solid #eaeaea; padding: 35px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.vm-card h3 { font-size: 1.5rem; color: #1a1a1a; margin-bottom: 15px; }
.misi-list { padding-left: 20px; }
.misi-list li { margin-bottom: 8px; color: #555; font-size: 0.95rem; }

.values-grid, .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { background: #ffffff; border: 1px solid #eaeaea; padding: 30px 24px; border-radius: 12px; transition: transform 0.3s, border-color 0.3s; }
.value-card:hover { transform: translateY(-5px); border-color: #E22128; }

.service-card { background: #ffffff; border: 1px solid #f0f0f0; padding: 40px 30px; border-radius: 16px; position: relative; transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden; cursor: pointer; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #E22128; transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(226, 33, 40, 0.08); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2.8rem; margin-bottom: 20px; display: inline-block; color: #1a1a1a; }
.service-card h4 { font-size: 1.2rem; margin-bottom: 12px; color: #1a1a1a; }
.service-card p { font-size: 0.95rem; color: #666; }
.prof-card { grid-column: span 2; }

/* --- 7. GRID LOGO KLIEN & PARTNER --- */
.logo-grid-corp {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.logo-box-corp {
    background: #ffffff;
    border: 1px solid #eaeaea;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.logo-box-corp img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(60%);
    transition: all 0.3s ease;
}

.logo-box-corp:hover {
    border-color: #E22128;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(226, 33, 40, 0.08);
}

.logo-box-corp:hover img { filter: grayscale(0%) opacity(100%); }

/* --- 8. FOOTER, MODAL & FLOATING WA --- */
.footer-corporate { background-color: #1a1a1a; color: #ffffff; padding: 80px 0 20px 0; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; align-items: center; }
.footer-logo-large { height: 40px; margin-bottom: 24px; }
.footer-desc { color: #888; margin-bottom: 32px; font-size: 1rem; max-width: 450px; }
.footer-contact-details p { color: #ccc; margin-bottom: 8px; font-size: 0.95rem; }
.footer-map { height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid #333; }
.footer-map iframe { filter: grayscale(30%) invert(90%) contrast(80%); }
.footer-bottom { border-top: 1px solid #333; padding-top: 24px; text-align: center; color: #666; font-size: 0.9rem; }

.wa-float { position: fixed; bottom: 30px; left: 30px; background-color: #25d366; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999; text-decoration: none; transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.1); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box { background: #ffffff; width: 90%; max-width: 500px; padding: 40px; border-radius: 16px; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #888; }
.btn-submit-modal { display: block; width: 100%; padding: 14px; background: #E22128; color: white; border: none; border-radius: 8px; font-weight: 600; text-align: center; text-decoration: none; margin-top: 15px; }

.back-to-top { position: fixed; bottom: 30px; right: 30px; background-color: #E22128; color: white; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.2rem; font-weight: bold; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999; }
.back-to-top.show { opacity: 1; visibility: visible; }

/* --- 9. DARK MODE OVERRIDES --- */
body.dark-mode { background-color: #121212 !important; color: #e0e0e0 !important; }
body.dark-mode .about-corporate, body.dark-mode .clients-corporate, body.dark-mode .vm-card, body.dark-mode .value-card, body.dark-mode .service-card, body.dark-mode .modal-box { background-color: #1e1e1e !important; color: #e0e0e0 !important; border-color: #333 !important; }

body.dark-mode .service-category-title, body.dark-mode .service-card h4, body.dark-mode .section-title-center, body.dark-mode .service-icon, body.dark-mode .vm-card h3, body.dark-mode .modal-box h3 { color: #ffffff !important; }
body.dark-mode .service-card p { color: #b0b0b0 !important; }
body.dark-mode .bg-grey { background-color: #181818 !important; }

/* Dark mode untuk foto profil perusahaan */
body.dark-mode .about-image { border-color: #333 !important; filter: brightness(0.85); }

/* Logo di Mode Gelap (Tetap Putih agar logo klien yang gelap terlihat) */
body.dark-mode .logo-box-corp { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .logo-box-corp img { filter: grayscale(100%) brightness(200%) opacity(60%); }
body.dark-mode .logo-box-corp:hover img { filter: grayscale(0%) brightness(100%) opacity(100%); }

/* --- 10. RESPONSIF --- */
@media (max-width: 1024px) {
    .services-grid, .values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .prof-card { grid-column: span 2; }
}
@media (max-width: 768px) {
    .about-wrapper, .vm-grid, .services-grid, .values-grid, .footer-top, .stats-grid { grid-template-columns: 1fr; }
    .prof-card { grid-column: span 1; }
    .hero-title-white { font-size: 2.8rem; }
    .system-status { display: none; }
}