﻿
:root {
    --primary-color: #ffc107;
    --secondary-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

    body.arabic {
        font-family: 'Cairo', sans-serif;
    }

        body.arabic .english-text {
            display: none;
        }

        body.arabic .arabic-text {
            display: inline-block;
        }

    body:not(.arabic) .arabic-text {
        display: none;
    }

    body.arabic {
        direction: rtl;
        text-align: right;
    }

        body.arabic .navbar-nav {
            padding-right: 0;
        }

        body.arabic .ms-auto {
            margin-right: auto !important;
            margin-left: 0 !important;
        }

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
    transition: var(--transition);
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

.lang-switch {
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    padding: 5px 15px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    background: transparent;
}

    .lang-switch:hover {
        background: var(--primary-color);
        color: white;
    }

.hero {
    min-height: 100vh;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: #012E67;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
        background-repeat: no-repeat;
        background-position: bottom;
        background-size: cover;
        opacity: 0.3;
    }

.hero-content {
    padding: 100px 0;
    color: white;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-solar {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    animation: fadeInUp 1s ease 0.4s both;
}

    .btn-solar:hover {
        background: white;
        color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.floating-sun {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ffd700, #ffa500);
    border-radius: 50%;
    box-shadow: 0 0 50px #ffd700;
    animation: float 6s ease-in-out infinite;
}

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

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--dark-color);
        position: relative;
        padding-bottom: 15px;
    }

        .section-title h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--primary-color);
        }

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    margin-bottom: 30px;
    text-align: center;
    height: 100%;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.service-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    margin-bottom: 30px;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

.product-img {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.product-body {
    padding: 20px;
}

.product-price {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    }

footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: var(--transition);
    display: inline-block;
}

    .social-links a:hover {
        background: var(--primary-color);
        transform: translateY(-3px);
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .floating-sun {
        width: 80px;
        height: 80px;
        top: 10%;
        right: 5%;
    }
}

/* RTL Specific Styles */
body.arabic .service-card,
body.arabic .product-card,
body.arabic .contact-form {
    text-align: right;

}


body.arabic .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

body.arabic .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

.cart-icon {
    position: relative;
    display: inline-block;
}




