@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.instructor-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.instructor-image::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 50%;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
}

.course-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 30px 0;
    line-height: 1.2;
}

.course-title .highlight {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.price-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.discounted-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e74c3c;
    margin-bottom: 20px;
}

.timer-container {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 15px;
    padding: 20px;
    color: white;
    text-align: center;
    margin: 20px 0;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.timer-unit {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px 10px;
    min-width: 70px;
}

.timer-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.timer-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.consultation-form {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin: 40px 0;
}

.form-control {
    border-radius: 10px;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-control::placeholder {
    text-align: center;
    color: #999;
    opacity: 1;
}

.btn-submit {
    background: linear-gradient(135deg, #00b894, #00a085);
    border: none;
    border-radius: 10px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
}

.section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 3px;
}

.section-separator {
    text-align: center;
    margin: 60px 0;
    position: relative;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #74b9ff, #0984e3, #74b9ff, transparent);
    z-index: 1;
}

.section-separator .separator-icon {
    background: white;
    color: #74b9ff;
    font-size: 2rem;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.3);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 2px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.stats-card {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.stats-number {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    background: rgba(116, 185, 255, 0.1);
    margin: 15px 0;
    padding: 20px;
    border-radius: 10px;
    border-right: 5px solid #74b9ff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.features-list li:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.2);
}

.features-list i {
    color: #74b9ff;
    margin-left: 10px;
    font-size: 1.3rem;
}

.instructor-bio {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
}

.instructor-achievements {
    list-style: none;
    padding: 0;
}

.instructor-achievements li {
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #ffd700;
}

.footer {
    background: #2d3436;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #74b9ff;
    transform: translateY(-3px);
}

.curriculum-item {
    background: rgba(116, 185, 255, 0.05);
    border: 1px solid rgba(116, 185, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    background: rgba(116, 185, 255, 0.1);
    transform: translateX(-3px);
}

.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.success-popup-content {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.success-popup.show .success-popup-content {
    transform: scale(1);
    opacity: 1;
}

.success-popup h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.success-popup p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.success-popup .btn-confirm {
    background: white;
    color: #00b894;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-popup .btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.error-message {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    display: none;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .course-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    .section-title {
        font-size: 1.4rem !important;
        margin-bottom: 20px !important;
    }
    
    .discounted-price {
        font-size: 1.8rem !important;
    }
    
    .original-price {
        font-size: 1rem !important;
    }
    
    .timer {
        gap: 8px !important;
    }
    
    .timer-unit {
        min-width: 50px !important;
        padding: 8px 5px !important;
    }
    
    .timer-number {
        font-size: 1.2rem !important;
    }
    
    .timer-label {
        font-size: 0.8rem !important;
    }
    
    .consultation-form h3 {
        font-size: 1.3rem !important;
    }
    
    .stats-number {
        font-size: 2rem !important;
    }
    
    .stats-card h4 {
        font-size: 1.1rem !important;
    }
    
    .features-list li {
        font-size: 0.95rem !important;
        padding: 15px !important;
    }
    
    .instructor-bio h3 {
        font-size: 1.4rem !important;
    }
    
    .instructor-bio p {
        font-size: 0.9rem !important;
    }
    
    .instructor-achievements li {
        font-size: 0.9rem !important;
        padding: 12px !important;
    }
    
    .hero-section {
        padding: 40px 0 !important;
    }
    
    .section {
        padding: 25px 15px !important;
        margin: 20px 0 !important;
    }
    
    .consultation-form {
        padding: 25px 15px !important;
    }
    
    .instructor-bio {
        padding: 25px 15px !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media screen and (max-width: 480px) {
    .course-title {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }
    
    .section-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .discounted-price {
        font-size: 1.5rem !important;
    }
    
    .timer-number {
        font-size: 1rem !important;
    }
    
    .timer-unit {
        min-width: 45px !important;
        padding: 6px 3px !important;
    }
    
    .consultation-form h3 {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
    }
    
    .instructor-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .stats-number {
        font-size: 1.8rem !important;
    }
    
    .stats-card h4 {
        font-size: 1rem !important;
    }
    
    .features-list li {
        font-size: 0.85rem !important;
        padding: 12px !important;
    }
    
    .instructor-bio h3 {
        font-size: 1.2rem !important;
    }
    
    .instructor-bio p {
        font-size: 0.85rem !important;
    }
    
    .price-section {
        padding: 20px !important;
    }
    
    .timer-container h4 {
        font-size: 1rem !important;
    }
    
    h1, h2, h3, h4 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}