/* App Screenshots Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gallery-modal-content {
    background-color: #1a202c;
    margin: 1% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 1200px;
    max-height: 98vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: gallerySlideIn 0.4s ease-out;
}

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

.gallery-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-header {
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.gallery-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.gallery-header p {
    opacity: 0.9;
    margin: 0;
    font-size: 1rem;
}

.gallery-carousel {
    position: relative;
    background: #1a202c;
    padding: 30px 20px 40px;
    min-height: 600px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    text-align: center;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 20px 20px;
    border-radius: 0 0 20px 20px;
}

.slide-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 0 20px;
}

.carousel-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 108, 176, 0.3);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(43, 108, 176, 0.4);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carousel-counter {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-orange);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.gallery-features {
    background: #2d3748;
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.gallery-features h3 {
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-item h4 {
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

/* Gallery Trigger Button */
.gallery-trigger {
    background: linear-gradient(135deg, var(--accent-orange), #f6ad55);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(221, 107, 32, 0.3);
    text-decoration: none;
    display: inline-block;
    margin: 20px 0;
}

.gallery-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 107, 32, 0.4);
    background: linear-gradient(135deg, #f6ad55, var(--accent-orange));
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 98vh;
    }
    
    .gallery-header {
        padding: 20px 15px;
    }
    
    .gallery-header h2 {
        font-size: 1.5rem;
    }
    
    .gallery-carousel {
        padding: 20px 15px 30px;
        min-height: 500px;
    }
    
    .carousel-container {
        max-width: 450px;
    }
    
    .carousel-nav {
        padding: 0 10px;
        margin-top: 20px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .gallery-features {
        padding: 20px 15px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .gallery-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        max-width: 350px;
    }
    
    .slide-title {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.8rem;
    }
    
    .gallery-trigger {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .gallery-carousel {
        min-height: 450px;
    }
}
