/* Custom styles for improved portfolio sections */

.portfolio-section {
    margin-bottom: 60px;
}

.portfolio-section h3 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-description {
    font-size: 1.1em;
    color: #7b8a8b;
    margin-bottom: 40px;
    font-style: italic;
}

.portfolio-caption {
    padding: 15px 0;
}

.portfolio-caption h4 {
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
    margin: 10px 0 5px 0;
}

.portfolio-caption .text-muted {
    font-size: 0.9em;
    color: #95a5a6;
}

.portfolio-item {
    margin-bottom: 40px;
}

.portfolio-item img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

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

.portfolio-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-link .caption {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-section h3 {
        font-size: 1.8em;
    }
    
    .section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    
    .portfolio-item {
        margin-bottom: 30px;
    }
}

/* Section-specific styling */
.portfolio-section:nth-child(2n) .portfolio-caption h4 {
    color: #18bc9c;
}

.portfolio-section:nth-child(3n) .portfolio-caption h4 {
    color: #e74c3c;
}

.portfolio-section:nth-child(4n) .portfolio-caption h4 {
    color: #f39c12;
}