/* Projects Carousel Styles */
#projects-carousel {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
}

#projects-carousel .carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 1rem 0;
    gap: 1.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#projects-carousel .carousel-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

#projects-carousel .project-group {
    display: flex;
    flex: 0 0 auto;
    gap: 1.5rem;
    padding: 0 1rem;
}

#projects-carousel .carousel-item {
    flex: 0 0 auto;
    width: 300px; /* Fixed width for each project card */
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

#projects-carousel .project-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#projects-carousel .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#projects-carousel .project-image {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

#projects-carousel .project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#projects-carousel .project-card:hover .project-image img {
    transform: scale(1.05);
}

#projects-carousel .project-details {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#projects-carousel .project-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

#projects-carousel .project-location {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

#projects-carousel .project-location svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.375rem;
}

#projects-carousel .project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

#projects-carousel .feature {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #4b5563;
}

#projects-carousel .feature svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
    color: #3b82f6;
}

#projects-carousel .project-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 0.75rem;
}

/* Navigation Arrows */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.carousel-nav button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.carousel-nav button:hover {
    background: #2563eb;
}

.carousel-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #projects-carousel .carousel-item {
        width: 280px; /* Slightly smaller cards on mobile */
    }
    
    #projects-carousel .project-title {
        font-size: 1rem;
    }
    
    #projects-carousel .project-price {
        font-size: 1.125rem;
    }
}

/* Hide scrollbar but keep functionality */
#projects-carousel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

#projects-carousel::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}