/* Custom styles for the AI Infrastructure carrousel */

/* Individual slides */
.carrousel-slide {    
    min-height: 500px;
    border-radius: calc(1rem - 2px);
}

/* Illustration containers*/
.illustration-container {
    position: relative;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
    color: white;
}

.illustration-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

/* Navigation buttons styling */
.carrousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carrousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carrousel-btn-prev {
    left: 1rem;
}

.carrousel-btn-next {
    right: 1rem;
}

/* Dots indicator styling */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dot.active {
    background: #3b82f6 !important;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.dot:not(.active):hover {
    background: #9ca3af !important;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .carrousel-slide {
        min-height: 600px;
    }

    .carrousel-slide .flex {
        flex-direction: column;
        text-align: center;
    }

    .carrousel-slide .w-full {
        width: 100% !important;
        margin-bottom: 2rem;
    }

    .illustration-container {
        transform: none;
        margin-bottom: 2rem;
    }

    .illustration-container:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .carrousel-btn {
        width: 40px;
        height: 40px;
    }

    .carrousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carrousel-slide {
        min-height: 500px;
        padding: 1rem;
    }

    .carrousel-slide h2 {
        font-size: 1.5rem;
    }

    .illustration-container {
        padding: 1.5rem;
    }

    .illustration-container svg {
        width: 60px;
        height: 60px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carrousel-container {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Focus states for accessibility */
.carrousel-btn:focus,
.dot:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading animation for illustrations */
.illustration-container svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}