/* =========================================================
   Application Pages
   محمد عبدالله - Portfolio
   ========================================================= */


/* =========================================================
   App Hero
   ========================================================= */

.app-hero {
    position: relative;

    min-height: 760px;

    padding:
        155px
        0
        90px;

    display: flex;

    align-items: center;

    overflow: hidden;
}

.app-hero::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    top: 40px;
    left: -250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(73, 214, 168, 0.09),
            transparent 68%
        );

    pointer-events: none;
}

.app-hero-container {
    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    gap: 70px;

    align-items: center;
}


/* =========================================================
   App Hero Content
   ========================================================= */

.app-hero-content {
    position: relative;

    z-index: 2;
}

.app-category {
    display: block;

    margin-bottom: 4px;

    color: var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    direction: ltr;
}

.app-title-row {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 18px;
}

.app-title-row h1 {
    margin: 0;

    font-size:
        clamp(38px, 5vw, 62px);

    line-height: 1.2;

    font-weight: 800;
}

.app-main-icon {
    position: relative;

    flex-shrink: 0;

    width: 105px;
    height: 105px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border-radius: 27px;

    border: 1px solid
        rgba(255, 255, 255, 0.12);

    background:
        linear-gradient(
            145deg,
            #173d37,
            #0c1b2b
        );

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.35);
}

.app-main-icon img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.icon-placeholder {
    background:
        linear-gradient(
            135deg,
            rgba(73, 214, 168, 0.18),
            rgba(108, 124, 255, 0.13)
        );
}

.icon-placeholder-text {
    position: absolute;

    color: var(--primary);

    font-size: 40px;

    font-weight: 800;
}

.app-main-icon img:not([src=""]) + .icon-placeholder-text {
    z-index: -1;
}


/* =========================================================
   Description
   ========================================================= */

.app-short-description {
    max-width: 680px;

    margin:
        25px
        0
        0;

    color: var(--muted);

    font-size: 14px;

    line-height: 2.2;
}


/* =========================================================
   App Buttons
   ========================================================= */

.app-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;
}

.google-play-button {
    min-width: 255px;

    text-align: right;

    direction: ltr;
}

.google-play-button small {
    display: block;

    margin-bottom: 1px;

    color:
        rgba(6, 21, 26, 0.65);

    font-size: 8px;

    line-height: 1.2;
}

.play-icon {
    display: grid;

    place-items: center;

    width: 28px;
    height: 28px;

    border-radius: 8px;

    background:
        rgba(6, 21, 26, 0.13);

    font-size: 10px;
}


/* =========================================================
   App Stats
   ========================================================= */

.app-stats {
    display: flex;

    gap: 35px;

    margin-top: 45px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.app-stats strong {
    display: block;

    color: #fff;

    font-size: 14px;

    direction: ltr;
}

.app-stats span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   Phone Visual
   ========================================================= */

.app-hero-visual {
    position: relative;

    min-height: 530px;

    display: grid;

    place-items: center;
}

.app-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(73, 214, 168, 0.15),
            transparent 68%
        );

    filter: blur(20px);
}

.phone-mockup {
    position: relative;

    width: 285px;
    height: 555px;

    padding: 10px;

    border-radius: 42px;

    border: 2px solid
        rgba(255, 255, 255, 0.13);

    background:
        linear-gradient(
            145deg,
            #172b3e,
            #07121f
        );

    box-shadow:
        0 35px 90px
        rgba(0, 0, 0, 0.45);

    transform:
        rotate(5deg);
}

.phone-mockup::before {
    content: "";

    position: absolute;

    top: 9px;
    left: 50%;

    width: 90px;
    height: 23px;

    transform:
        translateX(-50%);

    border-radius:
        0 0 15px 15px;

    background: #06101b;

    z-index: 5;
}

.phone-speaker {
    position: absolute;

    top: 17px;
    left: 50%;

    width: 35px;
    height: 4px;

    transform:
        translateX(-50%);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.15);

    z-index: 6;
}

.phone-screen {
    width: 100%;
    height: 100%;

    padding:
        34px
        15px
        15px;

    overflow: hidden;

    border-radius: 33px;

    background:
        linear-gradient(
            180deg,
            #0d2430,
            #07121f
        );

    direction: rtl;
}

.mock-status {
    color:
        rgba(255, 255, 255, 0.65);

    font-size: 8px;

    text-align: center;

    direction: ltr;
}

.mock-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;

    color: #fff;

    font-size: 10px;

    font-weight: 700;
}

.mock-balance {
    margin-top: 25px;

    padding: 22px 17px;

    border-radius: 20px;

    border: 1px solid
        rgba(73, 214, 168, 0.15);

    background:
        linear-gradient(
            135deg,
            rgba(73, 214, 168, 0.15),
            rgba(255, 255, 255, 0.025)
        );

    text-align: center;
}

.mock-balance small {
    display: block;

    color: var(--muted);

    font-size: 8px;
}

.mock-balance strong {
    display: inline-block;

    margin-top: 4px;

    font-size: 32px;

    color: var(--primary);

    direction: ltr;
}

.mock-balance span {
    margin-right: 4px;

    color: var(--muted);

    font-size: 8px;
}

.mock-cards {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 10px;
}

.mock-card {
    padding: 13px 9px;

    border-radius: 14px;

    border: 1px solid
        rgba(255, 255, 255, 0.06);

    background:
        rgba(255, 255, 255, 0.035);
}

.mock-card span {
    display: block;

    font-size: 17px;
}

.mock-card strong {
    display: block;

    margin-top: 5px;

    font-size: 9px;
}

.mock-card small {
    color: var(--muted);

    font-size: 7px;
}

.mock-section-title {
    margin-top: 22px;

    font-size: 10px;

    font-weight: 700;
}

.mock-reward {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 8px;

    padding: 12px;

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.04);

    border: 1px solid
        rgba(255, 255, 255, 0.05);
}

.mock-reward > span {
    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background:
        rgba(73, 214, 168, 0.1);
}

.mock-reward strong {
    display: block;

    font-size: 8px;
}

.mock-reward small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 6px;
}


/* =========================================================
   App Sections
   ========================================================= */

.app-section {
    padding: 100px 0;
}

.app-features-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.018),
            transparent
        );
}

.app-section-heading {
    max-width: 720px;

    margin-bottom: 45px;
}

.app-section-heading h2 {
    margin-top: 9px;

    font-size: 38px;

    line-height: 1.4;
}

.app-section-heading h2 span {
    color: var(--primary);
}

.app-section-heading p {
    margin-top: 10px;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   Overview
   ========================================================= */

.app-overview-grid {
    display: grid;

    grid-template-columns:
        1fr
        380px;

    gap: 50px;

    align-items: start;
}

.app-overview-main p {
    max-width: 720px;

    margin-bottom: 18px;

    color: var(--muted);

    font-size: 13px;

    line-height: 2.3;
}

.app-info-card {
    padding: 10px 22px;

    border-radius: 20px;

    border: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);
}

.info-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span {
    color: var(--muted);

    font-size: 10px;
}

.info-row strong {
    font-size: 10px;

    direction: ltr;

    text-align: left;
}


/* =========================================================
   Features Grid
   ========================================================= */

.app-features-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.app-feature-card {
    padding: 28px;

    border-radius: 20px;

    border: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.app-feature-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(73, 214, 168, 0.22);

    background:
        rgba(73, 214, 168, 0.035);
}

.feature-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 14px;

    background:
        rgba(73, 214, 168, 0.08);

    font-size: 20px;
}

.app-feature-card h3 {
    margin-bottom: 7px;

    font-size: 17px;
}

.app-feature-card p {
    color: var(--muted);

    font-size: 10px;

    line-height: 2;
}


/* =========================================================
   Technologies
   ========================================================= */

.technology-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 13px;
}

.technology-card {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 20px;

    border-radius: 17px;

    border: 1px solid var(--border);

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.technology-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(73, 214, 168, 0.2);
}

.technology-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            rgba(73, 214, 168, 0.12),
            rgba(108, 124, 255, 0.1)
        );

    color: var(--primary);

    font-size: 13px;

    font-weight: 800;

    direction: ltr;
}

.technology-card strong {
    display: block;

    font-size: 13px;

    direction: ltr;

    text-align: right;
}

.technology-card span {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 8px;

    direction: ltr;

    text-align: right;
}


/* =========================================================
   Screenshots
   ========================================================= */

.screenshots-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.018),
            transparent
        );
}

.screenshots-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}

.screenshot-placeholder {
    position: relative;

    aspect-ratio: 9 / 16;

    display: grid;

    place-items: center;

    overflow: hidden;

    border-radius: 20px;

    border: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(73, 214, 168, 0.08),
            rgba(255, 255, 255, 0.02)
        );

    box-shadow:
        inset 0 0 50px
        rgba(0, 0, 0, 0.15);
}

.screenshot-placeholder::before {
    content: "";

    position: absolute;

    width: 75%;
    height: 75%;

    border-radius: 30px;

    border: 1px solid
        rgba(255, 255, 255, 0.05);
}

.screenshot-placeholder span {
    position: relative;

    z-index: 2;

    color:
        rgba(255, 255, 255, 0.28);

    font-family: monospace;

    font-size: 9px;

    letter-spacing: 1px;

    direction: ltr;
}


/* =========================================================
   Download CTA
   ========================================================= */

.app-download-section {
    padding:
        50px
        0
        110px;
}

.app-download-card {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 50px;

    overflow: hidden;

    border-radius: 27px;

    border: 1px solid
        rgba(73, 214, 168, 0.15);

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(73, 214, 168, 0.11),
            transparent 40%
        ),
        rgba(255, 255, 255, 0.025);
}

.app-download-card h2 {
    margin-top: 10px;

    font-size: 31px;
}

.app-download-card p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}

.google-play-large {
    min-width: 275px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .app-hero {
        padding-top: 130px;
    }

    .app-hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .app-title-row {
        justify-content: center;

        text-align: right;
    }

    .app-short-description {
        margin-left: auto;
        margin-right: auto;
    }

    .app-buttons {
        justify-content: center;
    }

    .app-stats {
        justify-content: center;
    }

    .app-hero-visual {
        min-height: 570px;
    }

    .app-overview-grid {
        grid-template-columns: 1fr;
    }

    .app-features-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .technology-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .screenshots-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .app-download-card {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 680px) {

    .app-hero {
        min-height: auto;

        padding:
            120px
            0
            70px;
    }

    .app-title-row {
        flex-direction: column;

        text-align: center;
    }

    .app-title-row h1 {
        font-size: 38px;
    }

    .app-main-icon {
        width: 90px;
        height: 90px;
    }

    .app-short-description {
        font-size: 11px;
    }

    .app-buttons {
        flex-direction: column;
    }

    .app-buttons .button {
        width: 100%;
    }

    .google-play-button {
        justify-content: center;
    }

    .app-stats {
        gap: 20px;
    }

    .app-stats strong {
        font-size: 11px;
    }

    .app-hero-visual {
        min-height: 510px;
    }

    .phone-mockup {
        width: 255px;
        height: 500px;
    }

    .app-section {
        padding: 75px 0;
    }

    .app-section-heading h2 {
        font-size: 29px;
    }

    .app-features-grid {
        grid-template-columns: 1fr;
    }

    .technology-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 9px;
    }

    .app-download-section {
        padding:
            30px
            0
            80px;
    }

    .app-download-card {
        padding: 30px;
    }

    .app-download-card h2 {
        font-size: 26px;
    }

    .google-play-large {
        width: 100%;

        min-width: 0;
    }

}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 400px) {

    .app-title-row h1 {
        font-size: 34px;
    }

    .phone-mockup {
        width: 240px;
        height: 475px;
    }

    .app-stats {
        gap: 15px;
    }

}