@font-face {
    font-family: Vazirmatn;
    src: url('./Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('./Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #00A78D;
    --primary-dark: #008f78;
    --secondary-color: #B58E3D;
    --secondary-hover: #a37f35;
    --accent-blue: #1A9FFF;
    --text-main: #1D1D1D;
    --text-body: #666666;
    --bg-page: #F4F4F4;
    --bg-card: #FFFFFF;
    --radius-btn: 50px;
    --radius-card: 20px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --accent-purple: #70618F;
    /* New accent color */
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Vazirmatn', 'Sahel', 'Tahoma', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    direction: rtl;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    margin-top: 0;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Header */
header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo {
    height: 50px;
    /* Adjust based on logo aspect ratio */
    width: auto;
}

/* Hero Section with Gradient */
.hero {
    text-align: center;
    padding: 70px 0 50px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
    /* Subtle depth */
}

.hero h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

/* Video Section */
.video-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.video-caption {
    margin-top: 15px;
    color: var(--text-body);
    font-size: 0.9rem;
    opacity: 0.8;
}

.video-container {
    background: #000;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 167, 141, 0.15);
    /* Colored shadow */
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border: 4px solid #fff;
    /* Frame effect */
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Downloads Section */
.downloads {
    padding: 40px 0;
}

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

.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    /* Bouncy effect */
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.icon-wrapper img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.card:hover .icon-wrapper img {
    transform: scale(1.1) rotate(5deg);
}


/* Button Groups */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    /* Bolder text */
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    /* Gradient button */
    color: white;
    box-shadow: 0 4px 15px rgba(0, 167, 141, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: var(--text-body);
}

.btn-secondary-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: #fffbf0;
}

.btn-gold {
    background: linear-gradient(45deg, #B58E3D, #e0b04b);
    color: white;
    box-shadow: 0 4px 15px rgba(181, 142, 61, 0.3);
}

.btn-gold:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(181, 142, 61, 0.4);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 60px auto;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.accordion-item {
    background: var(--bg-card);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    border: 1px solid #eee;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
    background: #fff;
}

.accordion-header:hover {
    background-color: #fcfcfc;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-body);
}

.accordion-item.active .accordion-body {
    padding: 0 20px 20px;
    max-height: 500px;
    /* Arbitrary large height */
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Footer of Support */
.support-section {
    text-align: center;
    padding: 40px 0 60px;
}

.support-box {
    background: #e6f6f4;
    /* Very light teal tint */
    display: inline-block;
    padding: 30px 50px;
    border-radius: var(--radius-card);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* Troubleshooting Section */
.troubleshooting {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 30px;
    border-radius: var(--radius-card);
    background: #fff;
    border: 2px dashed #e0e0e0;
    /* Distinctive look */
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
}

.check-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    background: #e6f6f4;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.check-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

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