/* Carousel Section Styles */
.carousel-section {
    background: black;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    margin-top: 20px;
    background: linear-gradient(90deg, transparent, #046363, #178389, #049491, #149aaa, transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #a7a7a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #a7a7a7;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 200px;
    height: 240px;
    perspective: 600px;
    margin: 0 auto;
    padding-top: 30px;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.carousel-item {
    position: absolute;
    top: 20px;
    left: 0;
    width: 180px;
    height: 220px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 15px rgba(4, 147, 145, 0.3);
    font-size: 14px;
    transition: box-shadow 0.3s ease;
}

.carousel-item:hover {
    box-shadow: 0 0 25px rgba(4, 147, 145, 0.5);
}

.carousel-item h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.carousel-item p {
    color: #a7a7a7;
    line-height: 1.4;
    font-style: italic;
}

/* Navigation Buttons - Positioned Outside Carousel */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.prev {
    left: -600px;
}

.next {
    right: -600px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .carousel-section {
        padding: 60px 0;
        min-height: 100vh;
    }
    
    .carousel-wrapper {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .carousel-container {
        width: 280px;
        height: 320px;
        perspective: 800px;
        margin: 0 auto;
    }

    .carousel-item {
        top: 50px;
        left: 50px;
        width: 180px;
        height: 220px;
        padding: 20px;
        font-size: 13px;
    }

    .carousel-item h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .carousel-item p {
        font-size: 12px;
        line-height: 1.3;
    }

    .nav-button {
        display: none;
    }
}

/* Portrait tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .carousel-section {
        padding: 80px 0;
    }
    
    .nav-button {
        display: none;
    }
    
    .carousel-container {
        width: 240px;
        height: 280px;
        perspective: 700px;
    }
    
    .carousel-item {
        top: 30px;
        left: 30px;
        width: 180px;
        height: 220px;
        padding: 25px;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
    .carousel-section {
        padding: 40px 0;
        min-height: 100vh;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        margin-bottom: 30px;
    }
    
    .nav-button {
        display: none;
    }

    .carousel-container {
        width: 200px;
        height: 240px;
        perspective: 600px;
    }
    
    .carousel-item {
        top: 20px;
        left: 10px;
        width: 180px;
        height: 200px;
        padding: 15px;
        font-size: 12px;
    }
    
    .carousel-item h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .carousel-item p {
        font-size: 11px;
    }
}