* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #2962ff;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}
body {
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* زر القائمة الجانبية (Hamburger Menu) */
.menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1100;
    background: var(--accent-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.4);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* القائمة الجانبية */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.sidebar-nav {
    padding: 2rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-nav li {
    margin: 0;
    width: 100%;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-right-color: var(--accent-color);
    padding-right: 2rem;
}

.sidebar-link i {
    font-size: 1.3rem;
    width: 25px;
}

/* الخلفية المعتمة */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* تنسيق القائمة العلوية */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* تنسيق القسم الرئيسي */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1607860108855-64acf2078ed9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 35, 126, 0.7), rgba(13, 71, 161, 0.7));
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.4);
}

/* تنسيق قسم الخدمات */
.services {
    padding: 8rem 1rem;
    text-align: center;
    background-color: var(--white);
}

.services h2 {
    margin-bottom: 4rem;
    font-size: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* تنسيق قسم التطبيق */
.app-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 8rem 1rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.app-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.1;
}

.app-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.app-info p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.app-button {
    display: flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.app-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.app-button i {
    margin-right: 0.8rem;
    font-size: 1.5rem;
}



/* تنسيق قسم التقييمات */
.reviews {
    padding: 8rem 1rem;
    text-align: center;
    background-color: var(--light-bg);
}

.reviews h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.reviews h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.loading-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--primary-color);
}

.loading-reviews i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.reviews-grid {
    position: relative;
    height: 400px;
    margin-top: 2rem;
    overflow: hidden;
}

.reviews-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-item {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    width: 350px;
}

.review-item.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 3;
}

.review-item.left {
    opacity: 0.7;
    transform: scale(0.85) translateX(-400px) translateY(10px);
    z-index: 2;
}

.review-item.right {
    opacity: 0.7;
    transform: scale(0.85) translateX(400px) translateY(10px);
    z-index: 2;
}

.review-item.hidden-left {
    opacity: 0;
    transform: scale(0.6) translateX(-600px) translateY(30px);
    z-index: 1;
}

.review-item.hidden-right {
    opacity: 0;
    transform: scale(0.6) translateX(600px) translateY(30px);
    z-index: 1;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: right;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.review-card:hover {
    transform: translateY(-10px);
}

.review-card:hover::before {
    opacity: 0.03;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.customer-info {
    text-align: right;
}

.customer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 0.9rem;
    color: #666;
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
}

.star.empty {
    color: #e0e0e0;
}

.review-content {
    position: relative;
    z-index: 1;
    min-height: 20px; /* للحفاظ على شكل البطاقة حتى بدون تعليق */
}

.review-comment {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* تنسيق البطاقات بدون تعليق */
.review-card .review-content:empty {
    margin-top: 1rem;
}

/* مؤشرات التقييمات */
.reviews-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

/* أزرار التحكم */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-controls:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* تجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
    .review-item {
        width: 300px;
    }
    
    .review-item.left {
        transform: scale(0.8) translateX(-320px) translateY(20px);
    }
    
    .review-item.right {
        transform: scale(0.8) translateX(320px) translateY(20px);
    }
    
    .carousel-controls {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

/* تنسيق صفحة تحميل التطبيق */
.download-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    color: var(--white);
}

.download-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.download-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.features-list {
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-item i {
    color: #4ade80;
    font-size: 1.2rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-content i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

.main-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* تصميم الهاتف المحاكي */
.phone-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #333, #555);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background-color: #666;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    padding: 2rem 1.5rem;
    height: 100%;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.app-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.app-header i {
    font-size: 1.5rem;
}

.booking-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.booking-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option.active {
    border-color: var(--accent-color);
    background-color: rgba(41, 98, 255, 0.1);
}

.service-option i {
    color: var(--accent-color);
}

.book-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-btn:hover {
    background-color: var(--primary-color);
}

/* قسم مميزات التطبيق */
.app-features {
    padding: 8rem 2rem;
    background-color: var(--white);
    text-align: center;
}

.app-features h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.app-features h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* رابط نشط في القائمة */
nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    width: 100%;
}

/* تجاوب صفحة التحميل */
@media (max-width: 768px) {
    .download-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .download-text h1 {
        font-size: 2.5rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .download-btn {
        min-width: 180px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}



.no-reviews, .error-message {
    text-align: center;
    padding: 3rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

/* تنسيق قسم التواصل */
.contact {
    padding: 8rem 1rem;
    text-align: center;
    background-color: var(--white);
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.3);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(41, 98, 255, 0.4);
}

/* تأثيرات الحركة للروابط الجديدة */
.social-link.animate-in {
    animation: socialLinkFadeIn 0.6s ease forwards;
}

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

/* تحسين مظهر رقم الدعم */
.social-link[title*="دعم"] {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.social-link[title*="دعم"]:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* تنسيق الفوتر */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.1;
}

footer p {
    position: relative;
    z-index: 1;
}

/* تجاوب الموقع مع الشاشات الصغيرة */
@media (max-width: 768px) {
    /* إخفاء القائمة العلوية على الهواتف */
    .desktop-menu {
        display: none !important;
    }
    
    nav {
        padding: 1rem 5%;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

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

    .social-links {
        flex-wrap: wrap;
    }
    
    /* تحسين القائمة الجانبية للهواتف */
    .sidebar {
        width: 280px;
        right: -300px;
    }
    
    .menu-toggle {
        top: 1rem;
        left: 1rem;
        right: auto;
        width: 45px;
        height: 45px;
    }
    
    .logo {
        font-size: 1.4rem;
        padding-left: 70px;
    }
}

/* إخفاء زر القائمة على الشاشات الكبيرة */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
}