/* Portfolio Styles */
.portfolio-main {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tabs Navigation */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid #00B5E0;
    color: #00B5E0;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #00B5E0;
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #05E12F;
    border-color: #05E12F;
    color: white;
}

/* Tab Content */
.tab-content {
    margin-bottom: 80px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 10px;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Varying heights for masonry effect */
.masonry-item:nth-child(6n+1) {
    grid-row-end: span 35;
}

.masonry-item:nth-child(6n+2) {
    grid-row-end: span 40;
}

.masonry-item:nth-child(6n+3) {
    grid-row-end: span 30;
}

.masonry-item:nth-child(6n+4) {
    grid-row-end: span 45;
}

.masonry-item:nth-child(6n+5) {
    grid-row-end: span 35;
}

.masonry-item:nth-child(6n+6) {
    grid-row-end: span 38;
}

/* Item Overlay */
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.masonry-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #05E12F;
}

.item-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* CTA Section */
.portfolio-cta {
    text-align: center;
    background: linear-gradient(135deg, #05E12F, #00B5E0);
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
}

.portfolio-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    background: white;
    color: #05E12F;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-main {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .portfolio-tabs {
        gap: 10px;
        padding: 0 20px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 20px;
    }
    
    .portfolio-cta {
        margin: 0 20px;
        padding: 40px 30px;
    }
    
    .portfolio-cta h2 {
        font-size: 2rem;
    }
    
    .portfolio-cta p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-tabs {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}