html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* نفس ارتفاع الهيدر الثابت */
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-bg: #f8fafc;
    --dark-slate: #0f172a;
    --muted-slate: #475569;
    --border-light: #f1f5f9;
    --indigo-glow: rgba(79, 70, 229, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(224, 231, 255, 0.5), 0 8px 10px -6px rgba(224, 231, 255, 0.4);
    --section-py: 96px;
    --font-main: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: #ffffff;
    color: var(--dark-slate);
    line-height: 1.5;
    overflow-x: hidden;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-slate);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-slate);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 60px;
    line-height: 72px;
    font-weight: 900;
    color: var(--dark-slate);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 20px;
    line-height: 32px;
    color: var(--muted-slate);
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    background: var(--indigo-glow);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-video-box {
    position: relative;
    border-radius: 24px;
    padding: 12px;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.video-trigger {
    position: relative;
    cursor: pointer;
    display: block;
    border-radius: 20px;
    overflow: hidden;
}

.video-trigger img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.video-trigger:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-trigger:hover .play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-trigger:hover .play-btn {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

/* Sections */
section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

.section-tag {
    text-align: center;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 1px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    color: var(--dark-slate);
    margin-bottom: 60px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--indigo-glow);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--muted-slate);
    font-size: 16px;
    line-height: 1.6;
}

/* Curriculum Accordion */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.acc-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.acc-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.acc-header {
    padding: 24px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    color: var(--dark-slate);
    background: white;
    transition: background 0.3s ease;
}

.curriculum-list {
    list-style: none;
    padding: 0;
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f8fafc;
    color: var(--muted-slate);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.curriculum-list li:last-child {
    border-bottom: none;
}

.curriculum-list li i {
    width: 24px;
    height: 24px;
    background: var(--indigo-glow);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.curriculum-list li:hover {
    color: var(--dark-slate);
    padding-right: 5px;
}

.acc-header:hover {
    background: var(--secondary-bg);
}

.acc-content {
    padding: 0 32px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.acc-content.active {
    padding: 24px 32px;
    max-height: 500px;
    border-top: 1px solid var(--border-light);
}

/* Payments */
.payments-section {
    background: var(--dark-slate);
    color: white;
}

.payment-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    padding: 100px 0 40px;
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark-slate);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--muted-slate);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--muted-slate);
    transition: all 0.2s ease;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    display: block;
    color: var(--dark-slate);
}

.footer-col.about p {
    color: var(--muted-slate);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-slate);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.2);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--muted-slate);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    .social-links {
        justify-content: center;
    }
    .footer-col ul li {
        justify-content: center;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content h1 {
        font-size: 48px;
        line-height: 56px;
    }
    .hero-content .btn-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    nav {
        height: 70px;
    }
    .logo {
        font-size: 1.1rem;
    }
    .logo span {
        display: none; /* إخفاء كلمة ACADEMY على الشاشات الصغيرة جداً إذا لزم الأمر */
    }
    .hero-content h1 {
        font-size: 36px;
        line-height: 44px;
    }
    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }
}
