@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
         url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    direction: rtl;
}


img.rounded-lg.shadow-xl {
    margin: 0px auto ;
}
nav.fixed.top-0.left-0.right-0.z-50.bg-white\/80.backdrop-blur-md.shadow-sm.transition-all.duration-300 {
    background-color: #fdfdff;
}
.accordion-content {
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }
    
    .accordion-content:not(.hidden) {
        max-height: 1000px;
        transition: max-height 0.5s ease-in;
    }

p.mt-4.text-lg.leading-6.text-indigo-200 {
    max-width: 80%;
}
img.relative.z-10.max-h-full.max-w-full.object-contain {
    border-radius: 10px;
}
body {
    font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}




/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

/* Custom Dropzone Styling */
.dropzone {
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    background: white;
}

.dropzone:hover {
    border-color: #a0aec0;
}

.dropzone .dz-message {
    margin: 2em 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom Form Elements */
input[type="text"],
input[type="tel"],
input[type="number"] {
    direction: ltr;
}

/* Custom Alert Styling */
.custom-alert {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    z-index: 50;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chat Panel Animation */
.chat-panel-enter {
    transform: translateX(100%);
}

.chat-panel-enter-active {
    transform: translateX(0);
    transition: transform 300ms;
}

.chat-panel-exit {
    transform: translateX(0);
}

.chat-panel-exit-active {
    transform: translateX(100%);
    transition: transform 300ms;
}

/* Chat Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 1px;
    background-color: #9ca3af;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
    animation: bounce 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation: bounce 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: bounce 1s infinite 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Hero section enhancements */
.glow-effect {
    position: relative;
    z-index: 1;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    opacity: 0.7;
    pointer-events: none;
}

/* Feature section styling */
.feature-container {
    position: relative;
    z-index: 1;
}

.feature-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(79, 70, 229, 0.3), transparent);
    transform: translateX(-50%);
    z-index: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 1; /* Changed from 0 to 1 to ensure visibility */
    transform: translateY(0); /* Changed from 30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.feature-image {
    flex: 1;
    padding: 1rem;
}

.feature-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
   
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image-container:hover {
    transform: translateY(-5px);
  
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 0.25rem;
    background: linear-gradient(to right, rgba(79, 70, 229, 0.8), rgba(79, 70, 229, 0.2));
    border-radius: 0.25rem;
}

.feature-description {
    color: #4b5563;
    line-height: 1.625;
}

/* Steps section styling */
.step-item {
    position: relative;
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateY(0); /* Changed from 30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: #4f46e5;
    color: white;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 10;
}

.step-content {
    text-align: center;
    padding: 0 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.step-description {
    color: #6b7280;
}

/* Stats section styling */
.stat-item {
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateY(0); /* Changed from 30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0. 8);
}

/* Testimonials section styling */
.testimonial-card {
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateY(0); /* Changed from 30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-content {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-quote {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    color: rgba(79, 70, 229, 0.2);
}

.testimonial-text {
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.625;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-weight: 600;
    color: #1f2937;
}

.testimonial-author-title {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Chat demo styling */
.chat-demo-container {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-demo-header {
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.chat-demo-title {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.chat-demo-title svg {
    margin-left: 0.5rem;
}

.chat-demo {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f9fafb;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
}

.user-message {
    align-self: flex-end;
    background: #4f46e5;
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.ai-message {
    align-self: flex-start;
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-message p {
    margin: 0;
    line-height: 1.5;
}

.typing-indicator {
    align-self: flex-start;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typing-indicator span {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #9ca3af;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
    animation: bounce 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation: bounce 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation: bounce 1s infinite 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.chat-demo-input {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.chat-demo-input input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 0.5rem 1rem;
    outline: none;
}

.chat-demo-input button {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Scroll Animations */
.feature-item.in-view,
.step-item.in-view,
.stat-item.in-view,
.testimonial-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* 3D Canvas */
#cta-canvas {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .feature-item {
        text-align: center;
        flex-direction: column !important;
    }
    
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-container::after {
        display: none;
    }
    
    .feature-content, .feature-image {
        padding: 1rem;
    }
}

/* Floating Elements Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Pulse Animation */
.pulse {
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    border-radius: inherit;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Scroll-triggered animations */
.fade-in-bottom {
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateY(0); /* Changed from 30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateX(0); /* Changed from -30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateX(0); /* Changed from 30px to 0 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Parallax effect */
.parallax {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Noise texture overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* Cursor trail effect */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
}


        .faq-section {
            background: #f9f9f9;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            margin: auto;
        }
        .faq-section h2 {
            text-align: center;
            color: #4a4a4a;
            margin-bottom: 15px;
        }
        .faq-item {
            border-bottom: 1px solid #ddd;
            padding: 10px 0;
        }
        .faq-item:last-child {
            border-bottom: none;
        }
        .faq-item h3 {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .faq-item h3:hover {
            color: #6c63ff;
        }
        .faq-answer {
            display: none;
            font-size: 16px;
            color: #666;
            margin-top: 5px;
        }


  /* انیمیشن‌های سفارشی */
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    @keyframes floatReverse {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(10px); }
    }
    
    @keyframes pulseGradient {
        0%, 100% { opacity: 0.6; }
        50% { opacity: 0.8; }
    }
    
    .animate-float {
        animation: float 3s ease-in-out infinite;
    }
    
    .animate-float-delay {
        animation: float 3s ease-in-out infinite 1s;
    }
    
    .animate-float-reverse {
        animation: floatReverse 3s ease-in-out infinite;
    }
    
    .animate-pulse-slow {
        animation: pulseGradient 5s ease-in-out infinite;
    }
    
    /* تنظیمات ریسپانسیو */
    @media (max-width: 768px) {
        .hero-graphic-container {
            height: 250px;
        }
        
    img.rounded-lg.shadow-xl {
    display: none !important;
}
        
        .flex-col {
            align-items: center;
        }
    }