/* Portfolio Page Styles */

/* Page Banner */
.page-banner {
    background: url('../images/portfolio/portfolio-banner.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: #fff;
    margin-bottom: 3rem;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Filter */
.portfolio-filter {
    margin-bottom: 3rem;
}

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

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid #e63946;
    color: #e63946;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(230, 57, 70, 0.1);
}

.filter-btn.active {
    background: #e63946;
    color: #fff;
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 2rem 0 5rem;
}

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

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item.show {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 57, 70, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.overlay-content {
    text-align: center;
    color: #fff;
    padding: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.overlay-content .btn {
    margin-top: 1rem;
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.portfolio-modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e63946;
}

.modal-container {
    padding: 2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-header .category {
    font-size: 1.2rem;
    color: #e63946;
    font-weight: 600;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-images {
    border-radius: 8px;
    overflow: hidden;
}

.project-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project-info {
    display: flex;
    flex-direction: column;
}

.project-description h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #333;
}

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

.project-description h3:first-child {
    margin-top: 0;
}

.project-meta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.meta-item h4 {
    font-size: 1.1rem;
    color: #e63946;
    margin-bottom: 0.5rem;
}

.meta-item p {
    color: #555;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: url('../images/cta-bg.jpg') no-repeat center center/cover;
    padding: 5rem 0;
    position: relative;
    color: #fff;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .project-images {
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .portfolio-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .page-banner h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .portfolio-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .page-banner {
        height: 300px;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .filter-buttons {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 0 0 auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 30px auto;
    }
    
    .modal-container {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .portfolio-items {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
}

/* Dark Mode Styles */
.dark-mode .portfolio-item {
    background: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .modal-content {
    background: #1a1a1a;
    color: #f5f5f5;
}

.dark-mode .modal-header {
    border-bottom-color: #333;
}

.dark-mode .modal-header h2 {
    color: #f5f5f5;
}

.dark-mode .project-description h3 {
    color: #f5f5f5;
}

.dark-mode .project-description p,
.dark-mode .meta-item p {
    color: #ccc;
}

.dark-mode .close-modal {
    color: #f5f5f5;
}

.dark-mode .project-meta {
    border-top-color: #333;
}

.dark-mode .filter-btn {
    color: #e63946;
    border-color: #e63946;
}

.dark-mode .filter-btn:hover {
    background: rgba(230, 57, 70, 0.2);
}

.dark-mode .filter-btn.active {
    background: #e63946;
    color: #fff;
}