/* Portfolio Section Styles */
.portfolio {
    position: relative;
    padding: 100px 5%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/patterns/pattern-bg.png');
    opacity: 0.05;
    z-index: 0;
}

.portfolio-header {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
}

.portfolio .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio .section-title h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.portfolio .section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: #e67e22;
    left: 25%;
    bottom: -10px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
}

.portfolio .section-title .subtitle {
    display: block;
    color: #3498db;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio .section-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-category {
    color: #e67e22;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.portfolio-category i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.portfolio-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.4;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.portfolio-item:hover .portfolio-description {
    max-height: 100px;
}

/* Decorative elements */
.portfolio-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0) 70%);
    z-index: 1;
}

.portfolio-decoration-1 {
    top: -150px;
    left: -150px;
}

.portfolio-decoration-2 {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, rgba(230, 126, 34, 0) 70%);
}

/* Responsive styles */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .portfolio {
        padding: 80px 20px;
    }
    
    .portfolio .section-title h2 {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
}
