:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    background-color: #ffffff;
    color: #1e293b;
}

.car-card {
    position: relative;
    height: 400px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.car-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover);
}

.car-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.car-card:hover .car-card-image {
    transform: scale(1.1);
}

.car-card-overlay {
    position: absolute;
    inset: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.4s ease;
}

.car-card:hover .car-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.icon-circle {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.icon-circle i {
    color: white;
}

.car-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.car-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.car-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.car-card:hover p {
    max-height: 100px;
    opacity: 1;
}

.car-action-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.car-card:hover .car-action-btn {
    opacity: 1;
    transform: translateY(0);
}

.car-action-btn:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 640px) {
    .car-card p {
        max-height: 100px;
        opacity: 1;
    }
    .car-action-btn {
        opacity: 1;
        transform: translateY(0);
    }
}
