* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

.highlight {
    color: #4f46e5;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 20px 8%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links ul li a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: #4f46e5;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-login {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    padding: 8px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: #4f46e5;
    color: #fff;
}

.btn-register {
    background: #4f46e5;
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-register:hover {
    background: #4338ca;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: calc(100vh - 90px);
    padding: 0 8%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0f172a;
}

.hero-content p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-main {
    background-color: #4f46e5;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    transition: 0.3s;
}

.btn-main:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #fff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.hero-image {
    width: 450px;
    height: 350px;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-float, .card-float-2 {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    color: #0f172a;
}

.card-float { top: -20px; right: -20px; }
.card-float-2 { bottom: -20px; left: -20px; color: #eab308; }

/* Features Section */
.features {
    padding: 100px 8%;
    background-color: #ffffff;
    text-align: center;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
    color: #0f172a;
}

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

.feature-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: #4f46e5;
}

.feature-card i { font-size: 40px; color: #4f46e5; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 15px; color: #0f172a; }
.feature-card p { color: #64748b; line-height: 1.5; }

/* Courses Section */
.courses-section {
    padding: 100px 8%;
    background-color: #f1f5f9;
    text-align: center;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    direction: ltr;
}


.course-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    text-align: right;
    direction: rtl;
    transition: 0.3s;
}

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

.course-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.bg-1 { background: linear-gradient(135deg, #4f46e5, #3b82f6); }
.bg-2 { background: linear-gradient(135deg, #9333ea, #c084fc); }
.bg-3 { background: linear-gradient(135deg, #0f172a, #334155); }

.course-info { padding: 25px; }
.course-info h3 { font-size: 18px; margin-bottom: 10px; color: #0f172a; }
.course-info p { color: #64748b; font-size: 14px; margin-bottom: 20px; line-height: 1.5; }

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.price { font-size: 20px; font-weight: bold; color: #4f46e5; }
.btn-enroll {
    background-color: #e0e7ff;
    color: #4f46e5;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-enroll:hover { background-color: #4f46e5; color: white; }

/* Contact Section */
.contact-section {
    padding: 100px 8%;
    background-color: #ffffff;
    direction: rtl;
    text-align: right;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: #f8fafc;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    direction: rtl;
    text-align: right;
}

.contact-info h3 { font-size: 22px; margin-bottom: 20px; color: #0f172a; }
.contact-info p { font-size: 16px; color: #475569; margin-bottom: 15px; display: flex; align-items: center; gap: 12px; }
.contact-info i { color: #4f46e5; font-size: 18px; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    outline: none;
    text-align: right;
    transition: 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}


footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 30px;
    font-size: 14px;
}


@media (max-width: 968px) {
    .hero { flex-direction: column; text-align: center; padding: 50px 8%; gap: 40px; }
    .hero-btns { justify-content: center; }
    .hero-image { width: 100%; max-width: 400px; height: 250px; }
    .contact-container { grid-template-columns: 1fr; padding: 30px; }
    .nav-links { display: none; }
}