/* ============================================
   ارتقاء - ملف التصميم الرئيسي
   الألوان: أسود | بنفسجي | ذهبي
   ============================================ */

/* === المتغيرات === */
:root {
    --black: #0a0a0a;
    --black-light: #111111;
    --black-lighter: #1a1a1a;
    --black-card: #161616;

    --purple: #7c3aed;
    --purple-light: #8b5cf6;
    --purple-dark: #6d28d9;
    --purple-glow: rgba(124, 58, 237, 0.3);

    --gold: #d4af37;
    --gold-light: #f0d878;
    --gold-dark: #b8960c;
    --gold-glow: rgba(212, 175, 55, 0.3);

    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;

    --gradient-purple: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    --gradient-dark: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);

    --shadow-purple: 0 0 40px var(--purple-glow);
    --shadow-gold: 0 0 40px var(--gold-glow);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.5);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === إعادة الضبط === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* === خلفية متحركة === */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.chess-piece {
    position: absolute;
    font-size: 3rem;
    opacity: 0.03;
    color: var(--purple);
    animation: float-piece 20s infinite ease-in-out;
}

.piece-1 { top: 10%; left: 10%; animation-delay: 0s; }
.piece-2 { top: 20%; right: 15%; animation-delay: 2s; font-size: 4rem; }
.piece-3 { top: 60%; left: 5%; animation-delay: 4s; }
.piece-4 { top: 40%; right: 10%; animation-delay: 6s; font-size: 5rem; }
.piece-5 { top: 80%; left: 20%; animation-delay: 8s; }
.piece-6 { top: 15%; left: 50%; animation-delay: 10s; }
.piece-7 { top: 70%; right: 25%; animation-delay: 12s; font-size: 4rem; }
.piece-8 { top: 30%; left: 30%; animation-delay: 14s; }

@keyframes float-piece {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.03; }
    25% { transform: translateY(-30px) rotate(5deg); opacity: 0.06; }
    50% { transform: translateY(-15px) rotate(-5deg); opacity: 0.04; }
    75% { transform: translateY(-40px) rotate(3deg); opacity: 0.05; }
}

/* === شريط التنقل === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-glow);
}

.logo-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-400);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-purple);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-purple);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--purple-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

/* === القسم الترحيبي === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    text-align: center;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--purple-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge i {
    color: var(--gold);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    text-shadow: none;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 1s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--white);
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--purple-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--purple-light);
    border: 2px solid var(--purple);
    padding: 0.8rem 1.5rem;
}

.btn-outline:hover {
    background: var(--purple);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === إحصائيات === */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--purple), transparent);
}

/* === الجزء المرئي - لوحة الشطرنج === */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.chess-board-3d {
    width: 280px;
    height: 280px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    transform: perspective(800px) rotateX(15deg) rotateY(-15deg);
    animation: board-float 6s ease-in-out infinite;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--purple-glow);
    border-radius: 12px;
    padding: 8px;
    background: rgba(124, 58, 237, 0.1);
}

@keyframes board-float {
    0%, 100% { transform: perspective(800px) rotateX(15deg) rotateY(-15deg) translateY(0); }
    50% { transform: perspective(800px) rotateX(15deg) rotateY(-15deg) translateY(-20px); }
}

.board-square {
    border-radius: 8px;
    transition: var(--transition);
}

.board-square:nth-child(odd) {
    background: var(--black-lighter);
}

.board-square:nth-child(even) {
    background: var(--purple);
    opacity: 0.6;
}

.board-square:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--purple-glow);
}

.floating-pieces {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-piece {
    position: absolute;
    font-size: 2.5rem;
    animation: piece-orbit 8s infinite ease-in-out;
}

.fp-1 { 
    top: -20px; 
    right: 20%; 
    color: var(--gold); 
    animation-delay: 0s;
    text-shadow: 0 0 20px var(--gold-glow);
}
.fp-2 { 
    bottom: 10%; 
    left: -30px; 
    color: var(--purple-light); 
    animation-delay: 2s;
    font-size: 3rem;
}
.fp-3 { 
    top: 30%; 
    right: -40px; 
    color: var(--gold); 
    animation-delay: 4s;
}
.fp-4 { 
    bottom: -10px; 
    right: 10%; 
    color: var(--purple-light); 
    animation-delay: 6s;
    font-size: 2rem;
}

@keyframes piece-orbit {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(10deg); }
    50% { transform: translate(-5px, -25px) rotate(-5deg); }
    75% { transform: translate(15px, -10px) rotate(5deg); }
}

/* === الأقسام العامة === */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--gray-400);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === قسم من نحن === */
.about {
    background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--black-card);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transition: var(--transition);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-purple);
}

.about-card.featured {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-color: rgba(124, 58, 237, 0.3);
    transform: scale(1.05);
}

.about-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-purple);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: var(--shadow-purple);
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.about-card p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === قسم المميزات === */
.features {
    background: var(--black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--black-card);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-card);
}

.feature-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(124, 58, 237, 0.1);
    line-height: 1;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--purple-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === قسم الدورات === */
.courses {
    background: linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course-card {
    background: var(--black-card);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-purple);
}

.course-card.popular {
    border-color: var(--gold);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--black-card) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.course-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--shadow-gold);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-gold);
    color: var(--black);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.course-level {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.course-level.beginner {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.course-level.intermediate {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.course-level.advanced {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.course-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.course-card > p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-500);
    font-size: 0.85rem;
}

.course-meta i {
    color: var(--purple-light);
    margin-left: 0.3rem;
}

/* === قسم التواصل === */
.contact {
    background: var(--black);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--black-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
    transform: translateY(-3px);
    box-shadow: var(--shadow-purple);
}

/* === نموذج التواصل === */
.contact-form {
    background: var(--black-card);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--black);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--white);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--purple-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === الفوتر === */
.footer {
    background: var(--black-light);
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    padding: 4rem 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    color: var(--gray-500);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--purple-light);
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.85rem;
}

/* === الحركات === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--purple-glow); }
    50% { box-shadow: 0 0 40px var(--purple-glow), 0 0 60px var(--gold-glow); }
}

/* === التمرير === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* === التصميم المتجاوب === */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 7rem;
    }

    .hero-visual {
        order: -1;
        min-height: 300px;
    }

    .about-grid,
    .features-grid,
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-line.highlight {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .about-grid,
    .features-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card.popular {
        transform: none;
    }

    .course-card.popular:hover {
        transform: translateY(-10px);
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* === تأثيرات الظهور عند التمرير === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
