header {
  position: fixed;
  top: 0;
  width: 100%;

  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  background-color: #101820;
  color: white;
}

header img {
  max-width: 100px;
}

nav {
  display: flex;
  padding-right: 6.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;

  margin-top: 2rem;
  font-size: 100%;
}
nav a:hover {
  color: #ffba10;
}

#logo {
  width: 3%;
  margin-left: 4.2%;
  margin-top: 0.5rem;
  cursor: pointer;
}

#contact-me {
  width: 140px;
  margin-top: -0.1px;
  padding-top: 1rem;
  cursor: pointer;
}

a {
  color: white;
  text-decoration: none;
}

/* Style the hero image container */
.hero-image {
  position: relative;
  width: 90%;
  height: 100%;
  margin: auto;

  overflow: hidden;
  cursor: pointer;
}

.hero-image1 {
  position: relative;
  width: 90%;
  height: 100%;
  margin: auto;

  overflow: hidden;
  cursor: pointer;
}

#heroPic {
  margin-top: 10rem;
}

/* Style the image inside */
.hero-image img {
  display: block;
  width: 100%;
  height: 700px;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.5s ease-in-out; /* Add transition for smooth scaling */
}

/* Apply scale transformation on hover */
.hero-image:hover img {
  transform: scale(1);
}

/* Add overlay and "View Project" box styles */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700px;
  background-color: #ebe3e36b;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image:hover .overlay {
  opacity: 1;
}
.hero-image1:hover .overlay {
  opacity: 1;
}

#mainMan {
  margin-top: 1rem;
  width: 100%;
}

.view-project {
  cursor: pointer;
  color: #ffffff;
  padding: 10px 20px;
  border: 2px solid #ffffff;
  background-color: #ffba10;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.view-project-inline {
  cursor: pointer;
  color: #ffffff;
  padding: 10px 20px;
  border: 2px solid #ffffff;
  width: fit-content;
  transition: 0.2s ease-in;
}
.view-project-inline:hover {
  background-color: #ffba10;
}

.hero-image:hover .view-project {
  opacity: 1;
  transform: translateY(0);
}
.hero-image1:hover .view-project {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  color: #ffba10;
  font-weight: bold;
}

#project-details {
  padding-top: 2%;
  line-height: 2rem;
}

.container {
  width: 90%;
  margin: auto auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10%;
}

.col-6 {
  width: 45%;
}

.col {
  display: flex;
  width: 90%;
  margin: 0 auto;
}

.stations {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  gap: 10%;
}

.wireImg {
  max-width: 100%;
}

.tools-used {
  width: 100%;
}

.tools-used img {
  max-width: 30%;
}

.screenFoe {
  width: 100%;
  padding-top: 2rem;
  margin-left: -1.9rem;
}

footer {
  text-align: center;
  padding: 2rem 0;
  font-weight: lighter;
}
footer h3 {
  font-weight: lighter;
}

#back {
  position: relative;
  text-decoration: none;
}

#back::before {
  content: '\2190';
  position: absolute;

  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#back:hover::before {
  opacity: 1;
  transform: translateX(-20px);
}

#back:hover {
  transition: 0.5s ease;
  color: #ffba10;
}

/* Media query for Phone screens */
@media screen and (max-width: 768px) {
  body {
    text-align: justify;
    text-align-last: center;
  }

  #logo {
    width: 8%;
  }
  .row {
    flex-direction: column; /* Stack columns vertically */
    gap: 5%; /* Adjust gap as needed */
  }
  nav {
    margin-right: 0rem;
    padding-right: 3rem;
  }

  .col-6 {
    width: 100%; /* Full width for each column on smaller screens */
    margin-bottom: 20px; /* Add margin between stacked columns */
  }

  .hero-image {
    height: 500px;
  }

  .hero-image img {
    transform: scale(1);
    width: 100%;
  }

  .overlay {
    height: 500px;
  }
  .tools-used img {
    max-width: 80%;
  }

  .deliverable {
    text-align: center;
  }

  .wireImg {
    min-width: 80%;
  }

  .view-project-inline {
    cursor: pointer;
    color: #ffffff;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    width: fit-content;
    transition: 0.2s ease-in;
    display: inline-block;
  }
}

/* Styles for tablets (landscape and portrait) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #logo {
    width: 6%;
  }
}
