/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* الهيدر */
header { 
    background: linear-gradient(135deg, #3792e8 0%, #4cc1ef 100%);
    color: white;
    padding: 5px 0;              /* ⬅️ كان 20px */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* القائمة */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* القائمة المنسدلة */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li a {
    color: #333;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f0f7ff;
    color: #1a5fb4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* قسم البطل */
.hero-curve {
    background: linear-gradient(135deg, #53b2f6 0%, #51e8ed 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    clip-path: ellipse(100% 60% at 50% 40%);
    margin-bottom: 50px;
}

.hero-curve .content h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-curve .content p {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* الخدمات */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a5fb4;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: #1a5fb4;
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    padding-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid #2d7bc9;
}

.product-card h3 {
    color: #1a5fb4;
    margin: 15px 0 10px;
    font-size: 1.5rem;
}

.product-card p {
    color: #666;
    padding: 0 15px;
    font-size: 1rem;
}

/* زر الطفو */
.floating-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background: linear-gradient(135deg, #e05a2b, #e07d42);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* الفوتر */
.main-footer {
    background-color: #1e3a5f;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #4a9ae9;
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: #4a9ae9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: #4a9ae9;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.logo-section img {
    max-width: 180px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #2a4a7a;
    color: #aaa;
    font-size: 1rem;
}

.footer-bottom strong {
    color: #4a9ae9;
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-curve .content h2 {
        font-size: 2rem;
    }
    
    .hero-curve .content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-btn {
        bottom: 15px;
        left: 15px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 10px;
    }
}