/* ===== الأساسيات ===== */
:root {
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --primary-orange: #ea580c;
    --primary-orange-light: #f97316;
    --primary-yellow: #eab308;
    --primary-purple: #7c3aed;
    --primary-pink: #ec4899;
    --primary-green: #16a34a;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --white: #ffffff;
    --dark-bg: #0f172a;
    --dark-bg-light: #1e293b;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-pink) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-blue-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

section {
    padding: 80px 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30,10 L50,30 L30,50 L10,30 Z' fill='none' stroke='rgba(52, 152, 219, 0.05)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-title p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== الهيدر ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
}

/* عندما يختفي الهيدر */
header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* عندما يظهر الهيدر */
header.header-visible {
    transform: translateY(0);
    opacity: 1;
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    white-space: nowrap;
}

.main-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.main-menu li a:hover::before,
.main-menu li a.active::before {
    left: 0;
}

.main-menu li a:hover,
.main-menu li a.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.main-menu li a i {
    font-size: 16px;
}

/* ===== قسم البطل ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,10 L90,50 L50,90 L10,50 Z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.2s both;
}

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

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

/* ===== الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn * {
    position: relative;
    z-index: 1;
}

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

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.secondary-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.order-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 25px;
    font-size: 14px;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== قسم نبذة عنا ===== */
.about-section {
    background: white;
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
}

/* ===== قسم المنتجات ===== */
.products-section {
    background: var(--light-gray);
    padding: 100px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

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

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

.product-images {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .image-slider img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.product-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-rating i {
    color: var(--primary-yellow);
    font-size: 14px;
}

.product-rating span {
    color: var(--text-light);
    font-size: 14px;
    margin-right: 10px;
}

.product-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== قسم التواصل ===== */
.contact-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
}

.contact-section .section-title h2 {
    color: white;
    -webkit-text-fill-color: white;
}

.contact-section .section-title p {
    color: rgba(255,255,255,0.9);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 30px;
    color: var(--primary-yellow);
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item p {
    opacity: 0.9;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary-yellow);
}

/* ===== الفوتر ===== */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

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

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

.footer-logo h3 {
    font-size: 18px;
    color: var(--primary-pink);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--primary-pink);
}

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

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-yellow);
    padding-right: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.footer-contact i {
    margin-left: 10px;
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ===== الأزرار العائمة ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px; /* تم تغيير right إلى left */
    right: auto; /* أضف هذا السطر لإلغاء تأثير right */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.phone-btn {
    background: var(--gradient-secondary);
}

.whatsapp-btn {
    background: var(--primary-green);
}

.floating-btn:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ===== التصميم المتجاوب ===== */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header {
        padding: 10px 0;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        flex-direction: row;
        gap: 15px;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 16px;
        white-space: normal;
        text-align: right;
    }
    
    .main-menu {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .main-menu li a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .main-menu li a span {
        display: none;
    }
    
    .hero-section {
        padding-top: 120px;
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .product-images {
        height: 200px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .floating-buttons {
        bottom: 20px;
        left: 20px; /* تم تغيير right إلى left */
        right: auto; /* أضف هذا السطر لإلغاء تأثير right */
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .products-grid {
        margin: 0 -10px;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .product-images {
        height: 180px;
    }
    
    .product-info h4 {
        font-size: 18px;
    }
    
    .about-text p {
        font-size: 16px;
    }
}

