/* =========================================
   إعدادات عامة وتنسيقات أساسية
========================================= */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #06b6d4;
    --accent: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-light: #cbd5e1;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--accent));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 15px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-sm: 8px;
}

/* النمط الداكن */
.dark-mode {
    --dark: #f8fafc;
    --dark-light: #e2e8f0;
    --light: #0f172a;
    --gray: #64748b;
    --gray-light: #475569;
    --shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    --shadow-light: 0 5px 15px rgba(255, 255, 255, 0.05);
}

/* إعدادات اللغة */
body.ar {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

body.en {
    font-family: 'Montserrat', sans-serif;
    direction: ltr;
    text-align: left;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

/* =========================================
   شريط اللغة
========================================= */
.language-bar {
    background-color: var(--dark-light);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1001;
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

body.ar .language-switcher {
    justify-content: flex-start;
}

.lang-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.lang-option:hover, .lang-option.active {
    background: var(--gradient);
    color: white;
}

/* =========================================
   الهيدر والشريط العلوي
========================================= */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.8rem;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

body.ar .nav-menu {
    flex-direction: row;
}

body.en .nav-menu {
    flex-direction: row-reverse;
}

.nav-link {
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

/* القائمة المنسدلة */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    background: var(--dark);
    min-width: 250px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.ar .dropdown-menu {
    right: 0;
}

body.en .dropdown-menu {
    left: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

body.ar .btn {
    font-family: 'Cairo', sans-serif;
}

body.en .btn {
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 35px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.theme-toggle {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--light);
}

/* قائمة الموبايل */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   القسم الرئيسي (الهيرو)
========================================= */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

body.ar .hero .container {
    flex-direction: row;
}

body.en .hero .container {
    flex-direction: row-reverse;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 90%;
}

body.en .hero-description {
    max-width: 100%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.floating-element {
    position: absolute;
    background: var(--dark);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-element i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.floating-element span {
    font-size: 0.8rem;
    font-weight: 600;
}

.element-1 {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.element-2 {
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.element-3 {
    bottom: 30px;
    left: -10px;
    animation-delay: 2s;
}

.element-4 {
    top: 20px;
    right: 50px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.main-visual {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.main-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.main-visual:hover img {
    transform: scale(1.05);
}

/* =========================================
   قسم من نحن
========================================= */
.about-section {
    padding: 100px 0;
    background-color: var(--dark-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.features-list i {
    color: var(--accent);
    margin-left: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

body.en .features-list i {
    margin-left: 0;
    margin-right: 10px;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission, .vision {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission h4, .vision h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission h4 i, .vision h4 i {
    color: var(--primary);
}

.about-image {
    position: relative;
}

.image-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--gradient);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

body.ar .experience-badge {
    left: auto;
    right: 30px;
}

.experience-badge span {
    font-size: 2.5rem;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
}

/* =========================================
   قسم الخدمات الرئيسي
========================================= */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--primary);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-description {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

body.ar .service-link {
    flex-direction: row;
}

body.en .service-link {
    flex-direction: row-reverse;
}

.service-link i {
    margin-right: 8px;
    transition: var(--transition);
}

body.ar .service-link i {
    margin-right: 0;
    margin-left: 8px;
}

.service-link:hover {
    color: var(--secondary);
}

.service-link:hover i {
    transform: translateX(-5px);
}

body.ar .service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   قسم المشاريع
========================================= */
.projects-section {
    padding: 100px 0;
    background-color: var(--dark-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

body.en .project-overlay {
    right: auto;
    left: 20px;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-info p {
    color: var(--gray);
    line-height: 1.6;
}

/* =========================================
   قسم الاتصال
========================================= */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.contact-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

body.ar .contact-item {
    flex-direction: row;
}

body.en .contact-item {
    flex-direction: row-reverse;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.ar .contact-icon {
    margin-left: 15px;
}

body.en .contact-icon {
    margin-right: 15px;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray);
    line-height: 1.5;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

body.ar .form-group input,
body.ar .form-group select,
body.ar .form-group textarea {
    font-family: 'Cairo', sans-serif;
}

body.en .form-group input,
body.en .form-group select,
body.en .form-group textarea {
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--dark);
    color: var(--light);
}

/* =========================================
   الفوتر
========================================= */
.footer {
    padding: 80px 0 30px;
    background-color: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo .logo {
    font-size: 2rem;
    margin-bottom: 15px;
    justify-content: flex-start;
}

body.ar .footer-logo .logo {
    justify-content: flex-start;
}

body.en .footer-logo .logo {
    justify-content: flex-start;
}

.footer-description {
    color: var(--gray);
    max-width: 300px;
    margin-bottom: 25px;
}

.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: inherit;
    border-left: none;
}

body.ar .newsletter-form input {
    border-radius: 0 30px 30px 0;
}

body.en .newsletter-form input {
    border-radius: 30px 0 0 30px;
    border-right: none;
}

.newsletter-form button {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

body.ar .newsletter-form button {
    border-radius: 30px 0 0 30px;
}

body.en .newsletter-form button {
    border-radius: 0 30px 30px 0;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

body.en .footer-column h4::after {
    right: auto;
    left: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

body.en .footer-column ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* =========================================
   زر العودة للأعلى
========================================= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

body.ar .scroll-top {
    left: auto;
    right: 30px;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* =========================================
   أنماط صفحات الخدمات
========================================= */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.page-description {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.page-breadcrumb a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.page-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-breadcrumb i {
    opacity: 0.6;
}

body.ar .page-breadcrumb i {
    transform: rotate(180deg);
}

.page-breadcrumb span {
    font-weight: 600;
}

/* تفاصيل الخدمة */
.service-content {
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

body.en .content-wrapper {
    direction: ltr;
}

.main-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.main-content p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.main-content h3 {
    font-size: 1.8rem;
    margin: 40px 0 25px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 1rem;
}

.benefits-section .benefits-list {
    margin-bottom: 40px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.benefit i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.cta-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(79, 70, 229, 0.2);
    margin-top: 50px;
}

.cta-section h3 {
    margin-top: 0;
}

.cta-section p {
    margin-bottom: 25px;
    color: var(--light);
}

/* الشريط الجانبي */
.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.services-sidebar, .quick-info {
    list-style: none;
}

.services-sidebar li, .quick-info p {
    margin-bottom: 12px;
}

.services-sidebar a {
    display: flex;
    align-items: center;
    color: var(--light);
    transition: var(--transition);
    padding: 10px;
    border-radius: 8px;
}

.services-sidebar a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.services-sidebar i {
    margin-left: 10px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

body.en .services-sidebar i {
    margin-left: 0;
    margin-right: 10px;
}

.quick-info p {
    display: flex;
    justify-content: space-between;
}

.quick-info strong {
    color: var(--primary);
}

/* =========================================
   أنماط إضافية للخدمات
========================================= */
/* الحزم والباكتات */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.package {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
}

.package:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.package.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.package-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 10px;
}

.package-price span {
    font-size: 1rem;
    color: var(--gray);
}

.package-features {
    list-style: none;
    margin-bottom: 30px;
}

.package-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-features i.fa-check {
    color: var(--accent);
}

.package-features i.fa-times {
    color: var(--gray);
}

/* التقنيات */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.tech-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-items span {
    background: rgba(79, 70, 229, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* المراحل والخطوات */
.process-steps, .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.process-step, .step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray);
    margin: 0;
}

/* الشبكات الخاصة بالخدمات */
.types-grid, .solutions-grid, .hardware-grid, .payment-methods,
.platforms-grid, .monitoring-grid, .server-types .types-grid,
.cameras-grid, .results-grid, .os-grid, .security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.type, .solution, .hardware-item, .payment-method,
.platform, .monitoring-item, .camera, .result,
.os, .security-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.type:hover, .solution:hover, .hardware-item:hover, .payment-method:hover,
.platform:hover, .monitoring-item:hover, .camera:hover, .result:hover,
.os:hover, .security-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.hardware-item i, .payment-method i, .platform-icon i,
.os i, .security-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

/* التبويبات */
.solutions-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.solution-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-tab:hover, .solution-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.solutions-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-content {
    display: none;
}

.solution-content.active {
    display: block;
}

/* =========================================
   تأثيرات التحميل والرسوم المتحركة
========================================= */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* مؤشر التحميل */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--accent);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loader-text span {
    color: var(--secondary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   إشعارات الرسائل
========================================= */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    z-index: 10000;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.notification.success {
    background: var(--gradient);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@keyframes slideDown {
    from { top: -100px; }
    to { top: 20px; }
}

/* =========================================
   الإستجابة للأجهزة الصغيرة
========================================= */
@media screen and (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    body.en .hero .container {
        flex-direction: column;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* قائمة الموبايل */
    .nav-menu {
        position: fixed;
        top: 100px;
        right: -100%;
        flex-direction: column;
        background-color: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    body.en .nav-menu {
        right: auto;
        left: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    body.en .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        display: block;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0;
        margin-top: 10px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 5px;
        border-radius: 8px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -6px);
    }
    
    body.ar .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(7px, 6px);
    }
    
    body.ar .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .services-grid, .projects-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-element {
        display: none;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: 20px;
    }
    
    body.ar .experience-badge {
        right: 20px;
    }
    
    .experience-badge span {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .scroll-top {
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    body.ar .scroll-top {
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .package {
        padding: 20px;
    }
}