/* Portfolio Section */
.portfolio-section {
    background-color: #0B0B0B;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(200, 169, 81, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.portfolio-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 60px;
}

.portfolio-header h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: #D4AF37;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.portfolio-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #F2F2F2;
    position: relative;
    display: inline-block;
}

.portfolio-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #C8A951);
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0 40px;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(200, 169, 81, 0.3);
    color: #F2F2F2;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.filter-btn:hover,
.filter-btn.active {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #0B0B0B;
}

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

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(200, 169, 81, 0.1);
}

.portfolio-item.landscape {
    aspect-ratio: 2/1;
    grid-column: span 2;
}

.portfolio-item.portrait {
    aspect-ratio: 2/3;
}

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

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

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

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

.portfolio-category {
    color: #D4AF37;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    opacity: 0;
}

.portfolio-title {
    color: #F2F2F2;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
    opacity: 0;
}

.portfolio-item:hover .portfolio-category,
.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid rgba(200, 169, 81, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #F2F2F2;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #D4AF37;
}

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

.lightbox-prev,
.lightbox-next {
    background: rgba(11, 11, 11, 0.7);
    color: #F2F2F2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: 1px solid rgba(200, 169, 81, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #D4AF37;
    color: #0B0B0B;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .portfolio-header h2 {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .portfolio-section {
        padding: 80px 0;
    }
    
    .portfolio-header h2 {
        font-size: 2.2rem;
    }
    
    .portfolio-item.landscape {
        aspect-ratio: 3/2;
        grid-column: span 1;
    }
}

@media (max-width: 767.98px) {
    .portfolio-header h2 {
        font-size: 2rem;
    }
    
    .portfolio-filter {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 20px;
    }
    
    .portfolio-item.landscape,
    .portfolio-item.portrait {
        aspect-ratio: 3/4;
    }
}
