/* iPhone App Promotion Section Styles */
.app-promotion {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    background: #000;
    border-radius: 30px;
    padding: 20px 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
}

.screenshot-image {
    width: 100%;
    border-radius: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-item {
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    background: white;
    border-color: #007bff;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.feature-item.active {
    background: white;
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.feature-item i {
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
}

.app-store-buttons .btn {
    transition: transform 0.3s ease;
}

.app-store-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Animation for screenshot changes */
.screenshot-fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.screenshot-fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .phone-mockup {
        max-width: 200px;
        margin: 1rem auto 2rem;
    }
    
    .phone-frame {
        transform: none;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .feature-item {
        padding: 10px;
    }
    
    .feature-item h5 {
        font-size: 1rem;
    }
    
    .phone-frame {
        max-width: 200px;
    }
}

/* Loading placeholder for screenshots */
.screenshot-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
