@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
    --primary-color: #e8192c;        /* Merah cerah, flat, tidak gelap */
    --primary-hover: #c9111f;        /* Hover sedikit lebih tua tapi tetap cerah */
    --primary-light: #ff4d5e;        /* Merah terang untuk aksen */
    --dark-color: #0b0b0b;
    --light-gray: #f9f9f9;
    --text-gray: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #111;
    line-height: 1.6;
}

/* Navbar */
.navbar-custom {
    background: var(--dark-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 45px;
}

.navbar-custom .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 2rem;
    transition: all 0.3s;
    position: relative;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-light) !important;
}

.btn-nav-cta {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    margin-left: 1rem;
}

.btn-nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Hero Swiper */
.hero-swiper {
    height: 90vh;
    width: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-hero {
    background: #fff;
    color: var(--dark-color);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: var(--dark-color);
}

.btn-hero-outline {
    border: 2px solid #fff;
    color: #ffffff;
    background: transparent;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.btn-hero-outline:hover {
    background: rgb(179, 4, 4);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Price List Popup Modal */
.price-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.price-modal-content {
    position: relative;
    margin: 3% auto;
    max-width: 900px;
    width: 95%;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.price-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s;
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.price-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: var(--primary-hover);
}

.price-modal-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.price-cta-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.price-cta-footer p {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-wa-price {
    background: #25d366;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-wa-price:hover {
    background: #1eaa55;
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

/* Models Grid */
.model-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.model-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.model-card:hover img {
    transform: scale(1.05);
}

.model-card-body {
    padding: 1.5rem;
}

.model-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.model-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.model-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.btn-detail {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.btn-detail:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #aaa;
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer p {
    line-height: 1.8;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .fa-lg {
    font-size: 1.5rem;
}

/* WHATSAPP FLOATING BUBBLE */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    animation: pulse 2s infinite;
}

.wa-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s;
    text-decoration: none;
}

.wa-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

.wa-float-text {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
    font-weight: 600;
    color: #333;
    animation: slideIn 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        right: 50px;
    }
    to {
        opacity: 1;
        right: 70px;
    }
}

/* BROCHURE POPUP MODAL */
.brochure-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.brochure-modal-content {
    position: relative;
    background-color: transparent;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 450px;
    text-align: center;
    animation: slideDown 0.4s ease;
}

.brochure-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    color: white;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1;
}

.brochure-close:hover {
    background: var(--primary-hover);
    transform: rotate(90deg) scale(1.1);
}

.brochure-slider {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.brochure-img {
    width: 100%;
    display: none;
    border-radius: 10px;
    max-height: 80vh;
    object-fit: contain;
}

.brochure-img.active {
    display: block;
}

.brochure-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.brochure-nav-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.brochure-nav-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.brochure-counter {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.brochure-cta-footer {
    margin-top: 15px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.brochure-cta-footer p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e0e0e0;
}

.brochure-cta-footer i {
    color: #fff;
}

.btn-wa-brochure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #25d366;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-wa-brochure:hover {
    background: #1ebd59;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
    color: white;
}

.btn-wa-brochure i {
    font-size: 1.2rem;
}

/* ============================================
   PAGE HEADER - Gaya resmi Mitsubishi
   Merah cerah atas → merah medium bawah, arah vertikal
   ============================================ */
.page-header {
    background: linear-gradient(180deg, #f01428 0%, #cc0e20 60%, #b50c1c 100%) !important;
    color: white;
    padding: 5rem 0 3rem;
    text-align: center;
}

/* Highlight box di promo - sama gayanya */
.highlight-box {
    background: linear-gradient(180deg, #f01428 0%, #cc0e20 100%) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-swiper {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .navbar-custom .nav-link {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-custom .nav-link::after {
        display: none;
    }
    
    .btn-nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        text-align: center;
    }
    
    .price-modal-content,
    .brochure-modal-content {
        margin: 15% auto;
        width: 98%;
    }
    
    .price-close,
    .brochure-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .price-cta-footer,
    .brochure-cta-footer {
        padding: 1.5rem 1rem;
    }
    
    .price-cta-footer p,
    .brochure-cta-footer p {
        font-size: 1rem;
    }
    
    .btn-wa-price,
    .btn-wa-brochure {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .brochure-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .brochure-counter {
        font-size: 1rem;
    }
    
    .brochure-navigation {
        gap: 1rem;
    }
    
    .model-card img {
        height: 200px;
    }
    
    .btn-hero,
    .btn-hero-outline {
        display: block;
        text-align: center;
        margin-right: 0;
    }
    
    .wa-float {
        bottom: 20px;
        right: 20px;
    }
    
    .wa-float a {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .wa-float-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}