@font-face {
    font-family: Vazirmatn-B;
    src: url(../Fonts/Vazirmatn-Bold.ttf);
}

@font-face {
    font-family: Vazirmatn-M;
    src: url(../Fonts/Vazirmatn-Medium.ttf);
}

@font-face {
    font-family: Vazirmatn-L;
    src: url(../Fonts/Vazirmatn-Light.ttf);
}

@font-face {
    font-family: Vazirmatn-R;
    src: url(../Fonts/Vazirmatn-Regular.ttf);
}

@font-face {
    font-family: FiraM-M;
    src: url(../Fonts/FiraMono-Medium.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Vazirmatn-R; */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050510;
    color: #eef5ff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ========== PRELOADER STYLES ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050510;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.typing-loader {
    font-size: 3rem;
    /* font-weight: 800; */
    background: linear-gradient(135deg, #ffffff, #8bb5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    direction: ltr;
    font-family: FiraM-M;
}
.fa-text-loader {
    margin-top: 20px;
    font-size: 0.9rem; 
    color: #8bb5ff;
    font-family: Vazirmatn-L;
}
.cursor-blink {
    font-size: 3rem;
    /* font-weight: 800; */
    color: #8bb5ff;
    animation: blink 0.8s infinite;
    display: inline-block;
    width: 12px;
    text-align: left;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========== OVERLAY MODAL برای پیش‌نمایش قالب ========== */
.template-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.template-overlay.active {
    display: flex;
    opacity: 1;
}
.overlay-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 85%;
    background: #0a0a1a;
    border-radius: 32px;
    border: 1px solid rgba(100, 150, 255, 0.4);
    box-shadow: 0 25px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.overlay-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
}
.close-overlay {
    background: none;
    border: none;
    color: #ccdeff;
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
    padding: 0 8px;
}
.close-overlay:hover {
    color: white;
    transform: scale(1.1);
}
.iframe-wrapper {
    flex: 1;
    width: 100%;
}
.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* ========== بقیه استایل های قبلی (بدون تغییر) ========== */
.cursor-orb {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.4), rgba(50, 100, 200, 0.1));
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.2s, height 0.2s;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
}
/* مخفی کردن ارب موس در موبایل و تبلت */
@media (max-width: 768px), (pointer: coarse) {
    .cursor-orb {
    display: none;
    }
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a2a;
}
::-webkit-scrollbar-thumb {
    background: #3b6eff;
    border-radius: 10px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    padding: 24px 0;
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(5, 5, 16, 0.7);
    z-index: 100;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    transition: all 0.3s;
}
.header-scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 16, 0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.8rem;
    /* font-weight: 700; */
    font-family: Vazirmatn-M;
    background: linear-gradient(135deg, #ffffff, #8bb5ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 32px;
    font-family: Vazirmatn-M;
}
.nav-links a {
    color: #ccdeff;
    text-decoration: none;
    /* font-weight: 500; */
    transition: 0.2s;
    position: relative;
}
.nav-links a:hover {
    color: white;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #5e8eff;
    transition: width 0.25s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

.btn-primary, .btn-outline {
    font-family: Vazirmatn-M;
}
.btn-primary {
    background: linear-gradient(95deg, #2b5bff, #8a4eff);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    /* font-weight: 600; */
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 16px rgba(43, 91, 255, 0.2);
    font-size: 1rem;
}
.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(43, 91, 255, 0.4);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #5e8eff;
    padding: 10px 26px;
    border-radius: 40px;
    /* font-weight: 500; */
    color: #d9e6ff;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: rgba(94, 142, 255, 0.15);
    border-color: #ffffff;
    color: white;
}

.hero {
    padding: 60px 0 80px;
    text-align: center;
}
.hero h1 {
    font-size: 3.4rem;
    font-family: Vazirmatn-B;
    /* font-weight: 800; */
    background: linear-gradient(to right, #ffffff, #b7d0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
}
.hero .highlight {
    background: linear-gradient(120deg, #ffb86b, #ff6b9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.typewriter {
    font-size: 1.8rem;
    /* font-weight: 500; */
    font-family: Vazirmatn-L;
    margin: 20px 0;
    min-height: 80px;
}
.hero-desc {
    font-size: 1.2rem;
    font-family: Vazirmatn-R;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}
.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}


.section-title {
    font-size: 2.2rem;
    font-family: Vazirmatn-B;
    /* font-weight: 700; */
    margin-bottom: 48px;
    text-align: center;
    background: linear-gradient(135deg, #f0f5ff, #aac3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}
.card {
    background: rgba(20, 25, 55, 0.6);
    backdrop-filter: blur(8px);
    padding: 32px 24px;
    border-radius: 32px;
    border: 1px solid rgba(80, 130, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
}
.card:hover {
    transform: translateY(-8px);
    border-color: #5e8eff;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
    background: rgba(30, 40, 80, 0.8);
}
.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.6rem;
    font-family: Vazirmatn-R;
    margin-bottom: 12px;
}
.card p {
    color: #b9ceff;
    font-family: Vazirmatn-L;
}

.templates-show {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    margin-bottom: 60px;
}
.template-item {
    background: #0f0f2a;
    border-radius: 28px;
    overflow: hidden;
    width: 260px;
    transition: all 0.25s;
    cursor: pointer;
    border: 1px solid #2a3a6a;
}
.template-item:hover {
    transform: scale(1.02);
    border-color: #8aaeff;
    box-shadow: 0 16px 30px rgba(0,0,0,0.4);
}
.template-preview {
    height: 200px;
    background: linear-gradient(145deg, #1b1f3a, #0c0f24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.template-info {
    padding: 20px;
    text-align: center;
}
.template-info h4 {
    margin-bottom: 8px;
    font-family: Vazirmatn-R;
}
.template-info p {
    font-family: Vazirmatn-L;
}
.template-desc {
    text-align:center; 
    margin-top:-24px; 
    margin-bottom: 54px;
    font-family: Vazirmatn-L;
}
.vibe-tag {
    font-size: 0.75rem;
    font-family: Vazirmatn-L;
    background: #2b3b6e;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    margin-top: 8px;
}

.steps-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}
.step {
    flex: 1;
    min-width: 200px;
    background: rgba(10, 15, 40, 0.7);
    border-radius: 28px;
    padding: 24px;
    border-left: 4px solid #4b7eff;
}
.step-number {
    font-size: 2rem;
    font-family: Vazirmatn-M;
    /* font-weight: 800; */
    color: #6d9eff;
}
.step h3 {
    font-family: Vazirmatn-R;
}
.step p {
    font-family: Vazirmatn-M;
}
.step-desc {
    font-family: Vazirmatn-L;
    background:#151e3e;
    padding:16px;
    border-radius:30px;
    text-align:center;
}

.contact-section {
    background: linear-gradient(120deg, #0b0e2a, #020214);
    border-radius: 48px;
    padding: 48px 32px;
    margin: 40px 0;
}
.form-group {
    margin-bottom: 20px;
}

/* .form-call[input="number"] {
    -moz-appearance: textfield;
} */

.form-call::-webkit-inner-spin-button, .form-call::-webkit-outer-spin-button {
    display: none; /* مخفی کردن دکمه‌ها */
}

.form-desc {
    font-size:0.8rem;
    margin-top:16px;
    font-family: Vazirmatn-M;
}

textarea {
    resize: vertical;
    max-height: 320px; /* اختیاری: حداکثر ارتفاع برای جلوگیری از بیش از حد بزرگ شدن */
    min-height: 120px;  /* اختیاری: حداقل ارتفاع */
}
input, textarea, select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #2a3e77;
    border-radius: 28px;
    color: white;
    font-size: 1rem;
    font-family: Vazirmatn-L;
    transition: 0.2s;
}
/* استایل اختصاصی سلکت (همسان با بقیه فیلدها) */
select {
    appearance: none;
    background-color: rgba(255,255,255,0.05);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238bb5ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: left 18px center;
    padding-right: 45px;
    cursor: pointer;
}
select option {
    background: #0a0a2a;
    color: white;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #6d9eff;
    background: rgba(255,255,255,0.1);
}
.faq-item {
    background: rgba(15, 20, 45, 0.6);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
}
.faq-question {
    /* font-weight: 700; */
    display: flex;
    justify-content: space-between;
    font-family: Vazirmatn-M;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: #bbd0ff;
    margin-top: 8px;
    font-family: Vazirmatn-L;
}
.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 12px;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #1e2b4a;
    margin-top: 60px;
}

.footer-text-a {
    font-family: Vazirmatn-M;
}
.footer-text-b {
    margin-top:12px;
    font-family: Vazirmatn-M;
}
.footer-text-b a {
    color:#8ab3ff;
    text-decoration: none;
}
.footer-text-c {
    margin-top:20px;
    font-size:0.8rem;
    font-family: Vazirmatn-L;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.3rem; }
    .typewriter { font-size: 1.3rem; }
    .section-title { font-size: 1.8rem; }
    .nav-links { gap: 18px; }
    .typing-loader { font-size: 2rem; }
    .cursor-blink { font-size: 2rem; }
    .overlay-container {
    width: 95%;
    height: 80%;
    }
}

.main-content {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.main-content.visible {
    visibility: visible;
    opacity: 1;
}