:root {
    --primary-color: #2C7DA0;
    --secondary-color: #1F4E6F;
    --accent-color: #4CAF50;
    --whatsapp-color: #25D366;
    --facebook-color: #1877f2;
    --twitter-color: #1da1f2;
    --linkedin-color: #0077b5;
    --instagram-color: #e4405f;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}
/* متغيرات الوضع الليلي */
[data-theme="dark"] {
    --primary-color: #4A9FC1;
    --secondary-color: #3A6F8F;
    --accent-color: #6AB04A;
    --text-dark: #f0f0f0;
    --text-light: #cccccc;
    --bg-light: #2d2d2d;
    --bg-dark: #1a1a1a;
    --white: #333333;
    --shadow: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 30px rgba(0,0,0,0.4);
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== أيقونة الواتساب العائمة ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* في العربية تكون يسار */
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: var(--transition);
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

.whatsapp-float i {
    transition: var(--transition);
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

/* تلميح الواتساب */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--whatsapp-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}
/* ===== أيقونة تغيير الوضع العائمة ===== */
.theme-float {
    position: fixed;
    bottom: 30px;
    left: 100px; /* بجانب أيقونة الواتساب */
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
}

.theme-float:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--primary-color);
}

.theme-float i {
    transition: var(--transition);
}

.theme-float:hover i {
    transform: scale(1.1);
}

/* تلميح أيقونة تغيير الوضع */
.theme-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.theme-tooltip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--white);
}

.theme-float:hover .theme-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* تحديث أنماط البطاقات للوضع الليلي */
[data-theme="dark"] .card {
    background: var(--white);
    color: var(--text-dark);
}

[data-theme="dark"] .card p {
    color: var(--text-light);
}

[data-theme="dark"] .btn {
    background: var(--primary-color);
    color: var(--white);
}

[data-theme="dark"] .btn:hover {
    background: var(--secondary-color);
}

/* تحديث أنماط الفوتر للوضع الليلي */
[data-theme="dark"] .footer {
    background: var(--bg-dark);
    color: var(--text-light);
}
[data-theme="dark"] .footer-col ul li a {
    color: var(--text-light);
}

[data-theme="dark"] .social-link {
    background: var(--primary-color);
}
/* تحديث أنماط النماذج */
[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background: var(--bg-dark);
    color: var(--text-dark);
    border-color: var(--secondary-color);
}

/* تحديث أنماط أيقونات الخلفية */
[data-theme="dark"] .background-icon {
    opacity: 0.05;
}

/* تحسينات RTL */
[dir="rtl"] .theme-float {
    left: 100px;
    right: auto;
}

[dir="rtl"] .theme-tooltip {
    right: auto;
    left: 70px;
}

[dir="rtl"] .theme-tooltip::after {
    right: auto;
    left: -10px;
    border-color: transparent var(--white) transparent transparent;
}

[dir="rtl"] .theme-float:hover .theme-tooltip {
    left: 80px;
    right: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}
.logo span {
    color: var(--secondary-color);
}
/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    animation: shine 10s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--white);
}

.btn:hover {
    background: transparent;
    /* color: var(--white); */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

/* Sections */
.section {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Cards Grid */
.card-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(4, 1fr); /* 4 منتجات في كل صف */
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.card:hover {
    top: -10px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* About Page */
.about-icon-large {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.icon-large-container {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    animation: floatIcon 4s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(44, 125, 160, 0.3);
    position: relative;
    z-index: 2;
}

.icon-large-container i {
    font-size: 120px;
    color: white;
    transform: rotate(-45deg);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.icon-large-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(44, 125, 160, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseBackdrop 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-20px);
    }
}

@keyframes pulseBackdrop {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* للشاشات المتوسطة */
@media (max-width: 992px) {
    .icon-large-container {
        width: 250px;
        height: 250px;
    }
    
    .icon-large-container i {
        font-size: 100px;
    }
    
    .icon-large-backdrop {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .icon-large-container {
        width: 200px;
        height: 200px;
    }
    
    .icon-large-container i {
        font-size: 80px;
    }
    
    .icon-large-backdrop {
        width: 250px;
        height: 250px;
    }
}

/* تحسين RTL */
[dir="rtl"] .icon-large-container {
    transform: rotate(45deg);
}

[dir="rtl"] .icon-large-container i {
    transform: rotate(-45deg);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
    position: relative;
    overflow: hidden;
}
/* خلفية متحركة للفوتر */
.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.footer-col {
    position: relative;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}
.footer-col:hover h3::after {
    width: 100%;
}
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
/* أيقونات التواصل الاجتماعي */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: scale(0);
    transition: var(--transition);
    border-radius: 50%;
    z-index: -1;
}

.social-link:hover {
    color: var(--white);
    transform: translateY(-5px);
}

.social-link:hover::before {
    transform: scale(1);
}
/* إضافة أنماط لأيقونة البريد الإلكتروني */
.social-link.email:hover {
    background: #EA4335; /* لون Gmail */
}

.social-link.email i {
    font-size: 18px;
}
.social-link.whatsapp:hover { background: var(--whatsapp-color); }
.social-link.facebook:hover { background: var(--facebook-color); }
.social-link.twitter:hover { background: var(--twitter-color); }
.social-link.linkedin:hover { background: var(--linkedin-color); }
.social-link.instagram:hover { background: var(--instagram-color); }

/* ===== الرسومات المتحركة والأيقونات ===== */
/* أيقونات عائمة */
.floating-icon {
    position: absolute;
    font-size: 40px;
    color: rgba(44, 125, 160, 0.1);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.floating-icon i {
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* أيقونات متحركة في الخلفية */
.background-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.background-icon {
    position: absolute;
    opacity: 0.03;
    animation: rotateFloat 20s linear infinite;
}

.background-icon i {
    font-size: 100px;
    color: var(--primary-color);
}
/* بطاقات المنتجات مع أيقونات */
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    min-height: 50px;
}
.product-card .btn.whatsapp-btn {
    background: var(--whatsapp-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    border: none;
    margin-top: auto;
}
.product-card .btn.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}
.product-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    opacity: 0.9;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

.product-card:hover .product-icon {
    transform: translateX(0);
}

/* عناوين متحركة */
.animated-title {
    position: relative;
    display: inline-block;
}

.animated-title i {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

/* ===== أنيميشنات جديدة ===== */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rotateFloat {
    0% {
        transform: rotate(0deg) translateX(0) translateY(0);
    }
    33% {
        transform: rotate(120deg) translateX(50px) translateY(50px);
    }
    66% {
        transform: rotate(240deg) translateX(-50px) translateY(-50px);
    }
    100% {
        transform: rotate(360deg) translateX(0) translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-70%) scale(1.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

/* تأثير اللمعان للنصوص */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* تحسين RTL للواتساب */
[dir="rtl"] .whatsapp-float {
    left: 30px;
    right: auto;
}

[dir="rtl"] .whatsapp-tooltip {
    right: auto;
    left: 70px;
}

[dir="rtl"] .whatsapp-tooltip::after {
    right: auto;
    left: -10px;
    border-color: transparent var(--white) transparent transparent;
}

[dir="rtl"] .whatsapp-float:hover .whatsapp-tooltip {
    left: 80px;
    right: auto;
}

/* تحسين استجابة الواتساب للشاشات الصغيرة */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        left: 20px;
    }

    .theme-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        left: 80px;
    }
    
    .theme-tooltip,
    .whatsapp-tooltip {
        display: none;
    }
}
/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0%, 100% {
        transform: rotate(45deg) translateX(-100%);
    }
    50% {
        transform: rotate(45deg) translateX(100%);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 منتجات في الصف */
    }
}

@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 منتجات في الصف */
    }
}

@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr; /* منتج واحد في الصف */
    }
}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-info i {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .footer-col h3::after {
    left: auto;
    right: 0;
}
.product-card .btn.view-products-btn {

        font-family: 'Cairo', sans-serif;
}

/* أنماط البطاقات ذات الأيقونات */
.icon-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.icon-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    height: 100%;
    border: 1px solid rgba(44, 125, 160, 0.1);
}

.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.icon-card-wrapper {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.icon-card-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: rotate(45deg);
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(44, 125, 160, 0.2);
}

.icon-card-icon-large i {
    font-size: 48px;
    color: white;
    transform: rotate(-45deg);
    transition: var(--transition);
}

.icon-card:hover .icon-card-icon-large {
    transform: rotate(90deg);
    border-radius: 50%;
}

.icon-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.icon-card-content h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.icon-card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.icon-card .view-products-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border-radius: 50px;
    width: 100%;
    transition: var(--transition);
    margin-top: auto;
}

.icon-card .view-products-btn i {
    margin-left: 8px;
}

.icon-card .view-products-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* أنماط متجاوبة */
@media (max-width: 1200px) {
    .icon-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .icon-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .icon-card-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .icon-card-icon-large i {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .icon-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .icon-card-wrapper {
        padding: 1.5rem;
    }
}

/* تحسين هوامش الأيقونة في العنوان المتحرك */
.animated-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px; /* مسافة بين الأيقونة والنص */
}

.animated-title i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    /* ضبط الهوامش */
    margin-left: 10px;    /* للعربية - الأيقونة على اليمين */
    margin-right: 0;
    transition: var(--transition);
}

/* للغة الإنجليزية */
[dir="ltr"] .animated-title i {
    margin-left: 0;
    margin-right: 10px;   /* للإنجليزية - الأيقونة على اليسار */
}

/* تحسينات للشاشات المختلفة */
@media (max-width: 992px) {
    .animated-title i {
        font-size: 1.8rem;
        margin-left: 8px;
    }
    
    [dir="ltr"] .animated-title i {
        margin-right: 8px;
    }
}

@media (max-width: 768px) {
    .animated-title {
        gap: 8px;
    }
    
    .animated-title i {
        font-size: 1.6rem;
        margin-left: 6px;
    }
    
    [dir="ltr"] .animated-title i {
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .animated-title {
        gap: 5px;
    }
    
    .animated-title i {
        font-size: 1.4rem;
        margin-left: 4px;
    }
    
    [dir="ltr"] .animated-title i {
        margin-right: 4px;
    }
}

/* تحسين ظهور العنوان في منتصف الصفحة */
.section-title.animated-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title.animated-title i {
    position: static; /* إلغاء أي positioning سابق */
    transform: none;
    animation: bounce 2s infinite;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    .section-title.animated-title {
        gap: 8px;
        font-size: 1.8rem;
    }
    
    .section-title.animated-title i {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .section-title.animated-title {
        gap: 5px;
        font-size: 1.5rem;
    }
    
    .section-title.animated-title i {
        font-size: 1.4rem;
    }
}

/* تحسين محاذاة العنوان الفرعي */
.section-header .section-subtitle {
    text-align: center;
    max-width: 700px; /* عرض مناسب للقراءة */
    margin: 0 auto;   /* توسيط أفقي */
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0 1rem;  /* هوامش جانبية للشاشات الصغيرة */
}

/* إخفاء اسم الشركة في شاشة الهاتف فقط */
@media (max-width: 768px) {
    /* إخفاء النص فقط */
    .logo .logo-text {
        display: none !important;
    }
    
    /* الحفاظ على الشعار (الصورة) */
    .logo .logo-img {
        display: block !important;
        height: 40px; /* يمكنك تعديل الحجم حسب رغبتك */
        width: auto;
    }
    
    /* تحسين محاذاة الهيدر للهاتف */
    .navbar {
        padding: 0.5rem 3%;
    }
    
    /* تحسين حجم أزرار اللغة */
    .lang-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .logo .logo-img {
        height: 35px;
    }
}