/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    direction: rtl;
    overflow-x: hidden;
}

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

/* شريط التنقل */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* القسم الرئيسي */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="4s" repeatCount="indefinite"/></circle><circle cx="40" cy="70" r="1" fill="%23ffffff" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="2s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    color: #cbd5e1;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    justify-content: center;
    align-items: center;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    letter-spacing: 1px;
}

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

/* نموذج Hero المحسن */
.hero-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-form .form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-form .form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-form .form-header p {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hero-form .form-group {
    display: flex;
    flex-direction: column;
}

.hero-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.hero-form .form-group label i {
    color: var(--accent-color);
}

.hero-form .form-group input,
.hero-form .form-group select,
.hero-form .form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* إعدادات خاصة لحقل الهاتف */
.hero-form .form-group input[type="tel"] {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.hero-form .form-group input::placeholder,
.hero-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-form .form-group input:focus,
.hero-form .form-group select:focus,
.hero-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.hero-form .form-group select option {
    background: var(--dark-color);
    color: white;
}

.hero-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.hero-form .checkbox-group {
    margin: 1rem 0;
}

.hero-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.hero-form .checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.hero-form .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-form .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.hero-form .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.hero-form .terms-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.hero-form .terms-link:hover {
    text-decoration: underline;
}

.hero-form .submit-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: inherit;
}

.hero-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.hero-form .submit-btn:active {
    transform: translateY(0);
}

/* رسائل الخطأ للنموذج في Hero */
.hero-form .error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0;
    display: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
}

.hero-form .error-message.show {
    opacity: 1;
    display: block;
}

.hero-form .form-group.error input,
.hero-form .form-group.error select,
.hero-form .form-group.error textarea {
    border-color: var(--danger-color) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.hero-form .form-group.error label {
    color: var(--danger-color) !important;
}

/* تحسين مظهر رسائل الخطأ */
.hero-form .form-group.error .error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-form .form-group.error .error-message::before {
    content: '⚠️';
    font-size: 1rem;
}

/* رسالة النجاح للنموذج في Hero */
.hero-form-container .success-message {
    display: none;
    text-align: center;
    padding: 3rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    border-radius: 15px;
    margin-top: 2rem;
}

.hero-form-container .success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

.hero-form-container .success-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.hero-form-container .success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--success-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* الرسوم المتحركة التقنية */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-animation {
    position: relative;
    width: 400px;
    height: 400px;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-line {
    height: 20px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 1rem 0;
    border-radius: 10px;
    animation: typing 3s ease-in-out infinite;
}

.code-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.code-line:nth-child(2) { width: 60%; animation-delay: 0.5s; }
.code-line:nth-child(3) { width: 90%; animation-delay: 1s; }
.code-line:nth-child(4) { width: 70%; animation-delay: 1.5s; }

@keyframes typing {
    0%, 50% { opacity: 0.3; }
    25% { opacity: 1; }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-icons i {
    position: absolute;
    font-size: 2rem;
    color: var(--accent-color);
    animation: float-icon 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 10%; right: 10%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 20%; left: 10%; animation-delay: 1s; }
.floating-icons i:nth-child(3) { bottom: 30%; right: 20%; animation-delay: 2s; }
.floating-icons i:nth-child(4) { bottom: 10%; left: 30%; animation-delay: 3s; }
.floating-icons i:nth-child(5) { top: 50%; right: 5%; animation-delay: 4s; }
.floating-icons i:nth-child(6) { top: 70%; left: 5%; animation-delay: 5s; }

@keyframes float-icon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* قسم الخدمات */
.services {
    padding: 6rem 0;
    background: var(--light-color);
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: 900;
    font-size: 1.2rem;
    text-shadow: 0 0 2px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
}

/* قسم التواصل */
.contact-section {
    padding: 6rem 0;
    background: var(--gradient-hero);
    color: white;
}

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

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-features {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-text p {
    opacity: 0.8;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-method i {
    color: var(--accent-color);
    width: 20px;
}

/* نموذج التواصل */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.form-group label i {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* إعدادات خاصة لحقل الهاتف */
.form-group input[type="tel"] {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.form-group select option {
    background: var(--dark-color);
    color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.terms-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

.submit-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.submit-btn:active {
    transform: translateY(0);
}

/* رسائل الخطأ */
.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0;
    display: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
}

.error-message.show {
    opacity: 1;
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--danger-color) !important;
    background: rgba(239, 68, 68, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-group.error label {
    color: var(--danger-color) !important;
}

/* تحسين مظهر رسائل الخطأ */
.form-group.error .error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.error .error-message::before {
    content: '⚠️';
    font-size: 1rem;
}

/* رسالة النجاح */
.success-message {
    display: none;
    text-align: center;
    padding: 3rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    border-radius: 15px;
    margin-top: 2rem;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease;
}

.success-message i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--success-color);
}

/* التذييل */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-description {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 2rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.contact-item i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* الرسوم المتحركة */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 1rem;
    }
    
    .title-main {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    .title-sub {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 2.0;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 1rem 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* النموذج الجديد في Hero للجوال */
    .hero-form-container {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .hero-form .form-header h3 {
        font-size: 1.3rem;
    }
    
    .hero-form .form-header p {
        font-size: 0.9rem;
    }
    
    .hero-form .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-form .form-group input,
    .hero-form .form-group textarea {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .hero-form .checkbox-label {
        font-size: 0.85rem;
    }
    
    .hero-form .submit-btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    .hero-visual {
        order: 2;
        margin-top: 2rem;
    }
    
    .tech-animation {
        width: 300px;
        height: 300px;
    }
    
    .services {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .service-description {
        font-size: 1rem;
        line-height: 2.2;
    }
    
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .contact-description {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 1.3rem 2rem;
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* ترتيب عناصر التذييل في الجوال */
    .footer-section:nth-child(1) {
        order: 4; /* معلومات المؤسسة تظهر في النهاية */
    }
    
    .footer-section:nth-child(2) {
        order: 1; /* خدماتنا */
    }
    
    .footer-section:nth-child(3) {
        order: 2; /* روابط مهمة */
    }
    
    .footer-section:nth-child(4) {
        order: 3; /* معلومات التواصل */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-logo i {
        font-size: 1.8rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: 90px 0 40px;
    }
    
    .hero-content {
        padding: 0.5rem;
        gap: 2rem;
    }
    
    .title-main {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .title-sub {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 0.3rem;
        margin-bottom: 1.5rem;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 0.8rem 0.3rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }
    
    .tech-animation {
        width: 250px;
        height: 250px;
    }
    
    .services {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .services-grid {
        gap: 1.2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
    
    .service-features li::before {
        font-size: 1.1rem;
        font-weight: 900;
        text-shadow: 0 0 3px rgba(16, 185, 129, 0.7);
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .contact-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .feature-item {
        margin-bottom: 1.5rem;
    }
    
    .feature-item i {
        font-size: 1.3rem;
    }
    
    .feature-text h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .contact-methods {
        gap: 0.8rem;
    }
    
    .contact-method {
        font-size: 1rem;
    }
    
    .contact-form-container {
        padding: 1.2rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .submit-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        border-radius: 40px;
    }
    
    .success-message {
        padding: 2rem;
    }
    
    .success-message i {
        font-size: 2.5rem;
    }
    
    .success-message h3 {
        font-size: 1.3rem;
    }
    
    .success-message p {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.3rem;
    }
    
    .footer-logo i {
        font-size: 1.8rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}

/* تحسينات إضافية للجوال */
@media (max-width: 360px) {
    .title-main {
        font-size: 1.9rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 0.2rem;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        padding: 0.6rem 0.2rem;
    }
    
    .btn {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-title {
        font-size: 1.6rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    .service-features li::before {
        font-size: 1rem;
        font-weight: 900;
        text-shadow: 0 0 3px rgba(16, 185, 129, 0.8);
    }
}

/* تحسينات إضافية */
.smooth-scroll {
    scroll-behavior: smooth;
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* تأثيرات التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* أنماط الصفحات القانونية */
.legal-page {
    padding: 120px 0 60px;
    background: var(--light-color);
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    line-height: 1.8;
    border: 1px solid var(--border-color);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    color: var(--accent-color);
    font-size: 2.5rem;
}

.last-updated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.content-section h2 i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.content-section h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section p {
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    text-align: justify;
    line-height: 1.8;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.privacy-notice {
    background: rgba(245, 158, 11, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border-right: 4px solid var(--accent-color);
    margin: 2rem 0;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.privacy-notice h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-notice h3 i {
    font-size: 1.3rem;
}

.data-table-container {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1.2rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.data-table tr:hover {
    background: rgba(245, 158, 11, 0.05);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.highlight {
    background: rgba(245, 158, 11, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border-right: 4px solid var(--accent-color);
    margin: 2rem 0;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-weight: 600;
}

.back-to-home {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

/* تصميم متجاوب للصفحات القانونية */
@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 40px;
    }
    
    .legal-content {
        margin: 0 15px;
        padding: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 1.9rem;
    }
    
    .page-title i {
        font-size: 1.7rem;
    }
    
    .content-section h2 {
        font-size: 1.2rem;
    }
    
    .content-section h3 {
        font-size: 1.1rem;
    }
    
    .last-updated {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .privacy-notice {
        padding: 1.5rem;
    }
    
    .data-table-container {
        margin: 1rem -1.5rem;
        border-radius: 0;
    }
    
    .data-table {
        font-size: 0.8rem;
        border-radius: 0;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.6rem;
    }
}

/* نافذة موافقة ملفات تعريف الارتباط */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid var(--accent-color);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    color: var(--accent-color);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.cookie-consent-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-consent-text a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: #ccc;
    border: 2px solid #555;
}

.cookie-btn-decline:hover {
    background: #555;
    color: white;
    border-color: #666;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    font-size: 0.8rem;
    padding: 8px 16px;
}

.cookie-btn-settings:hover {
    background: var(--accent-color);
    color: white;
}

/* إعدادات ملفات تعريف الارتباط المتقدمة */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

.cookie-settings-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.cookie-settings-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.4rem;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-close-btn:hover {
    background: #f0f0f0;
    color: var(--text-primary);
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--accent-color);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: var(--accent-color);
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-category p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* تجاوبية نافذة ملفات تعريف الارتباط */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .cookie-settings-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

