:root {
    --primary-color: #004aad;
    --secondary-color: #ff914d;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* زر العودة للأعلى */
#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* القائمة العلوية */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    padding-top: 80px;
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-text {
    text-align: right;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--white);
    font-size: 24px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.secondary-button {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    text-align: center;
}

.cta-button:hover,
.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.secondary-button:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 32px;
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.about h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 36px;
    position: relative;
}

.about h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.section-title {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-description {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.about-info-item {
    display: flex;
    gap: 15px;
}

.about-info-item .icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: rgba(0, 74, 173, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
}

.about-info-item .content h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.about-info-item .content p {
    line-height: 1.6;
    font-size: 14px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-text {
    color: var(--dark-gray);
}

.about-cta {
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 24px;
    color: var(--secondary-color);
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: var(--white);
}

.products h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 36px;
}

.products-slider {
    padding: 20px 0 50px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-all-products {
    margin-top: 40px;
    text-align: center;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.projects h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 36px;
}

.projects-slider {
    padding: 20px 0 50px;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    text-align: center;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
}

.project-info h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-info p {
    color: var(--secondary-color);
    font-size: 14px;
}

/* Swiper Custom Styles */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 36px;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info .info-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

/* إضافة ستايل القائمة المحمولة */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.4s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 18px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-wrapper {
        flex-direction: column;
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .experience-badge {
        bottom: -25px;
        right: 10px;
        width: 100px;
        height: 100px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 200px;
    }
    
    .contact-info {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .about h2, 
    .products h2, 
    .projects h2, 
    .contact h2 {
        font-size: 28px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
}

/* تحسينات إضافية للشكل العام */
section {
    position: relative;
    overflow: hidden;
}

/* إضافة تأثيرات الانيميشن */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card,
.product-card,
.project-card {
    animation: fadeIn 0.8s ease forwards;
}

/* تحسين تجربة المستخدم والتفاعل */
.product-card::before,
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before,
.project-card:hover::before {
    opacity: 1;
}


/* Products Page Styles */
.products-page {
    padding: 120px 0 80px;
    background-color: var(--light-gray);
}

.projects-page {
    padding: 120px 0 80px;
    background-color: var(--light-gray);
}

.page-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.page-description {
    text-align: center;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* تصنيفات المنتجات */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1px solid #eee;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
    transition: all 0.3s;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s ease forwards;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    font-size: 18px;
    color: var(--dark-gray);
}

/* قسم المشاريع في الصفحة المخصصة */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    animation: fadeIn 0.8s ease forwards;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 173, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    transform: translateY(20px);
    transition: all 0.3s;
}

.project-item:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-info p {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 5px 10px;
    background-color: rgba(0, 74, 173, 0.1);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 12px;
}

/* قسم الاتصال المختصر */
.contact-condensed {
    padding: 60px 0;
}

.contact-condensed .contact-info {
    max-width: 500px;
    margin: 0 auto;
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-page,
    .projects-page {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .category-btn {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .project-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .product-categories {
        gap: 10px;
    }
    
    .category-btn {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* تأثيرات حركية */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

@media (max-width: 768px) {
    .logo img {
        max-height: 45px;
    }
}
