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

:root {
    --primary-color: #3498db;
    --secondary-color: #25d366;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

body, html {
    height: 100%;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--light-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

@media (min-width: 1200px) {
    .navbar {
        padding: 20px 8%;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 15px 4%;
    }
}

.logo {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    letter-spacing: -0.5px;
    z-index: 1102;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .logo {
        font-size: 32px;
    }
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: var(--primary-color);
    font-weight: 800;
    font-family: 'Changa', sans-serif;
}
/* تنسيق هيدر الفوتر (الصور الثلاث) */
.footer-logos-header {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 30px 0;
    flex-wrap: wrap;

    /* جعل الحواف دائرية */
    border-radius: 20px; 
    
    /* إضافة مسافات حول القسم لكي يظهر شكل الحواف الدائرية */
    margin: 20px 8%; 
    
    /* إضافة ظل خفيف لإبراز القسم */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    
    width: auto; /* لكي لا يأخذ العرض الكامل وتظهر الحواف */
}
.footer-logos-header .logo-item img {
    max-height: 60px;
    width: auto;
    /* تأكد من عدم وجود فلاتر تجعل الصور بيضاء هنا لأن الخلفية أصبحت بيضاء */
    filter: none; 
    transition: transform 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%); /* تلوين الصورة عند مرور الماوس */
    opacity: 1;
    
    transform: scale(1.1);
}
.footer-logos-header .logo-item img:hover {
    transform: scale(1.1);
}

.footer-divider {
    border: 0;
    height: 1px;
    background: #eeeeee; /* لون رمادي فاتح جداً للفاصل */
    margin: 0;
}
/* تحسين للجوال */
@media (max-width: 768px) {
    .footer-logos-header {
        gap: 20px;
    }
    .logo-item img {
        max-width: 100px;
    }
}

/* زر الهامبرجر */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1102;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* قائمة التنقل */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    transition: var(--transition);
}

@media (min-width: 1200px) {
    .nav-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1101;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nav-links li a {
        color: var(--white);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        font-family: 'Tajawal', sans-serif;
        padding: 15px 20px;
        border-radius: 8px;
        width: 100%;
        text-align: right;
        transition: all 0.3s ease;
        border-right: 3px solid transparent;
        display: block;
    }
    
    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--secondary-color);
        background: rgba(37, 211, 102, 0.1);
        border-right: 3px solid var(--secondary-color);
        padding-right: 25px;
        transform: none;
    }
    
    /* شعار في القائمة المتنقلة */
    .nav-links::before {
        content: 'كفاءات العالم';
        color: var(--secondary-color);
        font-size: 1.4rem;
        font-weight: 700;
        font-family: 'Cairo', sans-serif;
        display: block;
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: absolute;
        top: 30px;
        right: 30px;
        left: 30px;
    }
}

/* طبقة التعتيم للقائمة */
.overlay-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.overlay-menu.active {
    display: block;
    opacity: 1;
}

/* منع التمرير عند فتح القائمة */
body.menu-open {
    overflow: hidden;
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .nav-links {
        width: 90%;
        padding: 90px 20px 30px;
    }
    
    .nav-links li a {
        font-size: 1rem;
        padding: 14px 18px;
    }
    
    .nav-links::before {
        font-size: 1.2rem;
        top: 25px;
        right: 20px;
        left: 20px;
    }
}

/* إظهار القائمة على الشاشات الكبيرة */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        border-left: none !important;
        padding: 0 !important;
        flex-direction: row !important;
        z-index: auto !important;
    }
    
    .nav-links::before {
        display: none !important;
    }
    
    .nav-links li a {
        padding: 8px 16px !important;
        font-size: 18px !important;
        width: auto !important;
        border-right: none !important;
        color: var(--white) !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-family: 'Tajawal', sans-serif !important;
        transition: var(--transition) !important;
    }
    
    .nav-links li a:hover,
    .nav-links li a.active {
        color: var(--secondary-color) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-right: none !important;
        padding-right: 16px !important;
        transform: translateY(-2px) !important;
    }
    
    .overlay-menu {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: url('a.png') 
                no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding-top: 80px;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 90vh;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 8vh;
    animation: fadeIn 1s ease-out;
}

@media (min-width: 768px) {
    .hero-content {
        padding-top: 10vh;
    }
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Changa', sans-serif;
    letter-spacing: -0.5px;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
        margin-bottom: 25px;
    }
}

@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 3.8rem;
    }
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Amiri', serif;
    font-weight: 400;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .hero-content p {
        font-size: 1.3rem;
        margin-bottom: 50px;
    }
}

@media (min-width: 1200px) {
    .hero-content p {
        font-size: 1.4rem;
    }
}

/* ===== CTA BUTTONS ===== */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .cta-buttons {
        gap: 30px;
        margin-top: 40px;
        flex-wrap: nowrap;
    }
}

.btn-whatsapp {
    background: linear-gradient(45deg, var(--secondary-color), #128c7e);
    color: var(--white);
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    border: 2px solid var(--secondary-color);
    font-family: 'Tajawal', sans-serif;
    min-width: 200px;
    flex: 1;
    max-width: 100%;
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn-whatsapp {
        padding: 18px 40px;
        font-size: 20px;
        min-width: auto;
        flex: none;
    }
}

.btn-whatsapp:hover {
    background: linear-gradient(45deg, #128c7e, var(--secondary-color));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    border: 2px solid var(--primary-color);
    font-family: 'Tajawal', sans-serif;
    min-width: 200px;
    flex: 1;
    max-width: 100%;
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn-outline {
        padding: 18px 40px;
        font-size: 20px;
        min-width: auto;
        flex: none;
    }
}

.btn-outline:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

/* ===== STATS BAR ===== */
.stats-bar {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
    animation: fadeIn 1.5s ease-out;
}

@media (min-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        padding: 40px 30px;
    }
}

.stat-item {
    color: var(--white);
    text-align: center;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .stat-item i {
        font-size: 32px;
        margin-bottom: 12px;
    }
}

.stat-item:hover i {
    color: var(--secondary-color);
    transform: scale(1.2) rotate(5deg);
}

.stat-item span {
    font-size: 18px;
    font-weight: 600;
    display: block;
    font-family: 'Cairo', sans-serif;
}

@media (min-width: 768px) {
    .stat-item span {
        font-size: 20px;
    }
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 80px 5%;
    background: var(--white);
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    transform: translateY(30px);
}

@media (min-width: 768px) {
    .content-section {
        padding: 100px 8%;
    }
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-section:nth-child(even) {
    background: var(--light-color);
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
}

.content-section h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Changa', sans-serif;
    position: relative;
    padding-bottom: 20px;
}

@media (min-width: 768px) {
    .content-section h2 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .content-section h2::after {
        width: 100px;
    }
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    font-family: 'Amiri', serif;
    text-align: center;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .content-section p {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
}

.content-section ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 25px auto;
}

@media (min-width: 768px) {
    .content-section ul {
        margin: 30px auto;
    }
}

.content-section li {
    font-size: 1rem;
    margin-bottom: 12px;
    padding-right: 30px;
    position: relative;
    font-family: 'Tajawal', sans-serif;
    color: #555;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .content-section li {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

.content-section li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    right: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .content-section li:before {
        font-size: 1.3rem;
    }
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

@media (min-width: 576px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

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

.feature-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    height: 100%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: calc(var(--item-index) * 0.1s);
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .feature-item {
        padding: 30px;
    }
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .feature-item i {
        font-size: 2.5rem;
    }
}

.feature-item:hover i {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.feature-item h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
}

@media (min-width: 768px) {
    .feature-item h3 {
        font-size: 1.4rem;
    }
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .feature-item p {
        font-size: 1rem;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 5% 20px;
    animation: fadeIn 1s ease-out;
}

@media (min-width: 768px) {
    .footer {
        padding: 40px 8% 20px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (min-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .footer-section h3 {
        margin-bottom: 20px;
        font-size: 1.4rem;
    }
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

@media (min-width: 768px) {
    .footer-section h3::after {
        width: 50px;
    }
}

.footer-section p {
    color: #bbb;
    line-height: 1.8;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-section i {
    color: var(--primary-color);
    margin-left: 10px;
    width: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Tajawal', sans-serif;
}

@media (min-width: 768px) {
    .footer-bottom {
        margin-top: 40px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ===== تحسينات إمكانية الوصول ===== */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ===== تحسينات للأجهزة التي تدعم hover ===== */
@media (hover: hover) and (pointer: fine) {
    .nav-links li a:hover {
        background: rgba(37, 211, 102, 0.15);
    }
    
    .menu-toggle:hover {
        transform: scale(1.05);
    }
}

/* ===== تأثيرات هامر للجوال ===== */
@media (hover: none) and (pointer: coarse) {
    .btn-whatsapp, .btn-outline, .nav-links li a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-item:hover {
        transform: none;
    }
    
    .nav-links li a:hover {
        transform: none;
    }
}

/* ===== تحسينات للوضع الأفقي على الجوال ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 120vh;
    }
    
    .hero-content {
        padding-top: 5vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        margin-top: 20px;
    }
    
    .nav-links {
        padding-top: 70px;
    }
    
    .nav-links::before {
        top: 20px;
    }
}

/* ===== منع التمرير الأفقي ===== */
body {
    overflow-x: hidden;
}

/* ===== تحسين الأداء للصور ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== تحسينات للوضع الليلي ===== */
@media (prefers-color-scheme: dark) {
    .content-section {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .content-section:nth-child(even) {
        background: #222;
    }
    
    .feature-item {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .feature-item h3 {
        color: #fff;
    }
    
    .feature-item p {
        color: #bbb;
    }
    
    .content-section p, .content-section li {
        color: #bbb;
    }
}

/* ===== زر العودة للأعلى ===== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
}

#scrollTopBtn.show {
    display: flex;
    opacity: 1;
}

#scrollTopBtn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ===== تحسينات للشاشات الكبيرة جداً ===== */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px !important;
    }
    
    .hero-content h1 {
        font-size: 4.2rem !important;
    }
    
    .hero-content p {
        font-size: 1.5rem !important;
    }
}

/* ===== تحسينات للطباعة ===== */
@media print {
    .navbar, .menu-toggle, .overlay-menu, #scrollTopBtn, .cta-buttons {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    .content-section {
        padding: 40px 5%;
        page-break-inside: avoid;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* ===== تحسينات لشاشات التلفاز والـ Smart TV ===== */
@media (min-width: 1920px) {
    .navbar {
        padding: 25px 10%;
    }
    
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
        max-width: 1000px;
    }
    
    .btn-whatsapp, .btn-outline {
        padding: 22px 50px;
        font-size: 1.3rem;
    }
    
    .content-section h2 {
        font-size: 3rem;
    }
    
    .content-section p {
        font-size: 1.4rem;
    }
}

/* ===== إصلاحات خاصة لمتصفح Safari ===== */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .navbar {
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }
}

/* ===== تحسينات للأجهزة ذات الشاشات الصغيرة جداً ===== */
@media (max-width: 360px) {
    .logo {
        font-size: 22px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-whatsapp, .btn-outline {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .nav-links {
        width: 95%;
        padding: 80px 15px 30px;
    }
}

/* ===== حل نهائي لمنع ظهور القائمة تحت الهيدر ===== */
@media (max-width: 768px) {
    .nav-links {
        top: 0 !important;
    }
    
    .navbar {
        z-index: 1100 !important;
    }
    
    .overlay-menu {
        z-index: 1099 !important;
    }
    
    .nav-links.active {
        z-index: 1101 !important;
    }
    
    .menu-toggle {
        z-index: 1102 !important;
    }
}

/* ===== تحسينات للأنيميشن على الأجهزة الضعيفة ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== تحسينات للخطوط العربية ===== */
@font-face {
    font-family: 'Tajawal';
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    font-display: swap;
}

@font-face {
    font-family: 'Changa';
    font-display: swap;
        }
