/* General Styles */
@import url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/Vazirmatn-font-face.css');

:root {
    --primary-gray: #333;
    --primary-light-gray: #444;
    --primary-orange: #FF8C00; /* Flat orange */
    --secondary-orange: #FF9F2A;
    --text-color: #555;
    --background-color: #f5f5f5;
    --card-bg-color: #fff;
    --border-color: #e0e0e0;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    direction: rtl;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-orange);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--card-bg-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gray);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-gray);
}

.main-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--primary-orange);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.6);
}

/* Hero Section */
.hero-section, .about-hero, .contact-hero, .pricing-hero {
    padding: 100px 0;
    background: linear-gradient(to left, var(--primary-gray), var(--primary-light-gray));
    color: white;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: right;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.primary-button {
    background-color: var(--primary-orange);
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.4);
}

.primary-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
}

.secondary-button {
    color: white;
    padding: 15px 35px;
    border: 2px solid white;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: white;
    color: var(--primary-gray);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.hero-image {
    flex-shrink: 0;
    width: 50%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

/* Common Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--primary-gray);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

/* Features Grid Section */
.features-grid-section {
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    border-left: 4px solid var(--primary-gray);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--primary-orange);
}

.feature-box i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-gray);
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Demo Form Section */
.demo-form-section {
    background-color: var(--card-bg-color);
    padding: 100px 0;
}

.demo-form-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.demo-form-content {
    flex: 1;
}

.demo-form-content h2 {
    font-size: 2.5rem;
    color: var(--primary-gray);
    margin-bottom: 10px;
}

.demo-form-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 30px;
}

.demo-form-content form {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-gray);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.25);
}

.submit-button {
    display: block;
    width: 100%;
    background-color: var(--primary-orange);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-3px);
}

.demo-image-container {
    flex: 1;
}

.demo-image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

/* Footer */
.main-footer {
    background-color: var(--primary-gray);
    color: #f0f0f0;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-grid h3 {
    color: var(--primary-orange);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li a, .footer-contact li {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #f0f0f0;
    transition: color 0.3s ease;
}

.footer-links li a:hover, .footer-contact li:hover {
    color: var(--primary-orange);
}

.footer-contact li i {
    margin-left: 10px;
    color: var(--secondary-orange);
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-left: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-orange);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* About Page Styles */
.about-story {
    background-color: var(--card-bg-color);
}

.about-story .container {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 20px;
}

.story-content {
    flex: 1;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    animation: floating 3s ease-in-out infinite;
}

.about-story h2, .about-values h2 {
    font-size: 2.5rem;
    color: var(--primary-gray);
    margin-bottom: 20px;
}

.about-values {
    background-color: var(--background-color);
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.value-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-orange);
}


/* Contact Page Styles */
.contact-form-section .container {
    display: flex;
    gap: 40px;
}

.form-container, .contact-info-container {
    flex: 1;
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.form-container h2, .contact-info-container h2 {
    color: var(--primary-gray);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.social-media-contact h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-gray);
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-orange);
}

.location-map {
    background-color: var(--card-bg-color);
    padding: 60px 0;
    text-align: center;
}

.location-map h2 {
    color: var(--primary-gray);
    margin-bottom: 30px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

/* Pricing Page Styles */
.pricing-plans-section {
    background-color: var(--card-bg-color);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-light);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.recommended {
    transform: scale(1.05);
    background: linear-gradient(to bottom right, var(--primary-gray), var(--primary-light-gray));
    color: white;
    box-shadow: var(--shadow-medium);
}

.pricing-card:hover:not(.recommended) {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.ribbon {
    position: absolute;
    top: 0;
    left: 20px;
    background-color: var(--primary-orange);
    color: white;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-gray);
}

.pricing-card.recommended h3 { color: white; }

.plan-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.pricing-card.recommended .plan-subtitle { color: #f0f0f0; }

.price-box {
    margin: 30px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.pricing-card.recommended .price-box { border-color: rgba(255, 255, 255, 0.2); }

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gray);
}

.pricing-card.recommended .price-value { color: var(--primary-orange); }

.price-currency {
    font-size: 1.2rem;
    color: var(--text-color);
}

.pricing-card.recommended .price-currency { color: #f0f0f0; }

.plan-features {
    list-style: none;
    text-align: right;
    margin-bottom: 40px;
    min-height: 150px;
}

.plan-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.plan-features li i {
    margin-left: 10px;
    font-size: 1.2rem;
    color: var(--primary-orange);
}

.icon-gray { color: #ccc; }
.pricing-card.recommended .plan-features li { color: #f0f0f0; }
.pricing-card.recommended .plan-features li i { color: var(--primary-orange); }

.plan-button {
    background-color: var(--primary-gray);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.plan-button:hover { background-color: var(--primary-light-gray); transform: translateY(-3px); }
.recommended-button { background-color: var(--primary-orange); }
.recommended-button:hover { background-color: var(--secondary-orange); }


/* FAQ section */
.faq-section {
    background-color: var(--background-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.accordion-header:hover { background-color: #f0f0f0; }
.accordion-header h3 { font-size: 1.2rem; color: var(--primary-gray); }
.accordion-content { display: none; padding: 20px; background-color: var(--card-bg-color); border-radius: 0 0 10px 10px; border-top: 1px solid var(--border-color); }
.accordion-content p { margin: 0; }
.accordion-header .fa-chevron-down { transition: transform 0.3s ease; }
.accordion-item.active .fa-chevron-down { transform: rotate(180deg); }


/* Footer */
.main-footer {
    background-color: var(--primary-gray);
    color: #f0f0f0;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-grid h3 { color: var(--primary-orange); font-size: 1.4rem; margin-bottom: 20px; }
.footer-about p { font-size: 0.9rem; line-height: 1.8; }
.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links li a, .footer-contact li { font-size: 1rem; margin-bottom: 12px; color: #f0f0f0; transition: color 0.3s ease; }
.footer-links li a:hover, .footer-contact li:hover { color: var(--primary-orange); }
.footer-contact li i { margin-left: 10px; color: var(--secondary-orange); }

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-left: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-orange);
    transform: translateY(-5px);
}

.footer-bottom { text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* Animations */
.animate-fade-in { opacity: 0; transform: translateY(20px); animation: fadeIn 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.close-button {
    color: #aaa;
    float: left;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-orange);
}

.modal-icon-container {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-icon-success {
    color: var(--primary-gray);
}

.modal-icon-error {
    color: var(--primary-orange);
}

#modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-gray);
}

#modal-message {
    font-size: 1rem;
    color: var(--text-color);
}


/* Media Queries */
@media (max-width: 992px) {
    .hero-section .container { flex-direction: column; text-align: center; }
    .hero-content { order: 2; }
    .hero-image { order: 1; margin-bottom: 40px; }
    .hero-buttons { justify-content: center; }
    .demo-form-section .container { flex-direction: column; }
    .demo-form-content { order: 2; }
    .demo-image-container { order: 1; margin-bottom: 40px; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; }
    .cta-button { margin-top: 10px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-buttons { flex-direction: column; }
    .secondary-button { margin-right: 0; margin-top: 15px; }
    .main-footer .footer-grid { grid-template-columns: 1fr; }
}