body {
  margin: 0;
  font-family: "Poppins", "Cairo", sans-serif;
  font-weight: 800;
  background: #f4f6f5;
  text-align: center;
}

.main-header {
  position: relative;
  height: 75vh;
  overflow: hidden;
}
.logo img {
    height: 45px;
}
.slider {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.slides {
    display: flex;
    width: 300%; 
    animation: slide 9s infinite;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

@keyframes slide {
    0%   { transform: translateX(0%); }
    33%  { transform: translateX(-100%); }
    66%  { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}

.header-slides {
  position: absolute;
  inset: 0;
    width: 100%;
  height: 100%;
}
.header-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.5s ease, transform 6s ease;
  display: flex;
}

.header-slide.active {
  opacity: 1;
  transform: scale(1);
}
.main-header .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.header-slide img {
  max-width: 100%;
  max-height: 100%;

}
.header-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
.header-content h1 {
  font-size: 52px;
  margin-bottom: 10px;
}
.header-content p {
  font-size: 20px;
  opacity: 0.9;
}

.about-us {
  background: #fff;
  padding: 50px 20px;
  
}
.about-container {
  display: flex;
  align-items: center;
  gap: 30px;    
  max-width: 1100px;
  margin: auto;
  flex-wrap: wrap;
}
.about-logo img {
  width: 180px;
  height: auto;
  border-radius: 10px;
  opacity: 1;
  transform: scale(1.1);
  transition: 1.5s;
}
.about-text {
  opacity: 0;
  transform: scale(1.1);
  transition: 1.5s;
}
.about-us.show .about-logo,
.about-us.show .about-text {
  opacity: 1;
  transform: scale(1);
}
.about-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-images img {
    width: 300px;
    height: auto;
    border-radius: 10px;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 30px;
}

.page-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  margin: 40px 0 20px;
  color: #2e7d32;
}

.page-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #2e7d32;
  margin: 12px auto 0;
  border-radius: 5px;
}

.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  padding: 15px 20px 5px;
  font-size: 20px;
  font-weight: bold;
}

.card p {
  padding: 0 20px;
  color: #555;
  flex-grow: 1;
}

.btn {
  margin: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}


.details {
  display: flex;
  gap: 40px;
  padding: 50px;
  flex-wrap: wrap;
  background: white;
  max-width: 1100px;
  margin: auto;
}
.prod-img-container img {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.prod-info {
  max-width: 600px;
}
.prod-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
}
.prod-info p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer {
    background: #1b1b1b;
    color: #ccc;
    padding: 60px 20px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    gap: 30px;
}

.footer-box {
    flex: 1 1 250px;
}

.footer-box h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-box p {
    font-size: 14px;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-box p i {
    color: #4caf50;
}

.footer-bottom {
    margin-top: 30px;
    padding: 15px;
    text-align: center;
    background: #111;
    font-size: 13px;
    color: #999;
}

.footer-box a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #4caf50;
}

.lang-switch {
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 1200;
  display: flex;
  gap:6px;
}
.lang-switch button {
  background: #2e7d32;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 6px 12px;
  margin: 2px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.menu-toggle {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 32px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    margin: 6px 0;
    transition: 0.4s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding-top: 90px;
    transition: 0.4s;
    z-index: 1000;
}

body[dir="ltr"] .nav-menu.active {
    right: 0;
}

body[dir="rtl"] .nav-menu {
    left: -100%;
    right: auto;
}

body[dir="rtl"] .nav-menu.active {
    left: 0;
}
.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 16px 30px;
    font-size: 18px;
}

.nav-menu a:hover {
    background: #cfa349;
}

.about-page {
    padding: 80px 20px;
    background: #f9f9f9;
    font-family: 'Poppins', 'Cairo', sans-serif;
}

.about-page .container {
    max-width: 1100px;
    margin: auto;
}

.about-page h1 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: #1e3d2f;
}

.about-page p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.about-box {
    background: white;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform .4s ease, box-shadow .4s ease;
}

.about-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.about-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2f6b4f;
}

.about-box p {
    font-size: 16px;
    color: #666;
    text-align: start;
}

.small-header {
    height: 60vh;
}

.small-header .header-slides {
    display: none;
}

@media (max-width: 768px) {
  .main-header {
    height: 55vh;
  }
  .header-content h1 {
    font-size: 30px;
  }
  .header-content p {
    font-size: 16px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-logo img {
    margin-bottom: 20px;
  }
  .details {
    flex-direction: column;
    padding: 20px;
  }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.about-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 34px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.4s ease;
}

.about-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #388e3c);
    transform: translateY(-3px);
}
.contact-page {
    padding: 60px 20px;
    background: #f9f9f9;
    font-family: 'Poppins', 'Cairo', sans-serif;
}

.contact-page .container {
    max-width: 700px;
    margin: auto;
}

.contact-page h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: #2f6b4f;
}

.contact-page p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    color: #555;
}

.contact-page form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.contact-page form label {
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-page form input,
.contact-page form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: none;
}

.contact-page form input:focus,
.contact-page form textarea:focus {
    outline: none;
    border-color: #2e7d32;
}

.contact-page form button {
    width: 100%;
    margin-top: 10px;
}

.contact-header {
    background: #2e7d32;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.contact-header .logo img {
    height: 50px;
    margin-bottom: 15px;
}

.contact-header .nav-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}
.contact-header .nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.contact-header .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-header .header-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.contact-header .header-content p {
    font-size: 18px;
    opacity: 0.9;
}

#loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#loader.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #2e7d32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Skeleton ===== */
.skeleton-card {
    height: 360px;
    border-radius: 15px;
    background: linear-gradient(
        90deg,
        #eee 25%,
        #f5f5f5 37%,
        #eee 63%
    );
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* المسافة بين الايقونة والكلام */
    padding: 12px 20px;
    background-color: #25D366; /* لون واتساب */
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* لون أغمق عند hover */
    transform: translateY(-2px);
}

/* لو عايز الايقونة تكون داخل span */
.whatsapp-btn span {
    display: inline-block;
    font-size: 20px; /* حجم الايقونة */
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* المسافة بين الايقونة والكلام */
    padding: 12px 20px;
    background-color: #25D366; /* لون واتساب */
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E; /* لون أغمق عند hover */
    transform: translateY(-2px);
}

/* لو عايز الايقونة تكون داخل span */
.whatsapp-btn span {
    display: inline-block;
    font-size: 20px; /* حجم الايقونة */
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 24px;
    transition: 0.3s;
    text-decoration: none;
}

.social-buttons a:hover {
    background: #66bb6a;
    transform: scale(1.1);
}
