:root {
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --primary-blue: #0d6efd;
    --primary-blue-light: #e7f1ff;
    --accent-orange: #fd7e14;
    --border-color: #dee2e6;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

/* Modal and Buttons */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; transition: opacity 0.3s ease;
}
.modal-backdrop.active { display: flex; opacity: 1; }
.modal-content {
    background-color: var(--bg-white); padding: 30px 40px; border-radius: 12px;
    max-width: 700px; width: 90%; max-height: 85vh; overflow-y: auto;
    position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-30px); transition: transform 0.3s ease;
}
.modal-backdrop.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 10px; left: 15px; font-size: 2rem;
    font-weight: bold; color: var(--text-muted); cursor: pointer;
    text-decoration: none; line-height: 1; transition: all 0.3s;
    background: none; border: none; padding: 0;
}
.modal-close:hover { color: var(--text-dark); transform: rotate(90deg); }
.modal-title { font-size: 1.8rem; font-weight: 800; color: var(--primary-blue); margin-top: 0; margin-bottom: 25px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; }
.modal-body h3 { font-size: 1.2rem; font-weight: 700; margin-top: 20px; margin-bottom: 10px; }
.modal-body p, .modal-body li { font-size: 1rem; line-height: 2; text-align: justify; color: var(--text-dark); }
.modal-body ul { list-style: none; padding-right: 0; }
.modal-body li { padding-right: 30px; position: relative; margin-bottom: 10px; }
.modal-body li::before { content: '✓'; position: absolute; right: 0; top: 5px; color: var(--primary-blue); font-weight: bold; }
.modal-body .final-word { margin-top: 20px; padding: 15px; background-color: var(--primary-blue-light); border-right: 4px solid var(--primary-blue); font-style: italic; }
.details-btn {
    background: var(--primary-blue-light); border: 1px solid var(--border-color);
    color: var(--primary-blue); padding: 5px 18px; font-size: 0.85rem;
    font-weight: 700; font-family: 'Vazirmatn', sans-serif;
    border-radius: 20px; cursor: pointer; transition: all 0.3s; white-space: nowrap;
}
.details-btn:hover { background: var(--primary-blue); color: white; }
.feature-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.feature-item span { flex-grow: 1; display: flex; align-items: center; gap: 8px; }

/* General Sections */
.main-header { background-color: rgba(255, 255, 255, 0.85); padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); text-decoration: none; }
.main-nav a { margin-right: 25px; text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: var(--primary-blue); }
.hero-section { background-color: var(--bg-white); padding: 100px 0; }
.hero-section .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { flex: 1; text-align: right; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image img { max-width: 80%; border-radius: 50%; box-shadow: 0 10px 40px rgba(13, 110, 253, 0.2); }
.hero-content h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.4; margin-bottom: 20px; }
.hero-content h1 span { color: var(--primary-blue); }
.hero-content p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.cta-button { background-color: var(--accent-orange); color: white; padding: 15px 35px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s; display: inline-block; box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4); }
.cta-button:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 7px 20px rgba(253, 126, 20, 0.5); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px;}
.section-title p { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 10px auto 0; }

/* About Me Section */
.about-me-content { max-width: 800px; margin: 0 auto; text-align: justify; background-color: var(--bg-white); padding: 40px; border-radius: 12px; box-shadow: var(--shadow); }
.about-me-content h3 { font-size: 1.5rem; color: var(--primary-blue); text-align: center; margin-top: 0; margin-bottom: 25px; }

/* AI Approach Section */
.ai-approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; text-align: right;}
.ai-card { background: var(--primary-blue-light); padding: 25px; border-radius: 12px; border: 1px solid var(--primary-blue-light); transition: all 0.3s; }
.ai-card:hover { transform: translateY(-5px); border-color: var(--primary-blue); }
.ai-card h3 { display: flex; align-items: center; gap: 10px; color: var(--primary-blue); }

/* Services Section: Desktop Tabs */
.tabs-container { display: flex; justify-content: center; margin-bottom: 40px; background-color: var(--primary-blue-light); border-radius: 50px; padding: 5px; width: fit-content; margin: 0 auto 40px auto; }
.tab-button { padding: 10px 30px; border: none; background: none; font-family: 'Vazirmatn', sans-serif; font-weight: 700; font-size: 1rem; border-radius: 50px; cursor: pointer; transition: all 0.3s; color: var(--primary-blue); }
.tab-button.active { background-color: var(--primary-blue); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s; }
.service-toggle { display: none; } /* Hide accordion toggle on desktop */

.service-plan { background-color: var(--bg-white); padding: 40px; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 40px; align-items: center; }
.service-plan .price { font-size: 2.5rem; font-weight: 800; color: var(--primary-blue); white-space: nowrap;}
.service-plan .price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); display: block; }
.service-plan ul { list-style: none; padding: 0; margin: 0; }
.service-details { flex-grow: 1; }

.comparison-table-container { margin-top: 60px; }
.comparison-table-container h3 { text-align: center; font-size: 1.5rem; margin-bottom: 30px; }
.comparison-table { width: 100%; border-collapse: collapse; text-align: center; }
.comparison-table th, .comparison-table td { padding: 15px; border: 1px solid var(--border-color); }
.comparison-table thead th { background-color: var(--bg-light); font-weight: 700; }
.comparison-table tbody td:first-child { text-align: right; font-weight: 500; }
.comparison-table .tick { color: #28a745; font-size: 1.5rem; line-height: 1; }
.comparison-table .cross { color: #dc3545; font-size: 1.5rem; line-height: 1; }

.mid-cta-container { text-align: center; margin-top: 50px; }

/* Roadmap Section */
.roadmap-container { display: flex; justify-content: space-between; position: relative; margin-top: 60px; }
.roadmap-container::before { content: ''; position: absolute; top: 30px; right: 0; width: 100%; height: 4px; background-color: var(--border-color); z-index: 1; }
.roadmap-step { flex: 1; text-align: center; position: relative; z-index: 2; }
.step-icon { width: 60px; height: 60px; border-radius: 50%; background-color: var(--bg-white); border: 4px solid var(--border-color); display: flex; justify-content: center; align-items: center; margin: 0 auto 20px auto; font-size: 1.8rem; color: var(--primary-blue); font-weight: 700; transition: all 0.3s; }
.roadmap-step:hover .step-icon { border-color: var(--primary-blue); transform: scale(1.1); }

/* Scholarship Section */
.scholarship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 900px; margin: 40px auto 0; }
.scholarship-card { background-color: var(--bg-white); padding: 30px; border-radius: 12px; box-shadow: var(--shadow); text-align: center; transition: all 0.3s ease; }
.scholarship-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.scholarship-card .icon { font-size: 3rem; margin-bottom: 15px; }
.scholarship-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary-blue); }
.scholarship-card p { color: var(--text-muted); }
.scholarship-card .cta-button { margin-top: 20px; background-color: var(--primary-blue); box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3); }
.scholarship-card .cta-button:hover { box-shadow: 0 7px 20px rgba(13, 110, 253, 0.4); }

/* FAQ Section */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--bg-white); border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 15px; overflow: hidden; }
.faq-question { width: 100%; padding: 20px; background: none; border: none; text-align: right; font-family: 'Vazirmatn', sans-serif; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.faq-answer p { padding: 0 20px 20px; margin: 0; color: var(--text-muted); }

/* Footer */
.main-footer { background-color: var(--text-dark); color: var(--bg-light); padding: 40px 0; text-align: center; }

/* Responsive */
@media (max-width: 992px) {
    .hero-section .container { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; }
    .hero-image img { max-width: 50%; }
}
@media (max-width: 768px) {
    body { font-size: 15px; }
    .hero-content h1 { font-size: 2.2rem; }
    .main-nav { display: none; }
    .ai-approach-grid, .scholarship-grid { grid-template-columns: 1fr; }
    .roadmap-container { flex-direction: column; gap: 40px; }
    .roadmap-container::before { width: 4px; height: 100%; left: 50%; transform: translateX(-50%); }
    
    /* Services Accordion for Mobile */
    .tabs-container, .tab-content { display: none; } /* Hide desktop tabs */
    .service-toggle {
        width: 100%;
        padding: 20px;
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        font-family: 'Vazirmatn', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        text-align: right;
    }
    .service-toggle::after {
        content: '+';
        font-size: 2rem;
        font-weight: 300;
        color: var(--primary-blue);
        transition: transform 0.3s;
    }
    .service-toggle[aria-expanded="true"]::after {
        transform: rotate(45deg);
    }
    .service-content {
        display: block; /* Show content div for accordion logic */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 10px 10px;
        margin-top: -11px;
        margin-bottom: 10px;
    }
    .service-plan { flex-direction: column; text-align: center; padding: 20px; gap: 20px; box-shadow: none; }
    .service-plan ul {text-align: right;}
    .comparison-table td, .comparison-table th { font-size: 0.8rem; padding: 8px 4px;}
}
@media (max-width: 480px) {
  body { font-size: 14px; }
}


