.hero-section {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
}

.hero-title {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.car-listings-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px 0;
}

.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 25px;
    margin: 2rem auto;
    grid-auto-rows: min-content;
    max-width: 1200px;
    width: 100%;
}

.car-card {
    background: linear-gradient(135deg, rgba(30, 55, 153, 0.95), rgba(12, 36, 97, 0.95));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.car-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.car-card .car-image {
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 8px;
    color: #1e3799;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.price-tag .amount {
    font-size: 1.2rem;
}

.price-tag .duration {
    font-size: 0.9rem;
    opacity: 0.9;
}

.car-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.car-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.car-location {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.car-location i {
    color: #ffffff;
}

.car-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex: 1;
    font-size: 0.95rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.feature-item:not(:last-child) {
    margin-right: 4px;
}

.feature-item i {
    font-size: 0.8rem;
    color: #ffffff;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-reservation {
    width: 100%;
    background: #1e3799;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-reservation:hover {
    background: #4a69bd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-reservation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-reservation:hover::before {
    width: 100%;
}

.btn-reservation:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-details {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reservation i,
.btn-details i {
    font-size: 1.1rem;
    color: white;
}

.car-buttons {
    display: flex;
    gap: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 15px 15px;
    margin: 0 auto;
    max-width: 1200px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 2rem;
    color: #ffffff !important;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
    position: relative;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}


@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

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


@media (max-width: 1200px) {
    .car-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 25px 15px;
    }
}

@media (max-width: 992px) {
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .car-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .car-image {
        height: 180px;
    }

    .car-card .car-image {
        height: 200px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-card i {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: 20px 15px;
    }
}



@media (min-width: 992px) {

    #mobilMenuButon,
    #mobilMenu {
        display: none !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center center;
    }
}

@media screen and (max-width: 812px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero-section {
        background-attachment: scroll !important;
        background-position: center center;
        background-size: cover;
        height: 100vh;
        min-height: -webkit-fill-available;
    }
}