/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.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;
}

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

.nav-logo h2 {
    color: #2d5016;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo span {
    color: #7cb342;
    font-size: 0.9rem;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

.nav-menu a:hover {
    color: #7cb342;
}

.cta-nav {
    background: #7cb342;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-nav:hover {
    background: #689f38;
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9f8 0%, #e8f5e8 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5rem;
    color: #7cb342;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #7cb342;
    color: white;
    border: 2px solid #7cb342;
}

.btn-primary:hover {
    background: #689f38;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 179, 66, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #7cb342;
    border: 2px solid #7cb342;
}

.btn-secondary:hover {
    background: #7cb342;
    color: white;
    transform: translateY(-3px);
}

.urgency-banner {
    background: #ff6b35;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.credentials {
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.credential i {
    color: #7cb342;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.about-text h3 {
    color: #7cb342;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.qualifications {
    margin: 2rem 0;
}

.qualification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #666;
}

.qualification i {
    color: #7cb342;
    font-size: 1.1rem;
}

blockquote {
    background: #f8f9f8;
    padding: 1.5rem;
    border-left: 4px solid #7cb342;
    border-radius: 10px;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: #7cb342;
}

/* Plans Section */
.plans {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9f8 0%, #e8f5e8 100%);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

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

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.plan-card.featured {
    border-color: #7cb342;
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #7cb342;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: #2d5016;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.2rem;
    color: #666;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: #7cb342;
}

.period {
    font-size: 1rem;
    color: #666;
    margin-left: 0.5rem;
}

.savings {
    background: #ff6b35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #666;
}

.plan-features i {
    color: #7cb342;
    font-size: 1.1rem;
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    background: #7cb342;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-plan:hover {
    background: #689f38;
    transform: translateY(-2px);
}

.btn-plan.featured {
    background: #2d5016;
}

.btn-plan.featured:hover {
    background: #1a2f0c;
}

.money-back {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.payment-info {
    text-align: center;
    margin-top: 3rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-logo {
    height: 30px;
}

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
}

.security-badges i {
    color: #7cb342;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: white;
}

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

.testimonial-card {
    background: #f8f9f8;
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: #555;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: #2d5016;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: #7cb342;
    font-size: 0.9rem;
    font-weight: 500;
}

.testimonial-summary {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: center;
}

.summary-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7cb342;
    display: block;
}

.summary-stat .stat-label {
    color: #666;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2d5016 0%, #1a2f0c 100%);
    color: white;
}

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

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: #7cb342;
    width: 30px;
}

.contact-method h4 {
    margin-bottom: 0.25rem;
}

.contact-method p {
    opacity: 0.8;
    margin: 0;
}

.social-links h4 {
    margin-bottom: 1rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(124, 179, 66, 0.2);
    border-radius: 50%;
    color: #7cb342;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #7cb342;
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2d5016;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #7cb342;
    outline: none;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.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: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: #7cb342;
    background: white;
    padding: 0 0.5rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #7cb342;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #689f38;
    transform: translateY(-2px);
}

/* Final CTA Section */
.final-cta {
    padding: 4rem 0;
    background: #7cb342;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary.large {
    background: white;
    color: #7cb342;
}

.btn-primary.large:hover {
    background: #f0f0f0;
}

.btn-secondary.large {
    border-color: white;
    color: white;
}

.btn-secondary.large:hover {
    background: white;
    color: #7cb342;
}

.urgency-final {
    background: #ff6b35;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    background: #1a2f0c;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-brand h3 {
    color: #7cb342;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: #7cb342;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-contact i {
    color: #7cb342;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    opacity: 0.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

/* Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 3000;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #4caf50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification.info {
    border-left: 4px solid #2196f3;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.success .notification-content i {
    color: #4caf50;
}

.notification.error .notification-content i {
    color: #f44336;
}

.notification.info .notification-content i {
    color: #2196f3;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    margin-left: auto;
}

/* Payment Modal Content */
.payment-details {
    text-align: center;
}

.payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #7cb342;
    margin: 1rem 0;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.paypal-btn {
    background: #0070ba;
    color: white;
}

.paypal-btn:hover {
    background: #005ea6;
    transform: translateY(-2px);
}

.stripe-btn {
    background: #635bff;
    color: white;
}

.stripe-btn:hover {
    background: #5a52e8;
    transform: translateY(-2px);
}

.payment-security,
.payment-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.payment-security i,
.payment-guarantee i {
    color: #7cb342;
}

.payment-loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7cb342;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-success {
    text-align: center;
    padding: 2rem;
}

.payment-success i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.payment-success h4 {
    color: #4caf50;
    margin-bottom: 1rem;
}

.payment-error {
    text-align: center;
    padding: 2rem;
}

.payment-error i {
    font-size: 4rem;
    color: #f44336;
    margin-bottom: 1rem;
}

.payment-error h4 {
    color: #f44336;
    margin-bottom: 1rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #7cb342;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #689f38;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.4);
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Field Enhancements */
.form-group input.has-value,
.form-group textarea.has-value {
    border-color: #7cb342;
}

.form-group input.has-value + label,
.form-group textarea.has-value + label {
    color: #7cb342;
}

/* Mobile Navigation Active State */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Plan Card Hover Enhancement */
.plan-card:hover .btn-plan {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 179, 66, 0.3);
}

/* Loading States */
.btn-submit:disabled,
.payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Language Selector Styles */
.language-selector {
    margin-left: 1rem;
}

.language-toggle {
    display: flex;
    background: rgba(124, 179, 66, 0.1);
    border-radius: 25px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.lang-btn.active {
    background: #7cb342;
    color: white;
    transform: translateY(-1px);
}

.lang-btn:hover:not(.active) {
    background: rgba(124, 179, 66, 0.2);
    color: #7cb342;
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Tajawal', 'Inter', sans-serif;
}

[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .hero-container {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-end;
}

[dir="rtl"] .hero-stats {
    justify-content: flex-end;
}

[dir="rtl"] .about-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

[dir="rtl"] .about-text {
    text-align: right;
}

[dir="rtl"] .qualification {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .qualification i {
    margin-left: 0.75rem;
    margin-right: 0;
}

[dir="rtl"] .plan-features li {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .plan-features i {
    margin-left: 0.75rem;
    margin-right: 0;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .author-info {
    text-align: right;
}

[dir="rtl"] .contact-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

[dir="rtl"] .contact-method {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .contact-method i {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .form-group label {
    right: 1rem;
    left: auto;
}

[dir="rtl"] .form-group input:focus + label,
[dir="rtl"] .form-group input:not(:placeholder-shown) + label,
[dir="rtl"] .form-group textarea:focus + label,
[dir="rtl"] .form-group textarea:not(:placeholder-shown) + label {
    right: 0.5rem;
    left: auto;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .footer-contact p {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-contact i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .credentials {
    flex-direction: row-reverse;
}

[dir="rtl"] .credential {
    flex-direction: row-reverse;
}

[dir="rtl"] .credential i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .payment-methods {
    flex-direction: row-reverse;
}

[dir="rtl"] .security-badges {
    flex-direction: row-reverse;
}

[dir="rtl"] .urgency-banner,
[dir="rtl"] .urgency-final {
    flex-direction: row-reverse;
}

[dir="rtl"] .notification-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .payment-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .payment-security,
[dir="rtl"] .payment-guarantee {
    flex-direction: row-reverse;
}

[dir="rtl"] blockquote {
    border-left: none;
    border-right: 4px solid #7cb342;
    text-align: right;
}

[dir="rtl"] .testimonial-summary {
    direction: rtl;
}

/* Arabic Typography Improvements */
.lang-ar {
    line-height: 1.8;
}

.lang-ar h1,
.lang-ar h2,
.lang-ar h3,
.lang-ar h4 {
    font-weight: 700;
    line-height: 1.4;
}

.lang-ar .hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.3;
}

.lang-ar .hero-content h2 {
    line-height: 1.5;
}

.lang-ar .plan-price {
    flex-direction: row-reverse;
}

.lang-ar .plan-price .currency {
    margin-left: 0;
    margin-right: 0.5rem;
}

.lang-ar .plan-price .period {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }

    .payment-options {
        gap: 0.75rem;
    }

    .payment-btn {
        padding: 0.75rem;
        font-size: 1rem;
    }

    /* Mobile Navigation Improvements */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        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;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    /* Language selector mobile positioning */
    .language-selector {
        margin: 2rem 0;
        display: flex;
        justify-content: center;
    }

    .language-toggle {
        min-width: 150px;
        justify-content: center;
    }

    .lang-btn {
        flex: 1;
        justify-content: center;
        min-width: 60px;
    }

    /* Hero section mobile */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 20px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 80px;
    }

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

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
    }

    .urgency-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .qualifications {
        text-align: left;
        max-width: 400px;
        margin: 2rem auto;
    }

    .qualification {
        justify-content: flex-start;
    }

    .credentials {
        position: static;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Plans section mobile */
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .plan-card.featured {
        transform: none;
        order: -1;
    }

    .plan-price {
        justify-content: center;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-summary {
        flex-direction: column;
        gap: 2rem;
    }

    /* Contact section mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
        order: 1;
    }

    .contact-form {
        order: 2;
        padding: 1.5rem;
    }

    .contact-methods {
        justify-content: center;
    }

    .contact-method {
        justify-content: center;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Final CTA mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-primary.large,
    .btn-secondary.large {
        width: 100%;
        max-width: 300px;
    }

    .urgency-final {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* Mobile RTL Support */
@media (max-width: 768px) {
    [dir="rtl"] .hamburger {
        order: -1;
    }

    [dir="rtl"] .nav-container {
        flex-direction: row;
    }

    [dir="rtl"] .nav-menu {
        right: -100%;
        left: auto;
    }

    [dir="rtl"] .nav-menu.active {
        right: 0;
        left: auto;
    }

    [dir="rtl"] .language-selector {
        margin-right: 0;
        margin-left: 0;
    }

    [dir="rtl"] .hero-container {
        direction: ltr; /* Reset for mobile centering */
    }

    [dir="rtl"] .hero-content {
        text-align: center;
    }

    [dir="rtl"] .hero-buttons {
        justify-content: center;
    }

    [dir="rtl"] .hero-stats {
        justify-content: center;
    }

    [dir="rtl"] .about-content {
        direction: ltr; /* Reset for mobile centering */
    }

    [dir="rtl"] .about-text {
        text-align: center;
    }

    [dir="rtl"] .qualifications {
        text-align: right;
    }

    [dir="rtl"] .contact-content {
        direction: ltr; /* Reset for mobile centering */
    }

    [dir="rtl"] .contact-info {
        text-align: center;
    }

    [dir="rtl"] .nav-menu {
        text-align: center;
    }

    [dir="rtl"] .qualification {
        justify-content: flex-end;
    }

    [dir="rtl"] .contact-method {
        justify-content: center;
    }

    [dir="rtl"] .footer-content {
        direction: ltr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments */
    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .payment-loading,
    .payment-success,
    .payment-error {
        padding: 1.5rem;
    }

    .spinner {
        width: 40px;
        height: 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .plan-card {
        padding: 1rem;
    }

    .plan-price .amount {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 1rem;
    }

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

    .urgency-banner,
    .urgency-final {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    /* Arabic mobile typography */
    .lang-ar .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .lang-ar .hero-content h2 {
        font-size: 1rem;
        line-height: 1.5;
    }

    .lang-ar .section-header h2 {
        font-size: 1.8rem;
    }

    .lang-ar .about-text h2 {
        font-size: 1.6rem;
    }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-plan,
    .btn-submit,
    .lang-btn {
        min-height: 48px;
        min-width: 48px;
    }

    .social-link {
        min-height: 48px;
        min-width: 48px;
    }

    .hamburger {
        min-height: 48px;
        min-width: 48px;
        padding: 8px;
    }

    .scroll-to-top {
        min-height: 56px;
        min-width: 56px;
    }
}
