/* ==========================================================
   STYLE.CSS - GAYA UTAMA UNTUK WEBSITE WAHANA RENT CAR
   ========================================================== */

/* 1. VARIABEL & GAYA DASAR */
:root {
    --primary-color: #FF5722;
    --primary-color-dark: #E64A19;
    --secondary-color: #3f51b5;
    --text-color-light: #f8f9fa;
    --text-color-dark: #212529;
    --bg-light: #f0f2f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --font-main: 'Poppins', sans-serif;
    --gradient-primary: linear-gradient(45deg, var(--primary-color), #ff7e5f);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

body {
    margin: 0;
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* 2. HEADER & NAVIGASI */
.main-header {
    background-color: rgba(33, 37, 41, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 90%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
}


/* 3. ELEMEN UMUM (Tombol, Judul, Kartu) */
.btn {
    display: inline-block;
    color: var(--text-color-light);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 0.5px;
    border: none;
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 2.8em;
    margin-bottom: 60px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* 4. GAYA PER HALAMAN */

/* HALAMAN UTAMA (index.php) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    background-size: cover;
    background-position: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-overlay); z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 900px; padding: 20px;
    animation: fadeInScale 1.5s ease-out;
}
.hero-content h1 { font-size: 4em; margin-bottom: 20px; text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); }
.hero-content p { font-size: 1.5em; margin-bottom: 40px; opacity: 0.9; }

.features-section { padding: 50px 5%; text-align: center; background-color: var(--card-bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 100px; margin: 0 auto; }
.feature-item { padding: 30px; text-align: center; }
.feature-item i { font-size: 3.5em; color: var(--primary-color); margin-bottom: 20px; }
.feature-item h3 { font-size: 1.6em; color: var(--secondary-color); margin-bottom: 15px; }
.feature-item p { font-size: 1em; color: var(--text-color-dark); }

/* HALAMAN UNIT & DETAIL */
.page-hero { padding: 140px 5% 60px; text-align: center; background-color: var(--secondary-color); color: var(--text-color-light); }
.page-hero h1 { font-size: 3.5em; margin-bottom: 10px; }
.page-hero p { font-size: 1.2em; opacity: 0.9; max-width: 800px; margin: 0 auto; }

.unit-listing-section { padding: 60px 5%; }
.unit-listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.unit-card { text-align: left; display: flex; flex-direction: column; }
.unit-card img { width: 100%; height: 220px; object-fit: cover; }
.unit-card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.unit-card h3 { font-size: 1.8em; color: var(--primary-color); margin: 0 0 10px; }
.unit-card .unit-type { font-size: 0.9em; color: var(--secondary-color); background-color: #e0e7ff; padding: 5px 10px; border-radius: 5px; display: inline-block; margin-bottom: 10px; }
.unit-card .unit-price { font-size: 1.5em; font-weight: bold; margin-bottom: 15px; }
.unit-card p { font-size: 0.95em; color: #555; margin-bottom: 20px; }
.unit-card .btn { margin-top: auto; text-align: center; }

.detail-section { padding: 120px 5% 60px; max-width: 1000px; margin: 30px auto 0; background-color: var(--card-bg); border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.detail-header { text-align: center; margin-bottom: 40px; }
.detail-header h1 { font-size: 3em; color: var(--secondary-color); margin-bottom: 10px; }
.detail-header .unit-type { font-size: 1.2em; color: var(--primary-color); font-weight: bold; }
.detail-image { width: 100%; height: 450px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.detail-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 40px; background-color: var(--bg-light); padding: 20px; border-radius: 8px; }
.overview-item { text-align: center; }
.overview-item i { font-size: 2em; color: var(--primary-color); margin-bottom: 10px; }
.overview-item strong { display: block; font-size: 1.1em; }
.detail-features ul, .detail-inclusion ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.detail-features ul li, .detail-inclusion ul li { background-color: var(--bg-light); padding: 10px 15px; border-radius: 5px; display: flex; align-items: center; gap: 10px; }
.detail-features ul li i, .detail-inclusion ul li i.fa-check-circle { color: #28a745; }
.detail-inclusion ul li i.fa-times-circle { color: #dc3545; }
.rental-cta { text-align: center; padding: 40px 20px; background-color: var(--secondary-color); color: var(--text-color-light); border-radius: 8px; margin-top: 40px; }
.rental-cta .price-display { font-size: 3em; font-weight: bold; margin-bottom: 20px; color: var(--primary-color); }

/* HALAMAN FORM (Booking & Testimoni) */
.form-container, .modal-content { background-color: var(--card-bg); padding: 40px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); width: 100%; max-width: 600px; margin: 120px auto 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2); }
.message { margin-bottom: 20px; padding: 15px; border-radius: 8px; text-align: center; }
.message.success { background-color: #d4edda; color: #155724; }
.message.error { background-color: #f8d7da; color: #721c24; }

/* HALAMAN TESTIMONI */
.content-section { padding-top: 120px; padding-bottom: 40px; }
.testimoni-list { display: flex; flex-direction: column; gap: 20px; }
.testimoni-card { padding: 25px; display: flex; gap: 20px; align-items: flex-start; }
.testimoni-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); }
.testimoni-content h4 { margin: 0 0 5px 0; font-size: 1.3em; color: var(--secondary-color); }
.testimoni-content p { margin: 0; font-style: italic; color: #555; }
.rating { color: #f39c12; }
.floating-btn { position: fixed; bottom: 25px; right: 25px; padding: 15px 20px; background: var(--gradient-primary); color: white; border-radius: 50px; text-decoration: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); font-weight: 600; z-index: 900; }
.modal-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 1001; }
.modal-container.show { display: flex; }
.close-btn { position: absolute; top: 15px; right: 25px; font-size: 30px; color: #aaa; cursor: pointer; }


/* 5. FOOTER */
footer { text-align: center; padding: 50px 5%; background-color: var(--secondary-color); color: var(--text-color-light); font-size: 0.9em; margin-top: 30px;}
.footer-content { max-width: 900px; margin: 0 auto; }
.footer-content a { color: var(--primary-color); text-decoration: none; }


/* 6. ANIMASI */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }


/* 7. RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.2em; }
    .hero-content p { font-size: 1.2em; }
    .section-title { font-size: 2.4em; }
}

@media (max-width: 768px) {
    /* Navigasi Hamburger */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(33, 37, 41, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .nav-menu ul li {
        margin: 20px 0;
    }
    .hamburger-btn {
        display: block;
    }

    /* Tipografi & Spasi */
    .hero-content h1 { font-size: 2.5em; }
    .hero-content p { font-size: 1.1em; }
    .page-hero h1 { font-size: 2.5em; }
    .section-title { font-size: 2.0em; }
    .detail-header h1 { font-size: 2.2em; }

    .features-section, .unit-listing-section, .detail-section {
        padding-left: 4%;
        padding-right: 4%;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 1em;
    }

    /* Formulir */
    .form-container, .modal-content {
        width: 90%;
        padding: 25px;
        margin-top: 100px;
    }
    .modal-content { margin-top: 0; }
}