/* ========== MOBILE APP DEVELOPMENT PAGE ========== */

/* ---------- Banner (image only via CSS) ---------- */
.page-banner.mobile-app-banner {
    background-image: url('https://www.jsvtechgroup.com/images/mobile-app-banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 58, 138, 0.72));
    pointer-events: none;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 90px 24px 70px;
    color: #fff;
    text-align: center;
}

.page-banner-content h1 {
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    font-weight: 800;
    margin: 14px 0 18px;
    line-height: 1.2;
}

.page-banner-content p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.92;
    line-height: 1.65;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 8px;
}

.breadcrumb a {
    color: #93c5fd;
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { opacity: 0.75; }

/* ---------- Section helpers ---------- */
.section-light { background: #f8fafc; }
.section-white { background: #fff; }
.section-dark {
    background: #0f172a;
    color: #e2e8f0;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-heading span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.section-heading h2 strong { color: #2563eb; }

.section-dark .section-heading span { color: #93c5fd; }
.section-dark .section-heading h2 { color: #fff; }
.section-dark .section-heading h2 strong { color: #60a5fa; }

/* ---------- Intro ---------- */
.ma-intro {
    padding: 90px 24px;
    overflow: hidden;
}

.ma-intro-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.ma-intro-content .section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2563eb;
    text-transform: uppercase;
}

.ma-intro-content h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 20px;
    line-height: 1.25;
}

.ma-intro-content h2 strong { color: #2563eb; }

.ma-intro-content p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.ma-intro-image { position: relative; }

.ma-image-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
    aspect-ratio: 4/3;
    position: relative;
}

/* Image only as CSS background – not a separate downloadable <img> page */
.ma-image-bg {
    width: 100%;
    height: 100%;
    background-image: url('https://www.jsvtechgroup.com/images/mobile-app-intro.webp');
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    pointer-events: none;
    user-select: none;
}

.ma-image-card:hover .ma-image-bg { transform: scale(1.05); }

.ma-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ma-image-badge strong {
    display: block;
    font-size: 1.1rem;
    color: #0f172a;
}

.ma-image-badge span {
    font-size: 0.85rem;
    color: #64748b;
}

/* ---------- What is Mobile Development ---------- */
.ma-what {
    padding: 90px 24px;
    overflow: hidden;
}

.ma-what-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ma-what-inner p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.ma-what-list {
    list-style: none;
    margin: 28px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    text-align: left;
    max-width: 640px;
}

.ma-what-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.5;
}

.ma-what-list li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

/* ---------- Platforms + code ---------- */
.ma-platforms {
    padding: 90px 24px;
    overflow: hidden;
}

.platforms-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.platform-card {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.platform-card.raised {
    transform: translateY(-20px);
}

.platform-head {
    padding: 18px 20px 8px;
    text-align: center;
}

.platform-head h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.platform-head p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.code-bar {
    display: flex;
    gap: 7px;
    padding: 12px 16px;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.code-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-bar span:nth-child(1) { background: #ff5f56; }
.code-bar span:nth-child(2) { background: #ffbd2e; }
.code-bar span:nth-child(3) { background: #27c93f; }

.code-body {
    padding: 16px 18px 20px;
    font-family: Consolas, "SF Mono", monospace;
    font-size: 0.8rem;
    line-height: 1.85;
    color: #94a3b8;
    min-height: 150px;
    text-align: left;
}

.code-body .kw { color: #c084fc; }
.code-body .fn { color: #38bdf8; }
.code-body .str { color: #4ade80; }
.code-body .cm { color: #64748b; }
.code-body .an { color: #fbbf24; }

/* ---------- Features / What we build ---------- */
.ma-features {
    padding: 90px 24px;
    overflow: hidden;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.15);
    border-color: #bfdbfe;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.65;
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- Process (how we do it) ---------- */
.ma-process {
    padding: 90px 24px;
    overflow: hidden;
}

.process-steps {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, #2563eb, #93c5fd);
}

.process-step {
    display: flex;
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.step-number {
    width: 58px;
    height: 58px;
    background: #fff;
    border: 3px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #2563eb;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 0 0 6px #f8fafc;
}

.section-white .step-number { box-shadow: 0 0 0 6px #fff; }

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.step-content p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ---------- How we deliver ---------- */
.ma-deliver {
    padding: 90px 24px;
    overflow: hidden;
}

.deliver-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.deliver-item {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.deliver-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.12);
}

.deliver-check {
    width: 28px;
    height: 28px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.deliver-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.deliver-item p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Tech ---------- */
.ma-tech {
    padding: 90px 24px;
    overflow: hidden;
}

.tech-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.tech-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.12);
    transform: translateY(-4px);
}

.tech-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.tech-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
}

/* ---------- Why ---------- */
.ma-why {
    padding: 90px 24px;
    overflow: hidden;
}

.why-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-item {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.why-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.12);
}

.why-check {
    width: 28px;
    height: 28px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.why-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.why-item p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ---------- CTA ---------- */
.ma-cta {
    padding: 90px 24px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.ma-cta h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.ma-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 28px;
}

.ma-cta .primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1e3a8a;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ma-cta .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ---------- Animations (same as Web Design) ---------- */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-from-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-from-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

.animate-from-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-from-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ma-intro-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ma-intro-image { order: -1; }

    .platforms-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .platform-card.raised { transform: none; }

    .features-grid { grid-template-columns: 1fr 1fr; }
    .why-grid,
    .deliver-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .ma-what-list { grid-template-columns: 1fr; }
    .process-steps::before { left: 24px; }
}

@media (max-width: 640px) {
    .page-banner.mobile-app-banner { min-height: 360px; }
    .page-banner-content { padding: 70px 20px 50px; }
    .page-banner-content p { font-size: 1.05rem; }
    .features-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }

    .ma-intro,
    .ma-what,
    .ma-platforms,
    .ma-features,
    .ma-process,
    .ma-deliver,
    .ma-tech,
    .ma-why,
    .ma-cta {
        padding: 70px 20px;
    }
}

@media (max-width: 400px) {
    .page-banner-content h1 { font-size: 1.75rem; }
}

.page-banner,
.ma-intro,
.ma-what,
.ma-platforms,
.ma-features,
.ma-process,
.ma-deliver,
.ma-tech,
.ma-why,
.ma-cta {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .animate-up,
    .animate-from-left,
    .animate-from-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}