/* Portfolio Page Specific Styles */

/* Portfolio Header */
.portfolio-header {
    padding: 120px 40px 60px;
    text-align: center;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.portfolio-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #808080;
}

/* Portfolio Categories */
.portfolio-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-button {
    margin: 0 10px 10px;
    padding: 8px 16px;
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-button:hover,
.category-button.active {
    color: #808080;
}

.category-button.active {
    border-bottom: 1px solid #808080;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px 100px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background-color: #F5F5F5;
    cursor: pointer;
}

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

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

.portfolio-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-item-info {
    color: white;
}

.portfolio-item-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.portfolio-item-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-nav button:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio-header {
        padding: 100px 20px 40px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px 80px;
    }
    
    .portfolio-categories {
        padding: 0 20px;
    }
    
    .category-button {
        margin: 5px;
    }
    
    .lightbox-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-header h1 {
        font-size: 2rem;
    }
}
