/* Portfolio Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0A2540 0%, #1a365d 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Portfolio Filter */
.portfolio-filter {
    padding: 50px 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4DA8DA;
    color: white;
    border-color: #4DA8DA;
}

/* Portfolio Gallery */
.portfolio-gallery {
    padding: 50px 0 100px;
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-overlay .view-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #4DA8DA;
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.portfolio-overlay .view-more:hover {
    background: white;
    color: #0A2540;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #0A2540;
}

.modal-body {
    padding: 30px;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #0A2540;
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-header .category {
    display: inline-block;
    padding: 5px 15px;
    background: #4DA8DA;
    color: white;
    border-radius: 30px;
    font-size: 0.9rem;
}

.modal-content-text {
    margin-bottom: 30px;
}

.modal-content-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.detail-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.detail-card i {
    font-size: 2rem;
    color: #4DA8DA;
    margin-bottom: 15px;
}

/* Differentiators Section (for services page) */
.differentiators {
    padding: 100px 0;
    background: #f8f9fa;
}

.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.differentiator-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.differentiator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.differentiator-icon {
    font-size: 2.5rem;
    color: #4DA8DA;
    margin-bottom: 20px;
}

.service-details {
    list-style: none;
    margin-top: 20px;
}

.service-details li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.service-details li i {
    color: #4DA8DA;
    margin-right: 10px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-image {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
}