/* style.css - استایل‌های اصلی بنیاد ملی هوش مصنوعی و رباتیک تهران */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #f687b3;
    --dark: #1a202c;
    --gray-dark: #2d3748;
    --gray: #4a5568;
    --gray-light: #a0aec0;
    --light: #f7fafc;
    --white: #ffffff;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== هدر و ویدئو پس‌زمینه ========== */
.hero-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

/* ========== نویگیشن ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.navbar.scrolled .nav-brand .brand-name,
.navbar.scrolled .nav-menu a {
    color: var(--dark);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 45px;
    height: 45px;
  /*  background: linear-gradient(135deg, var(--primary), var(--secondary));*/
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

/* ========== محتوای هدر ========== */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 100px 0;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

/* ========== بخش آمار ========== */
.stats-section {
    padding: 50px 0;  /* از 80px به 50px کاهش یافت */
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    animation: fadeInUp 0.6s ease;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* ========== بخش دوره‌ها ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
}

.title-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

.courses-section {
    padding: 80px 0;
    background: var(--light);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.course-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 40px;
    text-align: center;
}

.course-icon i {
    font-size: 60px;
    color: var(--white);
}

.course-title {
    padding: 20px 20px 10px;
    font-size: 22px;
    color: var(--dark);
}

.course-description {
    padding: 0 20px;
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

.course-details {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    margin: 15px 0;
}

.course-details > div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gray);
}

.course-details i {
    width: 20px;
    color: var(--primary);
}

.course-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.btn-course {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-course:hover {
    background: var(--primary-dark);
    transform: translateX(-5px);
}

/* ========== کارگاه‌ها ========== */
.workshops-section {
    padding: 80px 0;
    background: var(--white);
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.workshop-card {
    background: var(--light);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    text-align: center;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.workshop-date {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 20px;
}

.workshop-date .day {
    font-size: 24px;
    font-weight: 700;
}

.workshop-date .month {
    font-size: 12px;
}

.workshop-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.workshop-card p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 14px;
}

.workshop-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray);
}

.workshop-meta i {
    margin-left: 5px;
    color: var(--primary);
}

.btn-workshop {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-workshop:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== مسیر آموزشی (نقشه راه) ========== */
.roadmap-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.roadmap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.roadmap-line {
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(50%);
}

.roadmap-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roadmap-item:nth-child(even) {
    flex-direction: row-reverse;
}

.roadmap-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    z-index: 1;
}

.roadmap-content {
    width: calc(50% - 40px);
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.roadmap-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.roadmap-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.roadmap-duration {
    display: inline-block;
    background: var(--light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
}

/* ========== اساتید ========== */
.teachers-section {
    padding: 80px 0;
    background: var(--white);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.teacher-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
    padding: 20px;
    transition: var(--transition);
}

.teacher-card:hover .teacher-social {
    bottom: 0;
}

.teacher-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: var(--white);
    border-radius: 50%;
    line-height: 35px;
    margin: 0 5px;
    color: var(--primary);
    transition: var(--transition);
}

.teacher-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.teacher-info {
    padding: 20px;
    text-align: center;
}

.teacher-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--dark);
}

.teacher-specialty {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.teacher-bio {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 15px;
}

.btn-teacher {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-teacher:hover {
    background: var(--primary-dark);
}

/* ========== CTA ========== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    background: var(--white);
    color: var(--primary);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ========== فوتر ========== */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-contact i {
    margin-left: 10px;
    width: 20px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    color: var(--white);
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* ========== انیمیشن‌ها ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .roadmap-item {
        flex-direction: column !important;
        gap: 20px;
        text-align: center;
    }
    
    .roadmap-line {
        display: none;
    }
    
    .roadmap-content {
        width: 100%;
    }

    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ========== حباب‌های متحرک ========== */
.bubbles-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.bubble-stat {
    position: relative;
}

.bubble {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(102, 126, 234, 0.8));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    animation: floatBubble 3s ease-in-out infinite;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset 0 -5px 0 rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    color: white;
    position: relative;
    overflow: hidden;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30%;
    height: 20%;
    background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(255,255,255,0));
    border-radius: 50%;
    opacity: 0.7;
}

.bubble::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 20%;
    height: 15%;
    background: radial-gradient(circle, rgba(255,255,255,0.5), rgba(255,255,255,0));
    border-radius: 50%;
}

.bubble-number {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    z-index: 1;
}

.bubble-label {
    font-size: 12px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 1;
    padding: 0 10px;
    text-align: center;
}

/* انیمیشن‌های مختلف برای هر حباب */
.bubble-stat:nth-child(1) .bubble { animation-delay: 0s; }
.bubble-stat:nth-child(2) .bubble { animation-delay: 0.2s; }
.bubble-stat:nth-child(3) .bubble { animation-delay: 0.4s; }
.bubble-stat:nth-child(4) .bubble { animation-delay: 0.6s; }
.bubble-stat:nth-child(5) .bubble { animation-delay: 0.8s; }
.bubble-stat:nth-child(6) .bubble { animation-delay: 1s; }
.bubble-stat:nth-child(7) .bubble { animation-delay: 1.2s; }

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

.bubble:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(102, 126, 234, 0.9));
}

/* حباب‌های کوچک متحرک در پس‌زمینه */
.stats-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.stats-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

/* ریسپانسیو برای حباب‌ها */
@media (max-width: 768px) {
    .bubble {
        width: 100px;
        height: 100px;
    }
    
    .bubble-number {
        font-size: 22px;
    }
    
    .bubble-label {
        font-size: 10px;
    }
    
    .bubbles-stats-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .bubbles-stats-grid {
        gap: 15px;
    }
    
    .bubble {
        width: 85px;
        height: 85px;
    }
    
    .bubble-number {
        font-size: 18px;
    }
    
    .bubble-label {
        font-size: 9px;
    }
}
/* استایل‌های بهبود یافته برای تغییر سایز حباب با اسکرول - سایز ماکزیمم کاهش یافته */
.bubble {
    transition: width 0.1s linear, height 0.1s linear;
    will-change: width, height;
    width: 120px;
    height: 120px;
}

.bubbles-stats-grid {
    transition: gap 0.1s linear;
    will-change: gap;
    gap: 25px;
}

.bubble .bubble-number,
.bubble .bubble-label {
    transition: font-size 0.1s linear;
    will-change: font-size;
}

/* اطمینان از اینکه بخش آمار در طول اسکرول دیدنی است */
.stats-section {
    min-height: 400px;
    position: relative;
    z-index: 1;
}

/* تنظیم سایز حباب‌ها در ریسپانسیو با ماکزیمم کمتر */
@media (max-width: 768px) {
    .bubble {
        width: 100px;
        height: 100px;
    }
    
    .bubble-number {
        font-size: 22px;
    }
    
    .bubble-label {
        font-size: 10px;
    }
    
    .bubbles-stats-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .bubble {
        width: 85px;
        height: 85px;
    }
    
    .bubble-number {
        font-size: 18px;
    }
    
    .bubble-label {
        font-size: 9px;
    }
    
    .bubbles-stats-grid {
        gap: 15px;
    }
}



/* ========== بخش زمینه‌های فعالیت ========== */
.activities-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    position: relative;
    overflow: hidden;
    
}


/* تغییر رنگ عنوان اصلی به سفید */
.activities-section .section-title {
    color: #ffffff;  /* اضافه کنید یا تغییر دهید */
}

/* تغییر رنگ زیر عنوان به سفید با opacity کمتر */
.activities-section .section-subtitle {
    color: rgba(255, 255, 255, 0.85);  /* اضافه کنید یا تغییر دهید */
}

/* تغییر رنگ خط تزئینی (اختیاری - سفیدتر) */
.activities-section .title-decoration {
    background: linear-gradient(135deg, #ffffff, #a8c0ff);
}

.activities-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.activity-card {
    position: relative;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255,255,255,0.2);
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.activity-card:hover::before {
    left: 100%;
}

.activity-card:hover {
    transform: translateY(-20px) scale(1.05);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.5);
}

.activity-icon {
    font-size: 60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.activity-card:hover .activity-icon {
    transform: scale(1.2) rotate(10deg);
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1.3) rotate(15deg); }
}

.activity-icon i {
    background: linear-gradient(135deg, #fff, #a8c0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.activity-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    position: relative;
    z-index: 2;
}

.activity-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.activity-card:hover .activity-desc {
    opacity: 1;
    transform: translateY(0);
}

.activity-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 0;
}

.activity-card:hover .activity-bg {
    width: 300px;
    height: 300px;
}

/* افکت‌های خاص برای هر کارت */
.activity-card[data-activity="robotic"]:hover .activity-icon i { color: #ff6b6b; text-shadow: 0 0 20px #ff6b6b; }
.activity-card[data-activity="ai"]:hover .activity-icon i { color: #4ecdc4; text-shadow: 0 0 20px #4ecdc4; }
.activity-card[data-activity="electronics"]:hover .activity-icon i { color: #ffe66d; text-shadow: 0 0 20px #ffe66d; }
.activity-card[data-activity="programming"]:hover .activity-icon i { color: #a8e6cf; text-shadow: 0 0 20px #a8e6cf; }
.activity-card[data-activity="automation"]:hover .activity-icon i { color: #ffd93d; text-shadow: 0 0 20px #ffd93d; }

/* ذرات متحرک */
.activity-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.activity-card:hover .activity-particles::before,
.activity-card:hover .activity-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: particleFloat 2s infinite;
}

.activity-card:hover .activity-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.activity-card:hover .activity-particles::after {
    top: 70%;
    right: 15%;
    animation-delay: 0.5s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .activity-title {
        font-size: 20px;
    }
    
    .activity-icon {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-card {
        padding: 30px 15px;
    }
    
    .activity-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
}


/* ========== بخش گواهینامه‌ها و لوح‌های اساتید ========== */
.certificates-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f0c29, #1a1a3e, #0f0c29);
    position: relative;
    overflow: hidden;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: certificateGridMove 30s linear infinite;
    pointer-events: none;
}

@keyframes certificateGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* تغییر رنگ تیترها به سفید */
.certificates-section .section-title {
    color: #ffffff;
}

.certificates-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.certificates-section .title-decoration {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.certificates-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
    transition: left 0.6s;
}

.certificate-card:hover::before {
    left: 100%;
}

.certificate-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
}

.certificate-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #1a1a3e;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-icon {
    transform: rotate(10deg) scale(1.1);
}

.certificate-content {
    flex: 1;
}

.certificate-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 5px;
}

.certificate-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 215, 0, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #FFD700;
}

.certificate-badge i {
    font-size: 12px;
}

.certificate-year {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.3);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 2px;
}

.certificates-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-certificates {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a3e;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.btn-certificates:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
    gap: 18px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .certificate-card {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    
    .certificate-year {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 18px;
    }
    
    .certificates-showcase {
        grid-template-columns: 1fr;
    }
}




/* ========== بخش مسیر آموزشی مدرن ========== */
.roadmap-new-section {
    padding: 100px 0;
    background: linear-gradient(165deg, #050510 0%, #0a0a2a 50%, #0f0f3a 100%);
    position: relative;
    overflow: hidden;
}

/* افکت پس‌زمینه ستاره‌ای */
.roadmap-new-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(rgba(255,215,0,0.5) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    background-position: 0 0, 30px 30px;
    opacity: 0.15;
    animation: starMove 40s linear infinite;
    pointer-events: none;
}

@keyframes starMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* تیترها سفید */
.roadmap-new-section .section-title {
    color: #ffffff;
}

.roadmap-new-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.roadmap-new-section .title-decoration {
    background: linear-gradient(135deg, #FFD700, #FF6B6B, #4ECDC4);
    width: 120px;
    height: 3px;
}

.roadmap-new {
    position: relative;
    padding: 40px 0;
}

.roadmap-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.track-line {
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FF6B6B, #4ECDC4, #FFD700);
    border-radius: 3px;
    filter: blur(2px);
    animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.5; filter: blur(2px); }
    50% { opacity: 1; filter: blur(1px); }
}

.roadmap-node {
    flex: 1;
    min-width: 220px;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.node-marker {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #1a1a4e, #0f0f2a);
    border: 3px solid #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FFD700;
    z-index: 2;
    transition: all 0.3s ease;
}

.marker-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px dashed rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.roadmap-node:hover .marker-dot {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border-color: #FF6B6B;
}

.roadmap-node:hover .marker-ring {
    border-color: #FF6B6B;
    animation-duration: 3s;
}

.node-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.node-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.6s;
}

.roadmap-node:hover .node-card {
    transform: translateY(-15px) scale(1.02);
    border-color: #FF6B6B;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 107, 0.2);
}

.roadmap-node:hover .node-card::before {
    opacity: 1;
}

.node-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.4;
    position: absolute;
    top: 10px;
    right: 15px;
    font-family: monospace;
}

.node-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 12px;
}

.node-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 107, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #FF6B6B;
}

.node-skills {
    list-style: none;
    text-align: right;
}

.node-skills li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.node-skills li i {
    font-size: 12px;
    color: #4ECDC4;
}

.node-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(255,215,0,0.3), transparent);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s;
}

.roadmap-node:hover .node-glow {
    opacity: 1;
}

/* کنترل‌های اسکرول موبایل */
.roadmap-controls {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.roadmap-prev, .roadmap-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #FFD700;
    color: #FFD700;
    cursor: pointer;
    transition: all 0.3s;
}

.roadmap-prev:hover, .roadmap-next:hover {
    background: #FFD700;
    color: #0a0a2a;
    transform: scale(1.1);
}

/* افکت اسکرول خودکار */
.roadmap-track {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 #1a1a4e;
}

.roadmap-track::-webkit-scrollbar {
    height: 5px;
}

.roadmap-track::-webkit-scrollbar-track {
    background: #1a1a4e;
    border-radius: 10px;
}

.roadmap-track::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 10px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .roadmap-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 30px;
        padding: 20px 10px;
    }
    
    .roadmap-node {
        min-width: 280px;
        scroll-snap-align: center;
    }
    
    .track-line {
        display: none;
    }
    
    .roadmap-controls {
        display: flex;
    }
}

@media (max-width: 768px) {
    .roadmap-new-section {
        padding: 60px 0;
    }
    
    .node-card {
        padding: 20px 15px;
    }
    
    .node-title {
        font-size: 20px;
    }
}




/* ========== بخش اساتید برجسته (طراحی مدرن) ========== */
/* ========== بخش اساتید برجسته (طراحی ظریف) ========== */
.teachers-new-section {
    padding: 80px 0;
    background: linear-gradient(165deg, #0a0a1a 0%, #0f0f2a 50%, #0a0a1a 100%);
    position: relative;
    overflow: hidden;
}

.teachers-new-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(rgba(255,215,0,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.teachers-new-section .section-title {
    color: #ffffff;
}

.teachers-new-section .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.teachers-new-section .title-decoration {
    background: linear-gradient(135deg, #FFD700, #FF6B6B);
    width: 80px;
    height: 3px;
}

.teachers-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.teacher-card-elegant {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.teacher-card-elegant:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.teacher-card-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    position: relative;
}

.teacher-avatar {
    position: relative;
    flex-shrink: 0;
}

.teacher-avatar img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.teacher-card-elegant:hover .teacher-avatar img {
    border-color: #FFD700;
    transform: scale(1.05);
}

.teacher-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #4ECDC4;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #0a0a1a;
    border: 2px solid #0a0a1a;
}

.teacher-details {
    flex: 1;
}

.teacher-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 4px;
}

.teacher-field {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.teacher-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.meta-item {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    font-size: 10px;
    color: #4ECDC4;
}

.teacher-social-mini {
    display: flex;
    gap: 8px;
}

.teacher-social-mini a {
    width: 26px;
    height: 26px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 215, 0, 0.7);
    transition: all 0.2s ease;
}

.teacher-social-mini a:hover {
    background: #FFD700;
    color: #0a0a1a;
    transform: scale(1.1);
}

.teacher-link {
    width: 32px;
    height: 32px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD700;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.teacher-link:hover {
    background: #FFD700;
    color: #0a0a1a;
    transform: translateX(-3px);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .teachers-showcase {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .teacher-card-inner {
        padding: 10px;
    }
    
    .teacher-avatar img {
        width: 55px;
        height: 55px;
    }
    
    .teacher-name {
        font-size: 15px;
    }
}


/* ========== بخش آمار مدرن و حرفه‌ای ========== */
.stats-section {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 80px 0;
    overflow: hidden;
}

/* افکت حباب‌های متحرک در پس‌زمینه */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    animation: slowDrift 60s linear infinite;
}

@keyframes slowDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* هدر بخش */
.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.stats-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* شبکه کارت‌ها */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* کارت آماری با افکت شیشه‌ای */
.stat-card-modern {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* پس‌زمینه متحرک در hover */
.stat-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(102, 126, 234, 0.3) 0%, 
                transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.stat-card-modern:hover .stat-hover-bg {
    opacity: 1;
}

/* آیکون */
.stat-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.stat-card-modern:hover .stat-icon {
    color: #a855f7;
    transform: scale(1.1);
}

/* عدد */
.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    margin-bottom: 8px;
}

/* برچسب */
.stat-label {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0;
    }
    .stats-title {
        font-size: 1.8rem;
    }
    .stat-number {
        font-size: 32px;
    }
    .stat-icon {
        font-size: 36px;
    }
    .stats-grid-modern {
        gap: 15px;
    }
}

/* استایل پایه کارت‌ها برای افکت اسکرول */
.stat-card-modern {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                opacity 0.4s ease,
                box-shadow 0.3s ease;
    opacity: 0.3;
    transform: scale(0.7) translateY(40px);
    will-change: transform, opacity;
}

.stat-card-modern.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: calc(var(--order) * 0.08s); /* استگر بر اساس ترتیب */
}

/* اختیاری: افکت hover قوی‌تر */
.stat-card-modern:hover {
    transform: scale(1.05) translateY(-8px) !important;
    box-shadow: 0 25px 40px rgba(0,0,0,0.3);
}




/* ========== منوی موبایل - نهایی (سازگار با iOS 26.5) ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block !important;
        background: rgba(0, 0, 0, 0.7);
        border: none;
        border-radius: 12px;
        width: 44px;
        height: 44px;
        font-size: 24px;
        color: white;
        cursor: pointer;
        z-index: 10001;
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100%;
        background: #1a1a2e;  /* رنگ ساده و یکدست - بدون افکت شیشه‌ای */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: left 0.3s ease-out;
        z-index: 10000;
        padding: 20px;
        margin: 0;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 22px;
        font-weight: 600;
        color: #ffffff !important;
        padding: 10px 15px;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
        width: 100%;
        text-align: center;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: #ffd700 !important;
        border-bottom-color: #ffd700;
    }

    /* دکمه بستن */
    .nav-close-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        background: rgba(255, 255, 255, 0.2);
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        font-size: 28px;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.2s;
    }

    .nav-close-btn:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: rotate(90deg);
    }

    /* جلوگیری از اسکرول صفحه پشت منو */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* مخفی کردن دکمه بستن در دسکتاپ */
@media (min-width: 769px) {
    .nav-close-btn {
        display: none !important;
    }
}




/* ========== بخش خدمات ویژه بنیاد - همسان با بخش آمار ========== */
.bootcamp-section {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 80px 0;
    overflow: hidden;
}
.bootcamp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(102,126,234,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118,75,162,0.15) 0%, transparent 50%);
    pointer-events: none;
}
.bootcamp-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    animation: bootcampSlowDrift 60s linear infinite;
}
@keyframes bootcampSlowDrift {
    0% { transform: translate(0,0); }
    100% { transform: translate(40px,40px); }
}
.bootcamp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.bootcamp-header {
    text-align: center;
    margin-bottom: 50px;
}
.bootcamp-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.bootcamp-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}
.bootcamp-header .decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    margin: 15px auto 0;
    border-radius: 2px;
}
.bootcamp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 2;
}
.bootcamp-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.bootcamp-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,215,0,0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.bootcamp-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.bootcamp-icon i {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bootcamp-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFD700;
}
.bootcamp-desc {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.bootcamp-sub {
    font-size: 0.85rem;
    color: #FFD700;
    font-weight: 500;
    background: rgba(255,215,0,0.15);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    margin-top: 5px;
}

/* ========== ریسپانسیو موبایل - دقیقاً مثل بخش آمار ========== */
@media (max-width: 992px) {
    .bootcamp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .bootcamp-section {
        padding: 50px 0;
    }
    .bootcamp-grid {
        grid-template-columns: 1fr !important;  /* یک ستون در موبایل */
        gap: 20px;
        padding: 0 15px;
    }
    .bootcamp-card {
        padding: 25px 20px;
    }
    .bootcamp-title {
        font-size: 1.4rem;
    }
    .bootcamp-icon {
        font-size: 42px;
    }
    .bootcamp-desc {
        font-size: 0.9rem;
    }
    .bootcamp-sub {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    .bootcamp-header h2 {
        font-size: 1.8rem;
    }
    .bootcamp-header p {
        font-size: 0.9rem;
    }
    .bootcamp-header {
        margin-bottom: 30px;
    }
}
@media (max-width: 480px) {
    .bootcamp-card {
        padding: 20px 15px;
    }
    .bootcamp-title {
        font-size: 1.2rem;
    }
    .bootcamp-icon {
        font-size: 36px;
    }
    .bootcamp-desc {
        font-size: 0.8rem;
    }
    .bootcamp-sub {
        font-size: 0.7rem;
    }
    .bootcamp-header h2 {
        font-size: 1.5rem;
    }
}



    .scroll-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: rgba(255, 215, 0, 0.9);
        background: linear-gradient(135deg, #FFD700, #FFA500);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 99999;
        border: none;
        outline: none;
    }
    .scroll-to-top.show {
        opacity: 1;
        visibility: visible;
    }
    .scroll-to-top:hover {
        transform: scale(1.05);
    }
    .scroll-to-top i {
        font-size: 20px;
        color: #1a1a2e;
    }

    /* موبایل‌های کوچک */
    @media (max-width: 768px) {
        .scroll-to-top {
            width: 38px;
            height: 38px;
            bottom: 16px;
            right: 16px;
            background: rgba(255, 215, 0, 0.95);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .scroll-to-top i {
            font-size: 18px;
        }
        /* وقتی فوتر وجود دارد، کمی بالاتر بیاید تا روی دکمه‌های فوتر نیفتد */
        .scroll-to-top.show {
            bottom: 70px;  /* فاصله از پایین بیشتر برای جلوگیری از تداخل با فوتر */
        }
    }
    @media (max-width: 480px) {
        .scroll-to-top {
            width: 34px;
            height: 34px;
            bottom: 12px;
            right: 12px;
        }
        .scroll-to-top i {
            font-size: 16px;
        }
        .scroll-to-top.show {
            bottom: 65px;
        }
    }

/* =============================================
   روشن‌تر کردن پس‌زمینه از بخش خدمات ویژه تا انتها
   ============================================= */

/* ۱. بخش bootcamp (خدمات ویژه) */
.bootcamp-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}
.bootcamp-section .bootcamp-header h2,
.bootcamp-section .bootcamp-header p {
    color: #212529 !important;
}
.bootcamp-section .bootcamp-card {
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}
.bootcamp-section .bootcamp-card .bootcamp-title {
    color: #0d6efd !important;
}
.bootcamp-section .bootcamp-card .bootcamp-desc,
.bootcamp-section .bootcamp-card .bootcamp-sub {
    color: #495057 !important;
}

/* ۲. بخش آمار */
.stats-section {
    background: #ffffff !important;
}
.stats-section .stats-title {
    color: #212529 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}
.stats-section .stats-subtitle {
    color: #6c757d !important;
}
.stat-card-modern {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}
.stat-card-modern .stat-number {
    background: linear-gradient(135deg, #0d6efd, #6610f2) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}
.stat-card-modern .stat-label {
    color: #495057 !important;
}

/* ۳. بخش زمینه‌های فعالیت */
.activities-section {
    background: #ffffff !important;
}
.activities-section .section-title,
.activities-section .section-subtitle {
    color: #212529 !important;
}
.activities-section .activity-card {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}
.activities-section .activity-card .activity-title {
    color: #0d6efd !important;
}
.activities-section .activity-card .activity-desc {
    color: #495057 !important;
}
.activities-section .activity-icon i {
    color: #0d6efd !important;
    background: none !important;
    -webkit-background-clip: unset !important;
}

/* ۴. بخش گواهینامه‌ها */
.certificates-section {
    background: #f8f9fa !important;
}
.certificates-section .section-title,
.certificates-section .section-subtitle {
    color: #212529 !important;
}
.certificate-card {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}
.certificate-card .certificate-content h3 {
    color: #0d6efd !important;
}
.certificate-card .certificate-content p {
    color: #6c757d !important;
}
.certificate-card .certificate-badge {
    background: #e9ecef !important;
    color: #0d6efd !important;
}
.btn-certificates {
    background: #0d6efd !important;
    color: #fff !important;
}

/* ۵. بخش مسیر آموزشی */
.roadmap-new-section {
    background: #ffffff !important;
}
.roadmap-new-section .section-title,
.roadmap-new-section .section-subtitle {
    color: #212529 !important;
}
.roadmap-new-section .node-card {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}
.roadmap-new-section .node-title {
    color: #0d6efd !important;
}
.roadmap-new-section .node-skills li {
    color: #495057 !important;
}
.roadmap-new-section .node-number {
    opacity: 0.2 !important;
}

/* ۶. بخش اساتید */
.teachers-new-section {
    background: #f8f9fa !important;
}
.teachers-new-section .section-title,
.teachers-new-section .section-subtitle {
    color: #212529 !important;
}
.teacher-card-elegant {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}
.teacher-card-elegant .teacher-name {
    color: #0d6efd !important;
}
.teacher-card-elegant .teacher-field,
.teacher-card-elegant .meta-item {
    color: #6c757d !important;
}

/* ۷. بخش CTA */
.cta-section {
    background: linear-gradient(135deg, #0d6efd, #6610f2) !important;
}
.cta-section .cta-content h2,
.cta-section .cta-content p {
    color: #ffffff !important;
}
.cta-section .btn-large {
    background: #ffffff !important;
    color: #0d6efd !important;
}

/* ۸. فوتر */
.footer {
    background: #212529 !important;
}
.footer .footer-about h3,
.footer .footer-links h4,
.footer .footer-contact h4,
.footer .footer-newsletter h4 {
    color: #f8f9fa !important;
}
.footer .footer-about p,
.footer .footer-links a,
.footer .footer-contact li,
.footer .footer-newsletter p {
    color: #adb5bd !important;
}
.newsletter-form input {
    background: #fff !important;
    color: #212529 !important;
}
.newsletter-form button {
    background: #0d6efd !important;
}

/* =============================================
   تغییر رنگ منو از سفید به مشکی در صفحات روشن
   ============================================= */

/* وقتی نوار بالایی اسکرول می‌خورد (حالت روشن) */
.navbar.scrolled .brand-name,
.navbar.scrolled .nav-menu a {
    color: #000000 !important; /* مشکی پررنگ */
}

/* تغییر رنگ دکمه همبرگری (منو موبایل) به مشکی در حالت اسکرول */
.navbar.scrolled .nav-toggle i {
    color: #000000 !important;
}

/* اختیاری: تغییر رنگ آیکون دکمه بستن منو (اگر در موبایل داخل منو باشد) */
.nav-close-btn {
    color: #ffffff; /* داخل منوی موبایل که پس‌زمینه تیره دارد سفید بماند */
}

/* در صورتی که می‌خواهید لینک فعال هم مشکی باشد */
.navbar.scrolled .nav-menu a.active,
.navbar.scrolled .nav-menu a:hover {
    color: #000000 !important;
    border-bottom-color: #000000;
}

/* اگر هدر در حالت اسکرول شده، پس‌زمینه سفید و متن مشکی است */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* ====== استایل منو در حالت اسکرول شده (پس‌زمینه روشن) ====== */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled .brand-name,
.navbar.scrolled .nav-menu a {
    color: #000000 !important;  /* مشکی */
}

.navbar.scrolled .nav-toggle i {
    color: #000000 !important;
}

.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active {
    color: #000000 !important;
    border-bottom-color: #000000;
}

/* اختیاری: لوگو را نیز در حالت اسکرول تیره کنید (اگر لوگو سفید است) */
.navbar.scrolled .logo {
    filter: brightness(0) invert(0); /* سیاه می‌کند */
}


/* =============================================
   رفع مشکل پس‌زمینه تیره در موبایل
   ============================================= */
@media (max-width: 768px) {
    /* بازنویسی مجدد پس‌زمینه تمام بخش‌های پایین با !important */
    .bootcamp-section,
    .stats-section,
    .activities-section,
    .certificates-section,
    .roadmap-new-section,
    .teachers-new-section {
        background: #ffffff !important;
    }

    /* تنظیم رنگ متن‌ها برای خوانایی */
    .bootcamp-section .bootcamp-header h2,
    .bootcamp-section .bootcamp-header p,
    .stats-section .stats-title,
    .stats-section .stats-subtitle,
    .activities-section .section-title,
    .activities-section .section-subtitle,
    .certificates-section .section-title,
    .certificates-section .section-subtitle,
    .roadmap-new-section .section-title,
    .roadmap-new-section .section-subtitle,
    .teachers-new-section .section-title,
    .teachers-new-section .section-subtitle {
        color: #212529 !important;
        background: none !important;
        -webkit-background-clip: unset !important;
    }

    /* کارت‌ها و المان‌های داخلی */
    .bootcamp-card,
    .stat-card-modern,
    .activity-card,
    .certificate-card,
    .node-card,
    .teacher-card-elegant {
        background: #f8f9fa !important;
        border: 1px solid #dee2e6 !important;
    }

    /* رنگ متن داخل کارت‌ها */
    .bootcamp-card .bootcamp-title,
    .stat-card-modern .stat-number,
    .activity-card .activity-title,
    .certificate-card .certificate-content h3,
    .node-card .node-title,
    .teacher-card-elegant .teacher-name {
        color: #0d6efd !important;
    }

    .bootcamp-card .bootcamp-desc,
    .bootcamp-card .bootcamp-sub,
    .stat-card-modern .stat-label,
    .activity-card .activity-desc,
    .certificate-card .certificate-content p,
    .node-card .node-skills li,
    .teacher-card-elegant .teacher-field {
        color: #495057 !important;
    }

    /* دکمه‌ها و آیکون‌ها */
    .btn-certificates {
        background: #0d6efd !important;
        color: #fff !important;
    }

    .activity-icon i {
        color: #0d6efd !important;
        background: none !important;
    }

    /* فوتر تیره بماند یا روشن؟ طبق درخواست شما فوتر هم روشن شد؟ در کد قبلی فوتر #212529 بود (تیره) اگر می‌خواهید روشن شود اضافه کنید */
    .footer {
        background: #f8f9fa !important;
    }
    .footer .footer-about h3,
    .footer .footer-links h4,
    .footer .footer-contact h4,
    .footer .footer-newsletter h4 {
        color: #212529 !important;
    }
    .footer .footer-about p,
    .footer .footer-links a,
    .footer .footer-contact li,
    .footer .footer-newsletter p {
        color: #6c757d !important;
    }
}

@media (max-width: 768px) {
    .navbar.scrolled .brand-name,
    .navbar.scrolled .nav-menu a {
        color: #000000 !important;
    }
    .navbar.scrolled .nav-toggle i {
        color: #000000 !important;
    }
}