/* --- تنظیمات کلی، فونت و اصلاح Box Model --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
body {
    margin: 0; padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    color: #ffffff;
    background: linear-gradient(45deg, #0b0e1b, #2c0a37, #0b0e1b, #3a1c49);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
}

@keyframes gradientAnimation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.main-content { position: relative; z-index: 10; background: transparent; }

/* --- ستاره‌ها (تعداد افزایش یافت) --- */
@keyframes animStar { from { transform: translateY(0px); } to { transform: translateY(-2000px); } }
#stars1, #stars2, #stars3 { position: absolute; top: 0; left: 0; background: transparent; z-index: 5; }
#stars1 { width: 1px; height: 1px; animation: animStar 150s linear infinite; box-shadow: 576px 1665px #FFF, 1221px 1860px #FFF, 1488px 101px #FFF, 1928px 115px #FFF, 497px 1107px #FFF, 1146px 1339px #FFF, 1851px 1997px #FFF, 1735px 959px #FFF, 1515px 339px #FFF, 1374px 1978px #FFF, 1243px 1804px #FFF, 1692px 1419px #FFF, 1152px 938px #FFF, 1311px 413px #FFF, 381px 1937px #FFF, 915px 895px #FFF, 1437px 1032px #FFF, 240px 1445px #FFF, 187px 748px #FFF, 1632px 1223px #FFF, 706px 1495px #FFF, 542px 813px #FFF, 1238px 127px #FFF, 1001px 1993px #FFF, 1924px 1729px #FFF, 32px 1149px #FFF, 1412px 1289px #FFF, 37px 759px #FFF, 888px 843px #FFF, 701px 1236px #FFF; }
#stars2 { width: 2px; height: 2px; animation: animStar 100s linear infinite; box-shadow: 1774px 1814px #FFF, 1378px 182px #FFF, 114px 1279px #FFF, 1163px 1231px #FFF, 497px 133px #FFF, 1022px 1324px #FFF, 1928px 1345px #FFF, 107px 1195px #FFF, 75px 128px #FFF, 1700px 399px #FFF, 1153px 1585px #FFF, 597px 490px #FFF, 829px 1314px #FFF, 1199px 1228px #FFF, 127px 199px #FFF, 626px 1883px #FFF, 1762px 1319px #FFF, 1899px 1732px #FFF, 814px 185px #FFF, 319px 1478px #FFF; }
#stars3 { width: 3px; height: 3px; animation: animStar 50s linear infinite; box-shadow: 173px 1583px #FFF, 1691px 1971px #FFF, 1813px 104px #FFF, 1336px 921px #FFF, 1879px 1581px #FFF, 343px 1205px #FFF, 149px 129px #FFF, 1330px 1836px #FFF, 1393px 864px #FFF, 1899px 748px #FFF, 513px 432px #FFF, 911px 1838px #FFF, 1317px 620px #FFF, 1195px 163px #FFF, 109px 653px #FFF; }

/* --- کلاس‌های عمومی --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-title { font-size: 36px; font-weight: 700; text-align: center; line-height: 1.6; margin-bottom: 70px; color: #fff; }
.section-title br { display: none; }

/* --- Hero Section --- */
.hero-section { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 80px); padding: 40px; background: transparent; }
.hero-content { max-width: 800px; text-align: center; }
.hero-headline { font-size: 48px; font-weight: 900; line-height: 1.5; color: #ffffff; text-shadow: 0 0 15px rgba(121, 171, 255, 0.5); margin-bottom: 20px; }
.vision-brand { color: #00D1FF; animation: subtleGlow 3s ease-in-out infinite alternate; }
@keyframes subtleGlow { from { text-shadow: 0 0 8px rgba(0, 209, 255, 0.6); } to { text-shadow: 0 0 16px rgba(0, 209, 255, 0.8); } }
.hero-subheadline { font-size: 20px; font-weight: 300; line-height: 1.7; color: #E0E0E0; margin: 0 auto 40px auto; max-width: 600px; }
.hero-subheadline strong { color: #82aaff; font-weight: 700; }
.cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(90deg, #4e54c8, #8f94fb); color: #ffffff; padding: 16px 40px; border-radius: 50px; text-decoration: none; font-size: 18px; font-weight: 700; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(143, 148, 251, 0.4); border: none; cursor: pointer; overflow: hidden; position: relative; }
.cta-button:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(143, 148, 251, 0.6); }
.cta-button svg { transition: transform 0.4s ease-out; }
.cta-button:hover svg { transform: translateY(5px) scale(1.1); }


/* --- Problem Section --- */
.problem-section { padding: 100px 0; background-color: rgba(11, 14, 27, 0.5); position: relative; z-index: 10; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.problem-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 30px; text-align: right; transition: all 0.3s ease-in-out; }
.problem-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); border-color: rgba(0, 209, 255, 0.5); }
.card-icon { margin-bottom: 20px; }
.card-icon svg { width: 48px; height: 48px; stroke: #00D1FF; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 15px; color: #fff; }
.card-text { font-size: 15px; font-weight: 300; line-height: 1.8; color: #ccc; }

/* --- Solution Section --- */
.solution-section { padding: 100px 0; position: relative; z-index: 10; }
.section-intro { text-align: center; max-width: 700px; margin: -30px auto 60px auto; font-size: 18px; line-height: 1.8; color: #ccc; }
.solution-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; position: relative; }
.solution-steps::after { content: '←'; position: absolute; top: 50%; right: 50%; transform: translate(50%, -50%); font-size: 50px; color: rgba(0, 209, 255, 0.4); z-index: -1; }
.step-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 35px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.step-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.step-number { background-color: #00D1FF; color: #0B0E1B; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: 900; flex-shrink: 0; }
.step-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0; }
.step-text { font-size: 16px; line-height: 1.9; color: #ccc; flex-grow: 1; }
.step-text strong { color: #fff; font-weight: 700; }
.step-card.featured { border-color: rgba(0, 209, 255, 0.7); transform: scale(1.05); animation: featuredGlow 3s infinite alternate; }
@keyframes featuredGlow { from { box-shadow: 0 0 20px rgba(0, 209, 255, 0.1); } to { box-shadow: 0 0 40px rgba(0, 209, 255, 0.3); } }
.badge { position: absolute; width: 200px; top: 32px; left: -50px; text-align: center; transform: rotate(-45deg); background-color: #00D1FF; color: #0B0E1B; padding: 8px 10px; font-size: 13px; font-weight: 700; }
.test-button { margin-top: 25px; padding: 12px 20px; border: 2px solid #00D1FF; color: #00D1FF; background-color: transparent; border-radius: 50px; text-decoration: none; font-weight: 700; text-align: center; transition: all 0.3s ease; }
.test-button:hover { background-color: #00D1FF; color: #0B0E1B; box-shadow: 0 0 15px rgba(0, 209, 255, 0.5); }
.solution-summary { background: linear-gradient(90deg, rgba(78, 84, 200, 0.3), rgba(143, 148, 251, 0.3)); border: 1px solid rgba(143, 148, 251, 0.5); border-radius: 10px; padding: 25px; text-align: center; margin-top: 60px; }
.solution-summary p { margin: 0; font-size: 18px; line-height: 1.8; }

/* کد جدید: استایل کادر هشدار تست */
.test-warning {
    max-width: 800px;
    margin: -20px auto 40px auto;
    padding: 15px 20px;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 10px;
    text-align: center;
}
.test-warning p {
    margin: 0;
    color: #ffc107;
    font-size: 16px;
    font-weight: 500;
}
.test-warning p strong {
    font-weight: 700;
}


/* --- Course Section --- */
.course-section { padding: 100px 0; background-color: rgba(11, 14, 27, 0.5); position: relative; z-index: 10; }
.course-content-wrapper { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 60px; }
.course-image img { max-width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.course-text p { font-size: 18px; line-height: 1.9; color: #ccc; margin-bottom: 30px; }
.course-text ul { list-style: none; padding: 0; margin-bottom: 30px; }
.course-text ul li { font-size: 17px; padding: 10px 35px 10px 0; position: relative; }
.course-text ul li::before { content: '✓'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #00D1FF; font-weight: 900; font-size: 20px; }
.important-note { background: rgba(0, 209, 255, 0.1); border: 1px solid rgba(0, 209, 255, 0.3); border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 15px; }
.important-note svg { width: 24px; height: 24px; stroke: #00D1FF; flex-shrink: 0; }
.important-note span { font-size: 16px; font-weight: 600; color: #fff; }

/* --- Form Section --- */
.form-section { padding: 100px 0; position: relative; z-index: 10; }
.register-form-wrapper { max-width: 500px; margin: 0 auto; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 40px; min-height: 400px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group input { width: 100%; padding: 15px; background-color: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: #fff; font-family: 'Vazirmatn', sans-serif; font-size: 16px; text-align: right; transition: border-color 0.3s ease; }
.form-group input::placeholder { color: #aaa; }
.form-group input:focus { outline: none; border-color: #00D1FF; box-shadow: 0 0 10px rgba(0, 209, 255, 0.5); }
.submit-button { width: 100%; padding: 16px; background: linear-gradient(90deg, #4e54c8, #8f94fb); color: #ffffff; border: none; border-radius: 8px; font-family: 'Vazirmatn', sans-serif; font-size: 18px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; }
.submit-button:hover { box-shadow: 0 0 20px rgba(143, 148, 251, 0.6); transform: translateY(-2px); }
.submit-button:disabled { background: #555; cursor: not-allowed; }
.privacy-note { text-align: center; font-size: 13px; color: #aaa; margin-top: 20px; }
.form-error-message { color: #ff6b6b; font-size: 13px; display: none; margin-top: 5px; }
.form-group input.error { border-color: #ff6b6b; }
.success-message { display: none; text-align: center; color: #fff; }
.success-message svg { stroke: #00D1FF; margin-bottom: 15px; }
.success-message h3 { font-size: 22px; margin-bottom: 10px; }
.success-message p { color: #ccc; font-size: 16px; line-height: 1.7; margin-bottom: 25px; }
.workshop-entry-button { display: inline-block; width: 100%; padding: 16px; background: #00D1FF; color: #0B0E1B; border: none; border-radius: 8px; font-family: 'Vazirmatn', sans-serif; font-size: 18px; font-weight: 800; cursor: pointer; text-decoration: none; transition: all 0.3s ease; }
.workshop-entry-button:hover { box-shadow: 0 0 20px rgba(0, 209, 255, 0.6); transform: translateY(-2px); }
.success-links { margin-top: 25px; font-size: 14px; }
.success-links span { color: #aaa; }
.scroll-link { color: #fff; text-decoration: underline; margin: 0 5px; transition: color 0.3s ease; }
.scroll-link:hover { color: #00D1FF; }

/* --- Features Section --- */
.features-section { padding: 100px 0; position: relative; z-index: 10; background-color: rgba(11, 14, 27, 0.5); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature-item { text-align: center; padding: 20px; }
.feature-icon { width: 80px; height: 80px; margin: 0 auto 30px auto; border-radius: 50%; background: rgba(0, 209, 255, 0.1); border: 1px solid rgba(0, 209, 255, 0.3); display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; }
.feature-item:hover .feature-icon { background: rgba(0, 209, 255, 0.2); transform: scale(1.1); box-shadow: 0 0 20px rgba(0, 209, 255, 0.3); }
.feature-icon svg { width: 40px; height: 40px; stroke: #00D1FF; }
.feature-title { font-size: 22px; font-weight: 700; margin-bottom: 15px; color: #fff; }
.feature-text { font-size: 15px; line-height: 1.8; color: #ccc; }

/* --- FAQ Section --- */
.faq-section { padding: 100px 0; position: relative; z-index: 10; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.faq-question { width: 100%; background: transparent; border: none; display: flex; justify-content: space-between; align-items: center; padding: 25px 0; cursor: pointer; text-align: right; }
.faq-question span { font-family: 'Vazirmatn', sans-serif; color: #fff; font-size: 18px; font-weight: 600; }
.faq-icon { stroke: #00D1FF; transition: transform 0.3s ease; flex-shrink: 0; margin-right: 20px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 0 25px 0; margin: 0; font-size: 16px; line-height: 1.9; color: #ccc; }
.faq-answer p strong { color: #fff; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* --- Footer --- */
.site-footer {
    position: relative;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    padding: 20px 40px;
}
.footer-left { display: flex; align-items: center; gap: 30px; }
.footer-contact span { font-size: 14px; color: #aaa; margin-left: 8px; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: 1px; transition: color 0.3s ease; }
.footer-contact a:hover { color: #8f94fb; }
.footer-social { display: flex; gap: 20px; }
.footer-social a svg { stroke: #aaa; transition: all 0.2s ease-in-out; }
.footer-social a:hover svg { stroke: #fff; transform: scale(1.15) rotate(-5deg); }
.footer-right { text-align: left; }
.footer-copyright { font-size: 14px; }
.footer-main-site { text-align: center; }
.main-site-button {
    color: #aaa;
    border: 1px solid #555;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.main-site-button:hover {
    color: #fff;
    border-color: #00D1FF;
    background-color: rgba(0, 209, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 209, 255, 0.3);
}

/* --- استایل موبایل --- */
@media (max-width: 1200px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 992px) {
    .solution-steps { grid-template-columns: 1fr; }
    .solution-steps::after { content: '↓'; transform: translate(50%, -50%); }
    .step-card.featured { transform: scale(1); }
    .course-content-wrapper { grid-template-columns: 1fr; }
    .course-image { display: none; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }
    .footer-left { justify-self: start; }
    .footer-main-site { justify-self: center; }
    .footer-right { justify-self: end; }
}
@media (max-width: 767px) {
    .container { padding: 0 20px; }
    .hero-headline { font-size: 34px; line-height: 1.4; }
    .hero-subheadline { font-size: 16px; }
    .section-title { font-size: 28px; }
    .section-title br { display: block; }
    .problem-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; height: auto; padding: 25px 20px; gap: 25px; }
    .footer-main-site { order: -1; } /* دکمه سایت اصلی در موبایل بالا قرار می‌گیرد */
    .footer-left { flex-direction: column; gap: 20px; text-align: center; }
    .footer-right { text-align: center; }
    .footer-copyright { text-align: center; }
}
@media (max-width: 480px) {
    .step-card.featured .badge {
        width: 150px;
        font-size: 11px;
        top: 22px;
        left: -35px;
    }
}