
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

header {
  position: sticky;
  top: 0;  /* Ensures the header sticks to the top of the viewport */
  width: 100%;
  background-color: #4f342c;  /* Example background color */
  padding: 0.625rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;  /* High z-index to ensure the header stays on top of other content */
}


.navigation {
  position: absolute;
  top: 100%; /* This ensures it starts right after the header */
  left: 0;
  width: 100%; /* Ensures the navigation spans the full width */
  background-color: #4f342c; /* Should match the header background */
  display: none; /* Hidden by default */
  flex-direction: column;
  z-index: 10; /* Ensures it's on top and does not go behind other content */
}

.menu-toggle[aria-expanded="true"] + .navigation {
  display: flex; /* This will show the navigation when the toggle is clicked */
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  width: 100%;  /* Ensures the image scales with its container */
  max-width: 150px;  /* Set a max-width for larger screens */
  transition: max-width 0.3s ease;  /* Smooth transition for size changes */
}

@media (max-width: 768px) {
  .logo {
    display: none;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.navbar-group {
  display: flex;
  align-items: center;
}

.navbar-links ul {
  display: flex;
  list-style-type: none;
  gap: 20px;
  padding: 0;
  margin: 0 auto; /* Center links */
}

/* Style for navigation links */
.navbar-links a {
  color: #fff; /* White text color */
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
  border-radius: 5px;
}

/* Hover state for navigation links */
.navbar-links a:hover {
  background-color: #deae60; /* Gold background on hover */
  color: #333; /* Darker text color for contrast */
}


.navbar-links a, .navbar-group a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.navbar-group.right-group {
  gap: 10px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #4f342c;
    display: none;
    flex-direction: column;
    padding: 1rem 0;
  }

  .navbar-links ul {
    flex-direction: column;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-group.right-group {
    position: absolute;
    right: 2rem;
    top: 0.625rem;
  }
}

/* Style for the Sign In button */
.nav-link-login {
  color: #fff; /* White text color */
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effect */
  background-color: transparent; /* Optional: Set a background color if needed */
  border-radius: 5px;
}

/* Hover state for the Sign In button */
.nav-link-login:hover {
  color: #deae60; /* Change text color to darker for contrast */
}

  .btn {
    padding: 0.625rem 1rem;
    font-size: 1rem;
    color: #000;
    background-color: #deae60;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .btn:hover, .btn:focus {
    background-color: #d59836;
    color: #000;
  }

  .hero {
    background-image: url('img/feet-ground.png'); 
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-content {
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 5rem);
  }

  .hero-logo img {
    max-width: 80%;
    margin-bottom: 2rem;
  }

  .how-it-works {
    background-color: #FFFFFF;
    color: #333333;
    padding: 8rem 1rem;
    text-align: left;
  }

  .how-it-works .container {
    max-width: 76.25rem;
    margin: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .how-it-works h2 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: bold;
  }

  .how-it-works p {
    color: #666666;
    margin-bottom: 2rem;
    line-height: 1.5;
  }

  .start-trading-btn {
    margin-bottom: 3rem;
  }

  .container-steps {
    width: 100%;
    min-width: 29rem;
  }

  .container-steps .step {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 4rem;
  }

  .container-steps .step:last-child {
    margin-bottom: 0;
  }

  .container-steps .step-number {
    background-color: #FEF3C7;
    color: #000000;
    border-radius: 50%;
    width: 3.125rem;
    height: 3.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
  }

  .container-steps .step-details {
    flex-grow: 1;
  }

  .container-steps .step-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
  }

  .container-steps .step-details p {
    margin: 0;
  }

  @media (min-width: 64rem) {
    .how-it-works .container {
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      gap: 2rem;
    }
  }

  /* Key Features */

  .key-features {
    text-align: center;
    padding: 2rem 1rem;
  }

  .key-features .container {
    max-width: 1200px;
    margin: auto;
  }

  .key-features h2 {
    font-size: 2rem; 
    margin-bottom: 1rem;
  }

  .key-features .features-description {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8rem;
  }

  .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .feature-card {
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    width: 100%;
    margin-bottom: 2rem;
  }

  .feature-card img {
    width: 12rem;
    height: auto;
    margin-bottom: 2.5rem;
  }

  .feature-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2.5rem;
  }

  .feature-card p {
    color: #666;
    line-height: 1.5rem;
    margin-bottom: 1rem;
  }

  p.title {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.2rem;
  }

  @media (min-width: 768px) {
    /* Desktop view */
    .features-grid {
      justify-content: space-between;
    }

    .feature-card {
      width: calc(33.3333% - 1rem);
    }
  }
  /* Active Trades Section */
  .active-trades {
    padding: 2rem 1rem;
    text-align: center;
    background-color: #fff;
  }

  .active-trades h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .trade-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .trade-card {
    background: #FFF;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: left;
    flex-basis: 100%;
  }

  .trade-card-img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px 8px 0 0;
  }

  .location,
  .volume,
  .quality {
    font-size: 1rem;
    font-weight: 900;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    opacity: 80%;
  }


  .contractors-interested {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
  }


  .btn {
    padding: 0.625rem 1.25rem;
  }

  .trade-map {
    margin-top: 2rem;
    text-align: center;
  }
  
  .trade-map img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  

  @media (min-width: 768px) {
    /* 3 cards in a row for desktop */
    .trade-card {
        flex-basis: calc(33.333% - 1rem);
    }
  }

  /* -- Testimonial -- */
  .testimonials {
    background-color: #f4f4f4; 
    padding: 2rem 1rem;
    text-align: center;
  }

  .testimonials-container {
    max-width: 60rem;
    margin: auto;
  }

  .testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
    position: relative;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .author-image img {
    border-radius: 50%;
    width: 3rem; 
    height: auto;
    margin-right: 1rem;
  }

  .author-info {
    text-align: left;
  }

  .author-name {
    font-weight: bold;
    display: block; /* Ensure the name appears on a new line */
  }

  .author-title {
    font-size: 0.875rem;
    color: #666;
  }

  @media (min-width: 768px) {
    .testimonials-container {
      padding: 2rem;
      text-align: left; /* Align text to the left on larger screens */
    }

    .testimonial-quote {
      margin-bottom: 2rem;
    }

    .testimonial-author {
      justify-content: flex-start; /* Align author info to the start on larger screens */
    }
  }

  /* -- Footer --*/
  .site-footer {
    background-color: #4f342c; /* Your footer background color */
    color: #fff;
    padding: 2rem; /* Consistent padding on all sides */
    font-family: "Roboto", sans-serif;
  }

  .footer-container {
    max-width: 120rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center vertically */
    text-align: center;
    gap: 1rem; /* Spacing between elements */
  }

  .footer-logo img {
    margin-bottom: 1rem; /* Adjust space below the logo if necessary */
  }

  .footer-nav,
  .footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Adjust space between links */
    align-items: center; /* Center these items horizontally in the column */
  }

  .footer-nav a,
  .footer-info a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem; /* Padding for clickable area */
  }

  .footer-rights {
    font-size: 0.875rem; /* Adjust font size as needed */
    margin-top: 1rem; /* Space above the copyright text */
    align-self: center; /* Center align to the footer container */
  }

  /* Media query for desktop view */
  @media (min-width: 1024px) {
    .footer-container {
      flex-direction: row;
      justify-content: space-between;
      align-items: center; /* Align items vertically in the center */
      text-align: left;
    }

    .footer-logo,
    .footer-nav,
    .footer-info {
      flex: 1; /* Allows each section to take equal width */
      margin: 0 1rem; /* Adds margin to the sides of each section */
    }

    .footer-nav,
    .footer-info {
      flex-direction: row;
      justify-content: center; /* Centers items horizontally */
      gap: 2rem; /* Adjust space between links */
    }

    .footer-rights {
      text-align: right;
      margin-top: 0; /* Reset top margin */
      align-self: center; /* Center align to the footer container */
    }
  }

  html {
    scroll-behavior: smooth;
  }
  