/* Project: PT Lautan Teduh Interniaga - Tentang Kami 
   Style: Corporate Hero & Parallax History (Daya Motora Inspired)
   Font: IBM Plex Sans & Open Sans
*/

/* 1. FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Class untuk mengunci scroll */
body.is-locked {
    overflow: hidden;
    height: 100vh;
}

/* 2. HERO SECTION */
.about-hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-image: url('../images/tentangkami-hero.jpg'); /* Pastikan path gambar benar */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 120px 20px 80px 20px;
}

.about-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

/* 3. NAVIGATION & BUTTONS */
.btn-back-top {
    font-family: 'IBM Plex Sans', sans-serif;
    position: absolute;
    top: 30px;
    left: 40px;
    border: 1px solid rgba(255,255,255,0.5);
    color: #ffffff;
    background: transparent;
    padding: 10px 22px; /* Disesuaikan sedikit agar lebih proporsional */
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden; /* Wajib ada agar background animasi tidak meluber keluar kotak */
    transition: color 0.4s ease, border-color 0.4s ease; /* Transisi untuk warna teks dan garis */
}

/* Lapisan Warna Biru untuk Animasi Slide */
.btn-back-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a3673; /* Biru Yamaha */
    z-index: -1; /* Posisikan di belakang teks */
    transform: scaleX(0); /* Awalnya tidak terlihat (skala horizontal 0) */
    transform-origin: left; /* Titik mula animasi adalah dari KIRI */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Efek pergerakan yang sangat mulus */
}

/* Kondisi Saat Kursor Diarahkan (Hover) */
.btn-back-top:hover {
    color: #ffffff; /* Teks tetap putih */
    border-color: #1a3673; /* Garis tepi ikut berubah menjadi biru agar menyatu */
}

/* Memicu Animasi Background Saat Hover */
.btn-back-top:hover::before {
    transform: scaleX(1); /* Background merentang 100% dari kiri ke kanan */
}

/* ========================================== */
/* DUAL BUTTON SLANTED (SEJARAH & BUDAYA)     */
/* ========================================== */

/* ========================================== */
/* DUAL BUTTON SLANTED (SEJARAH & NILAI KAMI) */
/* ========================================== */

.hero-buttons {
    display: flex;
    width: 450px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin: 40px auto 0;
    position: relative;
    overflow: hidden;
}

/* Garis Miring Tengah */
.hero-buttons::after {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 20px);
    width: 40px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    clip-path: polygon(100% 0, calc(100% - 1.5px) 0, 0 100%, 1.5px 100%);
    z-index: 2;
    pointer-events: none;
}

.btn-hero-outline {
    font-family: 'IBM Plex Sans', sans-serif;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

/* Master Background Slide */
.btn-hero-outline::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #1a3673; /* Biru Yamaha */
    z-index: -1;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-hero-outline:hover::before {
    transform: scaleX(1);
}

/* 1. TOMBOL KIRI (SEJARAH): Slide dari KIRI */
.btn-hero-outline:first-child::before {
    left: 0;
    width: calc(100% + 20px);
    transform-origin: left; /* Arah Slide: Kiri ke Kanan */
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
}

/* 2. TOMBOL KANAN (NILAI KAMI): Slide dari KANAN */
.btn-hero-outline:last-child::before {
    right: 0; /* Menempel ke kanan */
    width: calc(100% + 20px);
    transform-origin: right; /* Arah Slide: Kanan ke Kiri */
    /* Potongan miring untuk sisi kiri background */
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
}

.btn-hero-outline {
    font-family: 'IBM Plex Sans', sans-serif;
    flex: 1; /* Membagi dua area sama rata (masing-masing 50%) */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    border: none !important; /* Hapus border lama */
    background: transparent !important;
}

/* Master Animasi Slide Biru */
.btn-hero-outline::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    background-color: #1a3673; /* Biru Yamaha */
    z-index: -1; /* Taruh di belakang teks */
    transform: scaleX(0); /* Awalnya tidak terlihat (skala 0) */
    transform-origin: left; /* Slide bergerak dari arah KIRI */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Efek pergerakan sangat mulus */
}

.btn-hero-outline:hover {
    color: #ffffff;
}

/* Memunculkan warna saat di-hover */
.btn-hero-outline:hover::before {
    transform: scaleX(1);
}

/* KUNCI RAHASIA: Memotong warna biru agar mengikuti kemiringan garis tengah 
*/

/* 1. Potongan untuk tombol KIRI (SEJARAH) */
.btn-hero-outline:first-child::before {
    left: 0;
    width: calc(100% + 20px); /* Lebarkan sampai melewati garis tengah */
    /* Potong pinggiran kanannya menjadi miring */
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
}

/* 2. Potongan untuk tombol KANAN (NILAI KAMI) */
.btn-hero-outline:last-child::before {
    left: -20px; /* Mulai dari sebelum batas tengah */
    width: calc(100% + 20px);
    /* Potong pinggiran kirinya menjadi miring */
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%);
}

/* Responsif Layar HP: Sesuaikan lebar kotaknya agar tidak tumpah */
@media (max-width: 768px) {
    .hero-buttons {
        width: 100%;
        max-width: 350px;
    }
}

/* 4. HERO TYPOGRAPHY (CALIBRATED) */
.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.hero-logos img {
    height: 75px;
    object-fit: contain;
    padding: 0px 15px;
    border-radius: 6px;
}

.hero-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 0px;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-divider {
    width: 45px;
    height: 3px;
    background-color: #1a3673; /* Biru Yamaha */
    margin: 0 auto 20px auto;
}

.hero-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    color: #f8f9fa;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.hero-list {
    font-family: 'IBM Plex Sans', sans-serif;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #f8f9fa;
}

.hero-list li {
    margin-bottom: 3px;
}

/* 5. CORE VALUES SECTION */
#nilai-perusahaan {
    background-color: #ffffff;
}

.section-title { 
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700; 
    color: #1a3673; 
    font-size: 32px; 
    margin-bottom: 50px; 
    position: relative; 
    display: inline-block; 
}

.section-title::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: -10px; 
    width: 60px; 
    height: 4px; 
    background-color: #ff9800; 
    border-radius: 2px; 
}

.value-card { 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 20px; 
    padding: 40px 30px; 
    text-align: center; 
    height: 100%; 
    transition: all 0.3s ease; 
}

.value-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(26,54,115,0.1); 
    border-color: #1a3673; 
}

.value-icon-wrapper { 
    width: 80px; height: 80px; 
    background-color: #f0f4f8; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 25px auto; 
    transition: all 0.3s; 
}

.value-icon-wrapper i { font-size: 35px; color: #1a3673; }
.value-card:hover .value-icon-wrapper { background-color: #1a3673; }
.value-card:hover .value-icon-wrapper i { color: #fff; }

.value-title { 
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700; 
    font-size: 20px; 
    color: #333; 
    margin-bottom: 15px; 
}

.value-desc { 
    font-family: 'Open Sans', sans-serif;
    color: #666; 
    font-size: 14.5px; 
    line-height: 1.6; 
}

/* 6. HISTORY PARALLAX SECTION */
.history-wrapper { position: relative; background-color: #111; }

/* Ganti class .history-nav menjadi seperti ini */
.history-nav { 
    position: fixed; /* Ubah ke fixed agar stabil menempel di layar */
    top: 50%; 
    transform: translateY(-50%); 
    left: 0;
    width: 80px; 
    z-index: 100; 
    background: rgba(0,0,0,0.5); 
    
    /* Sembunyikan secara default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Ini adalah class pemicu yang akan ditambahkan oleh JS */
.history-nav.show-nav {
    opacity: 1;
    visibility: visible;
}

.nav-tahun {
    transition: all 0.3s ease;
    /* gaya standar lainnya */
}

.nav-tahun.active {
    background-color: #1a438e; /* biru sesuai gambar */
    color: white !important;
    font-weight: bold;
}
.history-nav ul { list-style: none; padding: 0; margin: 0; }

.history-nav li a { 
    display: block; 
    color: #ccc; 
    text-decoration: none; 
    padding: 15px 0; 
    text-align: center; 
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700; 
    font-size: 14px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    transition: all 0.3s; 
}

.history-nav li a:hover, 
.history-nav li a.active { 
    background-color: #1a3673; 
    color: #fff; 
}

.history-section { 
    min-height: 100vh; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-left: 80px; 
}

.history-overlay { 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0, 0, 0, 0.75); 
    z-index: 1; 
}

.history-content { 
    position: relative; 
    z-index: 2; 
    color: #fff; 
    text-align: center; 
    max-width: 900px; 
    padding: 0 40px; 
}

.history-year { 
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 28px; 
    font-weight: 700; 
    margin-bottom: 25px; 
    position: relative; 
    display: inline-block; 
    letter-spacing: 2px; 
}

.history-year::after { 
    content: ''; 
    position: absolute; 
    bottom: -12px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 50px; 
    height: 3px; 
    background-color: #1a3673; 
}

.history-desc { 
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px; 
    line-height: 1.8; 
    font-weight: 400; 
}
/* Styling untuk tombol Scroll to Top */
    .btn-scroll-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: transparent;
        border: 1px solid #ffffff;
        color: #ffffff;
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    /* Efek saat tombol muncul */
    .btn-scroll-top.show {
        opacity: 1;
        visibility: visible;
    }

    /* Efek saat di-hover */
    .btn-scroll-top:hover {
        background-color: #1a3673;
        border: 2px solid #1a3673;
        color: #fff;
        transform: translateY(-3px);
    }
    
/* 7. RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .btn-back-top { top: 15px; left: 15px; padding: 6px 12px; font-size: 10px; }
    .hero-buttons { flex-direction: column; }
    .btn-hero-outline { padding: 12px 20px; font-size: 12px; width: 100%; text-align: center; border-right: 1px solid rgba(255,255,255,0.4) !important; }
    
    .history-nav { display: flex; position: relative; top: 0; transform: none; width: 100%; overflow-x: auto; background: #1a3673; }
    .history-nav li { flex: 1; min-width: 80px; }
    .history-nav li a { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.2); padding: 10px 0;}
    .history-section { padding-left: 0; min-height: 70vh; padding: 60px 20px; background-attachment: scroll; }
    .history-desc { font-size: 15px; }
}
/* =========================================================
   7. RESPONSIVE DESIGN (MOBILE VIEW / WEBVIEW)
========================================================= */
@media (max-width: 768px) {
    /* --- 1. HERO SECTION & BACK BUTTON --- */
    .about-hero { 
        padding-top: 100px; 
        padding-bottom: 60px; 
        background-attachment: scroll; /* Matikan parallax statis di HP agar tidak lag */
        
    }
    .hero-title { font-size: 22px; }
    .hero-desc { font-size: 12px; }
    .hero-list { font-size: 12px; }
    .hero-subtitle { font-size: 14px; }
    
    /* Tombol Kembali: Sembunyikan teks, sisakan ikon panah agar tidak sumpek */
    .btn-back-top { 
        top: 20px; 
        left: 20px; 
        padding: 10px 12px; 
        font-size: 10px; /* Menyembunyikan teks */
    }
    .btn-back-top i { 
        font-size: 16px; /* Memunculkan kembali ikon */
    }

    .hero-logos {
        display: none !important;
    }
    /* --- 2. DUAL BUTTONS (SEJARAH & NILAI KAMI) --- */
    /* Pertahankan format menyamping (Desktop Style) namun ukurannya disesuaikan untuk HP */
    .hero-buttons { 
        flex-direction: row !important; /* Paksa kembali menyamping */
        width: 100% !important; 
        max-width: 320px !important; /* Dipersempit agar tidak meluber di HP */
        height: 50px !important; /* Sedikit dipendekkan proporsinya */
        border: 1px solid rgba(255, 255, 255, 0.6) !important; /* Kembalikan kotak luar */
        gap: 0 !important; 
        margin: 20px auto 0 !important;
    }
    
    /* Munculkan kembali garis miring di tengah */
    .hero-buttons::after { 
        display: block !important; 
    }

    /* Sesuaikan teks agar muat di dalam kotak yang mengecil */
    .btn-hero-outline { 
        padding: 0 !important; 
        font-size: 11px !important; /* Perkecil teks sedikit */
        letter-spacing: 1px !important; 
        border: none !important; 
        border-radius: 0 !important; 
        width: 50% !important;
    }

    /* Kembalikan animasi slide biru dengan potongan miring */
    .btn-hero-outline::before { 
        border-radius: 0 !important;
    }
    .btn-hero-outline:first-child::before {
        clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%) !important;
    }
    .btn-hero-outline:last-child::before {
        clip-path: polygon(35px 0, 100% 0, 100% 100%, 0 100%) !important;
    }
    /* --- 3. MENU NAVIGASI TAHUN (HISTORY NAV) --- */
    /* Paksa muncul (override d-none Bootstrap) dan buat scroll menyamping di atas */
    .history-nav { 
        display: block !important; 
        position: sticky; /* Menempel di atas layar saat discroll */
        top: 0; 
        transform: none; 
        width: 100%; 
        background: #1a3673; 
        opacity: 1; 
        visibility: visible;
        z-index: 105; /* Harus lebih tinggi dari history-overlay */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .history-nav ul {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Scroll mulus di iOS */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .history-nav ul::-webkit-scrollbar { display: none; } /* Hilangkan garis scroll */
    .history-nav li { flex: 0 0 auto; min-width: 80px; }
    .history-nav li a { 
        border-bottom: none; 
        border-right: 1px solid rgba(255,255,255,0.2); 
        padding: 15px 0;
        font-size: 13px;
    }

    /* --- 4. KONTEN TAHUN SEJARAH --- */
    .history-section { 
        padding-left: 0; 
        min-height: 100vh; 
        padding: 100px 20px 60px 20px; /* Tambah padding atas agar tidak tertutup menu sticky */
        background-attachment: scroll; 
    }
    .history-year { font-size: 24px; }
    .history-desc { font-size: 14px; line-height: 1.6; }

    /* --- 5. TOMBOL SCROLL TO TOP --- */
    .btn-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
}