/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #1C1C1C;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-blue: #A3C6E2;
    --dark-charcoal: #1C1C1C;
    --gold: #D4AF37;
    --silver: #D6D6D6;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #A3C6E2 0%, #D4AF37 100%);
    --gradient-secondary: linear-gradient(135deg, #1C1C1C 0%, #A3C6E2 100%);
    --shadow-light: 0 4px 20px rgba(163, 198, 226, 0.2);
    --shadow-medium: 0 8px 30px rgba(28, 28, 28, 0.1);
    --shadow-heavy: 0 15px 50px rgba(28, 28, 28, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: relative; /* أو static */
    /* قم بإزالة top, left, right إذا كانت موجودة */
    height: auto;
    min-height: 200px;
    background: var(--gradient-secondary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
    padding: 20px 0;
}


.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.logo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* background: var(--white); */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
}

.company-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-item:hover {
    background: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.nav-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.nav-item span {
    font-weight: 500;
}

/* Contact Buttons in Header */
.contact-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    white-space: nowrap;
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.phone-btn {
    background: var(--gold);
    color: var(--white);
}

.phone-btn:hover {
    background: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.main-content {
    min-height: 100vh;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="20" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-charcoal);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature i {
    font-size: 2.5rem;
    color: var(--gold);
    width: 60px;
    text-align: center;
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 5px;
}

.feature p {
    color: #666;
    font-size: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover i {
    color: var(--gold);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    padding: 20px 25px 15px;
    text-align: center;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 25px 25px;
    padding: 12px 20px;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    width: 50px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
}

.contact-map {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    height: 400px;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.map-placeholder p {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.footer-logo h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float {
    background: #25D366;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.phone-float {
    background: var(--gold);
}

.phone-float:hover {
    background: #B8941F;
    transform: scale(1.1);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        gap: 15px;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .contact-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        min-height: 80px;
        padding: 10px 0;
            margin-bottom: 0; /* تأكد من عدم وجود هامش سفلي يدفع المحتوى للأسفل */

    }
    
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 5px 10px;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
        order: 1;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .company-name {
        font-size: 1.2rem;
        order: 2;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu {
        display:  flex;
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
            margin-top: 5px; /* إضافة هامش علوي بسيط */

    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .nav-item span {
        display: none;
    }
    
    .contact-buttons {
        order: 4;
        gap: 5px;
            margin-bottom: 5px; /* إضافة هامش سفلي بسيط */

    }
    
    .contact-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .contact-btn span {
        display: none;
    }
    
    .main-content {
            margin-top: 0 !important; /* تأكد من إزالة أي هامش علوي بقوة */

    }
    
    .hero {
            height: auto; /* اجعل الارتفاع تلقائيًا ليتناسب مع المحتوى */
    min-height: 50vh; /* حد أدنى للارتفاع لضمان ظهور المحتوى */

        padding: 0 20px;
            margin-top: 0; /* تأكد من عدم وجود هامش علوي يدفع المحتوى للأسفل */

    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* إصلاح مشاكل قسم الاتصال */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-map {
        height: 300px;
        min-height: 300px;
    }
    
    .map-placeholder {
        height: 100%;
        min-height: 300px;
    }
    
    .floating-buttons {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* إصلاح مشاكل الفوتر */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* إصلاح مشاكل الصور */
    .product-image {
        height: 200px;
        object-fit: cover;
    }
    
    /* تحسين التباعد العام */
    .container {
        padding: 0 15px;
    }
    
    /* إصلاح مشاكل الأزرار */
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        min-height: 180px;
        padding: 15px 0;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .company-name {
        font-size: 1.3rem;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.8rem;
         display: flex;
        flex-wrap: wrap; /* تأكد من وجود هذا السطر */
        justify-content: center; /* لتوسيط الأزرار */
        gap: 8px; /* يمكنك تعديل المسافة بين الأزرار */
    }
    
    .contact-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .main-content {
        margin-top: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .feature {
        padding: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
}

/* Print Styles */
@media print {
    .header,
    .floating-buttons {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .hero {
        height: auto;
        padding: 40px 0;
    }
    
    .section {
        padding: 30px 0;
        break-inside: avoid;
    }
}



/* تحسينات إضافية للهواتف الصغيرة */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .nav-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .contact-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .floating-buttons {
        bottom: 15px;
        left: 15px;
    }
}

/* تحسينات لتحميل الصور */
.product-image {
    loading: lazy;
    transition: opacity 0.3s ease;
}

.product-image[data-loaded="false"] {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* تحسين الأداء العام */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* إصلاح مشاكل الفجوات */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.main-content {
    width: 100%;
    overflow-x: hidden;
}

.section {
    width: 100%;
    box-sizing: border-box;
}


/* أنماط مؤشرات التحميل */
.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* تحسينات للأجهزة التي تدعم اللمس */
.touch-device .product-card:hover,
.touch-device .service-card:hover {
    transform: none;
}

.touch-active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
}

/* تحسين الصور المحملة */
.product-image.loaded {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* تحسين الأداء للأجهزة البطيئة */
@media (max-width: 768px) and (max-resolution: 150dpi) {
    .product-card:hover,
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .product-image {
        transition: transform 0.2s ease;
    }
}

/* تحسين التباعد للأجهزة الصغيرة جداً */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .products-grid {
        gap: 15px;
    }
    
    .product-card {
        margin: 0 5px;
    }
}

/* تحسين الخطوط للشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* إصلاح مشاكل الفجوات الإضافية */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    position: relative;
    z-index: 1;
}

/* تحسين الأداء للرسوم المتحركة */
.product-card,
.service-card,
.feature {
    will-change: transform;
}

.product-card:hover,
.service-card:hover,
.feature:hover {
    will-change: auto;
}

/* تحسين عرض الصور على الشاشات المختلفة */
@media (max-width: 768px) {
    .product-image {
        height: 200px;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 180px;
    }
}

@media (max-width: 320px) {
    .product-image {
        height: 160px;
    }
}

