:root {
    --primary: #0a0a0a;
    --primary-light: #1a1a1a;
    --accent: #00e676;
    --accent-dark: #00c853;
    --white: #ffffff;
    --gray: #b0b0b0;
    --card-bg: rgba(20, 20, 20, 0.75);
    --glass-bg: rgba(10, 10, 10, 0.85);
    --border-glow: 0 0 18px rgba(0, 230, 118, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', system-ui, sans-serif;
    background-color: #0a0a0a;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,230,118,0.07) 1px, transparent 0);
    background-size: 40px 40px;
    color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
    /* پس‌زمینهٔ تیره هماهنگ با تم اصلی، کمی تیره‌تر برای تمایز */
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(8px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 230, 118, 0.08);
}

header.scrolled {
    background: rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(12px);
    padding: 10px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 230, 118, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 2;
}

.logo svg {
    width: 42px;
    height: 42px;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent);
}

/* ========== NAVIGATION (Desktop) ========== */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chip-toggle {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.chip-toggle svg {
    width: 40px;
    height: 40px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: -10px;
    background: rgba(15, 17, 22, 0.96);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1002;               /* بالاتر از نوار پیشرفت */
    pointer-events: none;
}

.chip-toggle:hover .nav-dropdown,
.chip-toggle.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.nav-dropdown li a:hover {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent);
}

/* منوی موبایل (همبرگر) */
.menu-toggle {
    display: none; /* در دسکتاپ مخفی، در مدیا کوئری موبایل فعال می‌شود */
    position: relative;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1002;
    width: 28px;
    height: 20px;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    position: absolute;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* تبدیل به ضربدر */
.menu-toggle.open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* منوی کشویی موبایل */
.mobile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;               /* لنگر چپ (به‌دلیل RTL، منو به سمت راست باز می‌شود) */
    right: auto;           /* غیرفعال کردن راست */
    background: rgba(15, 17, 22, 0.96);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    min-width: 180px;
    max-width: calc(100vw - 40px); /* هرگز از عرض صفحه بیرون نزند */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1003;
    pointer-events: none;
}

.menu-toggle.open .mobile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.mobile-dropdown li a:hover {
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent);
}


/* ========== Hero آینه‌ای یونیک (نسخه نهایی) ========== */
.hero-mirror {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 30%, #0a0f0a, #030303);
    overflow: hidden;
    padding: 100px 20px 60px;
}

/* کانواس ذرات (در صورت استفاده) */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* کانتینر اصلی */
.hero-mirror-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* شعار سمت راست و چپ */
.hero-mirror-left, .hero-mirror-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mirror-word {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(0,230,118,0.4);
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    white-space: nowrap;
}
.hero-mirror-right .mirror-word .accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
}

/* لوگو و حلقه‌ها */
.hero-mirror-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-mirror-img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0,230,118,0.5));
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}
.hero-mirror-img:hover {
    transform: scale(1.02);
}
.mirror-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,230,118,0.5);
    animation: mirrorSpin 14s linear infinite;
    box-shadow: 0 0 15px rgba(0,230,118,0.3);
}
.mirror-ring-delay {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0,230,118,0.2);
    animation: mirrorSpin 20s linear reverse infinite;
}
.mirror-ring-small {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(0,230,118,0.3);
    animation: mirrorSpin 10s linear infinite;
}
@keyframes mirrorSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* نوار ابزار شیشه‌ای (به جای دکمه‌ها) */
.mirror-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    padding: 8px 24px;
    border-radius: 60px;
    border: 1px solid rgba(0,230,118,0.2);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.mirror-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.25s ease;
    background: transparent;
}
.mirror-action-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}
.mirror-action-btn span {
    font-size: 0.9rem;
}
.mirror-action-btn:hover {
    background: rgba(0,230,118,0.15);
    box-shadow: 0 0 12px rgba(0,230,118,0.3);
    transform: translateY(-2px);
}
.action-sep {
    width: 1px;
    height: 24px;
    background: rgba(0,230,118,0.3);
}

/* بخش تایپ کلمات */
.hero-mirror-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 50px;
}
.mirror-typed {
    font-family: monospace;
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 40px;
    display: inline-block;
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
    border: 1px solid rgba(0,230,118,0.2);
}
.mirror-prefix {
    color: var(--accent);
}
.mirror-typed-text {
    color: #fff;
    text-shadow: 0 0 8px var(--accent);
    font-weight: 500;
}
.mirror-cursor {
    color: var(--accent);
    animation: blinkMirror 1s step-end infinite;
}
@keyframes blinkMirror {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* فلش اسکرول (بدون متن) */
.scroll-down-hint {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 3;
}
.scroll-down-hint:hover {
    opacity: 1;
}
.scroll-down-hint svg {
    width: 30px;
    height: 30px;
    color: var(--accent);
    animation: bounceMirror 1.8s infinite;
}
.scroll-hint-text {
    display: none;
}
@keyframes bounceMirror {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== واکنش‌گرایی ========== */
@media (max-width: 992px) {
    .hero-mirror-container {
        gap: 30px;
    }
    .mirror-word {
        font-size: 1.5rem;
        white-space: normal;
    }
}
@media (max-width: 768px) {
    .hero-mirror {
        padding: 80px 16px 50px;
    }
    .hero-mirror-container {
        flex-direction: column;
        gap: 20px;
    }
    .hero-mirror-left, .hero-mirror-right {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    .mirror-word {
        font-size: 1.2rem;
        white-space: normal;
        text-align: center;
    }
    .hero-mirror-img {
        width: 140px;
    }
    .mirror-ring {
        width: 200px;
        height: 200px;
    }
    .mirror-ring-delay {
        width: 240px;
        height: 240px;
    }
    .mirror-ring-small {
        width: 170px;
        height: 170px;
    }
    .mirror-actions {
        padding: 6px 16px;
        gap: 12px;
    }
    .mirror-action-btn {
        padding: 6px 12px;
    }
    .mirror-action-btn span {
        font-size: 0.75rem;
    }
    .mirror-action-btn svg {
        width: 16px;
        height: 16px;
    }
    .action-sep {
        height: 20px;
    }
    .mirror-typed {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    .scroll-down-hint svg {
        width: 24px;
        height: 24px;
    }
}


.slogan-container {
    margin-bottom: 2.5rem;
}

.slogan-line {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.4em;
}

.slogan-line .word {
    display: inline-block;
}

.slogan-line.emphasis {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slogan-line .accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    background: none;
}

/* HERO BUTTONS */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn .btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0,230,118,0.4);
}

.btn-outline {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    box-shadow: 0 0 15px rgba(0,230,118,0.3);
}

/* GLASS SECTIONS */
.glass-section {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

section {
    padding: 80px 30px;
    position: relative;
}

.section-title {
    font-size: 2.3rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(0, 230, 118, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card.holographic {
    background: linear-gradient(135deg, rgba(0,230,118,0.03) 0%, rgba(10,10,10,0.9) 50%);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0,230,118,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px auto;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 1.4rem;
}

/* PROCESS */
.process-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 160px;
}

.step-number {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #111;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    margin: 0 auto 15px;
    transition: border-color 0.2s ease;
}

.step:hover .step-number {
    border-color: var(--accent);
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 18px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}

.contact-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0,230,118,0.25);
}

.contact-btn svg {
    width: 30px;
    height: 30px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0,0,0,0.5);
    font-size: 0.9rem;
    color: var(--gray);
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

/* FAQ MODAL */
.faq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.faq-overlay.active {
    opacity: 1;
    visibility: visible;
}

.faq-modal {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: rgba(15, 17, 22, 0.95);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.faq-overlay.active .faq-modal {
    transform: scale(1);
}

.faq-header {
    background: rgba(0, 230, 118, 0.05);
    padding: 22px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 230, 118, 0.15);
    position: relative;
}

.faq-header-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 8px;
    color: var(--accent);
}

.faq-header h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.faq-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

.faq-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.faq-close:hover {
    color: var(--accent);
}

.faq-body {
    padding: 15px 20px;
    overflow-y: auto;
    flex: 1;
}

.faq-item {
    border: 1px solid rgba(0, 230, 118, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(0, 230, 118, 0.3);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 18px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', system-ui, sans-serif;
}

.faq-question:hover {
    background: rgba(0, 230, 118, 0.03);
}

.faq-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--accent);
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 2000px;
}

.faq-answer-inner {
    padding: 0 18px 16px 18px;
    color: var(--gray);
    line-height: 2;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.faq-answer-inner .highlight {
    color: var(--accent);
    font-weight: 500;
}

/* ========== نوار پیشرفت اسکرول (داخل هدر) ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(0,230,118,0.6);
    pointer-events: none;
}

/* ========== دکمه شناور (FAB) ========== */
.fab {
    position: fixed;
    bottom: 24px;
    left: 24px;                 /* چون سایت RTL است، در سمت چپ قرار می‌گیرد */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;             
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,230,118,0.45);
    z-index: 1500;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(0,230,118,0.6);
}

.fab svg {
    width: 28px;
    height: 28px;
}

/* ========== دکمه بازگشت به بالا ========== */
.back-to-top {
    position: fixed;
    bottom: 90px;               /* فاصله از پایین (بالاتر از FAB) */
    left: 31px;                 /* تراز با FAB */
    width: 44px;                /* کوچک‌تر از FAB */
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.85);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1499;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;       /* در حالت مخفی کلیک نشود */
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;       /* فقط در حالت visible کلیک‌پذیر */
}

.back-to-top:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ========== BOT CARDS (داخل مودال ربات‌های آماده) ========== */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.bot-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bot-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0,230,118,0.15);
}

.bot-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.bot-card h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.bot-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.bot-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.bot-link:hover {
    background: var(--accent);
    color: #000;
}

.bot-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px auto;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

/* ========== محتوای مودال ربات اختصاصی ========== */
.custom-bot-info {
    text-align: center;
    line-height: 2.2;
    font-size: 1.05rem;
}

.custom-bot-info strong {
    color: var(--accent);
}

.custom-bot-info p {
    margin-bottom: 1.2rem;
    color: #ddd;
}

/* ========== محتوای مودال پشتیبانی ========== */
.support-info {
    text-align: right;
    line-height: 2.2;
    font-size: 1rem;
    color: #ddd;
}

.support-info p {
    margin-bottom: 1rem;
}

.support-info h4 {
    color: var(--accent);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.support-info ul {
    list-style: none;
    padding-right: 0;
}

.support-info ul li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 0.6rem;
}

.support-info ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.support-info .highlight {
    color: var(--accent);
    font-weight: 600;
}

.support-info strong {
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    header {
        padding: 12px 18px;
    }

    header.scrolled {
        padding: 8px 18px;
    }

    .logo svg {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 22px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .signature-graphic {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    .slogan-line {
        font-size: 1.9rem;
    }

    .slogan-line.emphasis {
        font-size: 2.3rem;
    }

    .hero-content {
        padding: 10px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    section {
        padding: 60px 18px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .step {
        min-width: auto;
    }

    .contact-btn {
        padding: 15px 25px;
        font-size: 0.9rem;
    }

    /* حذف backdrop-filter در موبایل برای روان‌تر شدن */
    .glass-section {
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: rgba(15, 17, 22, 0.95);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    background: rgba(0, 230, 118, 0.05);
    padding: 22px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 230, 118, 0.15);
    position: relative;
}

.modal-header h3 {
    color: var(--accent);
    font-size: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 25px 20px;
    overflow-y: auto;
    flex: 1;
}


@media (max-width: 768px) {
    .hero-logo {
        width: min(250px, 70vw);   /* در موبایل کوچک‌تر */
    }
}

html, body {
    overflow-x: hidden;
}


/* ========== کارت‌های سرویس کوچک‌تر (بدون توضیح) ========== */
.service-card-sm {
    padding: 25px 18px;
}
.service-card-sm .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}
.service-card-sm h3 {
    font-size: 1.15rem;
    margin-bottom: 0;
}
.service-card-sm p {
    display: none;            /* حذف توضیحات قبلی */
}

/* ========== گرید کارت‌های سایت (داخل مودال) ========== */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.site-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.site-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0,230,118,0.15);
}

.site-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px auto;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-card-icon svg {
    width: 100%;
    height: 100%;
}

.site-card h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1rem;
}

.site-link {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.site-link:hover {
    background: var(--accent);
    color: #000;
}

/* محتوای مودال‌های جدید */
.custom-site-info,
.consultation-info {
    text-align: center;
    line-height: 2.2;
    font-size: 1rem;
    color: #ddd;
}
.custom-site-info strong,
.consultation-info strong {
    color: var(--accent);
}

/* برای نمایش ۶ کارت در دو ردیف سه‌تایی (اختیاری، ولی ظاهر بهتری می‌دهد) */
@media (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.seo-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
    color: #fff;
    font-size: 1rem;
}

/* ========== WHY SYNTAX MODAL STYLE ========== */
.why-syntax-body {
    padding: 20px 25px;
    color: #ddd;
    line-height: 2.1;
}

.why-syntax-section {
    margin-bottom: 35px;
}

.why-syntax-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px auto;
    color: var(--accent);
}

.why-syntax-icon svg {
    width: 100%;
    height: 100%;
}

.why-syntax-section h4 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-align: center;
}

.why-syntax-section p {
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
}

.why-syntax-section ul {
    list-style: none;
    padding: 0;
}

.why-syntax-section ul li {
    position: relative;
    padding: 0 25px 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.why-syntax-section ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.why-syntax-section ul li strong {
    color: #fff;
    display: inline-block;
    margin-bottom: 4px;
}

.services-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.service-item-modal {
    background: rgba(0,230,118,0.03);
    border: 1px solid rgba(0,230,118,0.1);
    border-radius: 12px;
    padding: 15px;
}

.service-item-modal strong {
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.service-item-modal p {
    font-size: 0.9rem;
    margin-bottom: 0;
    text-align: right;
}

.why-syntax-cta {
    text-align: center;
    background: rgba(0,230,118,0.03);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(0,230,118,0.1);
    margin-top: 10px;
}

.why-syntax-cta p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.highlight {
    color: var(--accent);
    font-weight: 500;
}

@media (max-width: 768px) {
    .services-grid-modal {
        grid-template-columns: 1fr;
    }
}


/* ========== PORTFOLIO PAGE STYLES (نسخه بهبودیافته) ========== */
.portfolio-page {
    padding-top: 120px;
    min-height: 100vh;
}

.portfolio-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.portfolio-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-subtitle {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 20px 50px;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid rgba(0,230,118,0.2);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
    border-color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ========== گرید کارت‌ها (بهینه برای موبایل و تک‌عنصری) ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px); /* عرض ثابت، مرکز می‌شوند */
    justify-content: center;          /* تک‌کارت را وسط می‌چیند */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.portfolio-card-new {
    background: rgba(18, 18, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(0, 230, 118, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.portfolio-card-new:hover {
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 0 35px rgba(0, 230, 118, 0.15), 0 15px 35px -5px rgba(0,0,0,0.6);
    transform: translateY(-4px);
}

/* کانتینر تصویر */
.pcard-img-wrap {
    position: relative;
    margin: 10px 10px 0 10px;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #0a0a0a;
}

.pcard-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card-new:hover .pcard-img-wrap img {
    transform: scale(1.04);
}

/* دسته‌بندی روی عکس */
.pcard-category {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(0,230,118,0.25);
}

/* دکمه ویدئو */
.pcard-video-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--accent);
    border: 1px solid rgba(0,230,118,0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}
.pcard-video-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* بدنه کارت */
.pcard-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pcard-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    position: relative;
    padding-right: 14px;
}

/* خط عمودی سبز کنار عنوان */
.pcard-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0,230,118,0.5);
}

.pcard-desc {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* لینک مشاهده */
.pcard-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease, color 0.2s;
    width: fit-content;
    align-self: flex-end;
    margin-top: auto;
}

.pcard-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.pcard-link:hover {
    color: #fff;
    gap: 10px;
}

.pcard-link:hover .arrow {
    transform: translateX(-4px);
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .pcard-body {
        padding: 14px 14px 16px;
    }
    .pcard-title {
        font-size: 1.1rem;
    }
    .pcard-desc {
        font-size: 0.82rem;
    }
}

/* ======================== */
/*   CASE STUDY SECTION     */
/* ======================== */
.case-study-card {
    display: flex;
    flex-direction: row;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0,230,118,0.15);
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.case-study-card:hover {
    border-color: rgba(0,230,118,0.4);
    box-shadow: 0 0 30px rgba(0,230,118,0.1);
}

.case-study-image {
    flex: 0 0 45%;
    overflow: hidden;
    background: #0a0a0a;
}
.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.case-study-card:hover .case-study-image img {
    transform: scale(1.02);
}

.case-study-content {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study-badge {
    display: inline-block;
    background: rgba(0,230,118,0.15);
    color: var(--accent);
    font-size: 0.85rem;
    padding: 5px 14px;
    border-radius: 30px;
    width: fit-content;
    margin-bottom: 18px;
    font-weight: 500;
}

.case-study-content h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-study-content p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 25px;
}

.case-study-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

/* مودال کیس‌استادی */
.case-study-modal-box {
    max-width: 800px;
}

.case-study-body {
    padding: 30px;
    line-height: 2.3;
    font-size: 1.05rem;
}

.cs-section {
    margin-bottom: 35px;
}

.cs-section h4 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 12px;
    position: relative;
    padding-right: 20px;
}
.cs-section h4::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.cs-section p, .cs-section ul {
    color: #ddd;
}

.cs-section ul {
    list-style: none;
    padding: 0;
}
.cs-section ul li {
    padding-right: 20px;
    position: relative;
    margin-bottom: 8px;
}
.cs-section ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.cs-highlight-box {
    background: rgba(0,230,118,0.04);
    border-right: 4px solid var(--accent);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 20px 0;
    font-weight: 500;
    color: #fff;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .case-study-card {
        flex-direction: column;
    }
    .case-study-image {
        aspect-ratio: 16/9;
    }
    .case-study-content {
        padding: 25px 20px;
    }
    .case-study-content h3 {
        font-size: 1.5rem;
    }
}
/* ======================== */
/*   BLOG PAGE (NEW CARDS)  */
/* ======================== */
.blog-page {
    padding-top: 120px;
    min-height: 100vh;
}
.blog-hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.blog-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.blog-hero p {
    color: var(--gray);
    font-size: 1.2rem;
}
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 20px 50px;
}

/* ===== کارت وبلاگ جدید ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02); /* خیلی شفاف */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0,230,118,0.15);
}

.blog-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a0a0a;
    margin: 8px 8px 0 8px;
    border-radius: 14px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 22px 20px 18px;
}

.blog-category {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    display: block;
    text-transform: none; /* فارسی */
}

.blog-card-body h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 0;
    transition: color 0.2s;
}

/* خط رنگی زیر عنوان در hover */
.blog-card:hover .blog-card-body h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}
.blog-card-body h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}

.blog-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 18px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #888;
    font-size: 0.8rem;
}

.blog-read-more {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
    font-size: 0.9rem;
}

.blog-read-more::after {
    content: '←'; /* چون RTL هست، فلش به چپ */
    display: inline-block;
    transition: transform 0.2s;
}

.blog-read-more:hover {
    gap: 8px;
}
.blog-read-more:hover::after {
    transform: translateX(-3px);
}

/* مودال پست وبلاگ */
.blog-post-modal-box {
    max-width: 800px;
}
.blog-post-body {
    padding: 30px;
    line-height: 2.3;
    font-size: 1.05rem;
    color: #ddd;
}
.blog-post-body h4 {
    color: var(--accent);
    margin: 25px 0 10px;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .blog-card-body h3 {
        font-size: 1.2rem;
    }
}

/* ======================== */
/*   CTA SECTION            */
/* ======================== */
.cta-section {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a2a1a, #0a0a0a, #001a0f);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    border-top: 1px solid rgba(0,230,118,0.2);
    border-bottom: 1px solid rgba(0,230,118,0.2);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-title {
    font-size: 2.3rem;
    color: #fff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-sub {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-btn {
    font-size: 1.2rem;
    padding: 18px 40px;
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 1.8rem;
    }
}

.home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--accent);
    transition: color 0.2s;
    margin-left: 10px;
}
.home-link svg {
    width: 28px;
    height: 28px;
}
.home-link:hover {
    color: #fff;
}

/* ========== اسکرول انیمیشن برای کارت‌های سرویس ========== */
/* ========== انیمیشن اسکرول هوشمند ========== */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: opacity, transform;
}

/* جهت‌های مختلف ورود */
.scroll-reveal.reveal-from-left {
    transform: translateX(-60px);
}
.scroll-reveal.reveal-from-right {
    transform: translateX(60px);
}
.scroll-reveal.reveal-from-bottom {
    transform: translateY(50px);
}

/* هنگام نمایان شدن */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ========== دو ستونه کردن کارت‌های وبلاگ و نمونه‌کار در موبایل ========== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 12px 40px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 12px 40px;
    }
    
    /* تنظیم فونت و فاصله کارت‌ها برای موبایل */
    .blog-card-body {
        padding: 14px 12px 12px;
    }
    .blog-card-body h3 {
        font-size: 1rem;
    }
    .blog-excerpt {
        font-size: 0.75rem;
        line-clamp: 2;
    }
    .blog-meta {
        font-size: 0.7rem;
    }
    
    .pcard-body {
        padding: 12px 10px 14px;
    }
    .pcard-title {
        font-size: 0.95rem;
    }
    .pcard-desc {
        font-size: 0.75rem;
        line-clamp: 2;
    }
    .pcard-link {
        font-size: 0.8rem;
    }
}

/* ========== دو ستونه شدن کارت‌های سرویس در موبایل ========== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 12px;
    }
    
    /* تنظیم فاصله و اندازه آیکون کارت‌های سرویس برای موبایل */
    .service-card-sm {
        padding: 18px 10px;
    }
    .service-card-sm .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    .service-card-sm h3 {
        font-size: 0.95rem;
    }
}

/* ========== افکت درخشش روی کارت‌های سرویس، وبلاگ و نمونه‌کار ========== */
.service-card,
.blog-card,
.portfolio-card-new {
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.2s;
}

.service-card:hover,
.blog-card:hover,
.portfolio-card-new:hover {
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.6), 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 230, 118, 0.8);
}

/* ========== انیمیشن تایپینگ ========== */
#typedWrapper {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    direction: rtl;
}

#typedWrapper .typed-line {
    display: block;
    margin: 5px 0;
}

#typedWrapper .typed-line.emphasis {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#typedWrapper .accent {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    background: none;
}

@media (max-width: 768px) {
    #typedWrapper {
        font-size: 1.9rem;
    }
    #typedWrapper .typed-line.emphasis {
        font-size: 2.3rem;
    }
}

/* ========== دکمه اسکرول به پایین ========== */
@media (max-width: 768px) {
    .scroll-down-hint svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    header {
        backdrop-filter: none !important;
        background: rgba(8, 8, 8, 0.95) !important;
    }
    .modal-box {
        will-change: transform;
    }
}

/* ========== فوتر حرفه‌ای جدید ========== */
.site-footer {
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 230, 118, 0.15);
    padding: 60px 30px 40px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

/* برند */
.footer-brand .footer-logo {
    margin-bottom: 20px;
}
.footer-brand .footer-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}
.footer-brand .footer-logo .logo-text span {
    color: var(--accent);
}
.footer-description {
    color: var(--gray);
    line-height: 1.9;
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.footer-copyright {
    color: #666;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

/* تیترها */
.footer-heading {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* لینک‌های معمولی */
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s, padding-right 0.2s;
    display: inline-block;
    font-size: 0.95rem;
}
.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

/* لیست ارتباطات */
.contact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
    margin: 0;
    width: 100%;
}
.contact-item:hover {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateX(-5px);
}
.contact-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-info {
    display: flex;
    flex-direction: column;
}
.contact-label {
    font-size: 0.7rem;
    color: var(--gray);
    letter-spacing: 0.3px;
}
.contact-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    direction: ltr;
    display: inline-block;
}

/* واکنش‌گرایی */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .contact-item {
        padding: 8px 12px;
    }
    .contact-value {
        font-size: 0.85rem;
    }
}

.footer-icon {
    width: 24px;
    height: 24px;
}

/* ========== یکسان‌سازی افکت لینک‌های فوتر با بخش ارتباط ========== */

/* استایل لینک‌های دسترسی سریع و خدمات */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    padding: 10px 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    width: 100%;
    box-sizing: border-box;
    color: var(--gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateX(-5px);
    color: var(--accent);
}

/* برای هماهنگی با فضای RTL (چپ به راست) */
.footer-links a:hover {
    transform: translateX(-5px);
    padding-right: 21px; /* حرکت ملایم متن به راست */
}

/* بخش برند (اختیاری: افکت ملایم روی توضیحات و کپی‌رایت) */
.footer-brand {
    transition: transform 0.25s ease;
}
.footer-brand:hover {
    transform: translateY(-2px);
}
.footer-description {
    transition: color 0.2s;
}
.footer-brand:hover .footer-description {
    color: #ccc;
}
.footer-copyright {
    transition: color 0.2s;
}
.footer-brand:hover .footer-copyright {
    color: #888;
}

/* واکنش‌گرایی: در موبایل padding لینک‌ها کمی کمتر شود */
@media (max-width: 768px) {
    .footer-links a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .footer-links a:hover {
        transform: translateX(-3px);
        padding-right: 15px;
    }
}

/* کاهش فاصله بین لینک‌های ستون‌های دسترسی سریع و خدمات */
.footer-links li {
    margin-bottom: 3px;  /* قبلاً 12px بود، به 6px کاهش دادیم */
}

.footer-links a {
    padding: 6px 12px;   /* قبلاً 10px 16px بود */
}

@media (max-width: 768px) {
    .footer-links li {
        margin-bottom: 4px;
    }
    .footer-links a {
        padding: 6px 10px;
    }
}

/* ========== دو ستونه شدن آیتم‌های دسترسی سریع و خدمات در موبایل ========== */
@media (max-width: 768px) {
    .footer-links-col .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .footer-links-col .footer-links li {
        margin-bottom: 0;  /* حذف فاصله عمودی اضافی */
    }
    .footer-links-col .footer-links a {
        padding: 8px 12px;
        text-align: right;    /* راست‌چین برای RTL */
        justify-content: flex-start;
    }
}

/* جلوگیری از خروج هر المانی */
* {
    max-width: 100%;
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}