/* ========================================
   Download App Section - Professional PWA Design
   ======================================== */

.section-download-app {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 50%, #FFFFFF 100%);
    overflow: hidden;
}

/* Section Header */
.download-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.download-title {
    font-size: 3rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1rem;
}

.download-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD500, #FFC400, #FFD500, transparent);
}

.download-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Phone Mockup */
.phone-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
}

.mockup-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 213, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.phone-device {
    position: relative;
    width: 340px;
    height: 680px;
    background: linear-gradient(145deg, #2A2A2A 0%, #1A1A1A 100%);
    border-radius: 50px;
    padding: 14px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    z-index: 2;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(-2deg);
    }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 32px;
    background: #1A1A1A;
    border-radius: 0 0 24px 24px;
    z-index: 3;
}

.phone-screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FAFAFA 0%, #F5F5F5 100%);
    border-radius: 38px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
}

.screen-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.screen-logo {
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.screen-logo img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.screen-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #FFFFFF;
    padding: 1.25rem;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: statSlide 1s ease-out backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.3s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes statSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD500 0%, #FFC400 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 213, 0, 0.4);
}

.stat-icon i {
    font-size: 1.5rem;
    color: #000000;
    font-weight: 900;
}

.stat-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.stat-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6B7280;
}

/* PWA Install Card */
.pwa-install-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 2px solid #E5E7EB;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.pwa-install-card:hover {
    border-color: #FFD500;
    box-shadow: 0 20px 60px rgba(255, 213, 0, 0.15);
}

.pwa-install-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pwa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FFD500 0%, #FFC400 100%);
    color: #000000;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 213, 0, 0.3);
}

.pwa-badge i {
    font-size: 1rem;
}

.pwa-install-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}

.pwa-install-description {
    font-size: 1.0625rem;
    color: #6B7280;
    line-height: 1.6;
}

/* PWA Install Button */
.btn-download-pwa-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #FFD500 0%, #FFC400 100%);
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.125rem;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 213, 0, 0.4);
    margin-bottom: 2rem;
}

.btn-download-pwa-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 213, 0, 0.5);
    background: linear-gradient(135deg, #FFE033 0%, #FFD500 100%);
}

.btn-download-pwa-main.hidden {
    display: none;
}

.btn-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 1.5rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

html[dir="rtl"] .btn-text {
    align-items: flex-end;
    text-align: right;
}

.btn-label {
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-sublabel {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

/* PWA Steps */
.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pwa-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.pwa-step:hover {
    border-color: #FFD500;
    background: #FFFEF7;
    transform: translateX(-4px);
}

html[dir="rtl"] .pwa-step:hover {
    transform: translateX(4px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD500 0%, #FFC400 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 900;
    color: #000000;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 213, 0, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.step-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

/* PWA Features Grid */
.pwa-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.pwa-feature-card {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.4s ease;
}

.pwa-feature-card:hover {
    border-color: #FFD500;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 213, 0, 0.15);
    background: #FFFEF7;
}

.feature-icon-modern {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all 0.4s ease;
}

.pwa-feature-card:hover .feature-icon-modern {
    background: linear-gradient(135deg, #FFD500 0%, #FFC400 100%);
    transform: rotate(8deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 213, 0, 0.4);
}

.feature-icon-modern i {
    font-size: 2rem;
    color: #92400E;
    font-weight: 700;
}

.pwa-feature-card:hover .feature-icon-modern i {
    color: #000000;
}

.feature-title-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-desc-modern {
    font-size: 0.9375rem;
    color: #6B7280;
    margin: 0;
}

/* Background Decorations */
.download-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 213, 0, 0.08) 0%, transparent 70%);
}

.decoration-circle.circle-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
}

.decoration-circle.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .section-download-app {
        padding: 80px 0;
    }

    .download-title {
        font-size: 2.5rem;
    }

    .pwa-features-grid {
        grid-template-columns: 1fr;
    }

    .phone-device {
        width: 300px;
        height: 600px;
    }

    .pwa-install-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .section-download-app {
        padding: 60px 0;
    }

    .download-title {
        font-size: 2rem;
    }

    .download-subtitle {
        font-size: 1.125rem;
    }

    .phone-mockup-wrapper {
        min-height: 480px;
    }

    .phone-device {
        width: 260px;
        height: 520px;
    }

    .pwa-install-card {
        padding: 1.75rem;
    }

    .pwa-install-title {
        font-size: 1.5rem;
    }

    .btn-download-pwa-main {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .pwa-features-grid {
        gap: 1rem;
    }

    .pwa-feature-card {
        padding: 1.5rem;
    }

    .feature-icon-modern {
        width: 60px;
        height: 60px;
    }

    .feature-icon-modern i {
        font-size: 1.75rem;
    }
}