/* 
   Virtual X Tours - Homepage Projects Section
   Styling for the projects showcase on the homepage
*/

/* Enhanced project image styles */
.featured-tours .tours-gallery .image-card {
    height: 350px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-tours .tours-gallery .image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Enhanced hover effects */
.featured-tours .tours-gallery .image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-tours .tours-gallery .image-card:hover img {
    transform: scale(1.05);
}

/* Add gradient overlay for better text visibility */
.featured-tours .tours-gallery .image-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-tours .tours-gallery .image-card:hover .image-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Enhanced image title styling */
.featured-tours .tours-gallery .image-card-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-tours .tours-gallery .image-card:hover .image-card-title {
    transform: translateY(-5px);
}

/* Enhanced tour item layout */
.featured-tours .tour-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-tours .tour-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.featured-tours .tilt-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-tours .tour-item:hover .tilt-card-inner {
    transform: translateY(-5px);
}

/* Ensure even spacing in gallery */
.featured-tours .tours-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-tours .tours-gallery .image-card {
        height: 300px;
    }
    
    .featured-tours .tours-gallery .image-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .featured-tours .tours-gallery {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 30px auto 0;
        gap: 20px;
    }
    
    .featured-tours .tours-gallery .image-card {
        height: 250px;
    }
    
    .featured-tours .tours-gallery .image-card-title {
        font-size: 1.2rem;
    }
}
