/* Mobile App Development Specific Styles */

/* Mobile App Hero */
.mobile-app-hero .mobile-app-visual {
    position: relative;
    width: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 215px;
    height: 400px;
    background: #f5f5f7;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.phone-mockup.ios {
    transform: rotate(-5deg);
    margin-right: -30px;
    z-index: 2;
}

.phone-mockup.android {
    transform: rotate(5deg);
    margin-left: -30px;
    z-index: 1;
    background: #1a1a1a;
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 8px solid #1a1a1a;
    border-radius: 40px;
    pointer-events: none;
}

.phone-mockup.android .phone-frame {
    border-color: #333;
}

.phone-screen {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
}

.phone-mockup.android .phone-screen {
    background: #0d0d0d;
}

.app-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 15px;
    background: linear-gradient(135deg, #1f3a8a, #0b2a6f);
}

.phone-mockup.android .app-header {
    background: linear-gradient(135deg, #333, #1a1a1a);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
    color: white;
}

.status-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.signal, .wifi, .battery {
    width: 15px;
    height: 8px;
    background: white;
    border-radius: 2px;
}

.battery {
    position: relative;
    width: 20px;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    width: 3px;
    height: 4px;
    background: white;
    border-radius: 1px;
}

.app-nav {
    text-align: center;
}

.nav-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.app-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-item {
    height: 40px;
    background: #f0f0f0;
    border-radius: 10px;
    animation: pulseItem 2s infinite;
}

.phone-mockup.android .content-item {
    background: #2a2a2a;
}

.content-item:nth-child(2) {
    animation-delay: 0.3s;
}

.content-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulseItem {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.platform-icons {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    font-size: 24px;
    color: white;
}

.platform-icons i {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.platform-icons i:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* App Services */
.app-services {
    padding: 100px 5%;
    background: #f9fbfe;
}

.app-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.app-service-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.app-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: #1f3a8a;
}

.app-service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1f3a8a, #0b2a6f);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 32px;
}

.app-service-card h3 {
    color: #162c6b;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.app-service-card p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.app-tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tech-tag {
    background: #f1f5f9;
    color: #1f3a8a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #1f3a8a;
    color: white;
    transform: translateY(-2px);
}

.app-service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-service-card li {
    padding: 10px 0;
    color: #162c6b;
    font-size: 14px;
    position: relative;
    padding-left: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.app-service-card li:last-child {
    border-bottom: none;
}

.app-service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1f3a8a;
    font-weight: bold;
}

/* Technology Stack */
.technology-stack {
    padding: 100px 5%;
    background: white;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tech-stack-category {
    background: #f9fbfe;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tech-stack-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #1f3a8a;
}

.tech-stack-category h3 {
    color: #162c6b;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-stack-category h3 i {
    color: #1f3a8a;
    font-size: 24px;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f7ff, #e1eeff);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* .tech-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} */

.tech-item i {
    font-size: 24px;
    color: #1f3a8a;
}

.tech-item span {
    color: #162c6b;
    font-weight: 500;
    font-size: 15px;
}

/* App Metrics */
.app-metrics {
    padding: 100px 5%;
    background: #f9fbfe;
}

.metrics-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.metric-display-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.metric-display-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.metric-circle-display {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.metric-value-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: #162c6b;
}

.metric-display-card h4 {
    color: #162c6b;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.metric-display-card p {
    color: #64748b;
    font-size: 14px;
}

.app-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 25px 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.benefit-item i {
    font-size: 40px;
    color: #1f3a8a;
    margin-bottom: 20px;
}

.benefit-item h4 {
    color: #162c6b;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-item p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Package Price Span */
.package-price span {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .mobile-app-hero .mobile-app-visual {
        width: 400px;
    }
    
    .phone-mockup {
        width: 150px;
        height: 300px;
    }
    
    .app-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-display {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .mobile-app-hero .mobile-app-visual {
        width: 350px;
        height: 350px;
    }
    
    .phone-mockup {
        width: 130px;
        height: 260px;
    }
    
    .phone-mockup.ios {
        margin-right: -20px;
    }
    
    .phone-mockup.android {
        margin-left: -20px;
    }
    
    .app-content {
        padding: 15px;
        gap: 10px;
    }
    
    .content-item {
        height: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-app-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .mobile-app-hero .mobile-app-visual {
        margin-top: 40px;
        width: 100%;
        max-width: 400px;
    }
    
    .app-services-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-display {
        grid-template-columns: 1fr;
    }
    
    .app-benefits {
        grid-template-columns: 1fr;
    }
    
    .tech-items {
        grid-template-columns: 1fr;
    }
    
    .platform-icons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .mobile-app-hero .mobile-app-visual {
        height: 300px;
    }
    
    .phone-mockup {
        width: 110px;
        height: 220px;
    }
    
    .phone-frame {
        border-width: 6px;
    }
    
    .phone-screen {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 25px;
    }
    
    .app-header {
        padding: 10px;
    }
    
    .app-content {
        padding: 10px;
    }
    
    .content-item {
        height: 25px;
    }
    
    .metric-circle-display {
        width: 100px;
        height: 100px;
    }
    
    .metric-value-display {
        font-size: 24px;
    }
    
    .app-service-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}