/* Projects Page Styles */

/* Collage Styles */
.collage-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: 1rem;
}

.collage-row, .collapse-row {
    display: flex;
    gap: 5px;
    height: 300px;
}

.collage-item {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.collage-item:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .collage-row, .collapse-row {
        flex-direction: column;
        height: auto;
    }
    
    .collage-item {
        height: 200px;
    }
}


/* Project Section Styling */
.projects-section {
    padding: 100px 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section h1 {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Project Card Styling */
.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow: hidden;
}

.project-content {
    padding: 2rem;
}

.project-card h2 {
    color: #2D69B9;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.project-card p {
    color: #606366;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Before/After Slider */
.before-after-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

.before-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 3s ease-in-out;
}

/* Carousel Styling */
.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-section {
        padding: 80px 1rem 3rem;
    }
    
    .before-after-container,
    .carousel-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .project-card {
        margin-bottom: 2rem;
    }
    
    .before-after-container,
    .carousel-container {
        height: 250px;
    }
}
