/* ==========================================
   1. GLOBAL & HERO SECTION
   ========================================== */
/* 1. Hapus background dari .hero agar tidak ada gambar lain di belakangnya */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: 70px;
    height: calc(100vh - 70px);
    background-color: #111; /* Menggunakan warna gelap netral sebagai gantinya */
}

/* 2. Pastikan .slides dan .slide mengisi penuh seluruh kontainer */
.slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}
/* OVERLAY */
.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* CONTENT */
.hero-content {
    transform: translateY(-50px);
}

.hero-logo {
    width: 400px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.3;
}

.hero p {
    margin: 15px 0 25px;
    font-size: 15px;
}

/* BUTTONS */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    margin-right: 10px;
    display: inline-block;
}

.btn-primary {
    background: red;
    color: white;
}

.btn-outline {
    border: 1px solid white;
    color: white;
}

/* WHATSAPP FLOAT */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    background: rgba(37, 211, 102, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 26px;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    backdrop-filter: blur(4px);
    transition: 0.3s;
    z-index: 999;
    animation: float 2s infinite;
}

.wa-float:hover {
    transform: scale(1.1);
    background: rgba(37, 211, 102, 1);
}

.wa-float img {
    width: 32px;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* ==========================================
   2. ABOUT HERO SECTION
   ========================================== */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Gunakan min-height, BUKAN height */
    background: url('../img/13.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0; /* Memberi ruang atas & bawah agar aman di HP */
    box-sizing: border-box;
}

.about-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: none; /* Hapus translateY agar tidak menggeser layout di HP */
}
.about-hero .hero-left {
    width: 50%;
    color: white;
}

.about-hero .hero-left h1 {
    font-size: 48px;
    margin: 0;
}

.about-hero .hero-right {
    width: 40%;
    color: white;
}

.hero-stats {
    margin-top: 40px;
}

.hero-stats b {
    color: #ff2b2b;
    font-size: 20px;
    font-weight: 700;
}

.hero-stats span {
    margin-right: 50px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ==========================================
   3. KENDARAAN SHOWCASE (SWIPER)
   ========================================== */
.kendaraan-showcase {
    background: #f5f5f5;
    padding: 100px 60px;
    text-align: center;
    overflow: hidden;
}

.section-title {
    font-size: 32px;
    margin-bottom: 50px;
}

.kendaraanShowcase .swiper-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0 !important;
    transition: opacity 0.6s ease;
}

.kendaraanShowcase .swiper-slide-active {
    opacity: 1 !important;
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.text-left {
    width: 50%;
    text-align: left;
}

.text-left h1 {
    font-size: 42px;
    line-height: 1.3;
    font-weight: 600;
}

.brand {
    margin-top: 15px;
    font-size: 16px;
}

.brand a {
    color: #ff2b2b;
    text-decoration: none;
}

.text-right {
    width: 40%;
    text-align: left;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.image {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.image img {
    width: 900px;
    max-width: 100%;
    margin-top: -50px;
}

/* ANIMASI ENTRY SHOWCASE */
.image img,
.text-left,
.text-right {
    opacity: 0;
    transform: translateY(40px);
}

.kendaraanShowcase .swiper-slide-active .image img {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s ease 0.2s;
}

.kendaraanShowcase .swiper-slide-active .text-left {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease 0.8s;
}

.kendaraanShowcase .swiper-slide-active .text-right {
    opacity: 1;
    transform: translateY(0);
    transition: all 1.2s ease 1.2s;
}

.kendaraanShowcase .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 50px;
}

.kendaraanShowcase .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
    border-radius: 50%;
    background: #bbb !important;
    transition: 0.3s;
    opacity: 1 !important;
}

.kendaraanShowcase .swiper-pagination-bullet-active {
    background: #ff2b2b !important;
    transform: scale(1.3);
}

/* ==========================================
   4. AREA OPERASIONAL
   ========================================== */
.area {
    padding: 100px 20px;
    background: #f5f5f5;
    text-align: center;
}

.area-container {
    max-width: 1200px;
    margin: auto;
}

.area h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.area-desc {
    color: #666;
    margin-bottom: 40px;
}

.area-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 60px;
    font-size: 16px;
}

.area-stats span {
    color: #ff2b2b;
    font-weight: bold;
    margin-right: 5px;
}

.area-map {
    position: relative;
    display: inline-block;
}

.area-map img {
    width: 100%;
    max-width: 900px;
    opacity: 0.8;
}

.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff2b2b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.dot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ff2b2b;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ==========================================
   5. SERVICES SECTION (FLIP CARDS)
   ========================================== */
.services {
    background: #f2f2f2;
    padding: 80px 20px;
    text-align: center;
}

.services-container {
    max-width: 1400px;
    margin: auto;
}

.zigzag {
    width: 60px;
    height: 10px;
    margin: 0 auto 10px;
    background: repeating-linear-gradient(
        135deg,
        red,
        red 5px,
        transparent 5px,
        transparent 10px
    );
}

.services h2 {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    height: 350px;
    perspective: 1200px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 6px;
    backface-visibility: hidden;
}

.card-front {
    background: #fff;
    border: 2px solid #eee;
}

.card-back {
    background: #2c2c2c;
    color: white;
    transform: rotateY(180deg);
    padding: 25px;
    text-align: center;
}

.icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.card-front h3 {
    font-size: 18px;
}

.card-back p {
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
   6. HIGHLIGHT SECTION
   ========================================== */
.highlight {
    background: #f7f7f7;
    padding: 80px 20px;
    text-align: center;
}

.highlight-container {
    max-width: 1200px;
    margin: auto;
}

.highlight-subtitle {
    color: red;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.highlight h2 {
    font-size: 30px;
    margin: 10px 0;
}

.highlight h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: red;
    margin: 12px auto;
}

.highlight-desc {
    color: #666;
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.highlight-box {
    background: #fff;
    padding: 35px 25px;
    min-height: 240px;
    border-radius: 10px;
    border: 1px solid #eee;
    border-top: 3px solid red;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

.highlight-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.highlight-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.highlight-box h3 {
    margin-bottom: 12px;
    font-size: 17px;
}

.highlight-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================
   7. MEDIA QUERIES (MOBILE FRIENDLY RESPONSIVE)
   ========================================== */

/* --- Tablet / Large Mobile (Max-width: 1024px) --- */
@media (max-width: 1024px) {
    .hero-logo {
        width: 300px;
    }
    .hero h1 {
        font-size: 34px;
    }
    .about-hero .hero-content {
        padding: 0 30px;
        transform: translateY(0);
    }
    .about-hero .hero-left h1 {
        font-size: 36px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .highlight-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .image img {
        width: 100%;
        max-width: 650px;
        margin-top: 0;
    }
}

/* --- Mobile / Smartphone (Max-width: 768px) --- */
@media (max-width: 768px) {
    .hero, 
    .about-hero, 
    .kendaraan-showcase, 
    .area, 
    .services, 
    .highlight {
        padding: 50px 15px !important;
        height: auto !important;
    }

    /* Hero Responsive */
    .hero {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
        display: flex;
        align-items: center;
    }
    .hero-content {
        transform: translateY(0) !important;
        padding: 0 10px;
    }
    .hero-logo {
        width: 220px;
        margin-bottom: 20px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 14px;
    }
    .hero-btn {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-btn .btn {
        width: 80%;
        margin-right: 0;
        text-align: center;
    }

    /* About Hero Responsive */
    .about-hero {
        display: block;
    }
    .about-hero .hero-content {
        flex-direction: column;
        text-align: center;
        transform: translateY(0) !important;
        padding: 0;
    }
    .about-hero .hero-left, 
    .about-hero .hero-right {
        width: 100%;
        margin-bottom: 25px;
    }
    .about-hero .hero-left h1 {
        font-size: 26px;
    }
    .hero-stats {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 25px;
    }
    .hero-stats span {
        margin-right: 0;
        font-size: 13px;
    }

    /* Showcase Responsive */
    .content {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 20px;
    }
    .text-left, 
    .text-right {
        width: 100% !important;
        text-align: center !important;
    }
    .text-left h1 {
        font-size: 24px;
        text-align: center;
    }
    .brand {
        margin-bottom: 15px;
    }
    .image img {
        width: 100%;
        margin-top: 10px;
    }
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    /* Area Operasional Responsive */
    .area-stats {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    .area h2 {
        font-size: 26px;
    }

    /* Services Grid Responsive */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        height: 280px;
    }

    /* Highlight Grid Responsive */
    .highlight h2 {
        font-size: 24px;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .highlight-box {
        min-height: auto;
        padding: 25px 20px;
    }

    /* Floating WhatsApp Button Mobile */
    .wa-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    .wa-float img {
        width: 24px;
    }
}