.car-item {
    height: 500px;
    

}
html {
    scroll-behavior: smooth;
  }
  
  .scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-20px) translateX(-50%);}
    60% {transform: translateY(-10px) translateX(-50%);}
  }
  .iconAir{
    color: #FF5A5F;
  }
  .capTop {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: hsla(0, 0%, 100%, 0.848);
    font-size: clamp(1.5rem, 5vw, 4rem); /* More aggressive scaling */
    line-height: 1.2; /* Prevents text overlap */
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.5vw;
    cursor: pointer;
    text-transform: uppercase;
    background: linear-gradient(to right, hsla(0, 0%, 100%, 0.848) 0, hsl(183, 100%, 49%, 0.606) 10%, hsl(0, 0%, 100%, 0.848) 20%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wave 10s infinite linear;
    margin: 0;
}

.capSub {
    font-family: monospace;
    text-align: center;
    color: white;
    font-size: clamp(1rem, 3vw, 2rem); /* Smaller than capTop */
    line-height: 1.2;
    margin-top: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5vw;
    background: linear-gradient(to right, hsla(0, 0%, 100%, 0.848) 0, hsl(183, 100%, 49%, 0.606) 10%, hsl(0, 0%, 100%, 0.848) 20%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wave 10s infinite linear;
    margin: 0;
}

.topCapExtra {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.caption-container {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;  /* Overlay on carousel */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfect center */
    width: 90%; /* Prevents overflow */
    max-width: 1200px; /* Optional: limits width on large screens */
    padding: clamp(0.5rem, 2vw, 1.5rem);
    text-align: center;
    box-sizing: border-box; /* Ensures padding is included in height/width */
}

@keyframes wave
{
    0%{
        background-position: 0;
    }
    50%{
        background-position: 1200px;

    }
    100%{background-position: 1200px;}
}


.car-img {
    height: 100%;
    object-fit: contain;
    filter: brightness(1);
}

.topCar {
    height: auto;
    
}

.topCar-img {
    height: 100%;
    object-fit: cover;
}

.car-indi {
    background-color: skyblue;
    color: black;
}

.captions{
    
    
    background-color: gray;
    opacity: 0.5;
    color: white;
}