/* Our Works Section Styles */
.our-works {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.work-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.work-video-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: #000;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.work-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: #fff;
}

.work-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.work-placeholder p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.work-content {
    padding: 25px;
}

.work-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.3;
}

.work-content p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.work-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.work-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.work-category i {
    font-size: 10px;
}

.no-works {
    text-align: center;
    padding: 60px 20px;
}

.no-works-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    margin-bottom: 20px;
    color: #6c757d;
}

.no-works-icon i {
    font-size: 32px;
}

.no-works h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-works p {
    color: #6c757d;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .our-works {
        padding: 60px 0;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .work-video-wrapper {
        height: 200px;
    }
    
    .work-content {
        padding: 20px;
    }
    
    .work-content h3 {
        font-size: 18px;
    }
    
    .work-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .our-works {
        padding: 40px 0;
    }
    
    .work-video-wrapper {
        height: 180px;
    }
    
    .work-content {
        padding: 15px;
    }
    
    .work-content h3 {
        font-size: 16px;
    }
    
    .work-content p {
        font-size: 12px;
    }
    
    .work-category {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* Animation for work cards */
.work-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.work-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Video aspect ratio */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Override for work cards to maintain fixed height */
.work-video-wrapper .video-container {
    padding-bottom: 0;
    height: 100%;
}

.work-video-wrapper .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
