/* ==========================================================
   1. REGISTRASI FONT OSWALD & BARLOW (GOOGLE FONTS)
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-ExtraLight.ttf') format('truetype');
    font-weight: 200;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Light.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-SemiBold.ttf') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Bold.ttf') format('truetype');
    font-weight: 700;
}

/* ==========================================================
   2. GAYA DASAR & BODY
   ========================================================== */
body, html { 
    margin: 0; 
    padding: 0; 
    font-family: 'Barlow', sans-serif; /* Mengubah font dasar menjadi Barlow */
    color: #ffffff; 
    overflow-x: hidden;
}

/* Memastikan Semua Judul Tetap Menggunakan Oswald */
h1, h2, h3, h4, h5, h6, 
.section-title, .hero-subtitle, 
.item-number, .item-title, 
.sol-title, .sol-number, .slide h1 {
    font-family: 'Oswald', sans-serif !important;
}

/* Latar Belakang Statis Body dengan Overlay Gelap */
body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/BG_home.jpg'); 
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Solid untuk Menutup BG Body pada Seksi Tertentu */
.hero-slider, .about-section, .footer-info-section { 
    background-color: #ffffff; 
}
.cert-insights-section { 
    background-color: #FDFBF7; 
}
.contact-section { 
    background-color: transparent; 
} 

/* Tata Letak Kontainer Umum */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================
   3. HEADER, NAVBAR, LOGO & MOBILE HAMBURGER TERPUSAT
   ========================================================== */
header.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: transparent; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transition: all 0.4s ease;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 15px 20px;
}

/* Ukuran dan Transisi Logo */
header.header img.logo-img,
header.header .logo img {
    height: 60px;
    width: auto;
    transition: filter 0.4s ease, height 0.4s ease;
}

header.header:not(.scrolled) img.logo-img,
header.header:not(.scrolled) .logo img {
    filter: brightness(0) invert(1) !important; 
}

header.header.scrolled {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

header.header.scrolled img.logo-img,
header.header.scrolled .logo img {
    filter: brightness(0) !important; 
}

/* Navigasi */
.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav > a, 
.nav .dropdown > a {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #ffffff !important; 
    font-size: 16px !important; /* Ukuran menu diperbesar */
    font-family: 'Barlow', sans-serif !important; /* Font menu diubah menjadi Barlow */
    font-weight: 500 !important;
    position: relative !important;
    padding-bottom: 6px !important;
    transition: color 0.4s ease !important;
    line-height: 1 !important;
}

header.header.scrolled .nav > a, 
header.header.scrolled .nav .dropdown > a {
    color: #333333 !important; 
}

/* Hover & Menu Aktif */
.nav > a.active-menu, 
.nav .dropdown > a.active-menu {
    color: #C4A482 !important;
    font-weight: 600 !important;
}

.nav > a.active-menu::after, 
.nav .dropdown > a.active-menu::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #C4A482 !important;
    display: block !important;
}

.nav > a:hover, 
.nav .dropdown > a:hover {
    color: #C4A482 !important;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff !important;
    min-width: 180px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.15) !important;
    z-index: 10000 !important;
    top: 100%;
    left: 0;
    border-top: 3px solid #C4A482 !important;
    padding: 6px 0 !important;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

.dropdown-content a {
    color: #111111 !important;
    background-color: #ffffff !important;
    padding: 12px 20px !important;
    text-decoration: none !important;
    display: block !important;
    font-size: 15px !important; /* Ukuran menu dropdown diperbesar sedikit */
    font-family: 'Barlow', sans-serif !important;
    font-weight: 500 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: all 0.2s ease !important;
}

.dropdown-content a:hover {
    background-color: #fdfbf7 !important;
    color: #C4A482 !important;
}

/* Indikator Bahasa */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 18px;
}

header.header.scrolled .lang-switch {
    border-left-color: rgba(0, 0, 0, 0.15);
}

.lang-btn {
    text-decoration: none !important;
    font-size: 14px !important; /* Diperbesar sedikit */
    font-weight: 600 !important;
    font-family: 'Barlow', sans-serif !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

header.header.scrolled .lang-btn {
    color: #555555 !important;
}

.lang-btn.active-lang {
    background-color: #C4A482 !important;
    color: #000000 !important;
}

/* Tombol Hamburger Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

header.header.scrolled .menu-toggle span {
    background-color: #111111;
}

/* Responsive Media Query untuk Mobile (< 992px) */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        transition: right 0.4s ease-in-out;
        z-index: 10000;
    }

    .nav-container.active {
        right: 0;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .nav > a, 
    .nav .dropdown > a {
        color: #111111 !important;
        font-size: 18px !important;
    }

    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        border-top: none !important;
        padding-left: 15px !important;
        background-color: transparent !important;
    }

    .lang-switch {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 20px;
        width: 100%;
    }

    .lang-btn {
        color: #333 !important;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #111111 !important;
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #111111 !important;
    }
}

/* ==========================================================
   4. HERO SLIDER & BANNER HALAMAN DALAM
   ========================================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 800px;
    margin-top: 50px;
    text-align: left;
    align-items: flex-start;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-subtitle { 
    font-size: 13px; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    margin-bottom: 10px; 
    color: #ccc; 
    font-weight: 300; 
}

.slide h1 { 
    font-size: 48px; 
    margin: 0 0 20px 0; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 700; 
}

.slide p { 
    font-size: 17px; /* Teks deskripsi slider diperbesar */
    max-width: 700px; 
    line-height: 1.8; 
    margin-bottom: 40px; 
    color: #ddd; 
    font-weight: 400; 
}

/* Banner Halaman Dalam */
.page-banner {
    width: 100%;
    padding: 140px 20px 80px 20px;
    box-sizing: border-box;
}

/* Kontrol Slider */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.slide-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
}

.progress-bar {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 33.33%;
    background: white;
    transition: width 0.3s ease;
}

.slide-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.btn-explore { 
    display: inline-block; 
    padding: 12px 30px; 
    border: 1px solid white; 
    color: white; 
    text-decoration: none; 
    border-radius: 25px; 
    font-size: 15px; 
    font-family: 'Barlow', sans-serif;
    transition: all 0.3s ease; 
    font-weight: 500; 
}

.btn-explore:hover { 
    background: white; 
    color: black; 
}

/* ==========================================================
   5. STRUKTUR SECTION KONTEN & TATA LETAK BARIS
   ========================================================== */
.about-section {
    color: #333333; 
    padding: 100px 0;
}

.content-row {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 120px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 100px;
}

.content-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.col-left {
    flex: 1;
    position: sticky;
    top: 130px;
}

.side-label {
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 2px;
    color: #B58E5E; 
    font-weight: 600;
    display: block;
    margin-top: 10px; /* Mendorong label turun sedikit agar sejajar dengan tinggi teks judul */
}

.col-right {
    flex: 3;
}

.section-title {
    font-size: 40px;
    margin: 0 0 30px 0;
    font-weight: 400;
    color: #111111;
    text-transform: uppercase;
    line-height: 1.1; /* Merapatkan ruang kosong bawaan font atas/bawah */
}

.section-desc {
    font-size: 17px; /* Diperbesar sesuai request (sebelumnya 16px) */
    line-height: 1.8;
    color: #666666;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ==========================================================
   6. KOMPONEN GRID, KARTU, & EFEK HOVER
   ========================================================== */
/* Statistik Section */
.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-icon {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    opacity: 0.7; 
}

.stat-item h4 {
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 2px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

/* Kartu Solusi Industries */
.solutions-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.solution-card {
    background-color: #fafafa;
    color: #333333;
    padding: 45px 35px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    min-height: 230px;
    box-sizing: border-box;
    cursor: pointer;
}

/* .sol-number diatur langsung di index.php agar konsisten dengan PHP */

.solution-card .sol-title {
    font-size: 20px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    font-weight: 600;
    color: #111111;
    transition: color 0.3s ease;
}

.solution-card .sol-desc {
    font-size: 16px; /* Diperbesar sedikit */
    font-family: 'Barlow', sans-serif;
    line-height: 1.7;
    font-weight: 400;
    margin: 0;
    color: #666666;
    transition: color 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: transparent !important;
}

.solution-card[data-bg-image]:hover .sol-number,
.solution-card[data-bg-image]:hover .sol-title,
.solution-card[data-bg-image]:hover .sol-desc {
    color: #ffffff !important;
}

/* Kartu Insights */
.insight-card {
    background: #ffffff; 
    border: 1px solid rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-card:hover { 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

.insight-img-wrapper {
    width: 100%; 
    height: 420px; 
    overflow: hidden; 
    position: relative;
}

.insight-img-wrapper img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.insight-card:hover .insight-img-wrapper img { 
    transform: scale(1.08); 
}

/* Gambar Halaman Process Zoom */
.process-img-wrapper {
    overflow: hidden;
    position: relative;
    height: 400px;
    width: 100%;
}

.process-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.process-img-wrapper:hover img {
    transform: scale(1.08);
}

/* ==========================================================
   7. FORM KONTAK, SOSIAL MEDIA & FOOTER
   ========================================================== */
.transparent-form input, 
.transparent-form textarea {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
    padding: 12px 0;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
    width: 100%;
}

.transparent-form input::placeholder, 
.transparent-form textarea::placeholder { 
    color: rgba(255,255,255,0.7); 
}

.transparent-form input:focus, 
.transparent-form textarea:focus { 
    outline: none; 
    border-bottom-color: #C4A482; 
}

.btn-send-pill {
    background: #C4A482;
    color: #ffffff;
    padding: 12px 45px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-send-pill:hover { 
    background: #b58e5e; 
}

.social-icon {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    width: 36px; 
    height: 36px; 
    border-radius: 50%;
    background: #C4A482; 
    color: #ffffff; 
    text-decoration: none;
    font-size: 16px; 
    transition: transform 0.3s, background 0.3s;
}

.social-icon:hover { 
    background: #b58e5e; 
    transform: translateY(-3px); 
}

footer, .footer {
    background-color: #ffffff !important;
    color: #888888 !important; 
    border-top: 1px solid #f0f0f0; 
    padding: 30px 0;
}

footer a, .footer a {
    color: #888888 !important;
}

/* ==========================================================
   8. ANIMASI SCROLL (FADE-IN & SLIDE-IN)
   ========================================================== */
.content-row {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.content-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-in-left.visible, 
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================
   9. RESPONSIVE DESIGN (MOBILE VIEW < 768px)
   ========================================================== */
@media screen and (max-width: 768px) {
    .slide-content {
        margin-top: 120px;
        padding: 0 5%;
    }

    .slide h1 {
        font-size: 30px !important;
    }

    .slide p {
        font-size: 15px !important;
    }

    .content-row {
        flex-direction: column !important;
        gap: 20px !important;
        padding-bottom: 50px !important;
        margin-bottom: 50px !important;
    }

    .col-left {
        position: static !important;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 26px !important;
    }

    .stats-container {
        flex-direction: column !important;
        gap: 30px;
    }

    .solutions-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}
/* ==========================================================
   10. LAYOUT ZIG-ZAG (HALAMAN SOLUTIONS) & ANIMASI
   ========================================================== */
.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 90px;
    overflow: hidden;
}

.zigzag-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.zigzag-img:hover {
    transform: scale(1.02);
}

.item-number {
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    color: #d2c2b0;
    line-height: 1;
    margin-bottom: 15px;
    font-weight: 300;
}

.item-title {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    color: #111111;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    font-weight: 400;
}

.item-text-block {
    font-size: 16px;
    font-family: 'Barlow', sans-serif;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 15px;
}

.item-text-block strong {
    color: #222222;
}

/* Animasi Elemen Halaman Dalam */
.slide-from-left {
    opacity: 0;
    transform: translateX(-70px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-from-right {
    opacity: 0;
    transform: translateX(70px);
    transition: all 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slide-from-left.active,
.slide-from-right.active {
    opacity: 1;
    transform: translateX(0);
}