
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}   
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    /* background-color: #000000; */
    color: white;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* margin: 10px; */

}

/* إخفاء العناصر في البداية */
.fade-in {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
  }
  
  .fade-in.show {
    opacity: 1;
  }
  
/* Transparent Navbar */
.navbar {
    background-color: transparent; /* Transparent background */
    transition: background-color 0.3s ease; /* Smooth transition for background change */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999; /* Keeps the navbar above other content */
}

/* Solid background for the navbar when scrolling */
.navbar-scrolled {
    color: rgb(0, 0, 0) ;
    background-color: rgba(0, 0, 0, 0.527); /* Solid background color when scrolled */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for a slight effect */
}

/* Navbar Link Styling */
.navbar-nav .nav-link {
    color: rgb(255, 255, 255) !important; /* White color for links */
    transition: color 0.3s ease; /* Smooth color transition */
}

.navbar-nav .nav-link:hover {
    color: rgb(200, 200, 200) !important; /* Changes the link color on hover (lighter gray) */
}

/* Navbar Brand Styling */
.navbar-brand {
    color: white !important; /* White color for the brand text */
    transition: color 0.3s ease; /* Smooth color transition */
}

.navbar-brand:hover {
    color: rgb(200, 200, 200) !important; /* Lighter color on hover */
}



.Contact {
    margin: 0 auto;
    text-align: right;
    padding: 4px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav .anav {
    background-color: white;
    display: block;
    color: black;
    padding: 5px;
    font-size: 0.9em;
    white-space: nowrap;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

li:hover {
    text-decoration: underline;
}

/* Responsive Nav Toggle Button */
.nav-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    color: wheat;
}

/* Banner Section */
.banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(0, 8, 1, 0.566), rgba(26, 86, 30, 0.418)),
    url(Images/B.jpg) no-repeat;;
    background-size: cover;
    background-position: center;
    height: 100vH;
    z-index: 1; /* Text and other content will be in front */
}


.banner {
    /* z-index:// 3; Ensure the text content is in the highest layer */
    color: rgb(255, 255, 255); /* Example text color */
}



.banner h2 {
    font-size:  2.5em;
    font-weight: bold;

}

.banner p {
    font-size: 1.2em;
}

.banner .cta {
    background-color: #308b30;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
}

.banner .cta:hover {
    background-color: #625c5c;
}

/* Section Styling */
.section-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.about-section, .product-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.about-item, .product-item {
    width: 22%;
    text-align: center;
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

/* Product Image Styling */
.product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

.about-item img, .product-item img {
    width: 60px;
    margin-bottom: 20px;
}

.about-item h3, .product-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.about-item p, .product-item p {
    font-size: 1em;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-item, .product-item {
        width: 45%;
    }

    .nav-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        display: none;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul.show-menu {
        display: flex;
    }
}

@media (max-width: 480px) {
    .about-item, .product-item {
        width: 100%;
    }
}

#about h2, #contact h2 {
    color: #00ae00;
}




/* Existing CSS styles */

/* Contact Section Styling */
#contact {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* يمكنك أيضاً تخصيص بعض الأنماط الإضافية */
/* تأثير التلاشي عند التمرير */
#contact {
    opacity: 0;
    transition: opacity 2s ease; /* إضافة انتقال سلس */
}

#contact.visible {
    opacity: 1;
}

#contact {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact h2 {
    margin-bottom: 10px;
}

#contact p {
    margin: 10px 0;
}

.contact-info p {
    margin: 5px 0;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin: 5px 0;
}

form input,
form textarea {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    padding: 10px;
    background-color: #9b000098;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #5f5f5f;
}
#formMessage p {
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

/* Footer Styling */
footer {
    background-color: #00ae00;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}




section {
    padding: 60px 20px;
    text-align: center;
}

form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

form label {
    display: block;
    margin-bottom: 5px;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    background-color: #308b30;
    color: white;
    /*padding: 20px 0;*/
    text-align: center;
    /*margin-top: 40px;*/
}
.news-ticker {
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: #ffffff;
    position: relative;
    white-space: nowrap;
}

.news-content {
    display: inline-block;
    padding: 10px;
    animation: ticker 15s linear infinite;
}

.news-content img {
    height: 50px; /* أو حسب الحجم الذي تريده */
    margin-right: 20px;
}

@keyframes ticker {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
.footer-img img {
    width: 50%;
    height: 100%;
}

/* Script to toggle the mobile menu */

