/* ========================================
   PORTFOLIO PAGE RESPONSIVE STYLES
   ======================================== */

/* Portfolio Filter Buttons */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #06A3DA;
    background: transparent;
    color: #06A3DA;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #06A3DA;
    color: #fff;
}

/* Portfolio Grid */
.portfolio-item {
    margin-bottom: 2rem;
}

.portfolio-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 163, 218, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #06A3DA;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #EEF9FF;
    color: #06A3DA;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #091E3E;
}

.portfolio-info p {
    color: #64748b;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-info {
        padding: 1.25rem;
    }
    
    .portfolio-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .portfolio-filters {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    .portfolio-image {
        height: 250px;
    }
    
    .portfolio-info {
        padding: 1rem;
    }
    
    .portfolio-info h4 {
        font-size: 1.15rem;
    }
    
    .portfolio-item {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .portfolio-image {
        height: 220px;
    }
    
    .portfolio-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .portfolio-category {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .portfolio-info h4 {
        font-size: 1rem;
    }
    
    .portfolio-info p {
        font-size: 0.85rem;
    }
}

/* Grid Animation */
.portfolio-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide items when filtering */
.portfolio-item.hide {
    display: none;
}
