:root {
    --light-bg: #f4f7fe;
    --primary-glow: #6366f1;
    --secondary-glow: #10b981;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --white-color: #ffffff;
}

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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    scroll-behavior: smooth;
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.6;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    right: -100px;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-glow);
    bottom: -50px;
    left: -50px;
}

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

section {
    padding: 100px 0;
    position: relative;
}

h1, h2, h3 {
    font-weight: 800;
}

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

.glass-card {
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: right;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero h1 .highlight {
    background: -webkit-linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-color);
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

#about p {
    font-size: 1.2rem;
    line-height: 2.2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

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

.feature-card {
    text-align: center;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--primary-glow), var(--secondary-glow));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}
.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-glow);
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
}
.qa-item {
    margin-bottom: 15px;
}
.qa-item summary {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.qa-item summary::-webkit-details-marker {
    display: none;
}
.qa-item summary::after {
    content: '+';
    position: absolute;
    left: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.qa-item[open] summary::after {
    transform: rotate(45deg);
}
.qa-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

#other-courses .glass-card {
    text-align: center;
}
#other-courses p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.slider-card {
    padding: 20px;
    overflow: hidden; 
}
.swiper-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
}
.swiper-slide {
    overflow: hidden;
    border-radius: 20px;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-custom {
    text-align: center;
    padding-top: 25px;
}
.swiper-pagination-custom .swiper-pagination-bullet {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin: 0 5px;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}
.swiper-pagination-custom .swiper-pagination-bullet-active {
    color: var(--white-color);
    background-color: var(--primary-glow);
    transform: scale(1.15);
}


#contact .glass-card {
    text-align: center;
    padding: 50px;
}

#contact h2 {
    margin-bottom: 20px;
}

#contact p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info .info-item h3 {
    color: var(--primary-glow);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-info .info-item .detail {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}
.contact-info .info-item .detail a {
    color: var(--text-primary);
    text-decoration: none;
}

@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    section { padding: 80px 0; }
    h2.section-title { font-size: 1.8rem; }
    .hero { min-height: auto; padding: 120px 0 80px; }
    .hero-container { 
        flex-direction: column-reverse;
        text-align: center; 
    }
    .hero-content { text-align: center; }
    .hero p { margin: 0 auto 40px; }
    .hero h1 { font-size: 2.2rem; }
    .swiper-container {
        height: 250px;
    }
}