/* ------ Universal Styles ------ */

:root {
  --dark-color: #a68e76;
  --medium-color: #e8c3a5;
  --light-color: #fff2ea;
  --button-color: #d1b394;
  --highlight-color: #f09ca7;
  --main-text-color: #3d3d3d;
  --title-font: "Railway", sans-serif;
  --text-font: "Open Sans", sans-serif;
  --light-font: "Alexandria", sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  position: relative;
  min-height: 100%;
  font-family: var(--text-font);
}

.button {
  border: 2px solid var(--button-color);
  color: var(--button-color);
  background-color: white;
  padding: 0.75rem 1.5rem;
  margin: 0 1rem;
  font-size: 1rem;
}

.button:hover {
  cursor: pointer;
  background-color: var(--button-color);
  color: var(--light-color);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--medium-color);
}

body p {
  font-family: var(--text-font);
  font-weight: 400;
}

body em {
  font-family: var(--light-font);
  font-weight: 300;
}

body h1 {
  font-family: var(--title-font);
  font-size: 3rem;
  padding: 1rem;
  color: var(--main-text-color);
}

body h2 {
  font-family: var(--title-font);
  font-size: 4rem;
  padding: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  text-align: center;
  color: var(--main-text-color);
}

body h3 {
  font-family: var(--title-font);
  font-size: 1.5rem;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  color: var(--main-text-color);
}

body h4 {
  font-family: var(--text-font);
  font-size: 1.3em;
  margin: 1rem 0;
}

body h5 {
  font-family: var(--text-font);
  font-size: 1em;
  text-decoration: underline;
  margin: 0.6rem 0;
}

body li {
  font-family: var(--text-font);
  font-weight: 300;
}

/* Anything under 1024px */
@media only screen and (max-width: 1024px) {
  body h1 {
    font-size: 2rem;
  }

  body h2 {
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
  }

  body h3 {
    font-size: 1.3rem;
    font-weight: 600;
  }

  body h4 {
    font-size: 1.2em;
    font-weight: 800;
  }

  body h5 {
    font-size: 1em;
  }
}

/* ------ NAVBAR ------ */

.navbar .logo {
  height: 3.5rem;
}
.navbar .language {
  width: 30px;
  height: auto;
}
.navbar .nav-link {
  font-size: 1.1rem;
  font-weight: 600;
}
.navbar .nav-link:hover {
  color: #f2d1c4;
}
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-img:focus {
  outline: none;
  box-shadow: none;
}

/* ------ MAIN ------ */

a.anchor {
  display: block;
  position: relative;
  top: -5.1rem;
  visibility: hidden;
}

/* ------ HERO ------ */

.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../img/HeroBanner.jpg");
  background-size: cover;
}

.hero .content {
  width: 100%;
  background-color: var(--light-color);
  opacity: 80%;
}

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

/* Anything under 1024px */
@media only screen and (max-width: 1024px) {
  .hero .content p {
    font-size: 1.5rem;
  }
}

@media only screen and (max-width: 700px) {
  .hero {
    height: 50vh;
  }
}

/* ------ ABOUT US ------ */

.about {
  height: 90vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: var(--medium-color);
  margin-bottom: 3rem;
}

.about .content {
  display: flex;
  align-items: center;
  width: 60%;
  height: 100%;
  background-color: #ffffff;
}

.about .text-container {
  padding-left: 8%;
  width: 80%;
}

.about h2 {
  text-align: left;
  padding-left: 2rem;
}

.about .text-container p {
  color: var(--main-text-color);
  font-size: 1.2rem;
  padding-left: 2rem;
  line-height: 1.5rem;
  margin-bottom: 2rem;
}

.about .text-container .headline {
  font-size: 1.5rem;
  font-weight: 600;
  padding-left: 2rem;
  line-height: 1.6rem;
}

figure {
  position: absolute;
  left: 20%;
  width: 25%;
  height: auto;
  text-align: center;
  background-color: var(--light-color);
  box-shadow: -1px 1px 15px #aba198;
}

.profilpic {
  width: 80%;
  height: auto;
  margin: 5%;
  margin-bottom: 0;
  border-radius: 50%;
  border: 0;
}

.about figcaption {
  margin-bottom: 5%;
}

.about figcaption h3 {
  text-transform: capitalize;
  font-size: 1.7rem;
  margin-bottom: 0;
  padding-bottom: 0.2rem;
}

.about figcaption em {
  font-size: 1.5rem;
}

/* Anything under 700px */
@media screen and (max-width: 700px) {
  .about {
    height: fit-content;
    display: block;
    background-color: white;
    margin-bottom: 12.5rem;
  }

  .about .content {
    width: 100%;
    height: auto;
  }

  .about .text-container {
    padding-left: 0%;
    width: 100%;
  }

  .about .text-container .headline {
    font-size: 1.2rem;
    text-align: justify;
    margin-bottom: 0;
    padding: 1rem;
  }

  .about .text-container p {
    font-size: 1.1rem;
    padding: 1rem;
    padding-bottom: 0;
    text-align: justify;
  }

  .about figure {
    height: 11rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    left: 0;
    margin: auto;
  }

  .profilpic {
    width: 25%;
    margin: auto 0.5rem;
  }

  .about figcaption {
    margin: auto;
  }

  .about figcaption h3 {
    font-size: 1.4rem;
    padding: 0.4rem;
  }

  .about figcaption em {
    font-size: 1.2rem;
  }
}

/* ------ SERVICES ------ */

.services .container {
  transform-style: preserve-3d;
}

.services .container .box {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 20px;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

.services .container .box .flipCard {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: 0.9s ease;
}

.services .container .box .flipCard .imgContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.services .container .box .flipCard .imgContainer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.services .container .box .flipCard .content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-color);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: rotateY(180deg);
}

.services .container .box:hover .flipCard {
  transform: rotateY(180deg);
}

.services .container .box .flipCard .content div {
  transform-style: preserve-3d;
  padding: 20px;
  background: var(--dark-color);
  transform: translateZ(100px);
}

.services .container .box .flipCard .content div h3 {
  letter-spacing: 1px;
}

/*  PORTFOLIO */

/* When hovering the card, hide image and display text and button */

.portfolio .card-img {
  opacity: 1;
  transition: all 750ms;
}
.portfolio .card:hover .card-img {
  opacity: 0;
}
.portfolio .card-title {
  opacity: 0;
  transform: translateY(-150%);
  transition: all 750ms;
}
.portfolio .cardButton {
  opacity: 0;
  transform: translateY(+200%);
  transition: all 750ms;
}
.portfolio .card:hover .card-title,
.portfolio .card:hover .cardButton {
  opacity: 1;
  transform: translateY(0);
}

/* ------ TESTIMONIES ------ */

.testimonies .text-box {
  margin: 2rem auto;
  width: 70%;
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.testimonies p {
  text-align: justify;
}

@media only screen and (max-width: 700px) {
  .testimonies .text-box {
    width: 80%;
    height: 50vh;
  }
}
@media only screen and (max-width: 430px) {
  .testimonies .text-box {
    width: 80%;
    height: 70vh;
  }
}

/* ------ CONTACT ------ */
.contact .row {
  width: 60%;
}

@media only screen and (max-width: 700px) {
  .contact .row {
    width: 90%;
  }
}

/* ------ COPYRIGHT ------ */
.copyright {
    background-color: #b3b1b1; /* Grey ribbon background */
    display: flex;
    align-items: center;       /* Vertical centering */
    justify-content: center;   /* Horizontal centering */
    padding: 20px 0;           /* Optional: Adds vertical space */
}

