@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import "tailwindcss";

.car-card:hover .car-image {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.car-image {
    transition: all 0.5s ease;
}

.gradient-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.shimmer {
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.scroll-snap-x {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-snap-x > div {
    scroll-snap-align: start;
}

.text-balance {
    text-wrap: balance;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.available {
    cursor: pointer;
}

.calendar-day.selected {
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
}

.calendar-day.unavailable {
    color: #cbd5e1;
    text-decoration: line-through;
}

.rev-animation {
    animation: rev 0.5s ease-in-out;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
}

/* Car info overlay styles */
.car-info-overlay {
    transition: opacity 0.3s ease;
}

/* Desktop hover effect */
@media (min-width: 768px) {
    .car-info-overlay {
        opacity: 0;
    }

    .car-card:hover .car-info-overlay {
        opacity: 1;
    }
}

/* Rev Engine button animation */
.rev-engine {
    transition: all 0.3s ease;
}

.rev-engine:active {
    transform: scale(0.95);
}

.rev-animation {
    animation: rev 0.5s ease-in-out;
}

@keyframes rev {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(1000%);
    }
}

.animate-scan {
    animation: scan 3s linear infinite;
}

.swiper-pagination-bullet-active {
    width: 2rem !important;
    background-color: white !important;
}

/* Add these styles to override Swiper's default behavior */
/* Add these styles to override Swiper's default behavior only on mobile */
@media (max-width: 767px) {
    .swiper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .swiper-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .swiper-slide {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix for Swiper container expanding beyond parent */
    .swiper-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* Gradient animation for 3D button */
.gradient-animation {
    background: linear-gradient(-45deg, #3b82f6, #4f46e5, #7c3aed, #8b5cf6);
    background-size: 400% 400%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Subtle pulse animation for background elements */
@keyframes pulse-subtle {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 4s ease-in-out infinite;
}

.h-screen {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* Prevent layout shifts */
.fixed-height {
    height: 24px; /* Match the height of the text */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient animation for button */
.gradient-animation {
    background: linear-gradient(90deg, #3a86ff, #ff006e, #3a86ff);
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Custom styles for Photo Sphere Viewer */
.psv-container {
    height: 100% !important;
}

.psv-navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Custom button styles */
.custom-btn {
    position: relative;
    overflow: hidden;
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.custom-btn:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

/* Custom styles for Swiper */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #e2e8f0;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #3b82f6;
    width: 24px;
    border-radius: 4px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-button-next,
.swiper-button-prev {
    color: #3b82f6;
}

/* Card hover effects */
.car-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.car-image {
    transition: transform 0.5s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

/* Ensure equal height cards */
.swiper-slide {
    height: auto !important;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px !important;
        height: 36px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }

    .swiper-pagination-bullet-active {
        width: 16px;
    }
}

/* Custom styles for Swiper */
.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #ffffff;
    width: 8px;
    height: 8px;
}

/* Position the image swiper pagination at the bottom of the image */
.carImageSwiper .swiper-pagination {
    bottom: 10px !important;
}

/* Ensure the overlay doesn't interfere with swiping */
.car-info-overlay {
    pointer-events: none;
}

.car-info-overlay button {
    pointer-events: auto;
}

/* Card hover effects */
.car-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Swiper styles */
.heroSwiper .swiper-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.heroSwiper .swiper-slide-active {
    opacity: 1;
}

/* Custom pagination dot styles */
.custom-dot.active {
    width: 2rem;
}

@media (max-width: 768px) {
    .custom-dot.active {
        width: 1.5rem;
    }
}

/* Ensure the hero section maintains proper aspect ratio */
.heroSwiper {
    height: 100%;
}

.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
    height: 100%;
}

/* Fade effect enhancement */
.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

html {
    scroll-behavior: smooth;
}

.car-card {
    position: relative;
}