*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

body{
background:#0e0e0e;
}

header{

height:100vh;

background:url("https://i.pinimg.com/1200x/96/01/89/960189b19ffe2ac936c93478fcc643ba.jpg")
center/cover;

color:white;

}

nav{

display:flex;

justify-content:space-between;

padding:25px 60px;

background:rgba(19, 19, 19, 0.5);

}

.logo{

font-size:30px;

font-weight:bold;

letter-spacing:3px;

}

nav ul{

display:flex;

list-style:none;

}

nav li{

margin-left:30px;

}

nav a{

text-decoration:none;

color:white;

}

.hero{

height:70vh;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

text-align:center;

}

.hero h1{

font-size:14px;

margin-bottom:45px;

}

.hero p{

font-size:18px;

margin-bottom:30px;

}

.btn{

background:#ae2121;

padding:15px 40px;

text-decoration:none;

color:white;

border-radius:30px;

}

.button{

background:#00000000;

padding:15px 40px;

text-decoration:none;

color:white;

border-radius:30px;

}
section{

padding:80px;

}

section h2{

text-align:center;

margin-bottom:40px;

font-size:40px;

}

.product-container{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

gap:30px;

}

.card{

background:rgba(154, 154, 154, 0.484);

border-radius:15px;

overflow:hidden;

box-shadow:0 5px 15px rgba(0,0,0,.2);

transition:.3s;

}

.card:hover{

transform:translateY(-10px);

}

.card img{

width:100%;

height:200px;

object-fit:cover;

}

.card h3{

padding:15px;

}

.card p{

padding:0 15px 20px;

font-weight:bold;

color:#ffffff;

}

.card button{

margin:15px;

width:calc(100% - 30px);

padding:12px;

border:none;

background:black;

color:white;

cursor:pointer;

font-size:16px;

border-radius:8px;

}

.card button:hover{

background:#c00000;

}

footer{

padding:30px;

text-align:center;

background:#111;

color:white;

}.contact{
    background:#000000;
    padding:80px 20px;
}

.contact h2{
    text-align:center;
    margin-bottom:40px;
    font-size:36px;
}

.contact-container{
    display:flex;
    justify-content:center;
}

.contact-card{
    background:rgba(177, 177, 177, 0.555);
    padding:30px;
    border-radius:10px;
    width: 950px;
    box-shadow:0 5px 10px rgba(255, 255, 255, 0.2);
}

.contact-card h3{
    margin-bottom:20px;
}

.contact-card p{
    margin:12px 0;
    font-size:18px;
}



/* ===== POPUP ===== */

.modal{

display:none;

position:fixed;

left:0;
top:0;

width:100%;
height:100%;

background:rgba(255, 255, 255, 0.733);

justify-content:center;

align-items:center;

z-index:999;

}

.modal-content{

background:rgba(233, 233, 233, 0.591);

width:400px;

padding:30px;

border-radius:15px;

text-align:center;

animation:muncul .3s;

}

@keyframes muncul{

from{

transform:scale(.7);

opacity:0;

}

to{

transform:scale(1);

opacity:1;

}

}

.modal-content img{

width:120px;

height:120px;

border-radius:50%;

object-fit:cover;

margin:20px 0;

}

.close{

float:right;

font-size:30px;

cursor:pointer;

font-weight:bold;

}

.btn-wa{

display:inline-block;

margin-top:20px;

padding:12px 30px;

background:#25D366;

color:white;

text-decoration:none;

border-radius:8px;

font-weight:bold;

}

.btn-wa:hover{

background:#1faa52;

}

.modal{

display:none;

position:fixed;

left:0;

top:0;

width:100%;

height:100%;

background:rgba(0,0,0,.7);

justify-content:center;

align-items:center;

z-index:999;

}

.modal-box{

width:500px;

background:rgba(126, 126, 126, 0.432);

border-radius:15px;

padding:25px;

text-align:center;

animation:zoom .3s;

}

@keyframes zoom{

from{
transform:scale(.7);
opacity:0;
}

to{
transform:scale(1);
opacity:1;
}

}

.modal-box img{

width:100%;

border-radius:10px;

margin-bottom:20px;

}

.modal-box h2{

margin-bottom:10px;

}

.modal-box h3{

color:#f3f3f3;

margin-bottom:20px;

}

.modal-box p{

line-height:30px;

}

.close{

float:right;

font-size:35px;

cursor:pointer;

}

.btn-detail{

display:inline-block;

margin-top:25px;

background:#111;

padding:12px 35px;

color:white;

text-decoration:none;

border-radius:8px;

}

.btn-detail:hover{

background:#c00000;

}

/* ========================= */
/* Popup Tentang Mazda */
/* ========================= */

.tentang-popup{

    background:#ffffffb5;

    width:500px;

    max-width:90%;

    padding:25px;

    border-radius:15px;

    text-align:center;

    position:relative;

    animation:popup .3s;

}

.logoMazda{

    width:80px;

    margin-bottom:15px;

}

.tentang-popup h2{

    margin:5px 0;

    font-size:30px;

}

.tentang-popup h4{

    color:#c00000;

    margin-bottom:15px;

}

.tentang-popup p{

    font-size:16px;

    line-height:28px;

    color:#575757eb;

    text-align:justify;

}

.btn-tutup{

    margin-top:20px;

    background:#111;

    color:white;

    border:none;

    padding:10px 30px;

    border-radius:8px;

    cursor:pointer;

}

.btn-tutup:hover{

    background:#c00000;

}

.close{

    position:absolute;

    right:15px;

    top:10px;

    font-size:28px;

    cursor:pointer;

}

@keyframes popup{

    from{

        transform:scale(.8);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

.modal{

    display:none;

    position:fixed;

    left:0;

    top:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.6);

    justify-content:center;

    align-items:center;

    z-index:999;

}

/* ========================= */
/* POPUP LOKASI */
/* ========================= */

.lokasi-popup{

    background:#d4d4d47b;

    width:400px;

    max-width:60%;

    padding:15px;

    border-radius:15px;

    text-align:center;

    position:relative;

    animation:popup .3s;

}

.lokasi-popup h2{

    margin-bottom:10px;

}

.lokasi-popup h4{

    color:#c00000;

    margin-bottom:15px;

}

.lokasi-popup p{

    margin-bottom:15px;

    line-height:26px;

    color:#000000;

}

.btn-maps{

    display:inline-block;

    margin-top:20px;

    background:#c00000;

    color:white;

    padding:12px 30px;

    text-decoration:none;

    border-radius:8px;

    font-weight:bold;

}

.btn-maps:hover{

    background:#111;

}

/* ========================= */
/* TABLET */
/* ========================= */

@media (max-width:992px){

nav{
    padding:20px;
}

.logo{
    font-size:22px;
}

.hero h1{
    font-size:50px;
}

.hero p{
    font-size:20px;
}

section{
    padding:50px 30px;
}

}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width:768px){

nav{
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:15px;
}

nav ul{
    flex-direction:column;
    width:100%;
    text-align:center;
}

nav li{
    margin:10px 0;
}

.logo{
    font-size:22px;
    letter-spacing:1px;
    text-align:center;
}

.hero{
    padding:20px;
}

.hero h1{
    font-size:36px;
}

.hero p{
    font-size:18px;
}

.btn{
    display:inline-block;
    width:100%;
    max-width:250px;
}

section{
    padding:40px 20px;
}

section h2{
    font-size:30px;
}

.product-container{
    grid-template-columns:1fr;
}

.card img{
    height:220px;
}

.modal-content,
.modal-box,
.tentang-popup,
.lokasi-popup{

    width:95%;
    max-width:95%;
    padding:20px;

}

.modal-box img{
    height:auto;
}

}

/* ========================= */
/* HP KECIL */
/* ========================= */

@media (max-width:480px){

.hero h1{
    font-size:28px;
}

.hero p{
    font-size:16px;
}

.logo{
    font-size:18px;
}

.card button{
    font-size:14px;
}

.btn,
.btn-detail,
.btn-wa,
.btn-maps{

    width:100%;

}

}

/* ========================= */
/* NAVBAR */
/* ========================= */

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    background:rgba(0,0,0,.5);
}

.menu-toggle{
    display:none;
    font-size:32px;
    color:white;
    cursor:pointer;
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav ul li{
    margin:0;
}

nav ul li a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

nav ul li a:hover{
    color:#c00000;
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width:768px){

nav{
    padding:15px 20px;
    position:relative;
}

.logo{
    font-size:20px;
}

.menu-toggle{
    display:block;
}

nav ul{

    display:none;

    flex-direction:column;

    position:absolute;

    top:70px;

    left:0;

    width:100%;

    background:#111;

    padding:20px 0;

    text-align:center;

}

nav ul.active{

    display:flex;

}

nav ul li{

    margin:15px 0;

}

nav ul li a{

    font-size:18px;

}

}
