/* fonts */
:root {
  --primary-color: #ffe140;
  --primary-dark: #ffd700;
  --primary-light: #ffeb80;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Jost", sans-serif;
}

body {
  background-color: #000000;
}

p {
  font-size: 20px;
}

li,
a,
button {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
}

.contact-btn {
  color: #000000;
  font-weight: 700;
}

header {
  width: 60%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px;
}

.logo {
  margin-right: auto; /*makes the logo go to the left*/
  cursor: pointer;
  width: 150px;
}

.nav-links {
  list-style: none;
}

.nav-links li {
  display: inline-block;
  padding: 0 20px;
}

.nav-links li a {
  transition: all 0.3s ease-in-out 0s;
}

.nav-links li a:hover {
  color: var(--primary-dark);
}

button {
  margin-left: 20px;
  padding: 9px 25px;
  background-color: var(--primary-dark);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease-in-out 0s;
}

button:hover {
  background-color: var(--primary-light);
}

.buffer {
  margin-top: 20px;
  color: #ffffff;
  margin-left: 75%;
}

.buffer a:hover {
  color: var(--primary-color);
}

.image-container {
  margin: 0 auto;
  max-width: 60%;
  text-align: center;
  position: relative;
  display: block;
}

img {
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute; /* Position the overlay absolutely within the container */
  top: 80%; /* Position it in the middle vertically */
  left: 25%; /* Position it in the middle horizontally */
  transform: translate(-50%, -50%); /* Center it exactly */
  background: rgba(255, 225, 64, 0.9); /* Semi-transparent background */
  color: white; /* Text color */
  padding: 10px; /* Padding inside the box */
  border-radius: 6px; /* Optional: rounded corners */
  text-align: center; /* Center text within the box */
  font-size: 30px;
}

.inner-overlay {
  background-color: #000000;
  margin: 10px;
  padding: 20px;
  border-radius: 8px;
}

.container {
  margin: 0 auto;
  background-color: #ffffff;
  width: 60%;
  height: auto;
}

.about-padding {
  padding: 12px;
}

h1 {
  background-color: #ffffff;
  padding-top: 10px;
}

.heading-abt {
  padding-left: 12px;
}

.intro {
  margin: 0 auto;
  max-width: 80%; /* Add space between the intro and promise-container */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
}

.intro a {
  color: #000000;
  text-decoration: underline;
  font-weight: 900;
}

.intro a:hover {
  color: var(--primary-dark);
}

.intro p {
  margin: 0; /* Remove default margin */
  flex-grow: 1; /* Allow p to grow and take available space */
}

.promise-container {
  display: flex;
  justify-content: center;
  flex-direction: column; /* Stack promise items vertically */
  gap: 20px; /* Space between promise items */
  margin-bottom: 20px;
}

.promise-item1,
.promise-item2 {
  display: flex;

  align-items: center; /* Align items vertically within each promise item */
  gap: 20px; /* Space between image and text */
  background-color: #f5f5f5;
  padding: 30px;
}

.promise-image {
  width: 300px; /* Set a specific width for the images */
  height: auto; /* Maintain aspect ratio of the images */
}

.promise-text {
  font-size: 16px; /* Font size for the text */
  color: #000; /* Text color */
}

.second-image-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;

  background-color: var(--primary-color);
  justify-content: center;
  padding: 30px 10px;
}

.sig-container {
  position: relative;
  width: 80%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sig {
  max-width: 100%;
  height: auto;
  display: block;

  filter: grayscale();
  transition: filter 0.4s ease-in-out;
}
.sig-container:hover .sig {
  filter: none;
}

.sig-overlay {
  position: absolute;
  top: 75%;

  width: 100%;
  height: 20%;
  display: flex;
  justify-content: center;
  align-items: center;

  background-color: #000000;

  color: #ffffff;
  border-radius: 6px;

  opacity: 0.3;
  transition: opacity 0.3s;
}

.sig-container:hover .sig-overlay {
  opacity: 0.8; /* Show overlay on hover */
}

.bot-container {
  background-color: white;
  width: 60%;
  margin: 0 auto;
  height: auto;
  margin-bottom: 30px;
}

.bot-img-container {
  margin: 0 auto;
  max-width: 90%;
  height: auto;
  background-color: #fff;
  background-image: url("../images/jmw_image07.jpg");
  background-size: cover;
  background-position: center; /* Optional: Centers the image in the container */
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bot-content {
  width: 90%;
  padding-bottom: 20px;
  color: #000000;
  font-weight: 500;
}

footer {
  margin-top: 20px;
}

.footer-container {
  margin: 0 40px;
  height: 200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  border-top: 2px solid var(--primary-color);
}

.footer-links {
  display: flex; /* Use flexbox for horizontal layout */
  justify-content: center; /* Center the links horizontally */
  align-items: center;
}

.footer-links ul {
  display: flex; /* Make the list items horizontal */
  list-style-type: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

.footer-links li {
  margin: 0 10px; /* Space between each link */
  position: relative; /* Position relative for the separator */
}

.footer-links li:not(:last-child)::after {
  content: "|"; /* Separator between links */
  position: absolute;
  right: -15px; /* Position the separator to the right of the link */
  color: #fff; /* Color of the separator */
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-info a:hover {
  color: var(--primary-color);
}

.footer-rights {
  opacity: 0.6;
}

button:active {
  background-color: #f5f5f5;
  color: #d3d3d3;
}

a:active {
  color: #d3d3d3;
}

#side-bar {
  position: absolute;
  width: 300px;
  height: 100%;
  background-color: #f5f5f5;
  z-index: 1;
  left: -530px;
  transition: 0.4s;
}

#side-bar ul li {
  padding: 30px 30px;
}

#side-bar ul li a {
  font-weight: 600;
  color: #000000;
}

#side-bar ul li a:active {
  color: #d3d3d3;
}

#side-bar .toggle-btn {
  position: fixed;

  right: 20px;
  cursor: pointer;
  z-index: 1001;
  display: none;
}

.toggle-btn span {
  width: 45px;
  height: 4px;
  border: solid 1px #000;
  background-color: var(--primary-color);
  display: block;
  margin-top: 4px;
  border-radius: 5px;
}

#side-bar.active {
  left: 0;
  z-index: 1001;
}

/* about us styling */
.about-us-content {
  font-size: 20px;
  font-weight: 500;
}

.about-us-content div {
  padding: 20px;
}

.contact-link {
  color: #debb00;
  font-weight: 900;
}

.contact-link:hover {
  text-decoration: underline;
}

.name {
  font-weight: 600;
}

/* Contact form */

.contact-container {
  padding: 60px;
  height: auto;
  display: flex;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 25px;
}

.contact-inner {
  width: 75%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-inner h2 {
  font-weight: 600;
  font-size: 40px;
  margin-bottom: 5px;
}

.contact-input {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  border: 2px solid #d3d3d3;
  padding: 10px;
  font-size: 16px;
}

.contact-inner textarea {
  height: 140px;
  padding-top: 15px;
  border-radius: 8px;
}

.contact-input:focus {
  border: 4px solid var(--primary-dark);
}

.contact-inputs::placeholder {
  color: #d3d3d3;
}
.submit-btn {
  color: black;
  font-weight: 500;
}

/* projects css */

.gallery-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
}

.photo-item {
  flex: 1 1 calc(50% - 15px); /* 50% width minus the gap */
  box-sizing: border-box;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale();
  transition: filter 0.3s ease-in-out;
  border-radius: 4px;
}

.photo-item img:hover {
  filter: none;
}

@media (max-width: 1200px) {
  .second-image-group {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .sig-container {
    width: 100%;
    flex-direction: column; /* Make the container full-width on smaller screens */
  }
  .overlay {
    font-size: 24px; /* Adjust font size for tablets */
    padding: 15px; /* Increase padding if needed */
    width: 90%; /* Make the overlay slightly wider on smaller screens */
    left: 50%;
  }

  .buffer {
    margin-left: auto; /* Center element horizontally */
    margin-right: auto; /* Center element horizontally */
    width: fit-content; /* Adjust width based on content */
  }

  #side-bar .toggle-btn {
    display: flex; /* Show toggle button */
    flex-direction: column;
    align-items: center;
    z-index: 1001;
  }

  nav,
  .contact-btn {
    display: none;
  }

  .logo {
    margin: 0 auto;
  }
}

/* tablet screens*/
@media (max-width: 899px) {
  .container {
    width: 100%;
  }

  .overlay {
    display: none;
  }

  .image-container {
    max-width: 100%;
  }

  .promise-item1,
  .promise-item2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 0px;
  }
  .promise-image {
    width: 80%; /* Set a specific width for the images */
    height: auto; /* Maintain aspect ratio of the images */
  }

  .promise-text {
    width: 80%;
  }

  .second-image-group {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .sig-container {
    width: 80%;
    flex-direction: column; /* Make the container full-width on smaller screens */
  }

  .sig-overlay {
    position: static; /* Change position to static to stack below the image */
    width: 100%; /* Make the overlay full-width */
    height: auto; /* Adjust height based on content */
    margin-top: 10px; /* Add margin to separate from the image */
    padding: 15px; /* Adjust padding for better appearance on small screens */
    font-size: 4vw; /* Adjust font size for readability */
    opacity: 0.8;
  }

  .sig-container .sig {
    filter: none;
  }

  .sig-overlay .text-box {
    font-size: 4vw;
  }

  .bot-container {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
  }
  .footer-info {
    margin-top: 15px;
  }
  .footer-info div {
    text-align: center;
  }

  .photo-item img {
    filter: none;
  }

  .footer-container {
    margin: 0;
  }
}

@media (max-width: 430px) {
  .buffer {
    margin-left: 10px;
  }

  .buffer a {
    font-size: 16px;
  }

  #side-bar {
    width: 100%;
  }

  .photo-item {
    flex: 1 1 100%; /* Full width for smaller screens */
  }

  .footer-container {
    margin: 0;
  }

  .footer-links li {
    margin: 4px;
  }

  .footer-links li a {
    font-size: 18px;
  }

  .footer-links li:not(:last-child)::after {
    content: "|"; /* Separator between links */
    position: absolute;
    right: -7px;
  }

  .contact-container {
    padding: 0px;
    padding-bottom: 20;
  }

  .contact-inner {
    width: 90%;
  }
}
