/* ===== إعدادات عامة ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #0a3d62;
    --secondary-color: #3c6382;
    --accent-color: #f6b93b;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== شريط التنقل ===== */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-right: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(10, 61, 98, 0.1);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ===== قسم الهيرو ===== */
.hero {
    background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.95)), 
                url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #e4a72b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== قسم عن الشركة المُحسن ===== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-large {
    grid-column: span 2;
}

.team-card {
    grid-column: span 2;
}

.card-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.5s ease;
}

.about-card:hover .placeholder-img {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.placeholder-img i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.placeholder-img span {
    font-size: 1rem;
    opacity: 0.8;
    text-align: center;
    padding: 0 20px;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-list {
    list-style: none;
    margin-top: 15px;
}

.card-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.card-list i {
    color: var(--accent-color);
    margin-left: 10px;
    font-size: 0.9rem;
}

.values-list {
    list-style: none;
}

.values-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.values-list strong {
    color: var(--primary-color);
    margin-left: 5px;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.category {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.category:hover i {
    color: white;
}

.category i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.category span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* بطاقة الإحصائيات */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    padding: 40px;
    color: white;
    grid-column: span 2;
}

.stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.stats-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* فريق العمل */
.team-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    border-right: 3px solid var(--accent-color);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 15px;
    margin-top: 5px;
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== قسم أنشطة الشركة ===== */
.activities {
    padding: 80px 0;
    background-color: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-icon {
    background-color: rgba(10, 61, 98, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.activity-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== قسم الاتصال ===== */
.contact {
    padding: 80px 0;
    background-color: #f0f4f8;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 30px;
}

.contact-info h3, .contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    background-color: rgba(10, 61, 98, 0.1);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 61, 98, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ===== الفوتر ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-logo h3 {
    margin-bottom: 10px;
    color: white;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== أنماط الاستجابة ===== */
@media (max-width: 1200px) {
    .card-large,
    .team-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        margin-right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .stats-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .team-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .activity-card {
        padding: 20px;
    }
    
    .about-card {
        margin-bottom: 20px;
    }
    
    .card-image {
        height: 200px;
    }
    
    .placeholder-img i {
        font-size: 3rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .about-card h3 {
        font-size: 1.2rem;
    }
}

/* ===== خلفيات افتراضية للصور ===== */
/* Use these only if you don't have local images */
.hero {
    /* Fallback if /img/hero-bg.jpg doesn't exist */
    background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.95)), 
                url('/img/hero-bg.jpg'),
                linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.95)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* Optional: Use these if you want online images as fallback */
@media (max-width: 768px) {
    .hero {
        /* Mobile-specific background */
        background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.95)), 
                    url('/img/hero-bg-mobile.jpg'),
                    linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.95)), 
                    url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
        background-size: cover;
        background-position: center;
    }
}