/* Save this to a file called "horizontal-projects.css" */
/* Horizontal Projects Section Styles */

.projects-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Ensure no horizontal scrollbar on the page */
}

.projects-section .section-header {
    margin-bottom: 30px; /* Reduced margin for more space */
}

/* Horizontal scrolling container */
.projects-horizontal-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 20px 0;
    margin-bottom: 20px;
    position: relative;
}

/* Hide scrollbar but keep functionality */
.projects-horizontal-container::-webkit-scrollbar {
    height: 8px;
}

.projects-horizontal-container::-webkit-scrollbar-track {
    background: rgba(229, 215, 192, 0.2);
    border-radius: 4px;
}

.projects-horizontal-container::-webkit-scrollbar-thumb {
    background: #725D47;
    border-radius: 4px;
}

/* Transform grid to horizontal layout */
.projects-grid {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
    padding: 10px 20px;
    gap: 30px;
}

/* Adjust project cards for horizontal layout */
.project-card {
    flex: 0 0 auto;
    width: 350px;
    margin-right: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Make featured projects wider */
.project-card.featured {
    width: 600px;
}

/* Adjust project image heights for consistency */
.project-image {
    height: 220px;
}

/* Projects navigation arrows */
.projects-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.projects-nav-btn {
    background: #725D47;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.projects-nav-btn:hover {
    transform: translateY(-3px);
    background: #4A3D2F;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.projects-nav-btn:disabled {
    background: #A49184;
    cursor: not-allowed;
    transform: none;
}

/* Scroll indicator - dots for position */
.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #E5D7C0;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background-color: #725D47;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-card.featured {
        width: 90vw;
    }
    
    .project-card {
        width: 80vw;
    }
}