/* --- CSS Variables --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #f39c12;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f4f7f6;
}

/* --- Reset & Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* --- Header & Navigation --- */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; width: 100%; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Logo Container */
.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 50px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-transform: uppercase; line-height: 1.2; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links li { list-style: none; }
.nav-links a { font-weight: 600; color: var(--text-dark); font-size: 1rem; }
.nav-links a:hover { color: var(--primary-color); }

.cta-btn { background: var(--secondary-color); color: #fff !important; padding: 10px 25px; border-radius: 5px; font-weight: bold; }
.cta-btn:hover { background: #d35400; transform: translateY(-2px); }

/* --- Hero Section & Page Header --- */
.hero, .page-header { background-size: cover; background-position: center; color: #fff; text-align: center; }
.hero { padding: 120px 20px; background-image: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 86, 179, 0.85)), url('https://source.unsplash.com/1600x900/?industrial,factory'); }
.page-header { padding: 80px 20px; background-image: linear-gradient(rgba(0, 43, 77, 0.9), rgba(0, 43, 77, 0.9)), url('https://source.unsplash.com/1600x600/?pipeline,engineer'); } /* Default bg, bisa di override inline style */

.hero h1, .page-header h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero p, .page-header p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.page-header p { max-width: 700px; margin: auto; }
.btn-primary { background: var(--secondary-color); color: #fff; padding: 12px 35px; font-size: 1.1rem; border-radius: 5px; display: inline-block; font-weight: bold; }

/* --- Sections Umum --- */
.section-padding { padding: 80px 0; }
.section-title { font-size: 2.2rem; margin-bottom: 15px; color: var(--primary-color); text-transform: uppercase; text-align: center; font-weight: 700; }
.divider { height: 4px; width: 70px; background: var(--secondary-color); margin: 0 auto 40px; border-radius: 2px; }
.text-center { text-align: center; }
.about-text { text-align: center; max-width: 800px; margin: auto; }

/* --- Services Grid --- */
.services { background: var(--bg-light); }
.services-grid, .detail-grid { display: grid; gap: 30px; margin-top: 40px; }
.services-grid { grid-template-columns: 1fr; max-width: 900px; margin-left: auto; margin-right: auto; }
.detail-grid { grid-template-columns: 1fr; gap: 60px; }

.service-card { display: block; background: #fff; padding: 35px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; cursor: pointer; position: relative; border: 2px solid transparent; transition: all 0.3s ease; text-decoration: none; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); border-color: var(--primary-color); }
.service-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; transition: 0.3s; }
.service-card h3 { margin-bottom: 15px; font-size: 1.4rem; color: var(--text-dark); }
.service-card p { color: var(--text-light); font-size: 1rem; margin-bottom: 25px; }
.read-more { font-weight: bold; color: var(--secondary-color); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- Service Details (Sub-pages) --- */
.service-item { display: flex; flex-direction: column; gap: 30px; border-bottom: 1px solid #eee; padding-bottom: 60px; }
.service-item:last-child { border-bottom: none; }
.service-text h2 { color: var(--primary-color); font-size: 1.8rem; margin-bottom: 15px; }
.service-text p { margin-bottom: 15px; color: var(--text-light); }
.highlight-box { background: #eef7ff; border-left: 4px solid var(--primary-color); padding: 15px 20px; margin: 20px 0; font-size: 0.95rem; }

.image-container { width: 100%; height: 400px; background-color: #ddd; border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.image-container:hover img { transform: scale(1.03); }
.image-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.7); color: #fff; padding: 10px 20px; font-size: 0.9rem; }

/* --- Clients Slider --- */
.clients { background: #fff; position: relative; overflow: hidden; }
.slider-container { max-width: 1000px; margin: auto; overflow: hidden; position: relative; padding: 20px 0; }
.slider-track { display: flex; align-items: center; gap: 50px; width: max-content; transition: transform 0.5s ease-in-out; }
.client-logo { width: 140px; height: 80px; object-fit: contain; transition: 0.3s; flex-shrink: 0; }
.client-logo:hover { transform: scale(1.1); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.prev-btn { left: 0; }
.next-btn { right: 0; }
.slider-btn:hover { background: var(--secondary-color); }

/* --- Standards & Certifications --- */
.standards { background: var(--bg-light); text-align: center; }
.cert-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }
.cert-badge { background: #fff; padding: 15px 30px; border-radius: 50px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); font-weight: bold; color: var(--primary-color); border: 1px solid #ddd; }

/* --- Gallery Grid --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.gallery-item { height: 250px; background: #eee; border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* --- Service Area (SEO) --- */
.service-area { background: #f8f9fa; padding: 40px 20px; text-align: center; border-top: 1px solid #eee; }
.area-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 15px; max-width: 900px; margin-left: auto; margin-right: auto; }
.area-tag { background: #fff; color: var(--text-light); padding: 5px 15px; border-radius: 20px; border: 1px solid #ddd; font-size: 0.9rem; }

/* --- FAQ & Keywords Block --- */
.keyword-block { background: #f9f9f9; padding: 20px; border-radius: 8px; font-size: 0.9rem; color: #666; margin-top: 30px; }
.faq-section { background: #fff; }
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.faq-question { font-weight: bold; color: var(--primary-color); cursor: pointer; display: block; }
.faq-answer { display: none; margin-top: 10px; color: var(--text-light); }
/* Simple Toggle Logic via CSS Checkbox Hack or just hover for simplicity, here we use hover for demo */
.faq-item:hover .faq-answer { display: block; }

/* --- Contact & Footer --- */
.contact { background: #002b4d; color: #fff; }
.contact-grid { display: grid; gap: 50px; align-items: start; }
.contact-info h3 { margin-bottom: 25px; color: var(--secondary-color); font-size: 1.5rem; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; display: inline-block; }
.contact-item { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 15px; font-size: 1.05rem; }
.contact-item span { font-size: 1.3rem; min-width: 30px; }
.contact-btn-large { display: inline-block; background: #25d366; color: #fff; padding: 15px 35px; border-radius: 50px; font-weight: bold; margin-top: 25px; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.contact-btn-large:hover { background: #1ebc57; transform: translateY(-3px); }
footer { background: #001a2e; color: #ccc; text-align: center; padding: 25px 0; font-size: 0.9rem; margin-top: auto; }

/* --- Responsive Queries --- */
@media (min-width: 768px) {
    .services-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .service-item { flex-direction: row; align-items: center; }
    .service-item:nth-child(even) { flex-direction: row-reverse; } 
    .service-text { flex: 1; }
    .image-container { flex: 1; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; height: auto; padding: 10px 15px; }
    .logo-img { height: 40px; }
    .logo-text { font-size: 1.2rem; }
    
    .nav-links { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 5px; width: 100%; }
    .nav-links li { width: auto; list-style: none; }
    .nav-links a { font-size: 0.85rem; padding: 5px; }
    
    .cta-btn { display: inline-block; width: auto; padding: 6px 15px; font-size: 0.85rem; margin-top: 0; }
    
    .hero h1, .page-header h1 { font-size: 1.6rem; }
    .hero p, .page-header p { font-size: 1rem; }
    
    .services-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .service-item { text-align: left; }
    .image-container { height: 250px; }
}