/* Hide scrollbar for clean look in horizontally scrolling areas if any */
::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f8f8;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

.section-black { 
    background: #000;
    background-image: url('images/black-bg0.jpg');
    background-size: cover; 
    color: #fff; 
}

.section-white { 
    background: #f8f8f8;
    background-image: url('images/white-bg.jpg');
    background-size: cover; 
    color: #000; 
}

h2 {
    color: #E9042A;
    /* text-shadow: 0 2px 2px rgba(0,0,0,0.2); */
}

/* ---------------------------------- */
/*  navigation                        */
/* ---------------------------------- */

.navbar-blur {
    background: rgba(0, 0, 0, 0.6); /* transparent black */
    backdrop-filter: blur(10px);    /* blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
}

/* ---------------------------------- */
/*  hero                              */
/* ---------------------------------- */

/* HERO must be relative so children can layer */
.hero {
  position: relative;
  height: 95vh;
  padding-top: 160px;
  overflow: hidden;
  background-color: #000; /* fallback color */
  display: flex;
  align-items: center;
}

/* Slideshow sits behind everything */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  background-size: cover;
  background-position: center center;
  opacity: 0;
  animation: fade 50s infinite;
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Background images */
.bg1 { background-image: url('images/hero/car3.png'); animation-delay: 0s;}
.bg2 { background-image: url('images/hero/car4.png'); animation-delay: 10s;}
.bg3 { background-image: url('images/hero/car5.png'); animation-delay: 20s;}
.bg4 { background-image: url('images/hero/car6.png'); animation-delay: 30s;}
.bg5 { background-image: url('images/hero/car7.png'); animation-delay: 40s;}

/* Crossfade animation */
@keyframes fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  20% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

/* Dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2); /* semi-transparent black */
  z-index: 2;
}

/* Text container above everything */
.hero .container {
  position: relative;
  z-index: 3;
}

@media (min-width: 576px) {
  .hero-buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 14pt;
  }
}

/* ---------------------------------- */
/*  about                           */
/* ---------------------------------- */

.about {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.about-img {
    min-height: 160px;
    background-image: url('images/about.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* ---------------------------------- */
/*  services                        */
/* ---------------------------------- */

.services {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.service-item {
    background-color: #f8f8f8;
    color: #000;
    background-size: cover;
    background-position: center center;
    height: 220px;
}

.gallery-img-1 {
    background-image: url(images/services/service-img1.png);
}

.gallery-img-2 {
    background-image: url(images/services/service-img2.png);
}

.gallery-img-3 {
    background-image: url(images/services/service-img3.png);
}

.gallery-img-4 {
    background-image: url(images/services/service-img4.png);
}

/* ---------------------------------- */
/*  gallery                           */
/* ---------------------------------- */

.gallery {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.gallery-img {
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    background: #444; 
}

/* On smaller screens, make gallery horizontally scrollable */
@media (max-width: 767.98px) {
    .gallery .carousel-inner {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .gallery .carousel-inner::-webkit-scrollbar {
        display: none; /* Chrome, Safari, and Opera */
    }
    

    
    /* Hide carousel controls on mobile for better scrolling experience */
    .gallery .carousel-control-prev,
    .gallery .carousel-control-next {
        display: none;
    }
}

/* ---------------------------------- */
/*  footer                            */
/* ---------------------------------- */

.footer {
    background: #222;
    color: #ccc;
    padding: 3rem 0;
}

.footer a {
    color: #ccc;
}

/* ---------------------------------- */
/*  before _ after                    */
/* ---------------------------------- */

.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    height: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slider .after {
    clip: rect(0, 50%, 100%, 0);
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 200px;
    width: 6px;
    height: 100%;
    background: whitesmoke;
    cursor: ew-resize;
    z-index: 3;
}

/* Left arrow */
.slider-handle::before {
    content: "";
    position: absolute;
    left: -14px; /* moves arrow OUTSIDE */
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
    border: solid whitesmoke;
    border-width: 0 4px 4px 0;
    padding: 6px;
}

/* Right arrow */
.slider-handle::after {
    content: "";
    position: absolute;
    right: -14px; /* moves arrow OUTSIDE */
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    border: solid whitesmoke;
    border-width: 0 4px 4px 0;
    padding: 6px;
}


.cover-img {
    background-image: url(images/cover_img.jpeg);
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    background-image: url(images/logo_nobck.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 160px;
    height: 120px;
}