html {
  scroll-behavior: smooth;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

body{
background:#111;
color:white;
}

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 30px;
background:black;
flex-wrap:wrap;
}

.logo{
display:flex;
align-items:center;
gap:10px;
}

.logo img{
width:50px;
}

nav a{
color:white;
margin-left:20px;
text-decoration:none;
font-weight:bold;
}

.hero{
text-align:center;
padding:80px 20px;
background:#1a1a1a;
}

.hero h2{
font-size:40px;
color:red;
}

.title{
text-align:center;
margin:40px 0;
font-size:30px;
}

.cars{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
padding:20px 40px;
}

.car{
background:#1c1c1c;
border-radius:10px;
overflow:hidden;
position:relative;
transition:0.3s;
}

.car:hover{
transform:scale(1.03);
}

.car img{
width:100%;
height:200px;
object-fit:cover;
}

.car h3{
padding:10px;
}

.car p{
padding:0 10px;
color:#bbb;
}

.price{
padding:10px;
color:#00ff88;
font-size:20px;
}

.sold-label{
position:absolute;
top:10px;
left:10px;
background:red;
padding:6px 12px;
font-weight:bold;
border-radius:5px;
}

.contact{
text-align:center;
padding:60px 20px;
background:#1a1a1a;
}

footer{
text-align:center;
padding:20px;
background:black;
margin-top:30px;
}


/* MOBILE */

@media(max-width:768px){

.hero h2{
font-size:28px;
}

nav{
width:100%;
text-align:center;
margin-top:10px;
}

nav a{
display:inline-block;
margin:10px;
}

}

.whatsapp{
position:fixed;
bottom:20px;
right:20px;
background:#25D366;
color:white;
font-size:28px;
width:60px;
height:60px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
text-decoration:none;
box-shadow:0 0 10px rgba(0,0,0,0.5);
z-index:1000;
}

.hero{
text-align:center;
padding:120px 20px;

background-image:url("images/hero.png");
background-size:cover;
background-position:center;

position:relative;
color:white;
}

.hero::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
}

.hero h2,
.hero p{
position:relative;
z-index:2;
}

.instagram{
position:fixed;
bottom:90px;
right:20px;
background:#E4405F;
color:white;
font-size:28px;
width:60px;
height:60px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
text-decoration:none;
box-shadow:0 0 10px rgba(0,0,0,0.5);
z-index:1000;
}

.instagram-section{
padding:60px 20px;
text-align:center;
background:#111;
}

.instagram-section h2{
font-size:30px;
margin-bottom:30px;
}

.instagram-feed{
max-width:900px;
margin:auto;
}

/* Images inside each car */
.car-images img {
  width: 100%;
  height: 200px;       /* Keep your previous height */
  object-fit: cover;
  display: none;       /* Hide all images initially */
}

.car-images img.active {
  display: block;      /* Show only the active image */
}

/* Clickable left/right areas */
.prev-area,
.next-area {
  position: absolute;
  top: 0;
  width: 50%;          /* Half the car image */
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

/* Left = previous, Right = next */
.prev-area { left: 0; }
.next-area { right: 0; }

/* Optional hover effect to show clickable area */
.prev-area:hover,
.next-area:hover {
  background: rgba(0, 0, 0, 0.1); /* light overlay on hover */
}	

.brand-filters{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:20px;
margin:30px 0;
}

.brand-filters button{
background:white;
border:none;
padding:12px;
border-radius:12px;
cursor:pointer;
transition:0.3s;
box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

.brand-filters button:hover{
transform:scale(1.1);
}

.brand-filters img{
height:45px;
width:auto;
}
