* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a5f5f;
  --primary-light: #2a8f8f;
  --primary-lighter: #3aafaf;
  --accent-color: #00a86b;
  --dark-bg: #0f3a3a;
  --light-bg: #f5f5f5;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --white: #ffffff;
  --border-color: #e0e0e0;
}

@font-face {
    font-family: 'RB-Regular';
    src: url('/Fonts/RB-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'RB-Regular', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Container to center logo */
.logo {
  display: flex;
  justify-content: center; 
  align-items: center;     
  gap: 5px;              
}
.logo h1 {
  color: var(--dark-bg);
  font-size: 1.8rem;
  font-weight: 700;
  display: inline;
}

.logo img {
  height: 45px;
  width: auto;
  padding-top: 5px;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 600px;
  background: linear-gradient( rgba(13, 52, 52, 0.7)),
    url(../images/تكنولوجيا_معالجة_المياه-1.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 12px 40px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 168, 107, 0.3);
}

.cta-button:hover {
  background-color: #008c52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}


.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* Products Section */
.products {
  padding: 80px 0;
  background-color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image1 {
  height: 330px;
  width: 370px;
  background-image: url(../images/lamella.jpg);
  background-size:cover;
  background-position: center;
}

.product-image2 {
  height: 330px;
  width: 280px;
  background-image: url(../images/filter\ nozzles.png);
  background-size:cover;
  background-position: center;
}

.product-image3 {
  height: 330px;
  width: 370px;
  background-image: url(../images/تكنولوجيا_معالجة_المياه-1.jpg);
  background-size:cover;
  background-position: center;
}

.product-card h3 {
  color: var(--primary-color);
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.2rem;
}

.product-card p {
  color: var(--text-light);
  padding: 0 1.5rem 1rem;
  font-size: 0.95rem;
}

.product-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  margin: 0 1.5rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.product-btn:hover {
  background-color: var(--primary-light);
  transform: scale(1.05);
}

/* Vision and Mission Section */
.vision-mission {
  padding: 80px 0;
  background-color: var(--white);
}

/* Clients Section */
.clients {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.client-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.client-card:hover {
  transform: translateY(-5px);
}

.client-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 10px;
  padding: 1rem;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-name {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-capacity {
  color: var(--text-light);
  font-size: 1rem;
}

.vision-mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.vision, .mission {
  background-color: var(--light-bg);
  padding: 2rem;
  margin-bottom: -30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.vision:hover, .mission:hover {
  transform: translateY(-5px);
}

.vision h2, .mission h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.vision p, .mission p {
  color: var(--text-light);
  line-height: 1.8;
  text-align: justify;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .vision-mission-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  margin-top: 2rem;
}

.about-list li {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 1.05rem;
}


.image-placeholder img {
  width: 100%;
  height: 400px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.info-item p {
  color: var(--text-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 95, 95, 0.1);
}

.submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--primary-lighter);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-lighter);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
}

.footer-credit {
  margin-top: 0.5rem;
  color: #ccc;
  font-size: 0.95rem;
}
.footer-credit span {
  color: var(--primary-lighter);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    flex-direction: column;
    background-color: var(--white);
    gap: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a {
    display: block;
    padding: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .services,
  .products,
  .about,
  .contact {
    padding: 40px 0;
  }
}
