/* Basic CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  font-family: Helvetica, sans-serif;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.hero {
  position: relative;
}

.hero__wrapper {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 28px;
  top: 0;
  left: 0;
  width: 33%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .hero__wrapper {
    width: 100%;
  }
}

.about {
  background-color: #242424;
  color: white;
}

.section__subtitle {
  font-size: 24px;
  margin-bottom: 14px;
  background-color: white;
  color: #242424;
  font-weight: bold;
  border-radius: 50px;
  padding: 5px 15px;
  width: fit-content;
}

@media screen and (max-width: 768px) {
  .section__subtitle {
    font-size: 18px;
  }
}

.section__title {
  font-size: 80px;
  line-height: 70px;
  margin-top: 30px;
  margin-bottom: 14px;
}

@media screen and (max-width: 768px) {
  .section__title {
    font-size: 40px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 0px;
  }
}

.container {
  display: flex;
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }
}

.about__wrapper {
  min-width: 33%;
  padding: 28px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .about__wrapper {
    min-width: 100%;
    padding: 28px;
  }
}

.section__text {
  padding: 28px;
}

.service {
  background-color: white;
  color: #242424;
  padding: 28px;
  display: flex;
}

.service__img {
  width: 100%;
  max-width: 33%;
  padding-left: 50px;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
}

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

.service__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 30px;
}

.mood__img {
  max-height: 600px;
  width: 100%;
  object-fit: cover;
}

.mining {
  background-color: white;
  color: #242424;
  padding: 28px;
}

.mining__title {
  text-transform: uppercase;
}

.contact {
  background-color: #242424;
  color: white;
  padding: 28px;
  display: flex;
}

@media screen and (max-width: 768px) {
  .contact {
    flex-direction: column;
  }
}

.contact__wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact__img-wrapper {
  max-width: 50%;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .contact__img-wrapper {
    max-width: 100%;
    margin-top: 30px;
  }
}

.contact__img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

.contact__title {
  font-size: 80px;
  line-height: 70px;
  margin-top: 30px;
  margin-bottom: 60px;
}

@media screen and (max-width: 768px) {
  .contact__title {
    font-size: 40px;
    line-height: 40px;
    margin-top: 0px;
    margin-bottom: 30px;
  }
}

.contact__link {
  color: white;
  font-size: 18px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact__text {
  font-size: 12px;
  margin-bottom: 30px;
}

.contact__text--note {
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: underline;
  margin-bottom: 14px;
}

.contact__socials {
  display: flex;
  gap: 20px;
}

.contact__socials img {
  width: auto;
  height: 64px;
}

/* Default case: all headlines, p, and span tags are non-visible */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
li {
  opacity: 0;
  transform: translateY(-20px);
}

/* Fade-in class to make them visible with animation */
.fadein {
  animation: fadeInAnimation 1.5s ease-in-out forwards;
}

@keyframes fadeInAnimation {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.parallax {
  background: url(../img/cliff.jpg) center bottom / cover no-repeat fixed;
  min-height: 500px;
  position: relative;
}

@media screen and (max-width: 768px) {
  .parallax {
    min-height: 300px;
  }
}

.parallax__border-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: #242424;
}

.parallax__border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  background-color: #242424;
}

.parallax__border-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 100%;
  background-color: #242424;
}

.parallax__border-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 100%;
  background-color: #242424;
}

.parallax__border-center1 {
  position: absolute;
  top: 0;
  left: calc(33% - 14px);
  width: 28px;
  height: 100%;
  background-color: #242424;
}

.parallax__border-center2 {
  position: absolute;
  top: 0;
  left: calc(66% - 14px);
  width: 28px;
  height: 100%;
  background-color: #242424;
}

@media screen and (max-width: 768px) {
  .parallax__border-center1,
  .parallax__border-center2 {
    display: none;
  }
}

.logos {
  display: flex;
  padding: 28px;
  overflow-x: scroll;
  justify-content: space-between;
}

.logos img {
  width: auto;
  height: 50px;
}

.legal {
  color: white;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  margin-top: auto;
}

.popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popover-content {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: min(90%, 400px);
  max-height: 90%;
  overflow: scroll;
}
.popover-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.popover-title {
  margin: 0 0 10px;
  font-size: 18px;
}
.popover-text {
  margin: 0 0 20px;
  font-size: 14px;
}

.entry-content p {
  margin-bottom: 1rem;
}

.service__link {
  background-color: #242424;
  color: white;
  padding: 10px 15px;
}

@media screen and (max-width: 768px) {
  .service__link {
    width: 100%;
    display: block;
    text-align: center;
  }
}
