/* Module Showcase Carousel Styles */
.module-showcase-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 120px 0 80px 0;
    overflow: hidden;
    position: relative;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.module-showcase-title {
    text-align: center;
    margin-bottom: 60px;
}

.module-showcase-title h1 {
    font-size: 52px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
    line-height: 1.2;
}

.module-showcase-title p {
    font-size: 22px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

.module-showcase-title .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.module-showcase-title .btn-primary {
    background: linear-gradient(135deg, #31bfff 0%, #0ba360 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(49, 191, 255, 0.3);
    border: none;
}

.module-showcase-title .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(49, 191, 255, 0.4);
    text-decoration: none;
    color: white;
}

.module-showcase-title .btn-secondary {
    background: white;
    color: #31bfff;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #31bfff;
}

.module-showcase-title .btn-secondary:hover {
    background: #31bfff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(49, 191, 255, 0.3);
    text-decoration: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-viewport {
    width: 100%;
    height: 100%;
    perspective: 1100px;
    display: flex;
    justify-content: flex-end;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 90px;
    pointer-events: none;
    z-index: 10;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

.module-showcase-card {
    position: absolute;
    top: 50%;
    left: 0;
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    min-width: 200px;
    width: 200px;
    height: 180px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    will-change: transform, opacity;
    user-select: none;
    touch-action: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, -50%, 0);
    transition: none;
}

.module-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #31bfff, #0ba360);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-showcase-card:hover::before {
    opacity: 1;
}

.module-showcase-card .module-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #31bfff 0%, #0ba360 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.module-showcase-card:hover .module-icon {
    transform: scale(1.2) rotate(5deg);
}

.module-showcase-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Varying card sizes for visual interest */
.module-showcase-card:nth-child(3n+1) {
    min-width: 220px;
}

.module-showcase-card:nth-child(3n+2) {
    min-width: 180px;
}

.module-showcase-card:nth-child(3n) {
    min-width: 240px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .module-showcase-section {
        padding: 40px 0;
    }
    
    .module-showcase-title h1 {
        font-size: 32px;
    }
    
    .module-showcase-title p {
        font-size: 16px;
    }
    
    .carousel-container {
        height: 300px;
    }
    
    .module-showcase-card {
        width: 160px;
        min-width: 160px;
        height: 150px;
        padding: 20px 15px;
    }
    
    .module-showcase-card .module-icon {
        font-size: 36px;
    }
    
    .module-showcase-card h5 {
        font-size: 14px;
    }
}
