/* Mobile Application Development service page — scoped under .mobileapp-page */

.mobileapp-page {
    --ma-surface: #f0f2f6;
    --ma-ink: #0c1220;
    --ma-muted: #5a6478;
    --ma-line: rgba(12, 18, 32, 0.08);
    --ma-card: #ffffff;
    --ma-glow: rgba(202, 50, 0, 0.12);
    --ma-accent: var(--primary);
    color: var(--ma-ink);
    background: var(--ma-surface);
}

.mobileapp-hero {
    position: relative;
    min-height: clamp(440px, 78vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 6.25rem;
    /* Hero banner — Unsplash (mobile app / smartphone UI) */
    background:
        radial-gradient(ellipse 90% 70% at 85% 25%, rgba(202, 50, 0, 0.14) 0%, transparent 50%),
        linear-gradient(145deg, rgba(12, 12, 14, 0.9) 0%, rgba(18, 18, 22, 0.85) 45%, rgba(10, 10, 12, 0.93) 100%),
        url("https://images.unsplash.com/photo-1551650975-87deedd944c3?auto=format&fit=crop&w=2400&q=80") center/cover no-repeat;
}

@media (min-width: 992px) {
    .mobileapp-hero {
        padding-top: calc(45px + 6rem);
    }
}

.mobileapp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    pointer-events: none;
}

.mobileapp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 100%);
    pointer-events: none;
}

.mobileapp-hero-inner {
    position: relative;
    z-index: 1;
    padding-bottom: 3.5rem;
}

.mobileapp-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
    margin-top: 0.25rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.mobileapp-hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #ffffff !important;
    max-width: 20ch;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

@media (min-width: 992px) {
    .mobileapp-hero h1 {
        font-size: clamp(2.5rem, 4vw, 3.35rem);
    }
}

.mobileapp-hero-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
    max-width: 38rem;
    line-height: 1.65;
}

.mobileapp-hero-actions .btn {
    border-radius: 999px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mobileapp-hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.mobileapp-hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.mobileapp-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobileapp-stat {
    min-width: 120px;
}

.mobileapp-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.mobileapp-stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mobileapp-quote-strip {
    background: linear-gradient(95deg, #080809 0%, #121214 42%, #0e0e10 100%);
    color: #f5f5f6;
    border-top: 1px solid rgba(202, 50, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.mobileapp-quote-strip h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.mobileapp-quote-strip .form-control {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.96);
    color: #0f1218;
}

.mobileapp-quote-strip .btn-primary {
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.25rem;
}

.mobileapp-section-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.mobileapp-intro-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mobileapp-intro-visual {
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #eef0f4 0%, #fff 40%, #f0ebe6 100%);
    box-shadow:
        0 24px 48px var(--ma-glow),
        0 0 0 1px var(--ma-line);
    overflow: hidden;
}

.mobileapp-intro-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.mobileapp-hero-visual {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 1rem;
}

.mobileapp-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.mobileapp-cta-band {
    background: var(--ma-surface);
    background-image:
        linear-gradient(90deg, rgba(12, 18, 32, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(12, 18, 32, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    border-top: 1px solid var(--ma-line);
    border-bottom: 1px solid var(--ma-line);
}

.mobileapp-cta-band h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mobileapp-cta-band .btn-secondary {
    border-radius: 999px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background: #252830;
    border-color: #252830;
}

.mobileapp-cta-band .btn-secondary:hover {
    background: #323842;
    border-color: #323842;
}

.mobileapp-why-visuals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mobileapp-why-visuals {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mobileapp-why-visuals figure {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 16px 40px rgba(12, 18, 32, 0.1);
}

.mobileapp-why-visuals img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobileapp-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .mobileapp-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .mobileapp-why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mobileapp-why-card {
    background: var(--ma-card);
    border-radius: 1rem;
    padding: 1.5rem 1.35rem;
    height: 100%;
    border: 1px solid var(--ma-line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mobileapp-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 18, 24, 0.08);
}

.mobileapp-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(202, 50, 0, 0.12), rgba(202, 50, 0, 0.04));
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.mobileapp-why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.mobileapp-why-card p {
    font-size: 0.9rem;
    color: var(--ma-muted);
    margin: 0;
    line-height: 1.55;
}

.mobileapp-process {
    background: linear-gradient(180deg, var(--ma-surface) 0%, #e8eaef 100%);
}

.mobileapp-process-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .mobileapp-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .mobileapp-process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mobileapp-process-cell {
    background: var(--ma-card);
    border-radius: 1rem;
    padding: 1.5rem 1.35rem;
    border: 1px solid var(--ma-line);
    position: relative;
    overflow: hidden;
}

.mobileapp-process-cell::before {
    content: attr(data-step);
    position: absolute;
    top: 0.35rem;
    right: 0.75rem;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(12, 18, 32, 0.06);
    letter-spacing: -0.04em;
    pointer-events: none;
}

.mobileapp-process-cell h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    padding-right: 3rem;
}

.mobileapp-process-cell p {
    font-size: 0.88rem;
    color: var(--ma-muted);
    margin: 0;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.mobileapp-portfolio {
    background: var(--ma-card);
    scroll-margin-top: 6.5rem;
}

.mobileapp-phone-frame {
    position: relative;
    border-radius: 1.75rem;
    padding: 0.35rem;
    background: linear-gradient(165deg, #2a2d34 0%, #12141a 45%, #0c0e12 100%);
    box-shadow:
        0 4px 0 rgba(255, 255, 255, 0.06) inset,
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobileapp-phone-frame:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 0 rgba(255, 255, 255, 0.08) inset,
        0 28px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(202, 50, 0, 0.25);
}

.mobileapp-phone-notch {
    position: absolute;
    top: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    height: 22px;
    background: #0a0c10;
    border-radius: 0 0 0.85rem 0.85rem;
    z-index: 4;
}

.mobileapp-phone-screen {
    position: relative;
    border-radius: 1.35rem;
    overflow: hidden;
    aspect-ratio: 10 / 19;
    background: #050608;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65);
}

.mobileapp-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.mobileapp-phone-frame:hover .mobileapp-phone-screen img {
    transform: scale(1.04);
}

.mobileapp-portfolio-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 8, 0.2) 35%, rgba(5, 6, 8, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobileapp-phone-frame:hover .mobileapp-portfolio-overlay {
    opacity: 1;
}

.mobileapp-portfolio-overlay h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.mobileapp-portfolio-overlay p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobileapp-portfolio-overlay a {
    align-self: flex-start;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.mobileapp-portfolio-overlay a:hover {
    color: #ffb199;
}

.mobileapp-phone-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    padding-bottom: 0.15rem;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 600;
}

.mobileapp-portfolio-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ma-muted);
    border: 2px dashed var(--ma-line);
    border-radius: 1rem;
    background: var(--ma-surface);
}

.mobileapp-faq {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.mobileapp-faq .accordion-item {
    border: 1px solid var(--ma-line);
    border-radius: 0.65rem !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
    background: var(--ma-card);
}

.mobileapp-faq .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.15rem;
    box-shadow: none !important;
    background: #e8eaef;
    color: var(--ma-ink);
}

.mobileapp-faq .accordion-button:not(.collapsed) {
    background: var(--primary) !important;
    color: #fff !important;
}

.mobileapp-faq .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.mobileapp-faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.mobileapp-faq .accordion-body {
    color: var(--ma-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1rem 1.15rem 1.25rem;
}

.mobileapp-bottom-cta {
    position: relative;
    z-index: 0;
    background: linear-gradient(120deg, #0a0a0c 0%, #141418 45%, #1a1a1e 100%);
    color: #fff;
    border-top: 1px solid rgba(202, 50, 0, 0.25);
}

.mobileapp-bottom-cta h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mobileapp-bottom-cta p {
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 36rem;
}

.mobileapp-bottom-cta .btn {
    border-radius: 999px;
    font-weight: 700;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.mobileapp-bottom-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.mobileapp-bottom-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
