/* =========================================
   1. RESET & DASAR
   ========================================= */
   html {
    scroll-behavior: smooth;     /* Agar scroll halus */
    scroll-padding-top: 100px;   /* PENTING: Agar judul tidak ketutup navbar */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { line-height: 1.6; color: #333; }

/* WARNA VARIABLE UTAMA */
:root {
    --primary: #e63946; 
    --dark: #1d3557;
    --light: #f1faee;
    --wa: #25D366;
    
    /* Variable Folder */
    --folder-color: #70a1ff;
    --folder-back-color: #4785ff;
    --paper-1: #e6e6e6;
    --paper-2: #f2f2f2;
    --paper-3: #ffffff;
}

/* UTILITY */
.container { width: 90%; max-width: 1100px; margin: auto; }
.text-red { color: var(--primary); }
.bg-light { background-color: #f8f9fa; }

/* =========================================
   2. NAVBAR & LOGO (UPDATE TERBARU)
   ========================================= */
.navbar { 
    background: #fff; 
    padding: 10px 0; /* Padding atas bawah secukupnya */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    min-height: 80px; /* Tinggi minimal navbar */
}

.navbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* --- UPDATE LOGO GAMBAR --- */
.logo {
    display: flex;
    align-items: center;
}

/* Link pembungkus gambar & teks */
.logo-link {
    display: flex;            /* Agar gambar & teks sejajar horizontal */
    align-items: center;      /* Agar vertikal di tengah */
    text-decoration: none;    /* Hilangkan garis bawah link */
    color: var(--dark);       /* Warna teks default */
    font-size: 1.3rem;        /* Ukuran teks */
    font-weight: 700;         /* Ketebalan teks */
    gap: 10px;                /* Jarak antara Gambar dan Teks */
}

/* Gambar Logo */
.logo img {
    height: 55px;             /* Tinggi logo (sesuaikan selera) */
    width: auto;
    border-radius: 50%;       /* Membulatkan logo */
    object-fit: cover;
}

/* Responsif untuk HP (Opsional) */
/* Agar di HP tulisannya tidak terlalu besar */
@media (max-width: 768px) {
    .logo-link {
        font-size: 1rem;      /* Perkecil teks di HP */
    }
    .logo img {
        height: 40px;         /* Perkecil logo di HP */
    }
}

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: #fff !important; padding: 8px 20px; border-radius: 5px; }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    animation: backgroundFade 20s infinite linear;
    z-index: -1;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 
    z-index: -1;
}

@keyframes backgroundFade {
    0% { background-image: url('image/apv.jpeg'); opacity: 1; }
    20% { background-image: url('image/apv.jpeg'); opacity: 1; }
    25% { background-image: url('image/hiace.jpeg'); opacity: 1; } 
    45% { background-image: url('image/hiace.jpeg'); opacity: 1; }
    60% { background-image: url('image/luxio.jpeg'); opacity: 1; }
    65% { background-image: url('image/luxio.jpeg'); opacity: 1; }
    85% { background-image: url('image/apv\ putih.jpeg'); opacity: 1; }
    100% { background-image: url('image/apv\ putih.jpeg'); opacity: 1; }
}

.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }

/* TOMBOL HERO */
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; margin: 5px; transition: 0.3s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #c1121f; transform: scale(1.05); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #128c7e; transform: scale(1.05); }

/* =========================================
   4. SECTION LAYANAN & CARD
   ========================================= */
.section { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--dark); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.card { 
    background: #fff; 
    padding: 30px; 
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    text-align: center; 
    border-top: 5px solid var(--primary); 
}
.card h3 { margin-bottom: 15px; color: var(--dark); }

/* =========================================
   5. ANIMASI FOLDER (ARMADA)
   ========================================= */
/* Wrapper Folder */
.folder-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 380px;
    perspective: 1000px;
    margin-bottom: 20px;
}

/* Ukuran Folder */
.folder {
    position: relative;
    width: 280px;  
    height: 200px; 
    transition: all 0.2s ease-in;
    cursor: pointer;
}

/* Efek Hover & Open */
.folder:not(.open):hover { transform: translateY(-10px); }
.folder:not(.open):hover .folder__front { transform: skew(15deg) scaleY(0.6); }
.folder:not(.open):hover .right { transform: skew(-15deg) scaleY(0.6); }
.folder.open { transform: translateY(60px); } 

/* Animasi Kertas Keluar */
.folder.open .paper:nth-child(1) { transform: translate(-100%, -60%) rotateZ(-10deg); }
.folder.open .paper:nth-child(2) { transform: translate(10%, -60%) rotateZ(10deg); } /* Kanan digeser sedikit biar rapi */
.folder.open .paper:nth-child(3) { transform: translate(-50%, -130%) rotateZ(0deg) scale(1.1); z-index: 5; }

/* Bagian Belakang Folder */
.folder__back {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--folder-back-color);
    border-radius: 0px 15px 15px 15px;
}
.folder__back::after {
    position: absolute;
    z-index: 0;
    bottom: 98%;
    left: 0;
    content: '';
    width: 30%;
    height: 20px;
    background: var(--folder-back-color);
    border-radius: 10px 10px 0 0;
}

/* Kertas */
.paper {
    position: absolute;
    z-index: 2;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%, 10%);
    width: 85%;
    height: 90%;
    background: var(--paper-1);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.paper img { width: 100%; height: 100%; object-fit: cover; }

/* Teks Judul di Folder */
.paper-content { text-align: center; padding: 10px; width: 100%; }
.paper-content h4 { font-size: 1.4rem; color: var(--dark); font-weight: 800; margin-bottom: 5px; }
.paper-content p { font-size: 1rem; color: #555; font-weight: 500; }

/* Layer Kertas */
.paper:nth-child(2) { background: var(--paper-2); width: 90%; height: 85%; z-index: 3; }
.paper:nth-child(3) { background: var(--paper-3); width: 95%; height: 80%; z-index: 4; }

/* Bagian Depan (Cover) */
.folder__front {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: var(--folder-color);
    border-radius: 5px 15px 15px 15px;
    transform-origin: bottom;
    transition: all 0.3s ease-in-out;
    border: 2px solid rgba(255,255,255,0.1);
}
.right {
    transform-origin: bottom right;
    opacity: 0.9; 
    background: linear-gradient(to right, rgba(255,255,255,0.15), transparent);
}
.folder.open .folder__front { transform: skew(15deg) scaleY(0.2); opacity: 0.5; }
.folder.open .right { transform: skew(-15deg) scaleY(0.2); opacity: 0.5; }

/* =========================================
   6. FOOTER & STICKY BUTTON
   ========================================= */
.footer { background: var(--dark); color: #fff; text-align: center; padding: 50px 0 80px 0; }
.big-phone { font-size: 2rem; font-weight: bold; color: var(--primary); margin: 10px 0; }

.sticky-footer { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; z-index: 9999; }
.sticky-btn { flex: 1; text-align: center; padding: 15px; color: #fff; text-decoration: none; font-weight: bold; font-size: 1.1rem; }
.sticky-btn.call { background: var(--primary); }
.sticky-btn.wa { background: var(--wa); }

/* RESPONSIVE HP */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .nav-links { display: none; } /* Menu disembunyikan di HP agar rapi */
    .navbar .logo { margin: auto; } /* Logo ke tengah */
    .grid-3 { grid-template-columns: 1fr; }
}