/* ===== PROJECT FILTER STYLES ===== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    padding: 0 15px;
    list-style: none;
}

.portfolio-filter li {
    margin: 0;
}

.portfolio-filter li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #333;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    cursor: pointer;
}

.portfolio-filter li a i {
    color: #f15a24;
    font-size: 16px;
    transition: all 0.3s ease;
}

.portfolio-filter li a:hover {
    background: #f15a24;
    color: white;
    border-color: #f15a24;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 90, 36, 0.2);
}

.portfolio-filter li a:hover i {
    color: white;
}

.portfolio-filter li.active a {
    background: #f15a24;
    color: white;
    border-color: #f15a24;
    box-shadow: 0 8px 25px rgba(241, 90, 36, 0.3);
}

.portfolio-filter li.active a i {
    color: white;
}

/* ===== PROJECT CARD STYLES ===== */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Gradient overlay */
.project-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #f15a24;
    color: white;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(241, 90, 36, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-badge i {
    font-size: 11px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(241, 90, 36, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-info .category {
    display: block;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    opacity: 0.95;
    padding: 4px 15px;
    color: black;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.project-info .btn-view {
    display: inline-block;
    background: white;
    color: #f15a24;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.project-info .btn-view:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===== PROJECT STATS BANNER ===== */
.project-stats {
    background: #f8f9fa;
    padding: 60px 0;
    margin: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #f15a24;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== COMPANY BADGE ===== */
.years-badge {
    background: #f15a24;
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.service-tagline {
    font-size: 20px;
    color: #f15a24;
    font-weight: 600;
    margin-top: 20px;
    border-top: 2px solid #f15a24;
    padding-top: 20px;
    display: inline-block;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f15a24;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== NO PROJECTS MESSAGE ===== */
.no-projects {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 30px 0;
}

.no-projects i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-projects h3 {
    color: #333;
    margin-bottom: 10px;
}

.no-projects p {
    color: #666;
}

/* ===== MODAL STYLES ===== */
.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px;
}

.modal-container {
    position: relative;
    max-width: 1200px;
    width: 95%;
    margin: 30px auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalFade 0.3s ease;
    overflow: hidden;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.modal-close-btn:hover {
    background: #f15a24;
    color: white;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 700px;
    max-height: 80vh;
}

/* Modal Image Section */
.modal-image-section {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    padding: 20px;
}

.modal-main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-image-thumbnails {
    padding: 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: white;
    border-top: 1px solid #eee;
    min-height: 90px;
}

.modal-image-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.modal-image-thumbnails::-webkit-scrollbar-thumb {
    background: #f15a24;
    border-radius: 4px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #f15a24;
    opacity: 1;
    transform: scale(1.05);
}

/* Modal Content Section */
.modal-content-section {
    padding: 30px;
    overflow-y: auto;
    height: 100%;
    background: white;
}

.modal-category {
    display: inline-block;
    background: rgba(241, 90, 36, 0.1);
    color: #f15a24;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px;
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-meta-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f15a24;
    font-size: 18px;
    flex-shrink: 0;
}

.modal-meta-text {
    flex: 1;
    min-width: 0;
}

.modal-meta-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.modal-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    word-wrap: break-word;
}

.modal-description {
    margin-bottom: 30px;
}

.modal-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.modal-description p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.modal-feature-tag {
    background: #f0f0f0;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-feature-tag i {
    color: #f15a24;
    font-size: 12px;
}

.modal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 16px;
}

.modal-footer-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #f15a24;
    color: white;
}

.btn-primary:hover {
    background: #c4451e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(241, 90, 36, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 50px;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    color: #f15a24;
    background: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .modal-grid {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .modal-image-section {
        height: 400px;
    }

    .modal-content-section {
        height: auto;
        max-height: 500px;
    }

    .modal-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .portfolio-filter li a {
        padding: 10px 20px;
        font-size: 14px;
    }

    .project-card {
        height: 250px;
    }

    .project-info h3 {
        font-size: 25px;
    }

    .project-info .category {
        font-size: 13px;
    }

    .project-info .btn-view {
        font-size: 12px;
    }

    .stat-number {
        font-size: 36px;
    }

    .modal-container {
        margin: 15px auto;
    }

    .modal-close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .modal-image-section {
        height: 350px;
    }

    .modal-content-section {
        padding: 25px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-meta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .lightbox-content {
        max-width: 95%;
        margin-top: 30px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .project-card {
        height: 220px;
    }

    .project-info h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .project-info .category {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .project-overlay {
        padding: 15px;
    }

    .modal-image-section {
        height: 300px;
    }

    .modal-content-section {
        padding: 20px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-meta-grid {
        padding: 15px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }
}