/* إعدادات عامة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --primary-color: #2956ff; /* أزرق */
    --secondary-color: #be00aa; /* وردي/أرجواني */
    --accent-color: #6a11cb; /* أرجواني داكن */
    --background-color: #f9f9f9; /* خلفية بيضاء */
    --dark-background: #1a1a1a;
    --text-color: #333;
    --light-text-color: #f9f9f9;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --gradient-primary: linear-gradient(135deg, #2956ff 0%, #be00aa 100%);
    --gradient-secondary: linear-gradient(135deg, #be00aa 0%, #2956ff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    opacity: 1 !important;
    visibility: visible !important;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(41, 86, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: all 0.45s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(41, 86, 255, 0.4);
    background: var(--gradient-secondary);
}

.btn:hover:before {
    left: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    letter-spacing: 1px;
}

.section-header h2::after {
    content: none;
}

.section-header p {
    color: #777;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* القائمة العلوية */
header {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.logo h1:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    bottom: -5px;
    right: 0;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 10px;
    position: relative;
    font-size: 1.05rem;
}

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

/* استرجاع الخط الأصفر عند الهوفر */
nav ul li a:hover::after {
    width: 100%;
}

/* استرجاع الخط الأصفر للرابط النشط */
nav ul li a.active::after {
    width: 100%;
}

nav ul li a i {
    margin-left: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

nav ul li a[href="/profile"] i {
    color: var(--primary-color);
}

/* تنسيق الرابط النشط */
nav ul li a.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* رابط حسابي/تسجيل الدخول */
nav ul li a#navLoginLink {
    color: var(--primary-color);
    font-weight: 500;
}

nav ul li a.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

nav ul li a#navLoginLink i {
    color: var(--primary-color);
    transform: scale(1.1);
}

nav ul li a:hover i {
    transform: scale(1.1);
}

.theme-switcher button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-switcher button:hover {
    color: var(--primary-color);
    transform: rotate(45deg);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.mobile-menu:hover {
    color: var(--accent-color);
}

/* مؤشر الرصيد */
.balance-indicator {
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(41, 86, 255, 0.2);
}

.balance-indicator:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
}

.balance-indicator .amount {
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 8px;
    font-size: 0.95rem;
}

.balance-indicator .add-icon {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dark-theme .balance-indicator {
    background-color: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.dark-theme .balance-indicator .amount,
.dark-theme .balance-indicator .add-icon {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .nav-balance {
        margin-right: auto;
        margin-left: 20px;
    }
    
    .balance-indicator {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-balance {
        display: none;
    }
    
    nav ul.show .nav-balance {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    
    nav ul.show .balance-indicator {
        width: 80%;
    }
}

/* القسم الرئيسي - تصميم جديد */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at right top, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.1) 30%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1.5s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, rgba(225, 205, 100, 0.3) 0%, var(--primary-color) 50%, rgba(225, 205, 100, 0.3) 100%);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.6);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #f9f9f9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.8s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    animation: fadeInUp 2s ease-out;
}

.hero .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary {
    background: var(--gradient-primary);
    margin-left: 15px;
    box-shadow: 0 5px 15px rgba(41, 86, 255, 0.4);
}

.hero .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(41, 86, 255, 0.6);
}

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

.hero .btn-secondary:hover {
    background: var(--gradient-secondary);
    color: white;
    border-color: transparent;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 3;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* تحسينات لأنيميشن الفيد إن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استجابية القسم الرئيسي للشاشات المختلفة */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        max-width: 95%;
    }
    
    .hero .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero::after {
        height: 100px;
    }
}

/* إزالة العناصر الزائدة التي تشبه الأمواج */
.services::after,
.products::before,
.section-divider,
.section-divider::after,
.section-divider::before,
.services::before,
.team::before,
.contact::before {
    display: none;
}

/* قسم الخدمات */
.services {
    padding: 100px 0;
    background-color: white;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.services:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    pointer-events: none;
}

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

.service-card {
    background-color: var(--background-color);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(212, 175, 55, 0.1);
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.05), transparent);
    transition: height 0.5s ease;
    z-index: -1;
}

.service-card:hover:before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(41, 86, 255, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(360deg);
}

.service-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* قسم المنتجات */
.products {
    padding: 100px 0;
    background-color: var(--background-color);
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.products-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    margin: 0 5px 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.45s ease;
    z-index: -1;
    border-radius: 30px;
}

.filter-btn:hover:before,
.filter-btn.active:before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.2);
}

.product-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-img:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(41, 86, 255, 0.1) 0%, rgba(190, 0, 170, 0.5) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:hover .product-img:after {
    opacity: 1;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.15);
}

.product-info {
    padding: 25px 20px;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.product-info h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 10px auto;
    transition: var(--transition);
}

.product-card:hover .product-info h3:after {
    width: 100px;
}

.product-price {
    margin: 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0bd300;
}

/* قسم فريق العمل */
.team {
    padding: 100px 0;
    background-color: white;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-items: center;
}

.team-member {
    background-color: var(--background-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 320px;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
}

.member-img {
    height: 270px;
    overflow: hidden;
    position: relative;
}

.member-img:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(212, 175, 55, 0.4));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.team-member:hover .member-img:before {
    opacity: 1;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(1);
}

.team-member:hover .member-img img {
    transform: none;
    filter: brightness(1.05);
}

/* إضافة تأثير حدود ذهبية عند الهوفر */
.member-img {
    position: relative;
    border: 3px solid transparent;
    transition: all 0.4s ease;
}

.team-member:hover .member-img {
    border-color: var(--primary-color);
}

/* إخفاء أيقونات التواصل عند الهوفر */
.member-img .hover-icons {
    display: none;
}

.member-info {
    padding: 25px 20px;
    position: relative;
}

.member-info:before {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    top: 0;
    right: 20px;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.team-member:hover .member-info:before {
    width: 100px;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.member-info p {
    color: #777;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.5, 1.6, 0.4, 0.7);
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-links a i {
    transition: transform 0.3s ease;
}

.social-links a:hover i {
    transform: rotateY(360deg);
}

/* تنسيقات قسم التواصل - تحديث */
.contact {
    padding: 80px 0;
    background-color: var(--background-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-top: 5px solid var(--primary-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    opacity: 1 !important;
    visibility: visible !important;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(41, 86, 255, 0.15);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 15px;
    transition: var(--transition);
}

.contact-item .text h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-item .text p {
    margin: 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    color: var(--text-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

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

.contact-form .btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 12px;
}

.form-alert {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.form-alert.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

.form-alert.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

/* الفوتر */
footer {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6); /* خلفية داكنة شفافة لتحسين التباين */
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.footer-logo h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: white;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.footer-logo p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    color: white;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: white;
    font-weight: 700;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li {
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
}

.footer-links ul li:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    transition: all 0.3s ease;
}

.footer-links ul li:hover:before {
    transform: translateY(-50%) translateX(-5px);
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: white;
    transition: all 0.3s ease;
}

.footer-contact p:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact p i {
    color: white;
    font-size: 1.3rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.footer-contact p:hover i {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
    box-shadow: 0 0 15px rgba(41, 86, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 25px 0;
    text-align: center;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.footer-bottom p {
    color: white;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.footer-bottom:before {
    content: '';
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
}

.developer-credit {
    margin-top: 10px;
    color: white !important;
    font-weight: 600;
    font-size: 1rem !important;
    letter-spacing: 1px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: #222;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* إصلاح الفوتر للريسبونسف */
@media (max-width: 768px) {
    footer {
        padding: 60px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-logo h2:after,
    .footer-links h3::after,
    .footer-contact h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-links ul li {
        padding-right: 0;
    }
    
    .footer-links ul li:before {
        display: none;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 40px 0 0;
    }
    
    .footer-logo h2 {
        font-size: 2rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* ريسبونسف تحديثات إضافية */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .services, .team, .products, .contact {
        padding: 70px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

/* تأثيرات دخول للعناصر عند التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

/* إضافة تنسيقات للصفحات الجديدة */

/* رأس الصفحات الفرعية */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
}

/* رأس الصفحات الفرعية مع تأثير خاص */
.page-header-special {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.flying-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.element {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    opacity: 0.2;
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.element:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.element:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.element:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.element:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.element:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.element:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.element:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.element:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.element:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.element:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.2;
        border-radius: 50%;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 10%;
    }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* زر عرض المزيد */
.view-more-container {
    text-align: center;
    margin-top: 40px;
}

/* صفحة المنتجات */
.products-page {
    padding: 80px 0;
}

.product-details {
    margin: 15px 0;
}

.product-details ul {
    padding-right: 20px;
}

.product-details ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-details ul li i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 0.9rem;
}

/* قسم العروض الخاصة */
.special-offers {
    padding: 80px 0;
    background-color: var(--background-color);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
}

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

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(41, 86, 255, 0.3);
}

.offer-card h3 {
    margin: 30px 0 15px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.offer-card p {
    margin-bottom: 25px;
    color: var(--text-color);
}

/* في وضع Dark Mode */
.dark-theme .special-offers {
    background-color: var(--dark-background);
}

.dark-theme .offer-card {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-theme .offer-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.dark-theme .offer-card h3 {
    color: var(--primary-color);
}

.dark-theme .offer-card p {
    color: #ccc;
}

/* قسم الأسئلة الشائعة */
.faq {
    padding: 80px 0;
    background-color: var(--background-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: linear-gradient(90deg, rgba(41, 86, 255, 0.05) 0%, rgba(190, 0, 170, 0.05) 100%);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--secondary-color);
}

.faq-icon {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* صفحة فريق العمل */
.team-page {
    padding: 80px 0;
}

.team-page .team-member {
    max-width: 350px;
}

.member-bio {
    margin: 15px 0;
    text-align: justify;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.member-skills span {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* عناوين أقسام الفريق */
.team-section-title {
    text-align: center;
    margin: 40px 0 30px;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

.team-section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* شبكة عرض فريق الإدارة */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* تمييز بطاقات المؤسسين */
.team-member.founder {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
}

.team-member.founder:before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 5;
}

/* الفاصل بين قسمي الفريق */
.team-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
}

.divider-line {
    height: 2px;
    background-color: var(--primary-color);
    flex-grow: 1;
    max-width: 200px;
    opacity: 0.5;
}

.divider-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 20px;
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--primary-color);
}

/* شبكة عرض فريق العمل المساعد */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* تنسيقات إضافية لبطاقات فريق العمل المساعد */
.staff-grid .team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.staff-grid .team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15);
}

.staff-grid .member-img {
    height: 200px; /* ارتفاع أقل للصور */
    border-radius: 50%; /* جعل الإطار دائري */
    overflow: hidden; /* حتى لا تتجاوز الصورة الإطار الدائري */
    margin: 0 auto 15px; /* تمركز وإضافة هامش أسفل */
    width: 200px; /* جعل العرض مساوي للارتفاع للحصول على دائرة مثالية */
    position: relative;
}

.staff-grid .member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* تعديلات الثيم الداكن */
.dark-theme .team-section-title {
    color: var(--primary-color);
}

.dark-theme .divider-icon {
    background-color: var(--dark-background);
    color: var(--primary-color);
}

.dark-theme .divider-line {
    background-color: var(--primary-color);
    opacity: 0.3;
}

.dark-theme .team-member.founder {
    border-color: var(--primary-color);
    background-color: var(--dark-background);
}

.dark-theme .team-member.founder .member-info h3,
.dark-theme .team-member.founder .member-info p {
    color: var(--light-text-color);
}

.dark-theme .team-member.founder:before {
    background-color: var(--primary-color);
}

.join-team {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/join-team-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.join-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* قسم معاينة الفريق - الصفحة الرئيسية */
.team-preview {
    padding: 80px 0;
    background-color: white;
}

.team-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.team-preview-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.team-list {
    margin-bottom: 30px;
}

.team-list li {
    margin-bottom: 10px;
    font-weight: 600;
}

.team-list li i {
    color: var(--primary-color);
    margin-left: 10px;
}

.team-preview-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* قسم المنتجات المميزة - الصفحة الرئيسية */
.featured-products {
    padding: 80px 0;
    background-color: var(--background-color);
}

.featured-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* استجابة للشاشات الصغيرة - تنسيقات فريق العمل */
@media (max-width: 768px) {
    .founders-grid, .staff-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .team-section-title {
        font-size: 1.8rem;
    }
    
    .team-divider {
        margin: 40px 0;
    }
    
    .divider-line {
        max-width: 100px;
    }
}

/* Media Queries للريسبونسف */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .team-preview-content {
        grid-template-columns: 1fr;
    }
    
    .team-preview-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 70px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .join-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .offer-card {
        padding: 20px;
    }
    
    .offer-badge {
        font-size: 0.8rem;
    }
}

/* إصلاح تأثيرات التحويم للنسخة المحمولة */
@media (hover: none) {
    .product-card:hover,
    .team-member:hover,
    .service-card:hover,
    .contact-item:hover,
    .footer-links ul li a:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* تعديلات لضمان عرض الصور في قسم المنتجات المميزة */
.featured-products .product-img {
    display: block !important;
    visibility: visible !important;
}

.featured-products .product-img img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* تحسينات إضافية للريسبونسف */
@media (max-width: 992px) {
    .services, .team, .products, .contact, .featured-products, .team-preview {
        padding: 60px 0;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    }
}

/* فاصل احترافي للأقسام */
.section-divider {
    height: 50px;
    position: relative;
    overflow: hidden;
    margin-top: -50px;
    z-index: 5;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px 1px rgba(212, 175, 55, 0.3);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 10px;
    z-index: 1;
    box-shadow: 0 0 15px 1px rgba(212, 175, 55, 0.8);
}

/* إضافة الفاصل بين الأقسام */
.services {
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 8px white, 0 0 15px rgba(212, 175, 55, 0.5);
    z-index: 10;
}

.team::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 8px white, 0 0 15px rgba(212, 175, 55, 0.5);
    z-index: 10;
}

/* تعديل باقي الأقسام لإضافة فواصل احترافية */
.team {
    position: relative;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.contact {
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--background-color);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 8px var(--background-color), 0 0 15px rgba(212, 175, 55, 0.5);
    z-index: 10;
}

/* إصلاح الناف بار للجوال - تغيير جذري جديد */
@media (max-width: 992px) {
    /* أسلوب ظهور وإخفاء القائمة */
    header {
        position: relative;
        z-index: 100;
    }

    nav {
        position: static !important;
    }
    
    .mobile-menu {
        display: flex !important;
        cursor: pointer;
        font-size: 24px;
        z-index: 1001;
        position: relative;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: 5px;
    }
    
    .mobile-menu i {
        color: var(--primary-color);
        transition: color 0.3s ease;
        font-size: 22px;
    }
    
    .mobile-menu i.fa-times {
        color: var(--accent-color);
    }
    
    /* القائمة نفسها */
    nav ul {
        position: fixed !important;
        top: 70px !important;
        right: -100% !important; /* تبدأ خارج الشاشة */
        width: 100% !important;
        background-color: white !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
        padding: 20px 0 !important;
        z-index: 1000 !important;
        text-align: center !important;
        flex-direction: column !important;
        height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        transition: right 0.4s ease-in-out !important;
        display: flex !important;
    }
    
    /* عند النقر على زر القائمة */
    nav ul.show {
        right: 0 !important;
    }
    
    nav ul li {
        margin: 0 0 15px 0 !important;
        width: 100% !important;
    }
    
    nav ul li:last-child {
        margin-bottom: 15px !important;
    }
    
    nav ul li a {
        display: block !important;
        padding: 10px !important;
        font-size: 1.1rem !important;
    }
    
    /* التأكد من أن القائمة تظهر بشكل صحيح في جميع المتصفحات */
    @supports (-webkit-touch-callout: none) {
        nav ul {
            -webkit-transition: right 0.4s ease-in-out !important;
        }
    }
    
    /* تأكيد التنسيقات للثيم الداكن */
    .dark-theme nav ul, 
    .gold-dark-theme nav ul {
        background-color: var(--dark-background) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

/* إضافة خصائص لعرض القائمة في الثيم الداكن */
.dark-theme header,
.gold-dark-theme header {
    background-color: rgba(26, 26, 26, 0.95);
}

.dark-theme nav ul,
.gold-dark-theme nav ul {
    background-color: var(--dark-background);
}

.dark-theme nav ul li a,
.gold-dark-theme nav ul li a {
    color: var(--light-text-color);
}

@media (max-width: 992px) {
    .dark-theme nav ul,
    .gold-dark-theme nav ul {
        background-color: var(--dark-background);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* إصلاح تنسيقات قسم التواصل للريسبونسف */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        gap: 25px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .contact-item .icon {
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 15px;
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .contact-form .btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .contact-item .text h3 {
        font-size: 16px;
    }
    
    .contact-item .text p {
        font-size: 14px;
    }
}

/* تعديل الهيدر والناف بار */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo h1 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

nav ul li a {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 10px;
    position: relative;
    font-size: 1.05rem;
}

/* إضافة تأكيد على الخطوط العربية */
.contact-item .text h3,
.contact-item .text p,
.contact-form .btn,
.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* إصلاح باقي مشاكل الفونتات */
.form-group input::placeholder,
.form-group textarea::placeholder {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    opacity: 0.8;
}

.contact .section-header h2,
.contact .section-header p {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* ستايلات مؤشر التحميل */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* تعديلات إضافية لصلاحية الإدخال */
input.invalid,
textarea.invalid,
select.invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

input.valid,
textarea.valid,
select.valid {
    border-color: #27ae60;
    background-color: rgba(39, 174, 96, 0.05);
}

.staff-grid .member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.dark-theme .staff-grid .team-member {
    background-color: var(--dark-background);
    border-color: rgba(212, 175, 55, 0.2);
}

/* تحسين قابلية العرض على عدة صفوف */
@media (min-width: 992px) {
    .staff-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* أزرار إظهار/إخفاء كلمة المرور - تحسينات عامة */
.password-input-container {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.password-input-container input {
    padding-left: 40px !important; /* مساحة لزر إظهار كلمة المرور */
    width: 100% !important;
}

.toggle-password {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    font-size: 18px !important;
    padding: 8px !important;
    z-index: 1000 !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

.toggle-password:hover {
    color: var(--primary-color) !important;
}

.toggle-password:focus {
    outline: none !important;
}

.toggle-password i {
    pointer-events: none !important;
}

/* تنسيقات مربع التنبيه الخاص بتسجيل الدخول */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.custom-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.alert-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.alert-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-header .fa-exclamation-circle {
    color: #fff;
    font-size: 22px;
}

.close-alert {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-alert:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.alert-body {
    padding: 20px;
    color: var(--text-color);
}

.dark-theme .alert-body {
    color: #fff;
}

.alert-body p {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.alert-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.alert-login-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
}

.alert-register-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 15px;
    font-weight: bold;
}

.dark-theme .alert-register-btn {
    background-color: #2a2a2a;
    color: #ffd700;
    border-color: #ffd700;
}

.dark-theme .custom-alert {
    background-color: #2a2a2a;
    border-color: #ffd700;
}

.dark-theme .alert-header {
    background-color: #ffd700;
    color: #1a1a1a;
}

.dark-theme .alert-header .fa-exclamation-circle,
.dark-theme .close-alert {
    color: #1a1a1a;
}

/* تنسيقات للثيمات المختلفة */
.gold-theme .custom-alert {
    background-color: #fff;
    border-color: #D4AF37;
}

.gold-theme .alert-header {
    background-color: #D4AF37;
    color: #1a1a1a;
}

.gold-theme .alert-login-btn {
    background-color: #D4AF37;
}

.gold-theme .alert-register-btn {
    border-color: #D4AF37;
    color: #D4AF37;
}

.gold-dark-theme .custom-alert {
    background-color: #2a2a2a;
    border-color: #D4AF37;
}

.gold-dark-theme .alert-header {
    background-color: #D4AF37;
    color: #1a1a1a;
}

.gold-dark-theme .alert-login-btn {
    background-color: #D4AF37;
    color: #1a1a1a;
}

.gold-dark-theme .alert-register-btn {
    background-color: #2a2a2a;
    border-color: #D4AF37;
    color: #D4AF37;
}

.blue-theme .custom-alert {
    background-color: #fff;
    border-color: #336699;
}

.blue-theme .alert-header {
    background-color: #336699;
}

.blue-theme .alert-login-btn {
    background-color: #336699;
}

.blue-theme .alert-register-btn {
    border-color: #336699;
    color: #336699;
}

/* طبقة التعتيم خلف مربع التنبيه */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

body:has(.custom-alert.show)::after {
    opacity: 1;
    visibility: visible;
}

/* تأثير انتقالي عند النقر على الأزرار */
.alert-login-btn:hover,
.alert-register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.alert-login-btn:active,
.alert-register-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* تنسيقات للشاشات الصغيرة */
@media (max-width: 576px) {
    .custom-alert {
        width: 95%;
        max-width: 350px;
    }
    
    .alert-header h3 {
        font-size: 16px;
    }
    
    .alert-buttons {
        flex-direction: column;
    }
    
    .alert-login-btn,
    .alert-register-btn {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

/* طبقة التعتيم المخصصة للمربع */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

.alert-overlay.show {
    opacity: 1;
    visibility: visible;
}

.alert-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.faq-item.active .faq-question {
    background: linear-gradient(90deg, rgba(41, 86, 255, 0.1) 0%, rgba(190, 0, 170, 0.1) 100%);
}

.social-links a:hover:before {
    transform: scale(1);
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.dark-theme .faq-question:hover {
    background: linear-gradient(90deg, rgba(41, 86, 255, 0.15) 0%, rgba(190, 0, 170, 0.15) 100%);
}

.dark-theme .faq-item.active .faq-question {
    background: linear-gradient(90deg, rgba(41, 86, 255, 0.2) 0%, rgba(190, 0, 170, 0.2) 100%);
}

.footer-links ul li a {
    color: white;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    position: relative;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(-8px);
}