/* Company Projects Styling */

/* Statistics Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #059669 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    padding: 10px;
}

.stat-item i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

/* Filter and Search Section */
.filter-search-section {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    background: var(--dark-card);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    background: var(--dark-card);
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Project Badges */
.project-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.badge-type {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.badge-year {
    background: rgba(59, 130, 246, 0.95);
    color: white;
}

.badge-power {
    background: rgba(245, 158, 11, 0.95);
    color: white;
}

/* Project Metrics */
.project-metrics {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.metric i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.metric span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-info {
    background: var(--dark-card);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
}

.lightbox-info h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.lightbox-info p {
    margin: 0;
    opacity: 0.8;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: #059669;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Hide cards when filtered */
.company-card.hidden {
    display: none;
}

.company-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.company-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(16, 185, 129, 0.1);
    height: 350px;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    border-color: var(--primary-color);
}

.company-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.company-image {
    width: 100%;
    height: 100%;
}

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

.company-card:hover .company-image img {
    transform: scale(1.05);
}

.company-info {
    padding: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-name i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.company-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.company-details {
    display: none;
}

.company-details h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
}

.company-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: white;
}

.company-details-list li {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.company-details-list li i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .company-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .company-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .company-card {
        height: 320px;
    }
    
    .company-image-container {
        height: 220px;
    }
    
    .stats-banner {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-search-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .category-filters {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .project-metrics {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .company-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .category-filters {
        gap: 8px;
    }
    
    .project-badges {
        flex-direction: column;
        gap: 5px;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
}
