/* ===============================
   RESET
================================ */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}

body{
  margin:0;
  font-family:'Segoe UI',sans-serif;
  background:linear-gradient(135deg,#071b2f,#0e2f4d);
  color:#fff;

  display:flex;
  flex-direction:column;
  height:100vh;

   }
/* ===============================
   HEADER
================================ */
header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 20px;
background:rgba(0,0,0,0.4);
backdrop-filter:blur(10px);
position:sticky;
top:0;
z-index:999;
}

.logo-wrap{
display:flex;
align-items:center;
gap:10px;
}

.logo-wrap img{
height:45px;
}

.logo-text small{
display:block;
font-size:12px;
color:#8ecaff;
}

.logo-text strong{
font-size:18px;
letter-spacing:1px;
}

.hamburger{
font-size:26px;
cursor:pointer;
}

/* ===============================
   SIDE MENU
================================ */
.side-menu{
position:fixed;
top:0;
right:-260px;
width:260px;
height:100%;
background:#0d2c47;
padding:30px;
transition:0.3s;
z-index:2000;
}

.side-menu.active{
right:0;
}

.menu-close{
  position:absolute;
  top:15px;
  right:20px;
  font-size:22px;
  cursor:pointer;
  color:white;
}

.side-menu a{
display:block;
color:#fff;
margin-bottom:15px;
text-decoration:none;
border-bottom:1px solid rgba(255,255,255,0.1);
padding-bottom:10px;
}

.side-menu a:hover{
color:#1fd1ff;
}

/* ===============================
   HERO
================================ */
.hero{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.hero h1{
font-size:36px;
margin-bottom:15px;
}

.hero p{
opacity:0.8;
margin-bottom:25px;
}

/* ===============================
   BUTTONS
================================ */
.btn{
padding:12px 20px;
border-radius:30px;
border:none;
cursor:pointer;
margin:5px;
font-weight:600;
transition:0.3s;
}

.btn-primary{
background:linear-gradient(45deg,#1fd1ff,#00a8ff);
color:#000;
box-shadow:0 0 15px rgba(0,200,255,0.6);
}

.btn-primary:hover{
transform:translateY(-3px);
box-shadow:0 0 25px rgba(0,200,255,1);
}

.btn-outline{
background:transparent;
border:2px solid #1fd1ff;
color:#1fd1ff;
}

.btn-outline:hover{
background:#1fd1ff;
color:#000;
}

.btn-success{
background:linear-gradient(45deg,#00ff94,#00cc6a);
color:#000;
box-shadow:0 0 15px rgba(0,255,150,0.6);
}

.btn-success:hover{
transform:translateY(-3px);
box-shadow:0 0 25px rgba(0,255,150,1);
}

/* ===============================
   LINEUP CARD
================================ */
.lineup{
padding:40px 20px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:25px;
}

.unit-card{
background:rgba(255,255,255,0.05);
border-radius:20px;
padding:20px;
text-align:center;
position:relative;
transition:0.3s;
backdrop-filter:blur(8px);
}

.unit-card:hover{
transform:translateY(-5px);
box-shadow:0 0 25px rgba(0,200,255,0.4);
}

.unit-card img{
width:100%;
max-height:170px;
object-fit:contain;
margin-bottom:10px;
}

.unit-card h2{
margin-bottom:10px;
}

/* ===============================
   TYPE LIST
================================ */
.type-list{
display:none;
text-align:left;
margin-top:10px;
font-size:14px;
line-height:1.6;
}

.type-list.active{
display:block;
animation:fadeIn 0.4s ease;
}

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

/* ===============================
   BADGE
================================ */
.badge{
position:absolute;
top:15px;
left:15px;
padding:6px 12px;
border-radius:20px;
font-size:11px;
font-weight:bold;
animation:pulse 2s infinite;
}

.badge.best{
background:linear-gradient(45deg,#ff3b3b,#ff9900);
}

.badge.ev{
background:linear-gradient(45deg,#00ffea,#0099ff);
}

.badge.premium{
background:linear-gradient(45deg,#ffd700,#ff9f00);
color:#000;
}

@keyframes pulse{
0%{box-shadow:0 0 5px rgba(255,255,255,0.3);}
50%{box-shadow:0 0 20px rgba(255,255,255,0.8);}
100%{box-shadow:0 0 5px rgba(255,255,255,0.3);}
}

/* ================= MODAL PREMIUM ================= */
.modal{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,0.6);
justify-content:center;
align-items:center;
z-index:9999;
}

.modal-content {
  width: 100%;
  max-width: 420px;

  /* INI KUNCINYA */
  max-height: 95vh;
  overflow-y: auto;

  background: linear-gradient(135deg,#0f2b46,#123a5e);
  border-radius: 18px;
  padding: 18px;
}

.modal-content h2,
.modal-content h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.modal-content input,
.modal-content select {
  margin-bottom: 8px;
}

.modal-content button {
  margin: 6px 0;
}
.modal-content input,
.modal-content select{
  width:100%;
  padding:12px;
  margin:10px 0;
  border-radius:10px;
  border:none;
  outline:none;
}

.modal-content button{
  width:100%;
  padding:12px;
  margin:8px 0;
  border-radius:30px;
  border:none;
  background:linear-gradient(90deg,#00c6ff,#00ff95);
  color:black;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
}

.modal-content button:hover{
  transform:scale(1.05);
}

@keyframes fadeIn{
  from{opacity:0;transform:scale(0.9);}
  to{opacity:1;transform:scale(1);}
}

/* =========================
   FOOTER FIX HEIGHT
========================= */

footer{
    height: 75px;              /* samakan dengan header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 14px;
    background: linear-gradient(90deg, #001f3f, #003366);
    border-top: 1px solid rgba(0,200,255,0.2);
}

footer p{
    margin: 0;
}

/* ===============================
   RESPONSIVE
================================ */
@media(max-width:768px){
.hero h1{
font-size:26px;
}
.logo-text strong{
font-size:16px;
}
}
/* ================= LOADER ================= */
#loader{
position:fixed;
width:100%;
height:100%;
background:#071b2f;
display:flex;
justify-content:center;
align-items:center;
z-index:5000;
transition:opacity 0.5s ease;
}

.loader-content{
text-align:center;
}

.loader-circle{
width:60px;
height:60px;
border:6px solid rgba(255,255,255,0.2);
border-top:6px solid #1fd1ff;
border-radius:50%;
animation:spin 1s linear infinite;
margin:auto;
margin-bottom:15px;
}

@keyframes spin{
to{transform:rotate(360deg);}
}

/* ================= WA FLOAT ================= */
.wa-float{
position:fixed;
bottom:25px;
right:25px;
background:linear-gradient(45deg,#00ff94,#00cc6a);
color:#000;
font-size:26px;
width:60px;
height:60px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
box-shadow:0 0 20px rgba(0,255,150,0.8);
z-index:4000;
text-decoration:none;
transition:0.3s;
}

.wa-float:hover{
transform:scale(1.1);
}

/* ================= SCROLL ANIMATION ================= */
.reveal{
opacity:0;
transform:translateY(40px);
transition:1s;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

/* ================= COUNTER ================= */
.counter{
font-size:40px;
font-weight:bold;
color:#1fd1ff;
text-align:center;
margin:10px 0 0 0; /* atas 10px, bawah 0 */
}

.close-btn{
  text-align:right;
  font-size:22px;
  cursor:pointer;
  padding:10px;
}

/* ===== WHATSAPP BUTTON ===== */

.btn-wa{
  background:#25D366;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:25px;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:0.3s;
  width:auto;
  margin-top:8px;
}

.btn-wa:hover{
  transform:scale(1.05);
}

.wa-icon{
  width:16px;
}

.btn-wa:hover{
  transform:scale(1.05);
  box-shadow:0 0 30px rgba(37,211,102,0.8);
}

.wa-icon{
  width:18px;
}

.unit-card{
  position:relative;
  z-index:1;
}

.unit-card button{
  position:relative;
  z-index:2;
}

/* ==============================
   TYPE LIST PREMIUM HYUNDAI
================================= */

.type-list{
    margin-top:20px;
}

.type-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 20px;
    margin-bottom:14px;
    border-radius:16px;
    background:linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.4));
    border:1px solid rgba(0,200,255,0.25);
    backdrop-filter:blur(8px);
    transform:translateY(30px);
    opacity:0;
    animation:slideDown 0.6s ease forwards;
}

.type-item:nth-child(1){ animation-delay:0.1s; }
.type-item:nth-child(2){ animation-delay:0.2s; }
.type-item:nth-child(3){ animation-delay:0.3s; }
.type-item:nth-child(4){ animation-delay:0.4s; }
.type-item:nth-child(5){ animation-delay:0.5s; }
.type-item:nth-child(6){ animation-delay:0.6s; }
.type-item:nth-child(7){ animation-delay:0.7s; }
.type-item:nth-child(8){ animation-delay:0.8s; }
.type-item:nth-child(9){ animation-delay:0.9s; }

@keyframes slideDown{
    to{
        transform:translateY(0);
        opacity:1;
    }
}

.type-left{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.type-name{
    font-weight:600;
    font-size:14px;
}

.type-price{
    font-weight:800;
    font-size:18px;
    color:#00eaff;
    text-shadow:0 0 10px rgba(0,234,255,0.7);
}

.stock-badge{
    margin-top:6px;
    font-size:11px;
    padding:4px 10px;
    border-radius:20px;
    background:linear-gradient(45deg,#00ff87,#00c3ff);
    color:#000;
    font-weight:700;
}

.type-name{
  font-weight:500;
}
/* ===== BONUS GLOW HARGA ===== */

.type-price{
    animation:priceGlow 2s infinite alternate;
}

@keyframes priceGlow{
    from{ text-shadow:0 0 8px rgba(0,200,255,0.5); }
    to{ text-shadow:0 0 18px rgba(0,200,255,1); }
}
.type-price{
  font-weight:700;
  color:#00e0ff;
}


/* FIX RUANG KOSONG SEBELUM FOOTER */

.hero {
    padding-bottom: 20px !important;
}

#counter, 
.counter,
section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.hero{
    padding: 60px 20px 30px 20px !important;
}
/* ===============================
   ARTIKEL PAGE STYLE
================================ */

.article-container{
  max-width:900px;
  margin:40px auto;
  padding:30px;
  background:#ffffff;
  border-radius:16px;
  box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

.article-container h1{
  font-size:34px;
  margin-bottom:20px;
  color:#0a2a43;
}

.article-container h2{
  margin-top:30px;
  font-size:24px;
  color:#003f6b;
}

.article-container p{
  line-height:1.8;
  margin-bottom:15px;
  color:#333;
}

.article-container ul{
  margin-left:20px;
}

.article-container li{
  margin-bottom:8px;
}
/* ===============================
   DEALER PAGE
================================ */

.dealer-section{
  padding:60px 20px;
  text-align:center;
  background:linear-gradient(135deg,#0a2a43,#002d4d);
  color:white;
}

.dealer-section h1{
  font-size:36px;
  margin-bottom:20px;
}

.dealer-section p{
  max-width:700px;
  margin:auto;
  line-height:1.8;
  opacity:0.9;
}

.promo-box{
  margin-top:40px;
  display:grid;
  gap:20px;
}

.promo-item{
  background:white;
  color:#000;
  padding:25px;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
  transition:0.3s;
}

.promo-item:hover{
  transform:translateY(-5px);
}
/* ===============================
   PRIVACY POLICY
================================ */

.privacy-container{
  max-width:800px;
  margin:50px auto;
  padding:40px;
  background:white;
  border-radius:18px;
  box-shadow:0 15px 40px rgba(0,0,0,0.1);
}

.privacy-container h1{
  color:#003f6b;
  margin-bottom:15px;
}

.privacy-container h2{
  margin-top:25px;
  color:#0a2a43;
}

.privacy-container ul{
  margin-left:20px;
}

.privacy-container li{
  margin-bottom:8px;
}
/* ===== DESKTOP VERSION FIX ===== */


.unit-card{
  background:#0e2a47;
  padding:25px;
  border-radius:20px;
  text-align:center;
}

.unit-card img{
  max-width:100%;
  margin-bottom:15px;
}

.unit-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:15px;
}

.unit-actions .btn{
  width:100%;
  border-radius:30px;
  padding:12px;
  font-weight:600;
}

@media (min-width: 992px){

  .unit-card{
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items:center;
    gap:30px;
  }

  .unit-card img,
  .unit-card h2,
  .unit-card .badge,
  .unit-card .btn-outline{
    grid-column:1;
  }

  .unit-actions{
    grid-column:2;
    display:flex;
    flex-direction:column;
    gap:15px;
  }

}
main{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

footer{
  margin-top:auto;
}
/* ================= NO SCROLL HOME ================= */

.simulasi-note{
  font-size:12px;
  opacity:0.7;
  margin-top:15px;
  line-height:1.6;
  text-align:left;
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:10px;
}
