/* =========================================
   AVAN APPS - PROJECT SINGLE PAGE
========================================= */

.avan-project-page {
    --project-bg: var(--background-color);
    --project-primary: var(--primary-color);
    --project-box: #071329;
    --project-border: rgba(49, 136, 204, 0.23);
    --project-muted: #a9b8ce;
    --project-glow: rgba(49, 136, 204, 0.18);

    direction: rtl;
    width: 100%;
    overflow: hidden;
    color: var(--light-text-color);
    background:
        radial-gradient(ellipse at 5% 10%, rgba(20, 86, 174, 0.13), transparent 32%),
        radial-gradient(ellipse at 95% 55%, rgba(49, 136, 204, 0.07), transparent 30%),
        var(--project-bg);
    font-family: inherit;
}

.avan-project-page * {
    box-sizing: border-box;
}

.avan-project-page a {
    text-decoration: none;
}

.avan-project-container {
    width: min(1200px, calc(100% - 80px));
    margin-inline: auto;
}

.avan-project-page img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* =========================================
   HERO SECTION
========================================= */

.avan-project-hero {
    position: relative;
    min-height: 490px;
    overflow: hidden;
    border-bottom: 1px solid var(--project-border);
    background:
        radial-gradient(ellipse at 4% 55%, rgba(0, 91, 255, 0.26), transparent 42%),
        radial-gradient(ellipse at 40% 0%, rgba(49, 136, 204, 0.12), transparent 45%),
        #000b1c;
}

.avan-project-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -200px;
    top: -250px;
    border-radius: 50%;
    background: rgba(49, 136, 204, 0.15);
    filter: blur(100px);
    pointer-events: none;
}

.avan-project-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 35px;
    width: min(1200px, calc(100% - 80px));
    min-height: 490px;
    margin-inline: auto;
}

.avan-project-hero-image {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.avan-project-hero-image::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 60px;
    bottom: 0;
    left: 5%;
    background: #168bff;
    filter: blur(55px);
    opacity: 0.65;
}

.avan-project-hero-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 460px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.45));
}

.avan-project-hero-content {
    position: relative;
    z-index: 2;
    padding: 45px 0;
    text-align: right;
}

.avan-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 35px;
    color: #8799b5;
    font-size: 12px;
}

.avan-breadcrumb a {
    color: #9aacc7;
    transition: color 0.3s ease;
}

.avan-breadcrumb a:hover {
    color: var(--project-primary);
}

.avan-project-category {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    margin-bottom: 18px;
    border: 1px solid var(--project-border);
    border-radius: 12px;
    color: var(--project-primary);
    background: rgba(49, 136, 204, 0.09);
    font-size: 12px;
}

.avan-category-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--project-primary);
    box-shadow: 0 0 10px var(--project-primary);
}

.avan-project-hero-content h1 {
    margin: 0 0 17px;
    color: #fff;
    font-size: clamp(28px, 3.3vw, 40px);
    line-height: 1.7;
    font-weight: 900;
}

.avan-project-hero-content>p {
    max-width: 540px;
    margin: 0 0 25px;
    color: #c0ccdc;
    font-size: 14px;
    line-height: 2.2;
}

.avan-project-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.avan-platform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 105px;
    padding: 10px 15px;
    border: 1px solid rgba(49, 136, 204, 0.32);
    border-radius: 10px;
    color: #e7f1ff;
    background: rgba(5, 20, 42, 0.7);
    font-size: 13px;
    transition: 0.3s ease;
}

.avan-platform:hover {
    border-color: var(--project-primary);
    background: rgba(49, 136, 204, 0.14);
    transform: translateY(-3px);
}

.avan-platform-icon {
    width: 30px;
}

.avan-back-projects {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--project-primary);
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s ease;
}

.avan-back-projects:hover {
    gap: 16px;
    color: #65baff;
}


/* =========================================
   PROJECT INFORMATION BAR
========================================= */

.avan-project-information {
    border-bottom: 1px solid var(--project-border);
    background: rgba(3, 13, 29, 0.9);
}

.avan-project-information-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(1200px, calc(100% - 80px));
    margin-inline: auto;
}

.avan-info-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-height: 85px;
    padding: 15px;
}

.avan-info-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    width: 1px;
    height: 50%;
    background: rgba(49, 136, 204, 0.35);
}

.avan-info-icon {
    color: var(--project-primary);
    font-size: 32px;
    text-shadow: var(--light-text-shadow);
}

.avan-info-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.avan-info-item div span {
    color: #8da2bd;
    font-size: 12px;
}

.avan-info-item strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================
   SECTION COMMON STYLES
========================================= */

.avan-section-label {
    display: block;
    margin-bottom: 5px;
    color: var(--project-primary);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    opacity: 0.9;
}

.avan-project-page h2 {
    color: #fff;
    font-size: 23px;
    line-height: 1.8;
    font-weight: 900;
}

.avan-section-heading {
    margin-bottom: 22px;
}

.avan-section-heading h2 {
    margin: 0 0 3px;
}

.avan-section-heading>p {
    margin: 0;
    color: var(--project-muted);
    font-size: 13px;
    line-height: 2;
}


/* =========================================
   ABOUT PROJECT
========================================= */

.avan-project-about {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    align-items: center;
    gap: 45px;
    padding-top: 35px;
    padding-bottom: 30px;
}

.avan-about-description h2 {
    margin: 0 0 13px;
}

.avan-about-description p {
    margin: 0 0 13px;
    color: #b5c3d6;
    font-size: 13px;
    line-height: 2.4;
    text-align: justify;
}

.avan-project-goal {
    position: relative;
    min-height: 175px;
    padding: 22px 25px;
    overflow: hidden;
    border: 1px solid var(--project-border);
    border-radius: 14px;
    background:
        radial-gradient(circle at 95% 0%, rgba(49, 136, 204, 0.15), transparent 45%),
        #07172d;
    transition: 0.3s ease;
}

.avan-project-goal:hover {
    border-color: var(--project-primary);
    box-shadow: var(--box-shadow);
}

.avan-goal-icon {
    float: left;
    width: 48px;
    height: 48px;
    color: var(--project-primary);
}

.avan-goal-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 7px rgba(49, 136, 204, 0.5));
}

.avan-project-goal h3 {
    margin: 0 0 8px;
    color: var(--project-primary);
    font-size: 17px;
}

.avan-project-goal p {
    margin: 0;
    color: #b6c5d8;
    font-size: 12px;
    line-height: 2.1;
}


/* =========================================
   FEATURES
========================================= */

.avan-project-features {
    padding-top: 5px;
    padding-bottom: 35px;
}

.avan-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.avan-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-height: 110px;
    padding: 19px 17px;
    border: 1px solid rgba(49, 136, 204, 0.2);
    border-radius: 12px;
    background: linear-gradient(145deg, #07172b, #061125);
    transition: 0.35s ease;
}

.avan-feature-card:hover {
    border-color: var(--project-primary);
    background: linear-gradient(145deg, #0a203c, #07172b);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(49, 136, 204, 0.12);
}

.avan-feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: var(--project-primary);
    font-size: 33px;
    text-shadow: var(--light-text-shadow);
}

.avan-feature-card h3 {
    margin: 0 0 6px;
    color: #f4f8ff;
    font-size: 14px;
    font-weight: 800;
}

.avan-feature-card p {
    margin: 0;
    color: #aabbd0;
    font-size: 11px;
    line-height: 2;
}


/* =========================================
   GALLERY
========================================= */

.avan-project-gallery {
    padding-top: 5px;
    padding-bottom: 25px;
}

.avan-gallery-wrapper {
    position: relative;
    padding: 0px;
    border: 1px solid rgba(49, 136, 204, 0.28);
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(0, 110, 255, 0.2), transparent 50%),
        linear-gradient(145deg, #071a37, #061126);
    box-shadow: inset 0 0 30px rgba(49, 136, 204, 0.05);
}


.avan-gallery-image {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    background: #08172e;
    width: 100%;
    height: 100%;
}

.avan-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.avan-gallery-image:hover img {
    transform: scale(1.06);
}

/* =========================================
   TECHNOLOGIES
========================================= */

.avan-project-technologies {
    padding-top: 0;
    padding-bottom: 30px;
}

.avan-project-technologies .avan-section-heading {
    margin-bottom: 12px;
}

.avan-project-technologies h2 {
    margin: 0;
    font-size: 19px;
}

.avan-technologies-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.avan-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 8px 16px;
    border: 1px solid var(--project-border);
    border-radius: 11px;
    color: #dceaff;
    background: rgba(5, 19, 40, 0.8);
    font-size: 12px;
    transition: 0.3s ease;
}

.avan-tech-item b {
    color: var(--project-primary);
    font-size: 18px;
}

.avan-tech-item:hover {
    border-color: var(--project-primary);
    box-shadow: 0 0 15px rgba(49, 136, 204, 0.16);
    transform: translateY(-3px);
}


/* =========================================
   CTA BANNER
========================================= */

.avan-project-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 110px;
    padding: 20px 35px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 13px;
    background:
        radial-gradient(circle at 0% 100%, rgba(0, 100, 255, 0.9), transparent 45%),
        linear-gradient(110deg, #0759bd, #0874d9 45%, #0754b0);
    box-shadow: 0 8px 30px rgba(0, 76, 180, 0.2);
}

.avan-project-cta::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    top: -180px;
    left: 40%;
    transform: rotate(45deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.025),
        0 0 0 70px rgba(255, 255, 255, 0.025);
}

.avan-cta-content {
    position: relative;
    z-index: 1;
}

.avan-cta-content h2 {
    margin: 0 0 5px;
    color: white;
    font-size: 20px;
}

.avan-cta-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 2;
}

.avan-cta-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    min-height: 43px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #092344 !important;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: 0.3s ease;
}

.avan-cta-button:hover {
    transform: translateY(-3px);
}



/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (min-width: 1100px) {
    .avan-gallery-wrapper {
        width: 70%;
        height: 500px;
        margin: 0px auto;
    }
}

@media (max-width: 1024px) {

    .avan-project-hero-inner {
        gap: 20px;
    }

    .avan-project-hero-image img {
        height: 400px;
    }

    .avan-project-hero {
        min-height: 440px;
    }

    .avan-project-hero-inner {
        min-height: 440px;
    }

    .avan-project-hero-content h1 {
        font-size: 30px;
    }

    .avan-project-about {
        gap: 25px;
    }

    .avan-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 767px) {

    .avan-project-container {
        width: calc(100% - 32px);
    }

    /* HERO */

    .avan-project-hero-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        min-height: auto;
    }

    .avan-project-hero-content {
        order: 1;
        width: calc(100% - 36px);
        padding: 30px 0 15px;
        margin-inline: auto;
    }

    .avan-breadcrumb {
        margin-bottom: 23px;
        font-size: 10px;
    }

    .avan-project-hero-content h1 {
        font-size: 26px;
        line-height: 1.8;
    }

    .avan-project-hero-content>p {
        font-size: 12px;
        line-height: 2.2;
    }

    .avan-project-category {
        margin-bottom: 12px;
    }

    .avan-project-platforms {
        gap: 7px;
    }

    .avan-platform {
        min-width: auto;
        padding: 9px 12px;
        font-size: 11px;
    }

    .avan-project-hero-image {
        order: 2;
        width: 100%;
        height: 300px;
        align-self: auto;
    }

    .avan-project-hero-image img {
        width: 100%;
        height: 300px;
        object-fit: contain;
        object-position: center bottom;
    }

    .avan-project-hero {
        min-height: auto;
    }


    /* INFORMATION */

    .avan-project-information-inner {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .avan-info-item {
        justify-content: flex-start;
        min-height: 75px;
        padding: 12px 18px;
    }

    .avan-info-item:nth-child(2)::after {
        display: none;
    }

    .avan-info-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--project-border);
    }

    .avan-info-icon {
        font-size: 27px;
    }

    .avan-info-item strong {
        font-size: 12px;
    }

    .avan-info-item div span {
        font-size: 10px;
    }


    /* ABOUT */

    .avan-project-about {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .avan-project-page h2 {
        font-size: 21px;
    }

    .avan-about-description p {
        font-size: 12px;
        line-height: 2.3;
    }

    .avan-project-goal {
        min-height: auto;
    }


    /* FEATURES */

    .avan-project-features {
        padding-bottom: 28px;
    }

    .avan-section-heading>p {
        font-size: 11px;
    }

    .avan-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .avan-feature-card {
        min-height: 95px;
        padding: 16px;
    }

    .avan-feature-card h3 {
        font-size: 13px;
    }

    .avan-feature-card p {
        font-size: 11px;
    }


    /* GALLERY */

    .avan-project-gallery {
        padding-bottom: 25px;
    }





    /* TECHNOLOGIES */

    .avan-technologies-list {
        gap: 8px;
    }

    .avan-tech-item {
        min-height: 39px;
        padding: 7px 11px;
        font-size: 10px;
    }


    /* CTA */

    .avan-project-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 23px 20px;
        margin-bottom: 20px;
    }

    .avan-cta-content h2 {
        font-size: 17px;
    }

    .avan-cta-content p {
        font-size: 11px;
    }

    .avan-cta-button {
        width: 100%;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .avan-project-hero-content h1 {
        font-size: 23px;
    }

    .avan-project-hero-image {
        height: 250px;
    }

    .avan-project-hero-image img {
        height: 250px;
    }

    .avan-info-item {
        gap: 10px;
        padding-inline: 12px;
    }

    .avan-info-icon {
        font-size: 24px;
    }

    .avan-project-page h2 {
        font-size: 19px;
    }

    .avan-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

}


/* =========================================
   ACCESSIBILITY & MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .avan-project-page * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}