/* استيراد الخطوط من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;500;700;900&display=swap');

/* المتغيرات ونظام التصميم */
:root {
    --bg-dark-1: #0a0c14; /* الخلفية الأساسية للموقع */
    --bg-dark-2: #111422; /* خلفية الكروت والأقسام الفرعية */
    --bg-dark-3: #181d30; /* خلفية العناصر التفاعلية والحدود */
    --bg-glass: rgba(17, 20, 34, 0.7);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --primary: #4f46e5;      /* البنفسجي المائل للأزرق */
    --primary-light: #818cf8;
    --secondary: #06b6d4;    /* النيون السماوي */
    --secondary-light: #22d3ee;
    --accent: #a855f7;       /* البنفسجي النيون */
    
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
    --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(6, 182, 212, 0.15));
    --gradient-card-hover: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));

    --glow-primary: 0 0 25px rgba(79, 70, 229, 0.45);
    --glow-secondary: 0 0 25px rgba(6, 182, 212, 0.45);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    --font-header: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --container-max: 1280px;
}

/* إعادة التعيين والأنماط الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark-1);
    color: var(--text-primary);
    font-family: var(--font-body);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* شريط التمرير المخصص */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-1);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* المكونات العامة والمشتركة */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* العناوين والفقرات */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

/* أزرار مخصصة */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--bg-dark-3);
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
    color: var(--secondary-light);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* توهجات الخلفية (Decorative Orbs) */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.orb-primary {
    background: var(--primary);
    width: 400px;
    height: 400px;
}

.orb-secondary {
    background: var(--secondary);
    width: 300px;
    height: 300px;
}

/* شريط التنقل الهيدر (Header Nav) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 12, 20, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-normal);
}

header.scrolled .nav-container {
    height: 70px;
}

/* اللوجو (Logo) */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
}

.logo-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text span {
    font-weight: 400;
    color: var(--secondary);
}

/* روابط القائمة */
.nav-menu {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

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

.nav-cta {
    display: flex;
    align-items: center;
}

/* قائمة الموبايل الهامبرغر */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* -------------------------------------
   القسم الرئيسي (Hero Section)
------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero .orb-1 {
    top: 10%;
    left: -10%;
}

.hero .orb-2 {
    bottom: 10%;
    right: -10%;
}

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

.hero-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary-light);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
}

.hero-tag i {
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-number {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* الرسوم التوضيحية البصرية بالهيرو */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    background: rgba(17, 20, 34, 0.4);
    backdrop-filter: blur(10px);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image-wrapper:hover img {
    transform: scale(1.05) rotate(1deg);
}

/* هولوغرام ودوائر حركية خلف الصورة */
.visual-bg-circle {
    position: absolute;
    width: 120%;
    height: 120%;
    border: 1px dashed rgba(6, 182, 212, 0.15);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.visual-floating-card {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--card-shadow);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 15%;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 2s;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-details h5 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.card-details p {
    font-size: 0.75rem;
    color: var(--secondary-light);
    font-weight: 600;
}

/* -------------------------------------
   قسم الخدمات (Services Section)
------------------------------------- */
.services {
    background-color: var(--bg-dark-2);
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-dark-1);
    border: 1px solid var(--bg-dark-3);
    border-radius: var(--radius-lg);
    padding: 3rem 2.2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card-hover);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-md);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
}

.service-card:hover .service-card-icon {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-card-link {
    color: var(--secondary-light);
}

.service-card-link i {
    transition: var(--transition-fast);
}

.service-card-link:hover i {
    transform: translateX(-5px); /* حركة لليسار بسبب اتجاه RTL */
}

/* -------------------------------------
   ميزاتنا (Why Choose Us)
------------------------------------- */
.features {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.features-content h2 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
}

.features-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text-box h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

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

.features-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* كروت إحصائيات معقدة للزينة */
.tech-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.tech-stat-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--bg-dark-3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.tech-stat-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
}

.tech-stat-card i {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.tech-stat-card.c-primary i { color: var(--primary-light); }
.tech-stat-card.c-secondary i { color: var(--secondary); }
.tech-stat-card.c-accent i { color: var(--accent); }

.tech-stat-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.tech-stat-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.tech-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.tech-stat-card.c-accent::after {
    background: var(--gradient-accent);
}

/* -------------------------------------
   قسم باقات الاستضافة والحلول (بدون أسعار)
------------------------------------- */
.pricing {
    background-color: var(--bg-dark-2);
    position: relative;
    overflow: hidden;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.price-card {
    background: var(--bg-dark-1);
    border: 1px solid var(--bg-dark-3);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-normal);
}

.price-card.popular {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.1);
    transform: scale(1.03);
}

.price-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price-card-header {
    margin-bottom: 2rem;
}

.price-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.price-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.price-card-value {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--bg-dark-3);
    border-bottom: 1px solid var(--bg-dark-3);
}

.price-status {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-status span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.price-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    margin-top: 1.5rem;
}

.price-feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.price-feature-item i {
    color: var(--secondary-light);
    font-size: 1rem;
}

.price-feature-item.muted {
    color: var(--text-muted);
}
.price-feature-item.muted i {
    color: var(--text-muted);
}

.price-card .btn {
    width: 100%;
    margin-top: auto;
}

/* -------------------------------------
   معرض أعمال تصميم المواقع (Portfolio)
------------------------------------- */
.portfolio {
    position: relative;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.filter-btn {
    background: var(--bg-dark-2);
    border: 1px solid var(--bg-dark-3);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-header);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.2rem;
}

.portfolio-item {
    background: var(--bg-dark-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-dark-3);
    position: relative;
    transition: var(--transition-normal);
    aspect-ratio: 4/3;
    display: flex;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 12, 20, 0.95) 0%, rgba(10, 12, 20, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-cat {
    color: var(--secondary-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.portfolio-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.portfolio-overlay-btn i {
    transition: var(--transition-fast);
}

.portfolio-overlay-btn:hover i {
    transform: translateX(-4px);
}

/* -------------------------------------
   آراء العملاء (Testimonials)
------------------------------------- */
.testimonials {
    background-color: var(--bg-dark-2);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testi-card {
    background: var(--bg-dark-1);
    border: 1px solid var(--bg-dark-3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}

.testi-stars {
    color: #ffb800;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.testi-text {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-style: italic;
}

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

.testi-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-weight: 700;
    font-family: var(--font-header);
    border: 2px solid var(--primary);
}

.testi-info h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.testi-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.testi-quote-icon {
    position: absolute;
    bottom: 2rem;
    left: 2.5rem;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

/* -------------------------------------
   نموذج الاتصال (Contact Section)
------------------------------------- */
.contact {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

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

.contact-card {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-card-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-card-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-card-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-card-text a:hover {
    color: var(--secondary-light);
}

.contact-form-wrapper {
    background: var(--bg-dark-2);
    border: 1px solid var(--bg-dark-3);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--card-shadow);
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background: var(--bg-dark-1);
    border: 1px solid var(--bg-dark-3);
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: left 12px center;
}

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

.contact-form-wrapper .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* -------------------------------------
   التذييل (Footer)
------------------------------------- */
footer {
    background-color: #05060b;
    border-top: 1px solid var(--bg-dark-3);
    padding-top: 5rem;
    padding-bottom: 2rem;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about .logo {
    margin-bottom: 1.5rem;
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark-2);
    border: 1px solid var(--bg-dark-3);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-links a {
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '\f104'; /* سهم FontAwesome يسار */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

.footer-links a:hover::before {
    color: var(--secondary);
    transform: translateX(-4px);
}

.footer-newsletter h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-newsletter p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .form-control {
    flex-grow: 1;
}

.newsletter-form .btn {
    padding: 0 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* -------------------------------------
   النافذة المنبثقة للطلب (Order Modal)
------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 11, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--bg-dark-2);
    border: 1px solid var(--bg-dark-3);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* رسالة نجاح الإرسال التنبيهية */
.alert-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-dark-2);
    border: 1px solid var(--secondary);
    border-right: 4px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.8rem;
    box-shadow: var(--card-shadow);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(150px);
    transition: transform var(--transition-normal);
}

.alert-toast.active {
    transform: translateY(0);
}

.alert-toast i {
    color: var(--secondary-light);
    font-size: 1.3rem;
}

.alert-toast h4 {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.alert-toast p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* -------------------------------------
   التأثيرات الحركية (Keyframes)
------------------------------------- */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* تأثير التكبير التدريجي */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------
   تجاوب الشاشات (Responsive Design)
------------------------------------- */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 6rem 0;
    }
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 6rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-tag {
        margin: 0 auto 1.8rem auto;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        order: -1; /* رفع الصورة للأعلى في الجوال */
    }
    .visual-bg-circle {
        width: 100%;
        height: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .features-content {
        text-align: center;
    }
    .features-list {
        text-align: right;
    }
    .features-visual {
        justify-content: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #0d101d;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        transition: var(--transition-normal);
        z-index: 1000;
        border-left: 1px solid var(--border-glass);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-cta {
        display: none; /* إخفاء زر الاستشارة في المنيو الأساسي للجوال وإضافته بالمنيو المنزلق أو الهيرو */
    }
    .portfolio-filter {
        flex-wrap: wrap;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .modal-box {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .hero-btns .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .tech-stats-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form .btn {
        padding: 0.9rem;
    }
}
