html,
body {
    margin: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: #0b0b0b;
    color: #fff;
    padding-top: 80px;
}

/* ================= HEADER ================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: .4s;
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(8px);
}

.main-header.scrolled {
    background: rgba(0, 0, 0, .85);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .45);
}

.navbar {
    padding: 42px 0;
}

.navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    font-weight: 800;
    color: #f5da14 !important;
}

.navbar-brand img {
    height: 78px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
   color: #fff;
    font-weight: 800;
    margin: 0 10px;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
}

.navbar-nav .nav-link:hover {
    color: #f5da14;
}

/* ================= SLIDER ================= */
#carSlider,
#carSlider .carousel-inner,
#carSlider .carousel-item {
    height: 100vh;
}

.carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.car-slide {
    position: relative;
}

.car-overlay {
    position: absolute;
    inset: 0;
   background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.60) 20%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.06) 100%
);

    display: flex;
    align-items: flex-end;
    padding-bottom: 70px;
}

.car-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #f5da14;
}

.car-price {
    font-size: 1.9rem;
    font-weight: 800;
}

.feature-pill {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 6px 14px;
    border-radius: 30px;
    margin: 4px 6px 0 0;
    font-size: 13px;
}

/* ================= CTA / OTHER ================= */
.bg-gold {
    background: #f5b400;
    color: #000;
}

.card {
    background: #111;
    border: none;
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    transition: .3s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* ================= CALL BUTTON ================= */
.btn-call{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:14px 28px;
    font-size:18px;
    font-weight:800;
    font-family:'Montserrat', sans-serif;
    color:#000;
    background:linear-gradient(135deg,#f5da14,#f5b400);
    border-radius:50px;
    text-decoration:none;
    box-shadow:0 8px 25px rgba(245,218,20,.45);
    transition:.3s ease;
    position:relative;
    overflow:hidden;
    animation:pulseCall 1.8s infinite;
}

/* icon */
.btn-call i{
    font-size:22px;
}

/* shine effect */
.btn-call::after{
    content:"";
    position:absolute;
    top:-50%;
    left:-60%;
    width:50%;
    height:200%;
    background:rgba(255,255,255,.25);
    transform:rotate(25deg);
    transition:.6s;
}

.btn-call:hover{
    transform:translateY(-2px) scale(1.03);
    box-shadow:0 14px 40px rgba(245,218,20,.6);
    color:#000;
}

.btn-call:hover::after{
    left:120%;
}


.btn-call{
    animation:pulseCall 1.8s infinite;
}


/* ================= FEATURED CAR ================= */
/* ================= CAR TABS ================= */
.car-tabs .nav-link{
  background:transparent;
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  font-weight:800;
  padding:10px 26px;
  margin:0 6px;
  border-radius:30px;
  transition:.3s;
  font-family:'Montserrat', sans-serif;
}

.car-tabs .nav-link.active,
.car-tabs .nav-link:hover{
  background:#f5da14;
  color:#000;
  border-color:#f5da14;
}

/* ================= FEATURED CAR ================= */
.featured-car{
  position:relative;
  height:70vh;
  overflow:hidden;
  border-radius:14px;
}

.featured-car img{
    width:100%;
    height:100%;
    object-fit:contain;   /* GERİLMEYİ ÖNLER */
    background:#000;      /* boşluklar siyah */
}


.featured-overlay{
  position:absolute;
  inset:0;
background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.48) 18%,
    rgba(0, 0, 0, 0.20) 40%,
    rgba(0, 0, 0, 0.05) 100%
);

  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:50px;
}

.featured-overlay h2{
  font-size:3rem;
  font-weight:900;
  color:#f5da14;
}

/* ================= GRID CAR CARD ================= */
.car-card{
  position:relative;
  overflow:hidden;
  height:420px;
  border-radius:14px;
  background:#111;
}

.car-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.6s ease;
}

.car-card:hover img{
  transform:scale(1.12);
}

.card-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,0));
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.card-overlay h5{
  font-size:1.5rem;
  font-weight:900;
  color:#f5da14;
}

/* ================= BADGES ================= */
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.badge{
  padding:6px 14px;
  border-radius:30px;
  font-size:13px;
  background:rgba(255,255,255,.18);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}

.badge.gold{
  background:#f5da14;
  color:#000;
  font-weight:900;
}

/* ================= LAZY LOAD BLUR-UP ================= */
.lazy-img{
  filter:blur(18px);
  transform:scale(1.08);
  transition:.6s ease;
}

.lazy-img.loaded{
  filter:blur(0);
  transform:scale(1);
}

/* ================= IMAGE LIGHTBOX ================= */
#imageLightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    opacity:0;
    visibility:hidden;
    transition:.3s ease;
}

#imageLightbox.active{
    opacity:1;
    visibility:visible;
}

#imageLightbox img{
    max-width:92%;
    max-height:92%;
    border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,.8);
    animation:zoomIn .35s ease;
}

.close-lightbox{
    position:absolute;
    top:25px;
    right:35px;
    font-size:42px;
    color:#fff;
    cursor:pointer;
    font-weight:300;
}


/* ================= CAROUSEL CONTROLS ================= */
.carousel-control-prev,
.carousel-control-next{
    width:64px;
    height:64px;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.55);
    border-radius:50%;
    opacity:1;
    transition:.3s ease;
    backdrop-filter:blur(6px);
}

/* hover effect */
.carousel-control-prev:hover,
.carousel-control-next:hover{
    background:linear-gradient(135deg,#f5da14,#f5b400);
    animation:carouselPulse 1.6s infinite;
}

@keyframes carouselPulse{
    0%{ box-shadow:0 0 0 0 rgba(245,218,20,.6); }
    70%{ box-shadow:0 0 0 18px rgba(245,218,20,0); }
    100%{ box-shadow:0 0 0 0 rgba(245,218,20,0); }
}


/* icon */
.carousel-control-prev-icon,
.carousel-control-next-icon{
    width:22px;
    height:22px;
    filter:invert(1);
    transition:.3s;
}

/* icon hover color */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon{
    filter:none;
}

/* positioning */
.carousel-control-prev{ left:25px; }
.carousel-control-next{ right:25px; }

/* MOBILE HIDE */
@media(max-width:768px){
    .carousel-control-prev,
    .carousel-control-next{
        display:none;
    }
}


@keyframes zoomIn{
    from{
        transform:scale(.85);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* MOBILE */
@media(max-width:768px){
    .close-lightbox{
        font-size:34px;
        top:18px;
        right:22px;
    }
}


/* ================= MOBILE ================= */
@media(max-width:768px){
  .featured-car{ height:52vh; }
  .featured-overlay{ padding:26px; }
  .featured-overlay h2{ font-size:2rem; }
  .car-card{ height:320px; }
}



@keyframes pulseCall{
    0%{ box-shadow:0 0 0 0 rgba(245,218,20,.6); }
    70%{ box-shadow:0 0 0 18px rgba(245,218,20,0); }
    100%{ box-shadow:0 0 0 0 rgba(245,218,20,0); }
}


/* mobile – full width CTA */
@media(max-width:768px){
    .btn-call{
        width:100%;
        justify-content:center;
        font-size:17px;
        padding:16px 24px;
    }
}


@media(max-width:992px) {
    .navbar-brand {
        position: static;
        transform: none;
    }
}

@media(max-width:768px) {

    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .car-title {
        font-size: 1.6rem;
    }
}