:root {
    --primary-color: #004a99;
    /* Royal Blue */
    --secondary-color: #ffcc00;
    /* Yellow */
    --text-light: #f0f0f0;
    --text-dark: #1a1a2e;
    --white: #ffffff;
    --border-color: rgba(255, 255, 255, 0.2);
    --font-main: 'Roboto', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-light);
    line-height: 1.6;
    /* Linear gradient 180 degree blue and a little bit yellow */
    background: linear-gradient(180deg, #004a99 0%, #003366 70%, #665500 100%);
    background-attachment: fixed;
    /* Keep gradient fixed */
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--secondary-color);
    /* Yellow headings for contrast */
    font-weight: 700;
    line-height: 1.2;
}

header {
    background: yellow;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.payment-logo { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 15px; }

.payment-logo img { max-width: 100%; max-height: 60px; object-fit: contain; }

.nav-menu li a {
    color: #000;
    text-decoration: none;
    padding: 8px 14px;
    transition: 0.3s;
}

/* hover & active kontra */
.nav-menu li a:hover,
.nav-menu li a.active {
    background: #000;
    color: yellow;
}

/* button */
.nav-menu .btn {
    background: #000;
    color: yellow;
    padding: 10px 16px;
}

.nav-menu .btn:hover {
    background: #222;
}

/* hamburger icon */
.hamburger i {
    color: #000;padding-left:100px;
}


.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* Buttons - Suitable color (Yellow for high contrast) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: #003366;
    /* Dark blue text */
    border-radius: 30px;
    /* Rounded */
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.to-top-btn {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Top Bar */
.top-bar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

/* Header */
header {
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
}

/* Hero Section */
.hero {
    /* Removed image background to emphasize gradient, or keep overlay */
    background: transparent;
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Vehicle Selection Section */
.vehicle-selection {
    padding: 60px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    /* Gentle overlay */
    border-radius: 20px;
    margin: 20px auto;
    max-width: var(--max-width);
}

.vehicle-selection h3 {
    color: var(--secondary-color);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
    max-width: 250px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vehicle-card:hover {
    background: var(--secondary-color);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.vehicle-card:hover h3,
.vehicle-card:hover .vehicle-icon {
    color: #003366;
    /* Change text to dark on hover */
}

.vehicle-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: color 0.4s;
}

.vehicle-card h3 {
    color: var(--white);
    font-size: 1.2rem;
    transition: color 0.4s;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.service-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    color: var(--text-dark);
}

.service-item h4 {
    color: #003366;
    margin-bottom: 15px;
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-family: inherit;
}

/* Comparison/Steps Section */
.comparison {
    padding: 80px 0;
    background-color: transparent;
}

.comparison-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: var(--text-dark);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 74, 153, 0.1);
    color: #004a99;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: bold;
}

.step-card h3 {
    color: #003366;
    margin-bottom: 15px;
}

/* Partners Section */
.partners {
    padding: 80px 0;
    text-align: center;
    border-radius: 5px;
    margin: 40px 0;
}

.partners h2 {
    color: #ffffff;
}

.partners-grid {
    /* Desktop: 4 columns */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.partner-logo {
    height: 80px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #eee;
    color: #555;
    font-weight: bold;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Payment Section */
.payment {
    padding: 60px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    color: #ffffff; /* This is overridden by h2/h3 styles later */
}

/* NEW: Payment Logos Grid */
.payment-logos-grid {
    display: grid;
    /* Desktop: 4 columns */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.payment-logo {
    height: 60px; /* Smaller height for payment logos */
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 500;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}


/* FAQ Section */
.faq {
    padding: 80px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    border-radius: 5px;
    color: var(--text-dark);
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    color: #003366;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
}

.faq-answer {
    padding: 0 20px 20px;
    line-height: 1.6;
    display: none;
    /* JS to toggle */
}

.faq-answer.show {
    display: block;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-dark);
}

.modal-content h2,
.modal-content h3 {
    color: #003366;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-group input {
    width: auto;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        padding: 0 15px;
        /* Adjust header container padding for mobile */
    }

    /* Change from side-slide (right:-100%) to dropdown (max-height: 0) */
    .nav-menu {
        position: absolute;
        /* Relative to the header */
        top: 100%;
        /* Position it directly below the header */
        left: 0;
        /* Align to the left edge */

        /* Hide state: Collapse the menu */
        max-height: 0;
        overflow: hidden;
        /* Hide the content */

        flex-direction: column;
        background-color: rgba(0, 51, 102, 0.98);color:#ffffff !important;
        width: 100%;
        text-align: center;
        padding: 0;
        /* No vertical padding when collapsed */
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        z-index: 998;
        border-top: 1px solid var(--border-color);
        align-items: center;
        gap: 0;
    }

    .nav-menu.active {
        max-height: 500px;
        /* Expand the menu (adjust value if content is too long) */
        padding: 20px 0;
        /* Add vertical padding when expanded */
        overflow-y: auto;
        gap: 20px;
        /* Add gap between items when expanded */
    }

    .nav-menu li {
        width: 100%;
        padding: 0;
        /* Remove padding if using gap */
    }

    .nav-menu .btn {
        margin: 10px auto;
        /* Center button */
        width: 80%;
    }

    .nav-link::after {
        display: none;
        /* Hide underline effect in mobile menu */
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .about-content {
        flex-direction: column;
    }

    /* PELARASAN MOBILE: Partners Grid (2 columns) */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* PELARASAN MOBILE: Payment Logos Grid (2 columns) */
    .payment-logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}