@font-face {
    font-family: 'YekanBakh';
    src: url('/fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* رنگ‌های اصلی تم روشن */
    --primary-color: #e53935;
    --primary-light: #ff6f60;
    --primary-dark: #ab000d;
    --secondary-green: #4CAF50;
    --secondary-blue: #2196F3;
    --text-primary: #212121;
    --text-secondary: #757575;
    --background: #ffffff;
    --card-bg: #f5f5f5;
    --acardion-panel-bg: #f3f3f3;
    --footer-bg: #f1f1f1;
    --icon-color: #616161;

    /* سایه‌ها و افکت‌ها */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

    /* فونت‌ها */
    --font-family: YekanBakh, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.role-description-padding {
    padding-bottom: 30px;
}

.dark-theme {
    /* رنگ‌های اصلی تم تاریک */
    --primary-color: #ff5252;
    --primary-light: #ff867f;
    --primary-dark: #c50e29;
    --secondary-green: #66bb6a;
    --secondary-blue: #42a5f5;
    --text-primary: #f5f5f5;
    --text-secondary: #bdbdbd;
    --background: #121212;
    --card-bg: #1e1e1e;
    --acardion-panel-bg: #3a3a3a;
    --footer-bg: #1a1a1a;
    --icon-color: #9e9e9e;

    /* سایه‌ها در تم تاریک */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.8);
}

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

body {
    font-family: var(--font-family), serif;
    background-color: var(--background);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        background-color: var(--primary-color);
        padding: 10px 0;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
}

.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* بخش نقش‌ها */
.roles-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.roles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.role-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 350px;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.role-header {
    padding: 25px 20px;
    color: white;
    text-align: center;
}

.role-main .role-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.role-vendor .role-header {
    background: linear-gradient(135deg, #2E7D32 0%, var(--secondary-green) 100%);
}

.role-delivery .role-header {
    background: linear-gradient(135deg, #1565C0 0%, var(--secondary-blue) 100%);
}

.role-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.role-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.role-description {
    padding: 25px 20px;
    color: var(--text-primary);
    text-align: justify;
}

.role-description p {
    margin-bottom: 20px;
}

.download-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s, transform 0.2s;
    text-align: center;
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.download-btn i {
    margin-left: 8px;
    font-size: 20px;
}

.bazaar-btn {
    background-color: #ff5722;
}

.myket-btn {
    background-color: #00bcd4;
}

.googleplay-btn {
    background-color: #4CAF50;
}

.webapp-btn {
    background-color: #2196F3;
}

/* بخش ویژگی‌ها */
.features-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.feature-card {
    background-color: var(--background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* فوتر */
footer {
    background-color: var(--footer-bg);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    right: 0;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 24px;
    display: flex;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .header-container {
        /*flex-direction: column;*/
        padding: 16px 12px;
        align-items: center;
    }

    /*.logo {*/
    /*    margin-bottom: 15px;*/
    /*}*/
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .theme-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    .role-description-padding {
        padding-bottom: 0;
    }
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .roles-section, .features-section {
        padding: 60px 0;
    }

    .role-card {
        max-width: 100%;
    }


}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.accordion {
    background-color: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    padding: 16px;
    width: 100%;
    text-align: right;
    border: none;
    outline: none;
    transition: 0.3s;
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-family: YekanBakh, serif;
}
.accordion:hover {
    background-color: var(--acardion-panel-bg);
}
.panel {
    padding: 0 16px;
    background-color: var(--acardion-panel-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-radius: 0 0 10px 10px;
    margin-bottom: 12px;
    border-top: 1px solid rgba(188, 188, 188, 0.16);
}
.active, .accordion:after {
    font-weight: bold;
    padding: 12px;
}
.certificate-container {
    display: flex;
    /* Optional: Align items in a row (horizontal direction) */
    flex-direction: row;
    gap: 16px;
}