/* =================================
   DIGIKHATA APP SLIDER
================================= */

.app-slider-section {
    width: 100%;
    padding: 90px 0 70px;
    background: #ffffff;
    overflow: hidden;
}

.app-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}


/* HEADING */

.app-slider-heading {
    text-align: center;
    margin-bottom: 60px;
}

.app-slider-heading h2 {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 750;
    color: #050505;
    margin-bottom: 18px;
}

.app-slider-heading p {
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}


/* NAVIGATION */

.app-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.app-slider-controls button {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #f3f1f0;
    color: #111111;
    font-size: 23px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-slider-controls button:hover {
    background: #082f91;
    color: #ffffff;
    transform: scale(1.08);
}


/* SLIDER */

.app-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 0 10px;
}

.app-slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: all 0.6s ease;
}


/* INDIVIDUAL PHONE */

.app-slide {
    flex: 0 0 205px;
    height: 425px;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0.9;

    transition:
        flex-basis 0.6s ease,
        height 0.6s ease,
        opacity 0.6s ease,
        transform 0.6s ease;
}

.app-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


/* ACTIVE CENTER PHONE */

.app-slide.active {
    flex-basis: 315px;
    height: 645px;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}


/* SIDE PHONES */

.app-slide:not(.active) {
    transform: scale(0.95);
}


/* =================================
   RESPONSIVE
================================= */

@media (max-width: 1100px) {

    .app-slider-track {
        gap: 20px;
    }

    .app-slide {
        flex-basis: 160px;
        height: 350px;
    }

    .app-slide.active {
        flex-basis: 260px;
        height: 540px;
    }

}


@media (max-width: 768px) {

    .app-slider-section {
        padding: 65px 0;
    }

    .app-slider-heading h2 {
        font-size: 34px;
    }

    .app-slider-heading p {
        font-size: 14px;
    }

    .app-slider-track {
        gap: 15px;
    }

    .app-slide {
        flex-basis: 130px;
        height: 280px;
    }

    .app-slide.active {
        flex-basis: 210px;
        height: 430px;
    }

}


@media (max-width: 480px) {

    .app-slider-heading h2 {
        font-size: 30px;
    }

    .app-slider-track {
        gap: 12px;
    }

    .app-slide {
        flex-basis: 100px;
        height: 220px;
    }

    .app-slide.active {
        flex-basis: 175px;
        height: 360px;
    }

}
.app-slider-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: all 0.6s ease;
}

/* =================================
   APP SLIDER INTRO ANIMATION
================================= */

/* Initial state */

.app-slider-section.js-enabled .app-slider-heading h2 {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s ease;
}

.app-slider-section.js-enabled .app-slider-heading p {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease 0.15s;
}

.app-slider-section.js-enabled .app-slider-controls {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease 0.3s;
}

.app-slider-section.js-enabled .app-slide {
    opacity: 0;
    transform: translateY(70px) scale(0.9);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        flex-basis 0.6s ease,
        height 0.6s ease;
}

/* Visible state */

.app-slider-section.intro-visible .app-slider-heading h2,
.app-slider-section.intro-visible .app-slider-heading p,
.app-slider-section.intro-visible .app-slider-controls {
    opacity: 1;
    transform: translateY(0);
}

.app-slider-section.intro-visible .app-slide {
    opacity: 1;
    transform: translateY(0) scale(0.95);
}

/* Center phone */

.app-slider-section.intro-visible .app-slide.active {
    transform: translateY(0) scale(1);
}

/* Staggered phone entrance */

.app-slider-section.intro-visible .app-slide:nth-child(1) {
    transition-delay: 0.15s;
}

.app-slider-section.intro-visible .app-slide:nth-child(2) {
    transition-delay: 0.3s;
}

.app-slider-section.intro-visible .app-slide:nth-child(3) {
    transition-delay: 0.45s;
}

.app-slider-section.intro-visible .app-slide:nth-child(4) {
    transition-delay: 0.3s;
}

.app-slider-section.intro-visible .app-slide:nth-child(5) {
    transition-delay: 0.15s;
}