* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #141B24;
  color: #D3D3D3;
}

html {
  scroll-behavior: smooth;
}

.header {
  background-color: #1d1d2b;
  padding: 20px;
  color: white;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.header h1 {
  font-size: 24px;
}

.header nav a {
  color: #bbb;
  margin-right: 20px;
  text-decoration: none;
  font-size: 16px;
}

.header nav a:hover {
  color: white;
}

.header .sign-in, .header .log-in {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
}

.join-us .sign-in {
    background-color: #6f42c1;
    color: #fff;
    border: 1px solid #6f42c1;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
  }

.header .sign-in:hover, .header .log-in:hover, .join-us .sign-in:hover {
  background-color: #4c219b;
  color: #fff;
  border-color: #4c219b;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  background-image: url('../images/generalbg.jpg'); /* Path to generalbg.jpg */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end; /* Align content to the bottom */
  justify-content: center;
  height: 70vh;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Overlay to darken background */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px; /* Adds space between elements */
}

.hero-images {
  display: flex;
  align-items: center; /* Vertically aligns the images in the center */
  gap: 20px; /* Adds horizontal space between the two images */
}

#oil {
  width: 210px; /* Adjust the size of the oil image */
  height: 210px;
  background-color: white; /* White background for the square */
  padding: 10px; /* Space around the image to create the square effect */
  border-radius: 10px; /* Optional: rounds the corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow */
}

#b22 {
  width: 190px; /* Adjust the size of the B22 image to match the oil image */
  height: auto;
}

.hero h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.hero .OG {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: beige;
}

.hero p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
}

/* Why Choose Section */
.why-choose {
  text-align: center;
  padding: 50px 20px;
  background-color: #1d1d2b;
  color: white;
}

.why-choose h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 40px auto;
}

.feature-box {
  background-color: #fff;
  color: black;
  padding: 20px;
  border-radius: 10px;
  width: 30%;
  min-width: 280px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-box img {
  width: 300px; 
  height: 300px; 
  object-fit: cover;
  padding: 10px;
}

.feature-box h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.view-more {
  background-color: #6f42c1;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.view-more:hover {
  background-color: #5a33a0;
}

/* Join Us Section */
.join-us {
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9;
  color: #333;
}

.join-us h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.signup-form input {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  min-width: 200px;
}

.signup-form button {
  background-color: #6f42c1;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.signup-form button:hover {
  background-color: #5a33a0;
}

/* Key Features Section */
.key-features {
  text-align: center;
  padding: 50px 20px;
  background-color: #1d1d2b;
  color: #fff;
}

.key-features h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.feature-card {
  background-color: white;
  color: black;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 30%;
  min-width: 280px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 1rem;
}

.feature-grid img {
  width: 300px; 
  height: 300px; 
  object-fit: cover;
  padding: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .features, .feature-grid {
    flex-direction: column;
    align-items: center;
  }

  .feature-box, .feature-card {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header nav a, .header .sign-in, .header .log-in {
    font-size: 14px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .why-choose h2 {
    font-size: 2rem;
  }

  .join-us h2, .key-features h2 {
    font-size: 1.8rem;
  }

  .signup-form input, .signup-form button {
    width: 100%;
  }
}

/*footer*/ 
.footer {
  background-color: white;
  color: black;
  padding: 20px 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-align: left;
}

.footer-logo img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.footer-logo p {
  font-size: 14px;
  color: black;
  margin-left: 20px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links div {
  text-align: left;
}

.footer-links h3 {
  font-size: 16px;
  font-weight: bold;
  color: black;
  margin-bottom: 10px;
}

.footer-links a {
  color: black;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

.footer-links a:hover {
  color: grey;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}
