﻿/* =========================================================
   AI PROJECTS PAGE
   PREMIUM / MODERN / FANTASY
   ========================================================= */

.ai-projects-page {
    direction: rtl;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 25px 20px 60px;
    color: #263142;
}


/* =========================================================
   HERO
   ========================================================= */

.ai-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 40px;
    margin-bottom: 35px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient( 135deg, #090e1c 0%, #111827 35%, #1e1b4b 72%, #312e81 100% );
    color: #fff;
    box-shadow: 0 25px 65px rgba(30, 41, 59, .20);
}


    /* =========================================================
   HERO LIGHTS
   ========================================================= */

    .ai-hero::before {
        content: "";
        position: absolute;
        width: 520px;
        height: 520px;
        left: -210px;
        top: -270px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(6, 182, 212, .22), transparent 68% );
        pointer-events: none;
    }


    .ai-hero::after {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        right: -190px;
        bottom: -250px;
        border-radius: 50%;
        background: radial-gradient( circle, rgba(139, 92, 246, .27), transparent 68% );
        pointer-events: none;
    }


/* =========================================================
   DECORATION
   ========================================================= */

.ai-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ai-glow-one {
    width: 150px;
    height: 150px;
    right: 40%;
    top: -60px;
    background: rgba(34, 211, 238, .10);
    filter: blur(4px);
}

.ai-glow-two {
    width: 130px;
    height: 130px;
    left: 30%;
    bottom: -60px;
    background: rgba(168, 85, 247, .12);
    filter: blur(5px);
}

.ai-hero-circle {
    position: absolute;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
    pointer-events: none;
}

.ai-circle-one {
    width: 240px;
    height: 240px;
    right: 20px;
    top: -110px;
}

.ai-circle-two {
    width: 180px;
    height: 180px;
    left: 28%;
    bottom: -100px;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.ai-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    min-width: 0;
}


/* =========================================================
   HERO ICON
   ========================================================= */

.ai-hero-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.ai-hero-icon {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    background: linear-gradient( 145deg, #06b6d4, #2563eb 48%, #7c3aed );
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 45px;
    box-shadow: 0 20px 50px rgba(37,99,235,.35), inset 0 1px rgba(255,255,255,.35);
    transform: rotate(-3deg);
    transition: transform .4s ease, box-shadow .4s ease;
}

.ai-hero:hover .ai-hero-icon {
    transform: rotate(3deg) translateY(-5px);
    box-shadow: 0 25px 60px rgba(37,99,235,.45);
}


/* =========================================================
   SPARKLES
   ========================================================= */

.ai-sparkle {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.20);
    animation: aiFloat 3s ease-in-out infinite;
}

.ai-sparkle-one {
    width: 28px;
    height: 28px;
    right: -9px;
    top: -9px;
    background: linear-gradient( 135deg, #f59e0b, #ef4444 );
    font-size: 9px;
}

.ai-sparkle-two {
    width: 25px;
    height: 25px;
    left: -8px;
    bottom: 8px;
    background: linear-gradient( 135deg, #06b6d4, #2563eb );
    font-size: 8px;
    animation-delay: .8s;
}

.ai-sparkle-three {
    width: 22px;
    height: 22px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient( 135deg, #8b5cf6, #ec4899 );
    font-size: 7px;
    animation-delay: 1.5s;
}


@keyframes aiFloat {

    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-7px) rotate(8deg);
    }
}


/* =========================================================
   HERO TEXT
   ========================================================= */

.ai-hero-text {
    max-width: 720px;
}


/* =========================================================
   HERO LABEL
   ========================================================= */

.ai-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50px;
    background: rgba(255,255,255,.08);
    color: #bae6fd;
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

    .ai-hero-label i {
        color: #22d3ee;
    }


/* =========================================================
   HERO MAIN TITLE
   ========================================================= */

/*
   تیتر اصلی بنر کاملاً سفید
*/

.ai-hero-text h1 {
    margin: 0 0 12px;
    color: #ffffff !important;
    font-size: 34px;
    font-weight: 950;
    line-height: 1.6;
    text-shadow: 0 3px 20px rgba(0,0,0,.20);
}


    /*
   فقط عبارت Machine Learning رنگی باشد
*/

    .ai-hero-text h1 span {
        color: #67e8f9 !important;
        text-shadow: 0 0 25px rgba(34,211,238,.20);
    }


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.ai-hero-text p {
    max-width: 690px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 2.2;
}


/* =========================================================
   HERO FEATURES
   ========================================================= */

.ai-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

    .ai-hero-features span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 9px;
        border: 1px solid rgba(255,255,255,.09);
        border-radius: 10px;
        background: rgba(255,255,255,.06);
        color: rgba(255,255,255,.80);
        font-size: 8px;
        font-weight: 600;
    }

    .ai-hero-features i {
        color: #67e8f9;
    }


/* =========================================================
   AI CODE WINDOW
   ========================================================= */

.ai-code-window {
    position: relative;
    z-index: 3;
    width: 290px;
    min-width: 290px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(5,10,22,.83);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    backdrop-filter: blur(15px);
    direction: ltr;
}

.ai-code-header {
    display: flex;
    align-items: center;
    height: 37px;
    padding: 0 12px;
    background: rgba(255,255,255,.05);
}

.ai-window-dots {
    display: flex;
    gap: 5px;
}

    .ai-window-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.35);
    }

.ai-code-header small {
    margin-left: auto;
    color: rgba(255,255,255,.40);
    font-size: 8px;
}

.ai-code-body {
    padding: 20px;
    font-family: Consolas, Monaco, monospace;
    font-size: 10px;
    line-height: 2.3;
}

.ai-code-purple {
    color: #c084fc;
}

.ai-code-blue {
    color: #60a5fa;
}

.ai-code-green {
    color: #4ade80;
}

.ai-code-white {
    color: #e5e7eb;
}

.ai-code-result {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(16,185,129,.08);
    color: #6ee7b7;
    font-family: sans-serif;
    font-size: 8px;
}

    .ai-code-result i {
        color: #34d399;
    }


/* =========================================================
   SECTION HEADING
   ========================================================= */

.ai-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 5px;
}

.ai-section-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient( 135deg, #06b6d4, #2563eb, #7c3aed );
    color: #fff;
    font-size: 19px;
    box-shadow: 0 10px 25px rgba(37,99,235,.20);
}

.ai-section-heading span {
    color: #2563eb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .5px;
}

.ai-section-heading h2 {
    margin: 2px 0;
    color: #202938;
    font-size: 22px;
    font-weight: 900;
}

.ai-section-heading p {
    margin: 0;
    color: #8b95a3;
    font-size: 10px;
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.ai-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.ai-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(30,41,59,.065);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(30,41,59,.055);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

    .ai-project-card:hover {
        transform: translateY(-8px);
        border-color: rgba(37,99,235,.15);
        box-shadow: 0 23px 48px rgba(30,41,59,.12);
    }


/* =========================================================
   PROJECT IMAGE
   ========================================================= */

.ai-project-image-wrap {
    position: relative;
    height: 165px;
    overflow: hidden;
    background: linear-gradient( 135deg, #ecfeff, #eef2ff );
}

.ai-project-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}

.ai-project-card:hover
.ai-project-image {
    transform: scale(1.07);
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.ai-image-overlay {
    position: absolute;
    top: 13px;
    right: 13px;
}

    .ai-image-overlay span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        border-radius: 50px;
        background: rgba(15,23,42,.72);
        color: #fff;
        font-size: 9px;
        font-weight: 800;
        backdrop-filter: blur(8px);
    }

    .ai-image-overlay i {
        color: #67e8f9;
    }


/* =========================================================
   FLOATING ICON
   ========================================================= */

.ai-project-floating-icon {
    position: absolute;
    left: 13px;
    bottom: -18px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 13px;
    background: linear-gradient( 135deg, #06b6d4, #2563eb, #7c3aed );
    color: #fff;
    font-size: 14px;
    box-shadow: 0 7px 18px rgba(37,99,235,.22);
    transition: transform .3s ease;
}

.ai-project-card:hover
.ai-project-floating-icon {
    transform: rotate(-8deg) scale(1.07);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.ai-project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 17px 16px;
}


/* =========================================================
   CARD TOP
   ========================================================= */

.ai-project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.ai-project-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #526173;
    font-size: 10px;
    font-weight: 800;
}

    .ai-project-type i {
        color: #2563eb;
    }


/* =========================================================
   VERSION
   ========================================================= */

.ai-version {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

    .ai-version i {
        color: #7c3aed;
    }


/* =========================================================
   CARD TITLE
   ========================================================= */

.ai-project-title {
    margin: 0 0 11px;
    color: #202938;
    /*
       بزرگ‌تر از نسخه قبلی
    */
    font-size: 18px;
    font-weight: 900;
    line-height: 1.7;
    transition: color .25s ease;
}

.ai-project-card:hover
.ai-project-title {
    color: #2563eb;
}


/* =========================================================
   CARD DESCRIPTION
   ========================================================= */

.ai-project-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 14px;
    color: #000;
    /*
       توضیحات هم کمی بزرگ‌تر
    */
    font-size: 13px;
    font-weight: 500;
    line-height: 2;
}


/* =========================================================
   TAGS
   ========================================================= */

.ai-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    background: #f5f7fb;
    color: #000102;
    /*
       فونت تگ‌ها بزرگ‌تر
    */
    font-size: 9px;
    font-weight: 700;
}

    .ai-tag i {
        color: #6366f1;
    }

.ai-tag-ai {
    color: #2563eb;
    background: rgba(37,99,235,.06);
    border-color: rgba(37,99,235,.10);
}

    .ai-tag-ai i {
        color: #2563eb;
    }

.ai-tag-ml {
    color: #7c3aed;
    background: rgba(124,58,237,.06);
    border-color: rgba(124,58,237,.10);
}

    .ai-tag-ml i {
        color: #7c3aed;
    }


/* =========================================================
   CARD FOOTER
   ========================================================= */

.ai-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border-top: 1px solid #edf0f4;
    background: linear-gradient( 145deg, #fff, #fafbfc );
}

.ai-project-action-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ai-download-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(37,99,235,.08);
    color: #2563eb;
    font-size: 11px;
}

.ai-project-action-info strong {
    display: block;
    color: #3b4656;
    font-size: 9px;
    font-weight: 800;
}

.ai-project-action-info small {
    display: block;
    margin-top: 2px;
    color: #9aa3af;
    font-size: 8px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.ai-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: linear-gradient( 135deg, #06b6d4, #2563eb, #6366f1 );
    color: #fff;
    text-decoration: none;
    /*
       فونت دکمه کمی بزرگ‌تر
    */
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(37,99,235,.16);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .ai-project-button:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(37,99,235,.25);
    }

    .ai-project-button i {
        font-size: 10px;
        transition: transform .25s ease;
    }

    .ai-project-button:hover i {
        transform: translateX(-3px);
    }


/* =========================================================
   EMPTY STATE
   ========================================================= */

.ai-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 25px;
    border: 1px solid #edf0f5;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(30,41,59,.055);
}

.ai-empty-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient( 135deg, #ecfeff, #eef2ff );
    color: #2563eb;
    font-size: 27px;
}

.ai-empty-state h3 {
    margin: 0 0 7px;
    color: #293447;
    font-size: 18px;
    font-weight: 850;
}

.ai-empty-state p {
    margin: 0;
    color: #8b95a3;
    font-size: 11px;
}


/* =========================================================
   BOTTOM BANNER
   ========================================================= */

.ai-bottom-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 45px;
    padding: 22px 25px;
    border: 1px solid rgba(37,99,235,.10);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient( 135deg, #ecfeff, #eff6ff 50%, #eef2ff );
}

    .ai-bottom-banner::after {
        content: "";
        position: absolute;
        width: 200px;
        height: 200px;
        left: -90px;
        top: -100px;
        border-radius: 50%;
        background: rgba(6,182,212,.06);
    }

.ai-bottom-icon {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient( 135deg, #06b6d4, #2563eb );
    color: #fff;
    font-size: 19px;
    box-shadow: 0 8px 20px rgba(37,99,235,.18);
}

.ai-bottom-banner h3 {
    margin: 0 0 4px;
    color: #263142;
    font-size: 15px;
    font-weight: 900;
}

.ai-bottom-banner p {
    margin: 0;
    color: #7b8594;
    font-size: 10px;
    line-height: 2;
}

.ai-bottom-badge {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e7ebf2;
    border-radius: 50px;
    background: #fff;
    color: #2563eb;
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 5px 15px rgba(30,41,59,.05);
}

    .ai-bottom-badge i {
        color: #06b6d4;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .ai-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-code-window {
        width: 270px;
        min-width: 270px;
    }

    .ai-hero-text h1 {
        font-size: 29px;
    }

    .ai-project-title {
        font-size: 19px;
    }

    .ai-project-description {
        font-size: 12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .ai-projects-page {
        padding: 15px 10px 40px;
    }


    /* HERO */

    .ai-hero {
        display: block;
        min-height: auto;
        padding: 25px 18px;
        margin-bottom: 25px;
        border-radius: 22px;
    }

    .ai-hero-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 17px;
    }


    /* HERO ICON */

    .ai-hero-icon {
        width: 80px;
        height: 80px;
        border-radius: 24px;
        font-size: 40px;
    }


    .ai-sparkle-one {
        width: 23px;
        height: 23px;
        right: -7px;
        top: -7px;
        font-size: 7px;
    }

    .ai-sparkle-two {
        width: 21px;
        height: 21px;
        left: -6px;
        font-size: 6px;
    }

    .ai-sparkle-three {
        width: 19px;
        height: 19px;
        right: -4px;
        font-size: 6px;
    }


    /* HERO TEXT */

    .ai-hero-label {
        font-size: 8px;
    }

    .ai-hero-text h1 {
        font-size: 22px;
        line-height: 1.8;
        color: #fff !important;
    }

        .ai-hero-text h1 span {
            color: #67e8f9 !important;
        }

    .ai-hero-text p {
        font-size: 10px;
        line-height: 2.15;
    }


    /* HERO FEATURES */

    .ai-hero-features {
        justify-content: center;
        gap: 5px;
        margin-top: 15px;
    }

        .ai-hero-features span {
            padding: 6px 8px;
            font-size: 6px;
        }


    /* CODE */

    .ai-code-window {
        width: 100%;
        min-width: 0;
        max-width: 330px;
        margin: 25px auto 0;
    }


    /* SECTION */

    .ai-section-heading {
        gap: 10px;
        margin-bottom: 18px;
    }

    .ai-section-icon {
        width: 43px;
        height: 43px;
        min-width: 43px;
        border-radius: 13px;
        font-size: 15px;
    }

    .ai-section-heading span {
        font-size: 7px;
    }

    .ai-section-heading h2 {
        font-size: 17px;
    }

    .ai-section-heading p {
        font-size: 8px;
    }


    /* GRID */

    .ai-project-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }


    /* CARD */

    .ai-project-card {
        border-radius: 18px;
    }

    .ai-project-image-wrap {
        height: 155px;
    }

    .ai-project-body {
        padding: 17px 15px 15px;
    }


    /*
       فونت موبایل کارت هم بزرگ‌تر از نسخه قبلی
    */

    .ai-project-type {
        font-size: 9px;
    }

    .ai-project-title {
        font-size: 16px;
        line-height: 1.7;
    }

    .ai-project-description {
        font-size: 10.5px;
        line-height: 1.95;
    }

    .ai-tag {
        font-size: 8px;
        padding: 6px 9px;
    }


    /* FOOTER */

    .ai-project-footer {
        padding: 12px;
    }

    .ai-project-action-info {
        display: none;
    }

    .ai-project-button {
        width: 100%;
        min-height: 42px;
        font-size: 10px;
    }


    /* BOTTOM */

    .ai-bottom-banner {
        align-items: flex-start;
        margin-top: 30px;
        padding: 17px;
        border-radius: 17px;
    }

    .ai-bottom-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 12px;
        font-size: 15px;
    }

    .ai-bottom-banner h3 {
        font-size: 12px;
    }

    .ai-bottom-banner p {
        font-size: 8px;
    }

    .ai-bottom-badge {
        display: none;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .ai-projects-page {
        padding-left: 7px;
        padding-right: 7px;
    }

    .ai-hero {
        padding: 25px 15px;
    }

    .ai-hero-text h1 {
        font-size: 20px;
        color: #fff !important;
    }

        .ai-hero-text h1 span {
            color: #67e8f9 !important;
        }

    .ai-hero-text p {
        font-size: 9px;
    }

    .ai-hero-features span {
        font-size: 5.5px;
        padding: 5px 7px;
    }

    .ai-project-image-wrap {
        height: 155px;
    }

    .ai-project-title {
        font-size: 16px;
    }

    .ai-project-description {
        font-size: 10.5px;
    }
}
