* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #d9e8e5;
}

#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #00DF9A 0%, #00c989 100%);
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0, 223, 154, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
    filter: brightness(1.3) drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Navigation پایه */
.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-login {
    background: #fff;
    color: #00DF9A;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    background: #222;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 60px;
    background: #d9e8e5;
}

.image-container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.01);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #f8fbfa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00c989;
}

.feature-card p {
    color: #555;
    line-height: 1.7;
}

/* FAQ Preview */
.faq-preview {
    padding: 80px 20px;
    background: #fff;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #00c989;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #00a874;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 300;
    color: #00c989;
}

.faq-answer {
    padding: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.more-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #00c989;
    font-weight: 600;
    text-decoration: none;
    font-size: 17px;
}

.more-link:hover {
    opacity: 0.8;
}

/* Download App */
.download-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #00DF9A, #00c989);
    color: #fff;
    text-align: center;
}

.download-box {
    max-width: 700px;
    margin: 0 auto;
}

.download-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.download-box p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.download-btn {
    background: #fff;
    color: #00c989;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.download-btn:hover {
    transform: translateY(-5px);
    background: #222;
    color: #fff;
}

.download-btn.android::before { content: "🤖 "; }
.download-btn.ios::before { content: "🍏 "; }
.download-btn.direct::before { content: "⬇️ "; }

/* About Preview */
.about-preview {
    padding: 80px 20px;
    background: #f8fbfa;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
}

/* Footer Full */
.footer-full {
    background: #111;
    color: #fff;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #00DF9A;
}

.footer-column p {
    color: #ccc;
    line-height: 1.7;
}

.footer-column a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #00DF9A;
}

/* ستون مجوزات */
.footer-column.certificates h4 {
    color: #00DF9A;
    margin-bottom: 20px;
}

.certificates-logos {
    display: flex;
    flex-wrap: wrap; /* برای اینکه در موبایل و صفحه‌های کوچک‌تر باکس‌ها در چند ردیف قرار بگیرند */
    gap: 12px;
    justify-content: center; /* وسط‌چین کردن باکس‌ها */
    overflow-x: hidden; /* برای جلوگیری از اسکرول افقی */
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.cert-logo-box {
    flex: 1 0 150px; /* هر باکس یک اندازه حداقل 150px خواهد داشت، اما می‌تواند گسترش یابد */
    max-width: 150px; /* حداکثر عرض هر باکس */
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    flex-grow: 1; /* اجازه می‌دهد که باکس‌ها فضا را به طور مساوی تقسیم کنند */
}

.cert-logo-box:hover {
    transform: translateY(-4px);
}

.cert-logo-box img {
    width: 100%;
    height: auto;
    max-height: 55px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .cert-logo-box {
        width: 85px;
        padding: 6px;
    }
    .cert-logo-box img {
        max-height: 48px;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 14px;
}

/* Container عمومی */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #00c989;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .mobile-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 30px 0;
        background: rgba(0, 223, 154, 0.98);
        backdrop-filter: blur(12px);
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        z-index: 999;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        align-items: center;
        gap: 15px;
    }
    .mobile-nav.open {
        display: flex;
    }
    .mobile-nav .nav-link,
    .mobile-nav .btn-login {
        padding: 16px 20px;
        text-align: center;
        font-size: 17px;
        width: 85%;
        margin: 8px 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        color: #fff;
    }
    .mobile-nav .nav-link:hover,
    .mobile-nav .btn-login:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }
    .mobile-nav .btn-login {
        background: #fff;
        color: #00DF9A;
        font-weight: 700;
        margin-top: 20px;
    }
    .mobile-nav .btn-login:hover {
        background: #222;
        color: #fff;
    }
    .hero-section {
        padding: 40px 15px 50px;
        justify-content: center;
        align-items: center;
    }
    .main-image {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    .section-title {
        font-size: 28px;
    }
}

@media (min-width: 769px) {
    .certificates-logos {
        justify-content: flex-start; /* در صفحه‌های بزرگتر، باکس‌ها در سمت چپ قرار می‌گیرند */
        gap: 20px; /* فاصله بیشتری بین باکس‌ها */
    }

    .cert-logo-box {
        flex: 1 0 33%; /* هر باکس حدود یک سوم صفحه را می‌گیرد */
        max-width: none; /* حداکثر عرض برداشته می‌شود تا اجازه دهد باکس‌ها بزرگ شوند */
    }
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* استایل‌های کامل صفحات دیگر */

/* FAQ Page */
.faq-section {
    padding: 80px 20px;
    background: #f8fbfa;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #00c989;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #00a874;
}

.faq-toggle {
    font-size: 28px;
    font-weight: 300;
    color: #00c989;
}

.faq-answer {
    padding: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

@media (max-width: 768px) {
    .cert-logo-box {
        flex: 1 0 45%; /* در صفحه‌های کوچکتر، هر باکس می‌تواند 45% از عرض را بگیرد */
        max-width: 45%; /* حداکثر عرض 45% */
    }
}
/* About Us Page */
.about-section {
    padding: 80px 20px;
    background: #f8fbfa;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.about-content {
    line-height: 1.9;
    font-size: 17px;
    color: #333;
}

.about-intro {
    font-size: 19px;
    margin-bottom: 40px;
    text-align: justify;
}

.about-subtitle {
    font-size: 24px;
    color: #00c989;
    margin: 40px 0 20px 0;
    font-weight: 700;
}

.about-features {
    padding-right: 30px;
    margin-bottom: 40px;
}

.about-features li {
    margin-bottom: 15px;
    position: relative;
}

.about-features li::before {
    content: "✓";
    color: #00c989;
    font-weight: bold;
    position: absolute;
    right: -30px;
}

.about-text {
    text-align: justify;
    margin-bottom: 30px;
}

.about-address {
    font-size: 18px;
    background: #f0f8f5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
    color: #00a874;
    font-weight: 500;
}

.about-mission {
    background: linear-gradient(135deg, #00DF9A, #00c989);
    color: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
    text-align: center;
}

.about-mission .about-subtitle {
    color: #fff;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .about-container { padding: 30px; }
    .about-subtitle { font-size: 22px; }
    .about-intro { font-size: 17px; }
    .about-features { padding-right: 20px; }
    .about-features li::before { right: -20px; }
}

/* Contact Us Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 22px;
}

@media (min-width: 920px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
}

.info-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0,0,0,.03);
    margin-bottom: 12px;
}

.ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
}

.info-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.info-text {
    margin: 0;
    line-height: 2;
    opacity: .9;
    word-break: break-word;
}

.info-text a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.info-text a:hover {
    opacity: .7;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-soft {
    border: 0;
    background: rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: Vazirmatn, sans-serif;
}

.btn-dark {
    border: 0;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-family: Vazirmatn, sans-serif;
}

.btn-dark a {
    color: #fff;
    text-decoration: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 650px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .full { grid-column: 1 / -1; }
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 13px;
    opacity: .75;
}

.field input, .field textarea, .field select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.12);
    padding: 12px 12px;
    font-family: Vazirmatn, sans-serif;
    outline: none;
    background: #fff;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus, .field textarea:focus, .field select:focus {
    border-color: rgba(0,0,0,.35);
    box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

.hint {
    font-size: 12px;
    opacity: .65;
    line-height: 1.8;
    margin-top: 10px;
}

.toast {
    position: fixed;
    bottom: 18px;
    right: 18px;
    left: 18px;
    margin: auto;
    width: min(420px, 92%);
    background: #111;
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: .22s;
    pointer-events: none;
    text-align: center;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.map {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 18px;
}

.contact-hero {
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 28px 0 36px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 320px;
}

.hero-text h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.hero-text p {
    margin: 0;
    line-height: 2;
    opacity: .8;
}

.hero-image {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 22px;
    box-shadow: 0 16px 38px rgba(0,0,0,.15);
    transition: .4s ease;
}

.hero-image img:hover {
    transform: translateY(-6px) scale(1.02);
}

.contact-box {
    margin-top: 24px;
    background: #fff;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    max-width: 720px;
}

.contact-box p {
    margin: 0 0 16px;
    line-height: 2;
    font-size: 15px;
}

.contact-box a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.contact-box a:hover {
    opacity: .7
}

.contact-box strong {
    display: block;
    font-size: 14px;
    opacity: .6;
    margin-bottom: 4px;
}