*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Cairo',sans-serif;background:#f9f9f9;color:#333;line-height:1.6}
a{text-decoration:none}

/* ============ تحسين الهيدر ============ */
header {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a4db8 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-weight: 800;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #4dabf7;
    font-size: 1.8em;
}

.nav-links {
    display: flex;
    gap: 30px;
}

nav a {
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
    padding: 8px 0;
    position: relative;
}

nav a:hover {
    color: #e3f2ff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #4dabf7;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.cta-button {
    background: #ff6b35;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: #ff824e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
}

/* ============ تحسين الهيرو ============ */
.hero {
    background: linear-gradient(135deg, #e9f2ff 0%, #d4e6ff 100%);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%230b5ed7" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px;
    opacity: 0.3;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.hero-text h1 {
    color: #0b5ed7;
    margin-bottom: 20px;
    font-size: 2.5em;
    line-height: 1.2;
    font-weight: 800;
}

.hero-text p {
    margin-bottom: 25px;
    font-size: 1.2em;
    color: #444;
}

.btn {
    background: linear-gradient(to left, #0b5ed7, #4dabf7);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
    border: none;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, #4dabf7, #0b5ed7);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn:hover::after {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.4);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ قسم منتجاتنا (4 فوق و4 تحت) ============ */
#products {
    padding: 80px 5%;
    background: #fff;
}

#products h2 {
    text-align: center;
    color: #0b5ed7;
    margin-bottom: 60px;
    font-size: 2.2em;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

#products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0b5ed7, #4dabf7);
    border-radius: 2px;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    width: 250px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, #0b5ed7, #4dabf7);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e9f2ff, #d4e6ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #0b5ed7;
    font-size: 1.8em;
}

.product-card h3 {
    color: #0b5ed7;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 700;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-tag {
    display: inline-block;
    background: #e9f2ff;
    color: #0b5ed7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 10px;
}

/* ============ تحسين الفورم ============ */
#contact {
    padding: 80px 5%;
    background: #f0f7ff;
}

#contact h2 {
    text-align: center;
    color: #0b5ed7;
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

#contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0b5ed7, #4dabf7);
    border-radius: 2px;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.form-wrapper {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
}

form {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, #0b5ed7, #4dabf7);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0b5ed7;
    font-size: 1.2em;
}

input, textarea {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #0b5ed7;
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
    background-color: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.file-label {
    display: block;
    margin: 15px 0;
    font-weight: 700;
    color: #0b5ed7;
}

.file-input-container {
    position: relative;
    margin-bottom: 20px;
}

.file-input {
    padding: 10px;
    border: 2px dashed #0b5ed7;
    border-radius: 10px;
    background-color: #f0f7ff;
    cursor: pointer;
    width: 100%;
    padding-right: 120px;
}

.file-input::file-selector-button {
    background: #0b5ed7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input::file-selector-button:hover {
    background: #0a4db8;
}

.file-info {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.submit-btn {
    background: linear-gradient(to left, #0b5ed7, #4dabf7);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1.1em;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(11, 94, 215, 0.3);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.8;
    transform: none;
    box-shadow: none;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.4);
}

#result {
    margin-top: 20px;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5em;
    color: #0b5ed7;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #0b5ed7;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.info-card p {
    color: #666;
    line-height: 1.5;
}

/* ============ تحسين الفوتر ============ */
footer {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a4db8 100%);
    color: #fff;
    padding: 60px 5% 30px;
    font-family: 'Cairo', sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.footer-logo-img img {
    max-width: 100%;
    max-height: 100%;
}

.footer-logo-text {
    font-size: 1.5em;
    font-weight: 800;
}

.footer-desc {
    font-size: 1em;
    line-height: 1.6;
    color: #e3f2ff;
    margin-bottom: 20px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: #4dabf7;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #e3f2ff;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #e3f2ff;
}

.contact-item i {
    color: #4dabf7;
    font-size: 1.2em;
    width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2em;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #4dabf7;
    transform: translateY(-3px);
}

.qr-section {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.qr-code i {
    font-size: 4em;
    color: #0b5ed7;
}

.qr-section p {
    font-size: 0.9em;
    color: #e3f2ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: #e0e0e0;
}

/* ============ بقية الأنماط ============ */
section {
    padding: 80px 5%;
}

h2 {
    text-align: center;
    color: #0b5ed7;
    margin-bottom: 50px;
    font-size: 2.2em;
    font-weight: 800;
}

.services, .features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 270px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    color: #0b5ed7;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.card p {
    font-size: 0.95em;
    color: #666;
}

/* ============ وسائط متجاوبة ============ */
@media (max-width: 1100px) {
    .product-card {
        width: 220px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }
    
    .hero-text h1 {
        font-size: 2em;
    }
    
    .product-card {
        width: 200px;
    }
}

@media (max-width: 850px) {
    .products-row {
        justify-content: space-around;
    }
    
    .product-card {
        width: 45%;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .product-card {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links h3::after, .footer-contact h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8em;
    }
    
    .btn {
        padding: 12px 25px;
    }
    
    form {
        padding: 25px;
    }
    
    .card {
        width: 100%;
        max-width: 300px;
    }
}
