@font-face {
    font-family: 'vazir';
    src: url('../font/Vazir-Medium.ttf');
}

:root {
    --gold-light: #FFC314;
    --gold-dark: #F9AE00;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(35, 35, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'vazir' !important;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0a0a0a;
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(to bottom, rgba(10, 10, 15, 0.6) 0%, rgba(10, 10, 15, 0.95) 100%), url('../images/back.jpg');
}

.container {
    padding-top: 0px !important;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 10px 0;
}

@keyframes movment {
    0% {
        margin-right: 0px;
    }

    50% {
        margin-right: 10px;
    }
}

.btn-360-tour {
    animation: movment 1s infinite;
    transition: 1s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    direction: ltr;
}

    .logo svg {
        width: 28px;
        height: 28px;
        stroke: var(--text-main);
        fill: none;
        stroke-width: 1.5;
    }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

    .nav-links a {
        text-decoration: none;
        color: var(--text-muted);
        font-size: 14px;
        transition: color 0.3s;
        position: relative;
    }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--text-main);
        }

            .nav-links a.active::after {
                content: '';
                position: absolute;
                bottom: -8px;
                left: 50%;
                transform: translateX(-50%);
                width: 20px;
                height: 2px;
                background-color: var(--gold-light);
                border-radius: 2px;
            }

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.mobile-nav-scroll {
    display: none;
}

.hero-section {
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}

    .hero-title .gold-text {
        color: var(--gold-light);
        display: block;
    }

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.main-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 100%);
    box-shadow: 0 8px 32px rgba(249, 174, 0, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    min-width: 280px;
    transition: transform 0.2s;
}

    .main-cta-btn svg {
        fill: #222;
        width: 24px;
        height: 24px;
    }

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 16px;
    margin-top: 30px;
}

.avatars {
    display: flex;
    flex-direction: row-reverse;
}

    .avatars img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid #222;
        margin-left: -12px;
        object-fit: cover;
    }

        .avatars img:last-child {
            margin-left: 0;
        }

.social-proof p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: right;
}

.cards-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.glass-card {
    padding-bottom: 0px !important;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: background 0.3s;
}

.card-icon {
    margin-bottom: 20px;
}

    .card-icon svg {
        width: 48px;
        height: 48px;
        stroke: var(--gold-light);
        fill: none;
        stroke-width: 1.2;
    }

.glass-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.glass-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    width: 100%;
}

    .card-arrow svg {
        width: 20px;
        height: 20px;
        stroke: white;
        stroke-width: 2;
        fill: none;
    }

.bottom-section {
    margin-top: 20px;
    margin-bottom: 10px;
}

.video-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 10px 20px;
    display: flex;
    padding-left: 10px;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
}

.video-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-badge {
    color: var(--gold-light);
    font-size: 11px;
    margin-bottom: 8px;
    display: block;
}

.video-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.video-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.video-footer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.watch-btn {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .watch-btn svg {
        width: 16px;
        height: 16px;
        stroke: var(--gold-light);
        fill: none;
        stroke-width: 2;
    }

.video-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 50px;
}

.video-thumbnail {
    width: 180px;
    border-radius: 16px;
    position: relative;
    background: #333;
    overflow: hidden;
    flex-shrink: 0;
    height: 150px;
}

    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.8;
    }

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

    .play-btn svg {
        width: 20px;
        height: 20px;
        fill: white;
        margin-right: -4px;
    }

.stats-panel {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .stat-item svg {
        width: 28px;
        height: 28px;
        stroke: var(--gold-light);
        fill: none;
        margin-bottom: 12px;
        stroke-width: 1.5;
    }

    .stat-item h4 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .stat-item p {
        font-size: 12px;
        color: var(--text-muted);
    }

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    header {
        padding: 16px 0 10px 0;
    }

    .mobile-nav-scroll {
        border-top: 1px solid rgba(255, 255, 255, 0.185);
        border-bottom: 1px solid rgba(255, 255, 255, 0.185);
        padding: 10px;
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 50px;
        direction: ltr;
        padding-bottom: 15px;
    }

        .mobile-nav-scroll a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 12px;
            position: relative;
        }

            .mobile-nav-scroll a.active {
                color: var(--text-main);
            }

                .mobile-nav-scroll a.active::after {
                    content: '';
                    position: absolute;
                    bottom: -6px;
                    left: 50%;
                    transform: translateX(-50%);
                    width: 16px;
                    height: 2px;
                    background-color: var(--gold-light);
                    border-radius: 2px;
                }

    .hero-title {
        font-size: 37px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .main-cta-btn {
        min-width: 240px;
        font-size: 15px;
        padding: 10px 20px;
    }

    .social-proof {
        margin-top: 20px;
    }

    .cards-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 20px;
    }

    .glass-card {
        padding: 16px 10px;
        padding-bottom: 0px !important;
        border-radius: 16px;
        text-align: right;
    }

    .card-icon {
        text-align: left;
        margin-bottom: 5px;
    }

        .card-icon svg {
            margin-top: -5px !important;
            background: #00000038;
            width: 38px;
            height: 38px;
            padding: 5px;
            border-radius: 10px;
        }

    .glass-card h3 {
        font-size: 12px;
        white-space: nowrap;
    }

    .glass-card p {
        font-size: 9px;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .card-arrow {
        width: auto;
        height: auto;
    }

        .card-arrow svg {
            width: 14px;
            height: 14px;
        }

    .video-card {
        flex-direction: row;
        padding: 16px;
        gap: 12px;
        border-radius: 16px;
    }

    .video-content {
        text-align: right;
    }

    .video-badge {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .video-content h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .video-content p {
        font-size: 10px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .video-thumbnail {
        width: 90px !important;
        height: 90px !important;
        border-radius: 12px;
    }

    .play-btn {
        width: 32px;
        height: 32px;
    }

        .play-btn svg {
            width: 14px;
            height: 14px;
        }

    .video-footer {
        gap: 10px;
    }

    .watch-btn {
        font-size: 10px;
    }

    .video-time {
        font-size: 9px;
        padding: 2px 6px;
    }

    .stats-panel {
        flex-wrap: nowrap;
        padding: 10px 0;
    }

    .stat-item h4 {
        font-size: 16px;
    }

    .stat-item p {
        font-size: 9px;
    }

    .stat-item svg {
        width: 22px;
        height: 22px;
        margin-bottom: 8px;
    }

    .btn-360-tour {
        padding: 2px 15px;
        font-size: 15px;
        font-weight: 700;
    }
}

@media (min-width:768px) {
    .btn-360-tour {
        padding: 7px 25px;
        font-size: 17px;
        font-weight: 800;
    }
}

.btn-360-tour {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f9ae00;
    border-radius: 50px;
    color: black;
    text-decoration: none;
    border: none;
    cursor: pointer;
    direction: rtl;
    transition: transform 0.2s;
}

    .btn-360-tour:hover {
        transform: scale(1.02);
    }

.btn-360-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0 16px;
}

.btn-360-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: black;
    stroke-width: 1.5;
}

:root {
    --bg-main: #0b111e;
    --card-bg: rgba(22, 30, 46, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --gold-light: #FFC314;
    --gold-dark: #d99a00;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --green-status: #10b981;
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'vazir', Tahoma, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(26, 38, 65, 0.4) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.breadcrumb {
    display: none;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: right;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.filters-scroll {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .filter-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-main);
    }

    .filter-btn.active {
        background: var(--gold-dark);
        color: #000;
        font-weight: 700;
        border-color: var(--gold-light);
    }

.mobile-filter-icon {
    display: none;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -6px !important;
    cursor: pointer;
}

.search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(20, 27, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px 16px 50px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

    .search-input::placeholder {
        color: var(--text-muted);
    }

    .search-input:focus {
        border-color: var(--gold-light);
    }

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    perspective: 1500px;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center center;
    opacity: 1;
    transform: scale(1) rotateX(0) rotateY(0);
}

    .project-card.filtering-out {
        opacity: 0;
        transform: scale(0.7) rotateX(45deg) translateY(40px);
        pointer-events: none;
    }

    .project-card.hidden {
        display: none !important;
    }

    /* رفع مشکل: در حالت موبایل (flex-direction: row) تگ <a> داخل کارت
       عرض کامل نمی‌گرفت (فقط با stretch در حالت column کار می‌کرد)
       و همین باعث می‌شد عکس و بدنه کارت ناقص/نامعلوم دیده بشن.
       این قانون <a> رو مجبور می‌کنه همیشه کل فضای کارت رو با flex پر کنه. */
    .project-card > a {
        display: flex;
        flex-direction: inherit;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
    }

.card-img-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
}

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: auto;
    min-height: 40px;
}

.card-meta-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 8px;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-active .status-dot {
    background-color: var(--gold-light);
}

.status-done .status-dot {
    background-color: var(--green-status);
}

.status-active {
    color: var(--text-muted);
}

.status-done {
    color: var(--green-status);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
    width: 35px;
}

.progress-bar-bg {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold-light);
    border-radius: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: var(--text-muted);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .footer-item svg {
        width: 14px;
        height: 14px;
        stroke: var(--text-muted);
        fill: none;
        stroke-width: 2;
    }

.load-more-container {
    text-align: center;
    margin-bottom: 60px;
}

.load-more-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

    .load-more-btn:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .load-more-btn svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
    }

.stats-section {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    direction: ltr;
    text-align: right;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    padding-top: 10px;
}

    .stat-icon svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.5;
    }

.stat-info h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    .breadcrumb {
        display: block;
    }

    .page-title {
        font-size: 28px;
        text-align: right;
        margin-bottom: 8px;
    }

    .page-subtitle {
        font-size: 13px;
        text-align: right;
    }

    .page-header {
        text-align: right;
        margin-bottom: 24px;
    }

    .controls-section {
        gap: 16px;
        margin-bottom: 24px;
    }

    .search-container {
        order: 1;
    }

    .filters-wrapper {
        order: 2;
        justify-content: flex-start;
    }

    .filters-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

        .filters-scroll::-webkit-scrollbar {
            display: none;
        }

    .mobile-filter-icon {
        display: flex;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        flex-direction: row;
        height: 140px;
        border-radius: 16px;
    }

    .card-img-wrapper {
        width: 40%;
        height: 100%;
    }

    .card-category {
        top: 8px;
        right: 8px;
        font-size: 9px;
        padding: 2px 8px;
    }

    .card-body {
        width: 60%;
        padding: 12px;
        justify-content: center;
    }

    .card-title {
        font-size: 13px;
        margin-bottom: auto;
    }

    .card-desc,
    .card-footer {
        display: none;
    }

    .card-meta-status {
        margin-top: auto;
        font-size: 10px;
    }

    .progress-container {
        margin-bottom: 0;
    }

    .progress-text {
        font-size: 10px;
        width: 30px;
    }

    .progress-bar-bg {
        height: 3px;
    }

    .load-more-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-section {
        display: none;
    }
}
