/* Portfolio Specific Styles */

/* Portfolio Header */
.portfolio-header {
    padding: 120px 0 80px;
    background: #f8f9fa;
    color: var(--secondary-color);
    text-align: center;
}

.portfolio-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.portfolio-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* Portfolio Filters */
.portfolio-filters {
    padding: 60px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: #fff;
    color: #666;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 158, 132, 0.3);
}

/* Portfolio Main */
.portfolio-main {
    padding: 80px 0;
    background: #fff;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: scale(1);
    animation: fadeInScale 0.6s ease forwards;
}

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

.portfolio-item.hidden {
    display: none;
}

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

.portfolio-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
    position: relative;
}

.portfolio-image .image-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.portfolio-image .image-placeholder h4 {
    font-size: 1.2rem;
    text-align: center;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.portfolio-category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.portfolio-description {
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #ecf0f1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(178, 158, 132, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(178, 158, 132, 0.3);
}

.view-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(178, 158, 132, 0.4);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    background: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(178, 158, 132, 0.8);
    color: var(--secondary-color);
}

.lightbox-image {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image .image-placeholder {
    color: #fff;
    text-align: center;
}

.lightbox-image .image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.lightbox-info {
    padding: 2rem;
    background: #fff;
    color: #333;
}

.lightbox-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.lightbox-info .portfolio-category {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lightbox-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.lightbox-info .portfolio-tags {
    margin-top: 1.5rem;
}

.lightbox-info .tag {
    background: rgba(178, 158, 132, 0.1);
    color: var(--primary-color);
}

/* Portfolio CTA */
.portfolio-cta {
    padding: 80px 0;
    background: #f8f9fa;
    color: var(--secondary-color);
    text-align: center;
}

.portfolio-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .lightbox-content {
        grid-template-columns: 1fr;
        width: 95%;
        margin: 5% auto;
    }
    
    .lightbox-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2.5rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        margin: 0 10px;
    }
    
    .filter-buttons {
        padding: 0 10px;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-info h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-description {
        font-size: 0.95rem;
    }
    
    .lightbox-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .lightbox-image {
        height: 300px;
    }
    
    .lightbox-info {
        padding: 1.5rem;
    }
    
    .portfolio-cta h2 {
        font-size: 2rem;
    }
    
    .portfolio-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        padding: 100px 0 60px;
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
    
    .portfolio-filters {
        padding: 40px 0;
    }
    
    .portfolio-main {
        padding: 60px 0;
    }
    
    .portfolio-image {
        height: 300px;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .view-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .lightbox-info {
        padding: 1rem;
    }
    
    .lightbox-info h3 {
        font-size: 1.4rem;
    }
    
    .portfolio-cta {
        padding: 60px 0;
    }
}