/* Carousel Section Styles */
.carousel-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 calc(25% - 20px); /* Show 4 images at once */
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-slide:hover {
    transform: scale(1.05);
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.carousel-button {
    background: var(--nortelab-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: var(--nortelab-red-dark);
    transform: translateY(-2px);
}

/* Image Popup Styles */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-popup-overlay.active .image-popup-content {
    transform: scale(1);
}

.image-popup-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.image-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--nortelab-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.image-popup-close:hover {
    background: var(--nortelab-red-dark);
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - 20px); /* Show 3 images on medium screens */
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 20px); /* Show 2 images on small screens */
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 calc(100% - 20px); /* Show 1 image on very small screens */
    }
}