/* --- GLOBAL STYLE --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; overflow-x: hidden; font-family: sans-serif; background-color: #fff; }
#superwrapper { width: 100%; }
img { max-width: 100%; height: auto; display: block; }

/* --- HEADER & BANNER --- */
#haeder { 
    position: relative; 
    width: 100%; 
    overflow: hidden;
    line-height: 0; /* Buang ruang kosong bawah gambar banner */
}
.banner { width: 100%; height: auto; display: block; }

.menu { 
    position: absolute; 
    top: 4%; 
    left: 5%; 
    width: 40px; 
    z-index: 1000; 
    cursor: pointer; 
}

/* --- DISCOVER BUTTON (POSITION LOCK) --- */
.discover-link {
    position: absolute;
    top: 50%; /* Kedudukan tetap pada banner */
    left: 5%; 
    width: 18%; 
    z-index: 10;
    transition: transform 0.3s ease;
}
.discover { width: 100%; height: auto;}
.discover-link:hover { transform: scale(1.1); }

/* --- CSS ARROW SYSTEM (ULTRAGUARD) --- */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; 
    height: 60px; 
    cursor: pointer;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.nav-arrow::before {
    content: "";
    width: 35px;
    height: 40px;
    display: block;
}

/* Warna Arrow New Model (HITAM) */
#newmodel .left-arrow::before { 
    background-color: #000; 
    clip-path: polygon(100% 0%, 0% 50%, 100% 100%); 
}
#newmodel .right-arrow::before { 
    background-color: #000; 
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%); 
}

/* Warna Arrow Award (PUTIH) */
#award .left-arrow::before { 
    background-color: #fff; 
    clip-path: polygon(100% 0%, 0% 50%, 100% 100%); 
}
#award .right-arrow::before { 
    background-color: #fff; 
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%); 
}

.left-arrow { left: 2%; }
.right-arrow { right: 2%; }
.nav-arrow:hover { opacity: 0.7; transform: translateY(-50%) scale(1.1); }

/* --- NEW MODEL SECTION --- */
#newmodel { width: 100%; position: relative; }
.main-container { position: relative; width: 100%; }
.layer-1-back { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
#carImg {
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -50%);
    width: auto; max-width: 75%;
    z-index: 3; pointer-events: none;
}
.brochure-btn {
    position: absolute;
    top: 30.5%; right: 12.5%;
    width: 25%; height: 10%;
    z-index: 110; cursor: pointer;
}

/* --- AWARD SECTION --- */
#award { 
    width: 100%; 
    position: relative; 
    background: #000; 
    overflow: hidden; 
}
.award-container-locked { position: relative; width: 100%; }
.layer-bg { width: 100%; height: auto; display: block; z-index: 1; }
.carousel-box {
    position: absolute;
    top: 55%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 60%;
    display: flex; align-items: center; justify-content: center;
    perspective: 1000px;
    z-index: 5;
}
.c-img { 
    position: absolute; 
    width: 22%; 
    transition: all 0.5s ease-in-out; 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.center-img { transform: scale(1.3); z-index: 20; opacity: 1; }
.left-pos   { transform: translateX(-130%) scale(0.85); opacity: 0.5; z-index: 10; }
.right-pos  { transform: translateX(130%) scale(0.85); opacity: 0.5; z-index: 10; }
.hidden-pos { opacity: 0; transform: scale(0.5); z-index: 0; }

/* --- FOOTER SECTION --- */
#main-footer {
    width: 100%;
    background-color: #111;
    color: #fff;
    padding: 40px 0;
    font-family: sans-serif;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}
.footer-map {
    flex: 1 1 400px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.footer-info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.footer-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-info p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 14px;
}
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}
.s-btn {
    display: block;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    transition: 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}
.s-btn:hover { background-color: #fff; color: #000; transform: translateY(-3px); }
.s-btn.whatsapp:hover { background-color: #25D366; border-color: #25D366; color: #fff; }
.s-btn.facebook:hover { background-color: #1877F2; border-color: #1877F2; color: #fff; }
.s-btn.instagram:hover { background-color: #C13584; border-color: #C13584; color: #fff; }
.s-btn.tiktok:hover { background-color: #000; border-color: #FE2C55; color: #FE2C55; }

.copyright { font-size: 12px; color: #555; margin-top: auto; }

/* --- SIDEBAR & ANIMATION --- */
.sidebar { 
    height: 100%; 
    width: 0; 
    position: fixed; 
    z-index: 9999; 
    top: 0; 
    left: 0; 
    background-color: #111; 
    overflow-x: hidden; 
    transition: 0.5s; 
    padding-top: 60px; 
}
.sidebar a { padding: 8px 32px; text-decoration: none; font-size: 18px; color: #818181; display: block; }
.sidebar .closebtn { position: absolute; top: 0; right: 25px; font-size: 36px; }

.fade-anim { animation: fadeEffect 0.5s ease-in-out; }

@keyframes fadeEffect { 
    from { opacity: 0.5; } 
    to { opacity: 1; } 
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .discover-link { 
        width: 20%; /* Laras saiz butang untuk telefon */
        top: 50%; /* Samakan dengan desktop supaya tidak melompat */
        left: 5%; 
    }
    .nav-arrow { width: 50px; height: 50px; }
    .nav-arrow::before { width: 20px; height: 25px; }
    #newmodel .left-arrow { left: 1%; }
    #newmodel .right-arrow { right: 1%; }
    #award .left-arrow { left: 1%; }
    #award .right-arrow { right: 1%; }
    .c-img { width: 30%; } 
    .left-pos { transform: translateX(-110%) scale(0.8); }
    .right-pos { transform: translateX(110%) scale(0.8); }
    .center-img { transform: scale(1.2); }
    
    .footer-container { flex-direction: column; padding: 0 5%; }
    .footer-map { height: 250px; width: 100%; }
    .footer-info { text-align: center; }
    .social-grid { grid-template-columns: 1fr; }
}