* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.nav-container {
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.company-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #27ae60;
  white-space: nowrap;
}

.nav-items {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-items a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-items a:hover {
  color: #27ae60;
}

.nav-items li a.active {
  color: #28a745 !important;
  font-weight: bold !important;
  background-color: #1a291b;
  border-radius: 4px;
  transform: translateX(5px);
  transition: all 0.3s ease;
  padding: 5px;
}

.nav-items a i {
  font-size: 0.9rem;
}

.lang-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s;
}

.lang-btn:hover {
  background: #219a52;
}

/* Nav Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../images/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.hero-content h1,
h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.company-tagline {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #27ae60;
  font-weight: 300;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 15px 10px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: auto;
  width: 35%;
}

.cta-btn:hover {
  background: #219a52;
  transform: translateY(-2px);
}

/* Section Descriptions */
.section-description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* About Section */
.about {
  padding: 100px 0;
  background: #f8f9fa;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

h2 i {
  color: #27ae60;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #666;
  line-height: 1.7;
}

.features {
  list-style: none;
  margin: 25px 0;
}

.features li {
  margin: 12px 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features li i {
  color: #27ae60;
  font-size: 1.1rem;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
  padding: 80px 0;
  background: white;
}

.my-carousel {
  display: flex;
  gap: 15px;
  overflow: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
}

.my-carousel img {
  width: 280px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.my-carousel img:hover {
  transform: scale(1.05);
}

/* Products Section */
.products {
  padding: 100px 0;
  text-align: center;
  background: #f8f9fa;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.product-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin: 15px 0;
}

.product-card h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin: 15px 0 10px 0;
}

.product-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.view-all-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.view-all-btn:hover {
  background: #219a52;
}

/* Partners section*/
.flags-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
}

.region-section {
  margin-bottom: 60px;
}

.region-section:last-child {
  margin-bottom: 0;
}

.region-title {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.region-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #27ae60;
  border-radius: 2px;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3px;
  max-width: 1100px;
  margin: 0 auto;
}

.flag-item {
  position: relative;
  /* border-radius: 15px; */
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  cursor: pointer;
}

.flag-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #27ae60, #3498db);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.flag-item:hover::before {
  opacity: 0.1;
}

.flag-item:hover {
  /* transform: translateY(-8px) scale(1.03); */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.flag {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: all 0.4s ease;
}

.flag-item:hover .flag {
  filter: brightness(0.8) saturate(1.2);
  transform: scale(1.1);
}

.country-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: black;
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
  letter-spacing: 1px;
}

.flag-item:hover .country-name {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .flags-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .region-title {
    font-size: 1.5rem;
  }

  .flag {
    height: 120px;
  }
}

@media (max-width: 566px) {
  .flags-grid {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 15px;
  }

  .region-title {
    font-size: 1.3rem;
  }

  .flag {
    height: 100px;
  }

  .country-name {
    font-size: 1.1rem;
  }

  .flag-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Certificates Section */
.Certificates {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-header h2 i {
  color: #27ae60;
}

.section-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  /* margin: 0 auto; */
  line-height: 1.6;
}

/* Swiper Styles */
.swiper {
  width: 100%;
  max-width: 800px;
  padding: 40px 20px 60px;
  margin: 0 auto;
}

.swiper-slide {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
}

/* Pagination */
.swiper-pagination {
  bottom: -30px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #bdc3c7;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #27ae60;
  opacity: 1;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .Certificates {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .swiper {
    max-width: 700px;
    padding: 30px 15px 50px;
  }

  .swiper-slide img {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .Certificates {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1rem;
    padding: 0 20px;
  }

  .swiper {
    max-width: 90%;
    padding: 20px 10px 40px;
  }

  .swiper-slide {
    padding: 15px;
  }

  .swiper-slide img {
    max-height: 300px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .Certificates {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }

  .section-description {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .swiper {
    max-width: 95%;
    padding: 15px 5px 35px;
  }

  .swiper-slide {
    padding: 10px;
  }

  .swiper-slide img {
    max-height: 250px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }

  .swiper-button-prev {
    left: 5px;
  }

  .swiper-button-next {
    right: 5px;
  }
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: #f8f9fa;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #27ae60;
}

.contact-form button {
  background: #27ae60;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-form button:hover {
  background: #219a52;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item h4 i {
  color: #27ae60;
}

.info-item p {
  color: #666;
  margin-left: 28px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  color: #27ae60;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #219a52;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 70px 0 25px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #27ae60, #2ecc71, #27ae60);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-column h4 {
  /* margin-bottom: 25px; */
  font-size: 1.4rem;
  color: #27ae60;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}

/* .footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #27ae60;
  border-radius: 2px;
} */

.footer-column h3.footer-company-name {
  color: #27ae60;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  transition: transform 0.3s ease;
}

.footer-column ul li:hover {
  transform: translateX(5px);
}

.footer-column ul li a {
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-weight: 500;
}


.footer-column ul li a:hover {
  color: #27ae60;
  transform: translateX(5px);
}

.footer-column ul li a i {
  color: #27ae60;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.footer-column ul li a:hover i {
  transform: rotate(90deg);
}

.footer-column p {
  color: #ecf0f1;
  margin-bottom: 20px;
  /* line-height: 1.7; */
  display: flex;
  align-items: flex-start;
  gap: 15px;
  /* font-weight: 500; */
  /* cursor: pointer; */
  font-size: 13px;
}

.footer-column p i {
  color: #27ae60;
  margin-top: 4px;
  font-size: 1.1rem;
  min-width: 20px;
}

.footer-logo {
  height: 100px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-column .social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.footer-column .social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(39, 174, 96, 0.1);
  color: #ecf0f1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(39, 174, 96, 0.3);
  font-weight: 500;
}

.footer-column .social-links a:hover {
  background: #27ae60;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.social-links a i {
  font-size: 1.1rem;
}

/* Contact links with click functionality */
.contact-link {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  margin: -8px -12px;
}

.contact-link:hover {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
}

.contact-link.email:hover {
  text-decoration: underline;
}

.contact-link.address:hover {
  color: #27ae60;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(52, 73, 94, 0.6);
  color: #bdc3c7;
  font-size: 0.95rem;
  position: relative;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #27ae60;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .footer-column p {
    justify-content: center;
  }

  .footer-column ul li a {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 30px;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .social-links a {
    width: 200px;
    justify-content: center;
  }

  .footer-column h4 {
    font-size: 1.3rem;
  }

  .footer-column h3.footer-company-name {
    font-size: 1.4rem;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .flags-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: flex;
  }

  .nav-items {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    gap: 15px;
        max-height: calc(100vh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;

  }

  .nav-items.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav-container {
    padding: 0 20px;
  }

  .company-name {
    font-size: 1.1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .company-tagline {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
    padding: 0 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .flags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .flag {
    height: 120px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .testimonialsSwiper {
    height: 350px;
  }

  .testimonial-card {
    height: 300px;
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .company-tagline {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .flags-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .flag {
    height: 100px;
  }

  .country-name {
    font-size: 1.1rem;
  }

  .my-carousel img {
    width: 250px;
    height: 180px;
  }

  .product-card {
    padding: 25px 15px;
  }
}

/* success-message */
.success-message,
.error-message {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;
  font-weight: 500;
  animation: fadeInOut 3s ease forwards;
}

.success-message {
  background: #4caf50; /* أخضر */
}

.error-message {
  background: #e74c3c; /* أحمر */
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}
