* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  height: 70px;
  background: linear-gradient(to right, green, white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 0 40px;
  position: relative;
}

/* Logo */
.logo {
  display: flex;          /* inline flex = logo + title جنب بعضهم */
  align-items: center;    /* يحاذيهم وسطياً رأسياً */
  gap: 5px;              /* المسافة بين logo و title */
}

.logo-title {
  color: white;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.logo img {
  height: 65px;
}

/* Menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 90px;

  /* centre */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-menu li a {
  text-decoration: none;
  color: #004d00; /* WHITE */
  font-size: 1rem;
  font-weight: bold;
  transition: 0.3s;
}

/* Hover effect */
.nav-menu li a:hover {
  color: #d4ffd9; /* white/green light */
}

/* Hamburger button */
.hamburger {
  display: none; /* غادي نبينو غير على الموبايل */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #004d00;
  border-radius: 2px;
}


/* Hero section */
.hero {
  width: 100%;               /* full width */
  height: 550px;             /* ارتفاع محدد */
  background-image: url('../Image/home1.jpg'); /* حط مسار الصورة ديالك */
  background-size: cover;    /* الصورة تغطي section بالكامل */
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;   /* text في الوسط أفقياً */
  align-items: center;       /* text في الوسط عمودياً */
}

/* Text فوق الصورة */
.hero-text h1 {
  color: rgb(2, 41, 2);
  font-size: 48px;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.7); /* باش يبان فوق الصورة */
}

/* spacing بين hero و about-section */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  margin: 10px auto 0 auto;
  padding: 20px;
  text-align: left;
  background-color: rgba(213,214,213,0.384);
  border-radius: 20px;
}
/* Text */
.txt-content {
  flex: 1;
  padding-right: 20px;
}
.txt-content h2 {
  text-align: center;
  font-size: 30px;
  color: rgb(2, 41, 2);
  font-family: Georgia;
}
.txt-content p {
  font-size: 20px;
  text-align: justify;
  font-family: Times New Roman;

}

.txt-content ul {
  margin-top: 10px;
  padding-left: 20px;
}

.txt-content ul li {
  font-size: 20px;
  text-align: justify;
  font-family: Times New Roman;
}

/* Image */
.about-imag {
  flex: 1;
}

.about-imag img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  height: 45vh;
  margin-left: 200px;
}

/* Products Section */
.products {
    padding: 10px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 20px auto;
}

.products .section-title {
    font-size: 30px;
    color: rgb(2, 41, 2);
    font-family: Georgia;
    padding-bottom: 20px;
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    justify-items: center;
}

.product-card {
    background-color: #ddd;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    width: 200px;
    height: 38vh;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
}

.product-card h3 {
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
}

/* Hover Animation */
.product-card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #111, #222);
  color: white;
  padding: 25px 60px;
  flex-wrap: wrap;
}

/* Left */
.footer-left {
  flex: 1;
  font-size: 14px;
}

.footer-left p {
  margin-bottom: 8px;
}

.socials span {
  display: inline-block;
  margin-right: 15px;
  font-size: 14px;
}

/* Center */
.footer-center {
  flex: 1;
  text-align: center;
}

.footer-center img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  padding: 5px;
}

/* Right */
.footer-right {
  flex: 1;
  text-align: right;
  font-size: 14px;
}

.footer-right p {
  margin-bottom: 8px;
}

.footer a {
  text-decoration: none;
  color: white;
}



/* 📱 Mobile + Tablet (all devices except PC) */
@media screen and (max-width: 1024px) {

  /* ===== BODY ===== */
  body {
    overflow-x: hidden;
  }

  section {
    width: 100%;
  }

  /* ===== NAVBAR ===== */
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    text-align: center;
  }

  .logo {
    justify-content: center;
  }

  .logo-title {
    display: none; /* نخبيو النص */
  }

  .nav-menu {
    position: static;
    transform: none;
    margin-top: 15px;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .nav-menu li a {
    font-size: 16px;
  }

  /* ===== HERO ===== */
  .hero {
    height: 420px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text h1:nth-child(2) {
    font-size: 18px;
  }

  /* ===== ABOUT ===== */
  .about {
    flex-direction: column;
    width: 90%;
    text-align: center;
  }

  .txt-content {
    padding-right: 0;
  }

  .about-imag img {
    margin-left: 0;
    margin-top: 20px;
    width: 80%;
    height: auto;
  }

  /* ===== PRODUCTS ===== */
  .products-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .product-card {
    width: 260px;
    max-width: 90%;
    margin: 0 auto;
    height: auto !important;
    min-height: unset !important;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
  }
  

  /* ===== FOOTER ===== */
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: unset;
    width: 100%;
    text-align: center;
  }

  .footer-center img {
    margin: 10px auto;
  }

}
















