* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cairo", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    direction: rtl;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo img {
    width: 3rem;
    height: 3rem;
}

.nav-logo {
    flex: 0 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #67d6c6;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #67d6c6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    flex: 0 0 auto;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #67d6c6 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(90deg, #67d6c6 0%, #667eea 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(103, 214, 198, 0.08);
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #667eea 0%, #67d6c6 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(103, 214, 198, 0.13);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #67d6c6;
}

.btn-outline {
    background: transparent;
    color: #67d6c6;
    border: 2px solid #67d6c6;
}

.btn-outline:hover {
    background: #67d6c6;
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    animation: fadeInRight 1s ease 0.8s both;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-description {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f9fafb;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #67d6c6;
    margin-bottom: 1rem;
}

.footer-description {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #67d6c6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* FAQ Answer Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.faq-answer.open {
    opacity: 1;
    max-height: 300px;
    /* enough for most answers */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* App Screens Slider Fix */
.slider-wrapper {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s;
    z-index: 1;
}
.slide.active {
    display: block;
    position: relative;
    opacity: 1;
    z-index: 2;
}
.app-slider-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.2s;
}
.slider-arrow:hover {
    background: #f3f4f6;
}
.slider-arrow.prev {
    left: -40px;
}
.slider-arrow.next {
    right: -40px;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.slider-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e7ff;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dots span.active {
    background: #67d6c6;
}
@media (max-width: 600px) {
    .slider-wrapper {
        max-width: 98vw;
    }
    .slider {
        height: 320px;
    }
    .slider-arrow.prev {
        left: 0;
    }
    .slider-arrow.next {
        right: 0;
    }
}

/* Contact Card Enhancements */
.contact-card {
    transition: box-shadow 0.3s;
    padding: 2.5rem 2.5rem;
}
.contact-card:hover {
    box-shadow: 0 8px 32px rgba(103, 214, 198, 0.15);
}
@media (max-width: 600px) {
    .contact-card {
        padding: 1.5rem 0.5rem;
    }
}

/* Floating label form group */
.form-group {
    position: relative;
    margin-bottom: 2.2rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.08rem;
    padding: 22px 18px 10px 18px;
    transition: border 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 2px rgba(103, 214, 198, 0.03);
    outline: none;
    color: #222;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #67d6c6;
    box-shadow: 0 0 0 2px #67d6c633;
    background: #fff;
}
.form-group label {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #67d6c6;
    font-size: 1.05rem;
    font-weight: 600;
    pointer-events: none;
    background: transparent;
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 4px;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0px;
    right: 14px;
    font-size: 0.92rem;
    color: #667eea;
    /* background: #fff; */
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 0;
    padding-bottom: 0;
}

.btn-primary {
    background: linear-gradient(90deg, #67d6c6 0%, #667eea 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(103, 214, 198, 0.08);
    transition: background 0.3s, transform 0.2s;
    padding: 14px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 1.13rem;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #667eea 0%, #67d6c6 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(103, 214, 198, 0.13);
}

@media (max-width: 600px) {
    .form-group label {
        right: 12px;
        font-size: 1rem;
    }
    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:focus + label,
    .form-group textarea:not(:placeholder-shown) + label {
        right: 8px;
        font-size: 0.9rem;
    }
}

/* Contact Form Success Message */
.contact-success-message {
    background: #e6fcf6;
    color: #059669;
    border: 1.5px solid #67d6c6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.contact-section {
    background: #f6fafd;
    padding: 80px 0 60px 0;
}

.contact-flex {
    display: flex;
    gap: 3.5rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 950px;
    margin: 0 auto;
}

.contact-card,
.contact-info-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(103, 214, 198, 0.1);
    border: 1.5px solid #e5e7eb;
    padding: 2.8rem 2.2rem 2.2rem 2.2rem;
    min-width: 320px;
    max-width: 420px;
    flex: 1 1 370px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-card {
    align-items: flex-start;
    gap: 2.2rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-left: 0.5rem;
}

.contact-info-text {
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 500;
    direction: ltr;
    word-break: break-word;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #67d6c6;
    margin-bottom: 2.2rem;
    text-align: right;
}

.contact-form label {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    color: #67d6c6;
    font-weight: 600;
    text-align: right;
}

.contact-form input,
.contact-form textarea {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    padding-bottom: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 2px rgba(103, 214, 198, 0.03);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #67d6c6;
    box-shadow: 0 0 0 2px #67d6c633;
    background: #fff;
}

.btn-primary {
    background: linear-gradient(90deg, #67d6c6 0%, #667eea 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(103, 214, 198, 0.08);
    transition: background 0.3s, transform 0.2s;
    padding: 12px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 0.8rem;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #667eea 0%, #67d6c6 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(103, 214, 198, 0.13);
}

@media (max-width: 1100px) {
    .contact-flex {
        max-width: 100%;
        gap: 2rem;
    }
    .contact-card,
    .contact-info-card {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .contact-card,
    .contact-info-card {
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }
    .contact-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .contact-card,
    .contact-info-card {
        padding: 1.5rem 0.5rem;
    }
    .contact-section {
        padding: 40px 0 30px 0;
    }
}

.contact-section,
.contact-page-flex,
.contact-info-side,
.contact-form-side,
.contact-form,
.form-group {
    text-align: right;
}

.contact-info-side {
    align-items: flex-start !important;
}

.contact-form label,
.contact-form input,
.contact-form textarea {
    direction: rtl;
    text-align: right;
}

.form-group label {
    right: 18px;
    left: unset;
}

@media (max-width: 900px) {
    .contact-info-side,
    .contact-form-side {
        border-radius: 2rem 2rem 0 0 !important;
    }
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.97rem;
    margin-top: 0.2rem;
    min-height: 1.2em;
    text-align: right;
}
input.is-invalid,
textarea.is-invalid {
    border-color: #e53e3e !important;
    background: #fff0f0;
}
.form-notification {
    display: none;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.15);
    transition: opacity 0.3s;
}
.form-notification.error {
    background: #e53e3e;
}
