/* Pricing Section Styles */
.pricing {
    background-color: var(--bg-color);
    position: relative;
    padding: 4rem 1rem;
}

[data-theme="dark"] .pricing {
    background-color: var(--bg-color);
}

.pricing .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plan:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(77, 144, 254, 0.5);
}

.plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: transparent;
    transition: all 0.3s ease;
    z-index: -1;
}

.plan:hover::before {
    box-shadow: 0 0 30px rgba(77, 144, 254, 0.3);
}

.plan.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.plan.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
}

.plan .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.plan .price .period {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.plan ul li {
    color: var(--text-color);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan ul li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.plan ul li span {
    flex: 1;
}

/* محاذاة النص العربي لليمين والإنجليزي لليسار في المميزات فقط */
[lang="ar"] .plan ul li span {
    text-align: right;
}

[lang="en"] .plan ul li span {
    text-align: left;
}

/* Dark theme adjustments */
[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --border-color: #2a2a2a;
    --card-bg: #1a1a1a;
    --hover-bg: #2a2a2a;
}

[data-theme="dark"] .pricing {
    background-color: var(--bg-color);
    position: relative;
    min-height: 100vh;
}

[data-theme="dark"] .pricing-grid {
    gap: 2.5rem;
    padding: 2rem;
}

[data-theme="dark"] .plan {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

[data-theme="dark"] .plan:hover {
    transform: var(--hover-lift);
    box-shadow: 0 8px 15px var(--shadow-color);
    background: var(--hover-bg);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .plan h3 {
    color: #e8eaed;
}

[data-theme="dark"] .plan .price {
    color: var(--secondary-color);
}

[data-theme="dark"] .plan ul li {
    color: #bdc1c6;
}

[data-theme="dark"] .plan ul li i {
    color: var(--primary-color);
}

[data-theme="dark"] .plan ul li span {
    color: #bdc1c6;
}

/* Variables */
:root {
    --primary-color: #074486;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family-ar: 'Tajawal', sans-serif;
    --font-family-en: 'Tajawal', sans-serif;
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-bg: #f5f5f5;
    --transition-speed: 0.3s;
    --hover-lift: translateY(-5px);
    --contact-bg: #f8f9fa;
    --main-bg: #ffffff;
    --chat-bg: #2c2c2c;
    --iframe-bg: #ffffff;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --border-color: #2a2a2a;
    --light-color: #2a2a2a;
    --card-bg: #1a1a1a;
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-bg: #202020;
    --primary-color: #4d90fe;
    --secondary-color: #8ab4f8;
    --contact-bg: #1e1e1e;
    --main-bg: #111111;
    --chat-bg: #2c2c2c;
    --iframe-bg: #484848;
}

/* Dark Theme Specific Styles */
[data-theme="dark"] {
    background-color: var(--main-bg);
    color: var(--text-color);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(77, 144, 254, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(77, 144, 254, 0.03) 0%, transparent 50%);
}

/* Dark Theme Specific Styles */
[data-theme="dark"] {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(77, 144, 254, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(77, 144, 254, 0.03) 0%, transparent 50%);
}

[data-theme="dark"] .navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .nav-links a {
    color: #e8eaed;
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--secondary-color);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #051937 0%, #062c69 35%, #004280 65%, #005b9f 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right,
        rgba(77, 144, 254, 0.2) 0%,
        rgba(24, 57, 120, 0.2) 50%,
        transparent 100%
    );
    pointer-events: none;
}

[data-theme="dark"] .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(0, 86, 179, 0.15) 100%
    );
    pointer-events: none;
}

[data-theme="dark"] .hero .container {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero h1 {
    background: linear-gradient(to right, #ffffff, #8ab4f8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card,
[data-theme="dark"] .plan,
[data-theme="dark"] .feature {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-color);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .plan:hover,
[data-theme="dark"] .feature:hover {
    transform: var(--hover-lift);
    box-shadow: 0 8px 15px var(--shadow-color);
    background: var(--hover-bg);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .feature h3 {
    color: #e8eaed;
}

[data-theme="dark"] .feature p {
    color: #bdc1c6;
}

[data-theme="dark"] .pricing-grid .plan {
    background: var(--card-bg);
}

[data-theme="dark"] .pricing-grid .plan.popular {
    background: #303134;
    border: 2px solid var(--secondary-color);
}

[data-theme="dark"] .plan h3 {
    color: #e8eaed;
}

[data-theme="dark"] .plan .price {
    color: var(--secondary-color);
}

[data-theme="dark"] .plan ul li {
    color: #bdc1c6;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #e8eaed;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
}

[data-theme="dark"] .btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

[data-theme="dark"] .btn:hover {
    background: #1a73e8;
    transform: translateY(-2px);
}

[data-theme="dark"] .chat-container {
    background: var(--chat-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .chat-messages {
    background: var(--chat-bg);
    border-radius: 10px;
    padding: 1rem;
}

[data-theme="dark"] .message {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    color: #e8eaed;
}

[data-theme="dark"] .message.user {
    background: rgba(77, 144, 254, 0.1);
    border-color: rgba(77, 144, 254, 0.2);
}

[data-theme="dark"] .message.bot {
    background: var(--hover-bg);
}

[data-theme="dark"] .chat-input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

[data-theme="dark"] .chat-input input {
    background: var(--chat-bg);
    border: 1px solid var(--border-color);
    color: #e8eaed;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

[data-theme="dark"] .chat-input input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
}

[data-theme="dark"] .chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .chat-input button:hover {
    background: #1a73e8;
    transform: translateY(-2px);
}

[data-theme="dark"] .footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    color: #bdc1c6;
}

[data-theme="dark"] .footer a {
    color: var(--secondary-color);
}

[data-theme="dark"] .footer a:hover {
    color: #4d90fe;
}

/* Theme Toggle Styles */
[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle i {
    color: #ffd700;
}

/* Improved text readability in dark mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #e8eaed;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] li {
    color: #bdc1c6;
}

[data-theme="dark"] strong,
[data-theme="dark"] b {
    color: #e8eaed;
}

/* Smooth transition for theme switch */
body * {
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease,
                border-color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-speed) ease;
}

/* Base Typography */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* RTL/LTR Base Styles */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

/* Text Alignment */
[dir="rtl"] .text-align {
    text-align: right;
}

[dir="ltr"] .text-align {
    text-align: left;
}

/* Font Family Control */
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] .btn,
[dir="rtl"] .nav-link {
    font-family: var(--font-family-ar);
}

[dir="ltr"] body,
[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] h5,
[dir="ltr"] h6,
[dir="ltr"] p,
[dir="ltr"] .btn,
[dir="ltr"] .nav-link {
    font-family: var(--font-family-en);
}

/* RTL/LTR Navigation Adjustments */
html[lang="en"] .nav-links {
    flex-direction: row-reverse;
}

/* Ensure other elements maintain their original direction */
html[lang="en"] .nav-controls,
html[lang="en"] .auth-buttons,
html[lang="en"] .nav-language-switcher {
    flex-direction: row;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Navigation */
.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* Features */
.feature {
    text-align: center;
    padding: 2rem;
}

.feature h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Pricing Plans */
.plan {
    text-align: center;
    padding: 2rem;
}

.plan h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.plan ul li {
    margin: 0.75rem 0;
    font-size: 1rem;
}

/* Language Switcher */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 1rem;
}

.nav-language-switcher {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 20px;
    direction: ltr !important;
}

.nav-language-switcher .lang-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: var(--font-family-ar);
}

.nav-language-switcher .lang-btn[data-lang="ar"].active,
.nav-language-switcher .lang-btn[data-lang="en"].active {
    background: var(--primary-color);
    color: white;
}

.nav-language-switcher .lang-btn:hover {
    opacity: 0.9;
}

/* Dark theme support */
[data-theme="dark"] .nav-language-switcher {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .nav-language-switcher .lang-btn {
    color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-controls {
        gap: 10px;
    }
    
    .nav-language-switcher {
        padding: 3px;
    }
    
    .nav-language-switcher .lang-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .feature h3 {
        font-size: 1.3rem;
    }
}

/* Fix for mixed content */
[dir="rtl"] [lang="en"],
[dir="ltr"] [lang="ar"] {
    font-family: inherit;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #404040;
    --light-color: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all var(--transition-speed) ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* RTL/LTR Support with Typography */
html[dir="rtl"] {
    font-family: var(--font-family-ar);
}

html[dir="rtl"] body {
    font-family: var(--font-family-ar);
    text-align: right;
}

html[dir="ltr"] {
    font-family: var(--font-family-en);
}

html[dir="ltr"] body {
    font-family: var(--font-family-en);
    text-align: left;
}

/* Fix English text alignment in RTL mode */
html[dir="rtl"] [data-en] {
    font-family: var(--font-family-en);
    letter-spacing: 0.2px;
}

/* Fix Arabic text alignment in LTR mode */
html[dir="ltr"] [data-ar] {
    font-family: var(--font-family-ar);
    letter-spacing: normal;
}

/* Adjust heading sizes and weights */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Price text adjustments */
.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

html[dir="ltr"] .price {
    font-family: var(--font-family-en);
}

html[dir="rtl"] .price {
    font-family: var(--font-family-ar);
}

/* Button text adjustments */
.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
}

html[dir="ltr"] .btn {
    font-family: var(--font-family-en);
}

html[dir="rtl"] .btn {
    font-family: var(--font-family-ar);
}

/* Navigation text adjustments */
nav {
    font-weight: 500;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Feature text adjustments */
.feature h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    font-weight: 600;
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

/* Plan text adjustments */
.plan h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan ul {
    font-size: 1rem;
    line-height: 1.8;
}

/* Footer text adjustments */
footer {
    font-size: 0.9rem;
}

footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Enhanced Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.fadeIn {
    animation-name: fadeIn;
}

/* Interactive Elements */
.btn, .feature, .plan, .nav-link {
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease,
                background-color var(--transition-speed) ease;
}

.btn:hover, .feature:hover, .plan:hover {
    transform: var(--hover-lift);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 60px;
    display: flex;
    align-items: center;
    direction: rtl !important;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    direction: rtl !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    direction: rtl !important;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.3rem 0;
}

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

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

/* Keep language switcher in LTR always */
.nav-language-switcher {
    direction: ltr !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to left, rgba(0, 38, 77, 0.9), rgba(0, 38, 77, 0.7)), url('hero-bg.jpg') center/cover;
    padding: 4rem 1rem;
    animation: gradientAnimation 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(0, 86, 179, 0.15) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: textFadeIn 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    line-height: 1.8;
    animation: textFadeIn 1.2s ease-out;
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1.4s ease-out;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: #074486;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

/* Features Section */
.features {
    padding: 4rem 1rem;
    background: var(--light-color);
}

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

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.feature {
    padding: 2rem;
    border-radius: 15px;
    background: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(var(--primary-color-rgb), 0.1));
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.feature:hover:before {
    opacity: 1;
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.feature:hover i {
    transform: scale(1.1) rotate(10deg);
}

.feature h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

.feature p {
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Pricing Section */
.pricing {
    padding: 4rem 1rem;
    background-color: var(--bg-color);
    position: relative;
}

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

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

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

.plan {
    border-radius: 20px;
    background: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.plan.popular {
    transform: scale(1.05);
}

.plan.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.plan:hover:before {
    transform: scaleX(1);
}

.plan h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
}

.plan .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.plan .price .period {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
}

.plan ul {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: right;
}

.plan ul li {
    margin: 0.75rem 0;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.plan ul li i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

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

.contact-info {
    padding: 2rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

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

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 68, 134, 0.1);
    border-radius: 50%;
}

.contact-form {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Dark theme adjustments for contact section */
[data-theme="dark"] .contact-form {
    background: var(--dark-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .form-control {
    background: var(--dark-color);
    border-color: #444;
}

/* Responsive design for contact section */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

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

/* Contact */
.contact {
    padding: 4rem 1rem;
    background: var(--light-color);
}

.contact .container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact form {
    display: grid;
    gap: 1.5rem;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact form input,
.contact form select,
.contact form textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact form input:focus,
.contact form select:focus,
.contact form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.contact form input::placeholder,
.contact form textarea::placeholder {
    color: #999;
}

.contact form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.contact form button:hover {
    background: #074486;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.contact form button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.contact-info {
    text-align: center;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.contact-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #00b8d4);
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    animation: textFadeIn 0.8s ease-out;
}

.contact-info p {
    margin-bottom: 1.8rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.8;
    animation: fadeIn 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

.contact-info p i {
    margin-left: 0.5rem;
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    text-align: center;
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-info p:hover i {
    transform: rotate(360deg);
}

.contact-info .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    animation: fadeIn 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.contact-info .social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: rgba(0, 123, 255, 0.1);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-info .social-links a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: -1;
}

.contact-info .social-links a:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.contact-info .social-links a:hover::after {
    transform: scale(1);
}

.contact-info .social-links a:nth-child(1) { transition-delay: 0.1s; }
.contact-info .social-links a:nth-child(2) { transition-delay: 0.2s; }
.contact-info .social-links a:nth-child(3) { transition-delay: 0.3s; }
.contact-info .social-links a:nth-child(4) { transition-delay: 0.4s; }

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 1rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

section.visible {
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

/* Enhanced Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.fadeIn {
    animation-name: fadeIn;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    nav ul.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: auto;
        bottom: 1rem;
        right: 1rem;
    }

    [dir="ltr"] .language-switcher {
        right: auto;
        left: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Theme Toggle Styles */
.theme-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-toggle i.rotate {
    animation: rotateIcon 0.5s ease-in-out;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .theme-toggle i {
    color: #ffd700;
}

[data-theme="dark"] .features,
[data-theme="dark"] .pricing,
[data-theme="dark"] .about,
[data-theme="dark"] .contact {
    position: relative;
    background: var(--bg-color);
    overflow: hidden;
}

[data-theme="dark"] .features::before,
[data-theme="dark"] .pricing::before,
[data-theme="dark"] .about::before,
[data-theme="dark"] .contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(77, 144, 254, 0.02) 0%, transparent 100%),
        radial-gradient(circle at top right, rgba(77, 144, 254, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

[data-theme="dark"] section {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .section-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .section-description {
    color: #bdc1c6;
}

/* Contact Section Dark Theme */
[data-theme="dark"] .chat-section {
    background-color: var(--contact-bg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .chat-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, rgba(77, 144, 254, 0.03) 0%, transparent 50%),
        radial-gradient(circle at top right, rgba(77, 144, 254, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .chat-container {
    background: var(--chat-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .chat-header h2 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .message {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    color: #e8eaed;
}

[data-theme="dark"] .message.user {
    background: rgba(77, 144, 254, 0.1);
    border-color: rgba(77, 144, 254, 0.2);
}

[data-theme="dark"] .message.bot {
    background: var(--hover-bg);
}

[data-theme="dark"] .chat-input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

[data-theme="dark"] .chat-input input {
    background: var(--chat-bg);
    border: 1px solid var(--border-color);
    color: #e8eaed;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

[data-theme="dark"] .chat-input input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(77, 144, 254, 0.2);
}

[data-theme="dark"] .chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .chat-input button:hover {
    background: #1a73e8;
    transform: translateY(-2px);
}

/* Main Background Overlay */
[data-theme="dark"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, 
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 100%
        );
    pointer-events: none;
    z-index: -1;
}

/* Sections Background */
[data-theme="dark"] .features,
[data-theme="dark"] .pricing,
[data-theme="dark"] .about {
    background-color: var(--bg-color);
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] iframe.registration-frame {
    background-color: var(--iframe-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .iframe-container {
    background-color: var(--iframe-bg);
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
}

/* تنسيق iframe في الوضع الليلي */
[data-theme="dark"] iframe,
[data-theme="dark"] #anw2-sdk-keEqLmDJQzqbAhQph1RbTg,
[data-theme="dark"] #anw2-sdk-keEqLmDJQzqbAhQph1RbTg iframe {
    background-color: #484848 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .anw2-widget-container {
    background-color: #484848 !important;
}

/* تنسيق حاوية iframe */
[data-theme="dark"] .iframe-wrapper,
[data-theme="dark"] .anw2-widget-wrapper {
    background-color: #484848 !important;
    padding: 1rem;
    border-radius: 10px;
    margin: 2rem 0;
}

/* Auth Buttons Styles */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    direction: rtl !important;
}

.auth-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    color: var(--text-color);
    border: 1px solid var(--border-color);
    background: transparent;
}

.login-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.register-btn {
    color: #ffffff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.register-btn:hover {
    background: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .login-btn {
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .login-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

[data-theme="dark"] .section-title {
    color: var(--text-color);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 60px;
    display: flex;
    align-items: center;
    direction: rtl !important;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    color: var(--primary-color);
    opacity: 0.9;
}

.logo-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

[data-theme="dark"] .logo-text {
    color: var(--primary-color);
}

[data-theme="dark"] .navbar {
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    direction: rtl !important;
}

.nav-button {
    padding: 0.4rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.nav-button.login {
    color: var(--text-color);
    border: 1px solid var(--border-color);
    background: transparent;
}

.nav-button.register {
    color: white;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.nav-button.login:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

.nav-button.register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* تحسين المسافات في الناف بار */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    direction: rtl !important;
}

/* تجميع أزرار تسجيل الدخول والتسجيل */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
    direction: rtl !important;
}

[dir="ltr"] .auth-buttons {
    margin-right: 0;
    margin-left: 1rem;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
    direction: rtl !important;
}

.nav-button {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    direction: rtl !important;
}

.nav-button.login {
    color: var(--text-color);
    background: transparent;
    border: 1.5px solid var(--border-color);
}

.nav-button.register {
    color: white;
    background: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.nav-button.login:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-button.register:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(77, 144, 254, 0.2);
}

[dir="ltr"] .auth-buttons {
    margin-right: 0;
    margin-left: 1rem;
}

/* تحسين المسافات في الناف بار */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    direction: rtl !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    direction: rtl !important;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.3rem 0;
}

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

/* إزالة التغييرات حسب اللغة */
[dir="ltr"] .navbar .container,
[dir="ltr"] .nav-links,
[dir="ltr"] .auth-buttons {
    direction: rtl !important;
}

[dir="rtl"] .navbar .container,
[dir="rtl"] .nav-links,
[dir="rtl"] .auth-buttons {
    direction: rtl !important;
}

.why-choose-us {
    padding: 5rem 0;
    background: var(--section-bg);
}

.why-choose-us .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
}

.why-choose-us .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon::before {
    transform: rotate(225deg);
}

.feature-card h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }
}

/* متغيرات CSS إضافية */
:root {
    --section-bg: var(--bg-color);
    --card-bg: var(--bg-color);
    --text-secondary: #666;
    --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --section-bg: var(--bg-color);
    --card-bg: #1a1a1a;
    --text-secondary: #999;
    --border-color: rgba(255, 255, 255, 0.1);
}
