* {
    box-sizing: border-box;
}

#slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#slider #line {
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    z-index: 20;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
}

#slider #dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 15;
}

#slider #dots li {
    transition: all 0.3s ease;
    list-style-type: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

#slider #dots li:hover,
#slider #dots li.active {
    background: #4f46e5;
    transform: scale(1.2);
    border-color: white;
}

@keyframes line {
    0% { width: 0%; }
    100% { width: 100%; }
}

#slider #back,
#slider #forword {
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 15;
}

#slider:hover #back,
#slider:hover #forword {
    opacity: 1;
}

#slider #back:hover,
#slider #forword:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

#slider #forword:hover {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

ul#move {
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    height: 384px; /* 96*4 */
    transition: transform 0.7s ease-in-out;
}

ul#move li {
    min-width: 100%;
    color: white;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

ul#move li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    z-index: 1;
}

ul#move li > * {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    ul#move {
        height: 320px;
    }
    
    #slider #back,
    #slider #forword {
        width: 40px;
    }
    
    .container.mx-auto {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-lg {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    ul#move {
        height: 280px;
    }
    
    #slider #dots {
        bottom: 10px;
    }
    
    #slider #dots li {
        width: 10px;
        height: 10px;
    }
}