/* Work Environment Section Styles */
.work-environment {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #fef7fa 50%, #f0f9ff 100%);
}

/* Subtle background pattern */
.work-environment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 85%, rgba(224, 77, 121, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(224, 77, 121, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(64, 19, 73, 0.03) 0%, transparent 50%);
    z-index: 1;
}

/* Content positioning */
.work-environment > .container {
    position: relative;
    z-index: 2;
}

/* Work Environment section title colors to match other sections */
.work-environment .section-title .heading-2---regular {
    color: var(--primary-black-100, #2A252C);
}

.work-environment .section-title .heading-2---bold {
    color: var(--secondary-color-60, #E04D79);
}

.work-environment-gallery {
    margin-top: 60px;
    gap: 20px;
    display: flex;
    flex-wrap: wrap;
}

.work-environment-gallery .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0 !important;
}

/* PC - 2x2 layout */
@media (min-width: 992px) {
    .work-environment-gallery .col-lg-6 {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        margin-bottom: 0 !important;
    }
}

/* Tablet - 1 column */
@media (min-width: 768px) and (max-width: 991px) {
    .work-environment-gallery .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px !important;
    }
    
    .work-environment-gallery .col-lg-6:last-child {
        margin-bottom: 0 !important;
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .work-environment-gallery .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px !important;
    }
    
    .work-environment-gallery .col-lg-6:last-child {
        margin-bottom: 0 !important;
    }
}

.work-environment-item {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    background: #fff;
    margin-bottom: 0;
}

.work-environment-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(224, 77, 121, 0.2);
}

.work-environment-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.work-environment-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E04D79, #c93d6b, #E04D79);
    z-index: 3;
    opacity: 0.9;
}

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

.work-environment-item:hover .work-environment-image img {
    transform: scale(1.05);
}

.work-environment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.work-environment-item:hover .work-environment-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    position: relative;
}

.overlay-content h6 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay-content p {
    color: #fff;
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.zoom-icon {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.work-environment-item:hover .zoom-icon {
    transform: scale(1);
}

.zoom-icon i {
    font-size: 18px;
    color: #333;
}

/* GLightbox customization */
.work-environment-image a {
    display: block;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .work-environment-image {
        height: 300px;
    }
    
    .work-environment-gallery {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .work-environment {
        padding: 60px 0;
    }
    
    .work-environment-gallery {
        margin-top: 40px;
        gap: 15px;
    }
    
    .work-environment-image {
        height: 250px;
    }
    
    .work-environment-overlay {
        padding: 15px;
    }
    
    .overlay-content h6 {
        font-size: 14px;
    }
    
    .overlay-content p {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .work-environment-image {
        height: 220px;
    }
    
    .work-environment-gallery {
        gap: 10px;
    }
}

/* Animation improvements */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.work-environment-item.wow.fadeInUp {
    animation-name: fadeInScale;
}
