/**
 * Real App Screenshots Gallery
 * Display actual Android app screenshots
 */

.app-screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 20px 0;
    max-width: 1400px;
}

.screenshot-container {
    flex-shrink: 0;
    width: 180px;
    position: relative;
    z-index: 1;
}

.screenshot-container:hover {
    z-index: 100;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 107, 53, 0.3);
    transition: all 0.4s ease;
    transform-origin: center center;
    transform: scale(1);
}

.app-screenshot:hover {
    transform: scale(2) !important;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.8);
    border: 3px solid var(--app-orange, #FF6B35);
}

/* Scrollbar styling for gallery */
.app-screenshots-gallery::-webkit-scrollbar {
    height: 8px;
}

.app-screenshots-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.app-screenshots-gallery::-webkit-scrollbar-thumb {
    background: var(--app-orange);
    border-radius: 4px;
}

.app-screenshots-gallery::-webkit-scrollbar-thumb:hover {
    background: var(--app-orange-dark);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .app-screenshots-gallery {
        gap: 20px;
        padding: 60px 15px;
    }
    
    .screenshot-container {
        width: 160px;
    }
    
    .app-screenshot:hover {
        transform: scale(1.9) !important;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .app-screenshots-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    .app-screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 10px;
    }
    
    .screenshot-container {
        width: 150px;
    }
    
    .app-screenshot:hover {
        transform: scale(1.8) !important;
    }
}

@media (max-width: 480px) {
    .app-screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 5px;
    }
    
    .screenshot-container {
        width: 120px;
    }
    
    .app-screenshot:hover {
        transform: scale(1.6) !important;
    }
}

/* Animation on page load */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 0.7;
        transform: translateX(0) scale(0.85);
    }
}

@keyframes slideInMain {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.screenshot-container {
    animation: slideInFromRight 0.6s ease-out forwards;
}

.screenshot-container:nth-child(1) {
    animation-delay: 0.1s;
}

.screenshot-container:nth-child(2) {
    animation-delay: 0.2s;
}

.screenshot-container:nth-child(3) {
    animation-delay: 0.3s;
}

.screenshot-container:nth-child(4) {
    animation-delay: 0.4s;
}

.screenshot-container:nth-child(5) {
    animation-delay: 0.5s;
}

/* Add gradient overlay hint for scrolling on mobile */
.app-screenshots-gallery::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, rgba(26, 26, 46, 0.9));
    pointer-events: none;
}

@media (min-width: 1200px) {
    .app-screenshots-gallery::after {
        display: none;
    }
}

/* Better positioning for the gallery */
.app-hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    overflow: visible;
}
