/* App Download Section Styles - Dark Mode Integrated */
.app-download-section {
    background: var(--gradient-card); /* Dark gradient to match original style */
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    margin: var(--space-2xl) auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    max-width: 1100px;
    box-shadow: var(--shadow-xl);
    direction: rtl; 
    overflow: hidden;
    position: relative;
}

/* Subtle background glow effect */
.app-download-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-primary-alpha-10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.app-download-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.app-download-header h2 {
    color: var(--color-primary); /* Primary green color */
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px var(--color-primary-alpha-20);
}

.app-download-header p {
    color: var(--color-text-secondary); /* Balanced text color for dark mode */
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

.app-download-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    border-color: var(--color-primary-alpha-20);
}

.download-btn img {
    height: 48px;
    width: auto;
    display: block;
}

.btn-apple {
    background: #000;
}

/* Smartphone Mockup Container */
.app-mockup-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    position: relative;
    width: 240px;
    height: auto;
    transform: rotate(-10deg);
    transition: transform var(--transition-slow);
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.phone-mockup:hover {
    transform: rotate(-5deg) translateY(-10px);
}

.phone-frame {
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
    position: relative;
    pointer-events: none;
}

.phone-screen {
    position: absolute;
    top: 2.2%;
    left: 4.5%;
    width: 91%;
    height: 95.6%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 991px) {
    .app-download-section {
        flex-direction: column;
        text-align: center;
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .app-download-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 200px;
        transform: rotate(0deg);
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .app-download-header h2 {
        font-size: var(--font-size-2xl);
    }
    
    .app-download-header p {
        font-size: var(--font-size-base);
    }
    
    .download-btn img {
        height: 40px;
    }
}
