/**
 * SuperTech Digital Innovations - Slider Styles
 * Interactive carousel and slider components
 */

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #001a99 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-slide p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background-color: var(--accent);
    transform: scale(1.3);
    border-color: white;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   SERVICE CAROUSEL
   ============================================ */

.service-carousel {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
    padding: 3rem 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background-color: white;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--primary);
    color: white;
}

.carousel-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */

.testimonial-slider {
    position: relative;
    padding: 3rem 0;
}

.testimonial-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    text-align: center;
    padding: 2rem;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.testimonial-position {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.testimonial-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicator.active {
    background-color: var(--accent);
    transform: scale(1.5);
}

/* ============================================
   FEATURE SLIDER
   ============================================ */

.feature-slider {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #001a99 100%);
    color: white;
    padding: 4rem 0;
    overflow: hidden;
}

.feature-slide {
    opacity: 0;
    transition: opacity 0.8s ease;
    text-align: center;
    padding: 2rem;
}

.feature-slide.active {
    opacity: 1;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   IMAGE GALLERY SLIDER
   ============================================ */

.gallery-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.gallery-control-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.gallery-control-btn.active {
    background-color: white;
    width: 24px;
    border-radius: 4px;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-arrow.prev {
    left: 1rem;
}

.gallery-arrow.next {
    right: 1rem;
}

/* ============================================
   STATS COUNTER SLIDER
   ============================================ */

.stats-slider {
    position: relative;
    background: var(--light-bg);
    padding: 3rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    counter-increment: stat-counter;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* ============================================
   PROCESS SLIDER
   ============================================ */

.process-slider {
    position: relative;
    padding: 3rem 0;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    opacity: 0;
    animation: slideIn 0.6s ease forwards;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #001a99);
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.process-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2rem;
    }

    .hero-slide p {
        font-size: 1rem;
    }

    .carousel-slide {
        padding: 0;
    }

    .process-step {
        grid-template-columns: 1fr;
    }

    .process-number {
        margin-bottom: 1rem;
    }

    .gallery-image {
        height: 300px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
