/* Custom Styles */
body {
    /* font-family: 'Inter', sans-serif; */
    font-family: "Trebuchet MS";
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-bar {
    background-color: #ee373b;
    padding: 0.2rem 5%;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Logo Loop Animation */
.logo-slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-slide-track {
    animation: scroll 25s linear infinite;
    display: flex;
    width: calc(250px * 14);
}

.logo-slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logo-slide img {
    max-height: 100%;
    width: auto;
    /* filter: grayscale(100%); */
    opacity: 0.7;
    transition: all 0.3s;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
    }
}

/* Active Filter Button */
.filter-btn.active {
    border-color: #ee373b;
    color: #ee373b;
    background-color: #fff5f5;
}

/* Pagination Buttons */
.pagination-btn {
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #ee373b;
    color: #ee373b;
}

.pagination-btn:disabled {
    color: #d1d5db;
    border-color: #e5e7eb;
    cursor: not-allowed;
}

/* Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-container {
    perspective: 1500px;
    width: 350px;
    height: 350px;
    position: relative;
    margin: 20px auto;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    position: absolute;
    width: 350px;
    height: 240px;
    left: 10px;
    top: 40px;
    border-radius: 7px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.car-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.car-info {
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    visibility: hidden;
}

.timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.time {
    font-weight: bold;
    color: var(--text-dark);
}

.hr-ani {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, black 50%, transparent);
    margin: 20px auto;
    width: 0;
    animation: growShrink 2.5s ease-in-out infinite;
}

@keyframes growShrink {

    0%,
    100% {
        width: 0;
    }

    50% {
        width: 100%;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .carousel-wrapper {
        max-width: 100%;
        height: 300px;
        padding: 10px;
    }

    .carousel-container {
        width: 250px;
        height: 250px;
    }

    .carousel-item {
        width: 250px;
        height: 180px;
        top: 20px;
    }

    .car-image {
        height: 180px;
    }

    .hr-ani {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 200px;
    }

    .carousel-container {
        width: 180px;
        height: 180px;
    }

    .carousel-item {
        width: 180px;
        height: 120px;
        top: 10px;
    }

    .car-image {
        height: 120px;
    }

    .hr-ani {
        margin-top: 10px;
    }
}

.hero-text {
    font-size: 3.3rem;
    line-height: 4rem;
}

.vc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.vc-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.vc-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.vc-slide {
    min-width: 100%;
}

.vc-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vc-text-content {
    flex: 1;
    padding: 20px;
    text-align: left;
}

.vc-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.vc-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.vc-video-container {
    flex: 1;
    max-width: 200px !important;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
}

.vc-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.vc-button-next {
    right: 10px;
    background-color: rgba(196, 196, 196, 0.245);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.vc-button-prev {
    left: 10px;
    background-color: rgba(196, 196, 196, 0.245);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.vc-button::after {
    content: '';
    width: 12px;
    height: 12px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
}

.vc-button-next::after {
    transform: rotate(-45deg);
}

.vc-button-prev::after {
    transform: rotate(135deg);
}

.vc-pagination {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.vc-pagination-dot {
    width: 10px;
    height: 10px;
    border: 1px solid red;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.vc-pagination-dot.active {
    background: #ee373b;
}

/* Desktop: Side-by-side layout */
@media (min-width: 768px) {
    .vc-content-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }

    .vc-text-content {
        margin-left: 40px;
        flex: 0 0 45%;
    }

    .vc-video-container {
        flex: 0 0 55%;
        max-width: 300px;
    }
}

/* Mobile: Stacked layout */
@media (max-width: 767px) {
    .vc-content-wrapper {
        flex-direction: column;
    }

    .vc-text-content {
        order: 2;
    }

    .vc-video-container {
        max-width: 280px;
        order: 1;
    }
}


@media (max-width: 768px) {
    .hero-text {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    .vc-button-next {
        top: calc(10vh + 30px);
        right: 20px;
    }

    .vc-button-prev {
        top: calc(10vh + 30px);
        left: 20px;
    }

    .ve-pagination-dot {
        margin-bottom: -10px;
    }
}

.winning-border {
    border: 2px solid #ee373b;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #ee373b;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-to-top-btn:hover {
    opacity: 1;
}