/* App Gallery Styles */
.app-gallery {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
    position: relative;
}

.section-description {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
}

/* Gallery Grid */
.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
}

.gallery-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-medium);
    border-color: var(--border-green);
}

.gallery-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.gallery-item.reverse .gallery-phone {
    order: 2;
}

.gallery-item.reverse .gallery-content {
    order: 1;
}

/* Gallery Phone Mockup */
.gallery-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gallery-screen {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 
        0 8px 25px var(--shadow-medium),
        0 4px 12px var(--shadow-light);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-screen {
    transform: scale(1.05);
    box-shadow: 
        0 12px 35px var(--shadow-heavy),
        0 6px 18px var(--shadow-medium);
}

/* Gallery Content */
.gallery-content h3 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.gallery-content p {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
    font-weight: 700;
}

.gallery-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-content li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    position: relative;
    font-weight: 700;
}

.gallery-content li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--gradient-green);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: 600;
    flex-shrink: 0;
}

/* Hero Phone Showcase */
.phone-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
    perspective: 1000px;
}

.phone-showcase .phone-mockup {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-showcase .main-phone {
    z-index: 3;
    transform: scale(1.1);
}

.phone-showcase .secondary-phone-1 {
    z-index: 2;
    transform: translateX(-20px) rotateY(15deg) scale(0.85);
    opacity: 0.8;
}

.phone-showcase .secondary-phone-2 {
    z-index: 2;
    transform: translateX(20px) rotateY(-15deg) scale(0.85);
    opacity: 0.8;
}

.phone-showcase .phone-mockup:hover {
    transform: scale(1.15) translateY(-10px);
    z-index: 4;
}

.phone-showcase .secondary-phone-1:hover {
    transform: translateX(-10px) rotateY(5deg) scale(0.95);
}

.phone-showcase .secondary-phone-2:hover {
    transform: translateX(10px) rotateY(-5deg) scale(0.95);
}

/* Enhanced Phone Mockup */
.phone-mockup {
    width: 260px;
    height: auto;
    position: relative;
    filter: drop-shadow(0 10px 25px var(--shadow-medium));
}

.app-screen {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .phone-showcase {
        gap: var(--space-md);
    }
    
    .phone-showcase .secondary-phone-1,
    .phone-showcase .secondary-phone-2 {
        transform: scale(0.75);
        opacity: 0.7;
    }
    
    .gallery-item {
        gap: var(--space-xl);
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .gallery-item,
    .gallery-item.reverse {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .gallery-item.reverse .gallery-phone,
    .gallery-item.reverse .gallery-content {
        order: unset;
    }
    
    .phone-showcase {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .phone-showcase .main-phone {
        transform: scale(1);
    }
    
    .phone-showcase .secondary-phone-1,
    .phone-showcase .secondary-phone-2 {
        transform: scale(0.8);
        opacity: 0.9;
    }
    
    .phone-mockup {
        width: 220px;
    }
    
    .gallery-screen {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .app-gallery {
        padding: var(--space-xl) 0;
    }
    
    .gallery-item {
        padding: var(--space-md);
        margin: 0 var(--space-sm);
    }
    
    .phone-mockup {
        width: 200px;
    }
    
    .gallery-screen {
        max-width: 200px;
    }
    
    .gallery-content h3 {
        font-size: var(--font-size-xl);
    }
    
    .gallery-content p {
        font-size: var(--font-size-base);
    }
}