/* Main Container */
.circular-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Layer */
.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slider-background .bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-background .bg-layer.active {
    opacity: 1;
}

/* Center Circle */
.circular-slider-circle {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* Slides Container */
.circular-slider-slides {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Each Slide */
.circular-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.circular-slide.active {
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
}

.circular-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Circular Texts */
.circular-slider-texts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 15;
}

.texts-rotating-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Hidden text words (converted to letters) */
.circular-text-word {
    display: none;
}

/* Individual Letters - FIXED */
.circular-letter {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: auto;
    user-select: none;
    font-weight: 700;
    transform-origin: center center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
    width: auto;
    height: auto;
    transition: filter 0.3s ease, transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.circular-letter.hovered {
    filter: brightness(1.4);
}

/* Background Circle Container */
.text-bg-circle-container {
    position: absolute;
    pointer-events: none;
    z-index: 8;
    will-change: transform;
}

.bg-circle-ring {
    fill: transparent;
}

.bg-active-segment {
    position: absolute;
    will-change: transform;
}

.bg-active-arc {
    transition: d 0.3s ease;
}

/* Navigation Arrows */
.circular-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.circular-slider-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.circular-slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.circular-slider-nav.prev {
    left: 60px;
}

.circular-slider-nav.next {
    right: 60px;
}

.circular-slider-nav svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .circular-slider-wrapper {
        height: 50vh;
        padding: 0 20px;
    }
    
    .circular-slider-circle {
        width: 300px !important;
        height: 300px !important;
    }
    
    .circular-letter {
        font-size: 14px !important;
    }
    
    .circular-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .circular-slider-nav.prev {
        left: 25px;
    }
    
    .circular-slider-nav.next {
        right: 25px;
    }
    
    .circular-slider-nav svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .circular-slider-wrapper {
        padding: 0 15px;
    }
    
    .circular-slider-circle {
        width: 250px !important;
        height: 250px !important;
    }
    
    .circular-letter {
        font-size: 12px !important;
    }
    
    .circular-slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .circular-slider-nav.prev {
        left: 20px;
    }
    
    .circular-slider-nav.next {
        right: 20px;
    }
    
    .circular-slider-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* Loading */
.circular-slider-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.circular-slider-loading::after {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Performance Optimization */
.circular-slider-wrapper * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


