/* ===== ADVANCED SLIDERS & CAROUSELS ===== */

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        min-width: 33.333%;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.carousel-dot:hover:not(.active) {
    background: var(--primary-light);
    transform: scale(1.1);
}

/* ===== HERO ROTATING TEXT ===== */
.hero-rotating-wrapper {
    display: inline-block;
    position: relative;
    height: 1.2em;
    overflow: hidden;
    vertical-align: bottom;
}

.hero-rotating-text {
    display: block;
    animation: rotateText 8s infinite;
    background: linear-gradient(135deg, #fff 0%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes rotateText {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-100%); }
    50%, 70% { transform: translateY(-200%); }
    75%, 95% { transform: translateY(-300%); }
    100% { transform: translateY(0); }
}

/* ===== TYPING TEXT EFFECT ===== */
.typing-text {
    display: inline-block;
    border-right: 3px solid white;
    animation: blink 0.7s infinite;
    padding-right: 5px;
    min-width: 200px;
}

@keyframes blink {
    0%, 50% { border-color: white; }
    51%, 100% { border-color: transparent; }
}

/* ===== BEFORE/AFTER SLIDER ===== */
.before-after-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    cursor: ew-resize;
}

.before-after-container img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.before-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    z-index: 1;
}

.before-label,
.after-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.before-label { left: 20px; }
.after-label { right: 20px; }

/* ===== SERVICE CARDS SLIDER ===== */
.services-slider-container {
    position: relative;
    overflow: hidden;
}

.services-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 5px;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.services-slider .s-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .services-slider {
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .services-slider .s-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .services-slider .s-card {
        flex: 0 0 calc(25% - 20px);
    }
}

/* Scroll indicators */
.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

.scroll-indicator span {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: var(--gray);
    transition: all 0.3s;
}

.scroll-indicator span.active {
    width: 40px;
    background: var(--primary);
}

/* ===== INFINITE LOGO MARQUEE ===== */
.marquee-container {
    overflow: hidden;
    padding: 30px 0;
    background: var(--gradient-light);
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-track {
    display: flex;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    margin: 0 20px;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

.marquee-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.marquee-item span {
    font-weight: 600;
    color: var(--dark);
}

/* ===== PRICING TOGGLE SLIDER ===== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.pricing-toggle span {
    font-weight: 600;
    color: var(--dark);
    transition: color 0.3s;
}

.pricing-toggle span.active {
    color: var(--primary);
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--gray);
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after {
    transform: translateX(28px);
}

.save-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== FLOATING PARTICLES ===== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatParticle 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 15s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 11s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 12s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; animation-duration: 16s; }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ===== PROGRESS BAR SLIDER ===== */
.progress-slider {
    position: relative;
    height: 8px;
    background: var(--gray);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== IMAGE GALLERY CAROUSEL ===== */
.gallery-carousel {
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    min-width: 100%;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .gallery-slide {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .gallery-slide {
        min-width: 33.333%;
    }
}

/* ===== FEATURE TABS ===== */
.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-tab {
    padding: 12px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.feature-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.feature-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.feature-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.feature-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ACCORDION ===== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    margin-bottom: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header i {
    transition: transform 0.3s;
    color: var(--primary);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 24px 20px;
    color: var(--dark);
    line-height: 1.7;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-carousel {
        padding: 0 30px;
    }
    
    .before-after-container {
        max-width: 100%;
        border-radius: var(--radius-xl);
    }
    
    .feature-tabs {
        gap: 6px;
    }
    
    .feature-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}
