/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Pridi:wght@300;400;600&display=swap');

.font-light {
  font-family: "Pridi", serif;
  font-weight: 300;
  font-style: normal;
}

.font-regular {
  font-family: "Pridi", serif;
  font-weight: 400;
  font-style: normal;
}

.font-heavy {
  font-family: "Pridi", serif;
  font-weight: 600;
  font-style: normal;
}

/* variables */
:root {
  --primary: #fff;
  --secondary: #ddd;
  --tursary: #222;
  --accent: #dc2828;
}

/* hide page scrollbar */
html {
  scrollbar-width: none;
}

/* Firefox */
body {
  -ms-overflow-style: none;
}

/* IE and Edge */
body::-webkit-scrollbar,
body::-webkit-scrollbar-button {
  display: none;
}

/* Chrome */

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

h1 {
  font-size: max(3vw, 4.5vh);
  line-height: max(3.6vw, 5vh);
  letter-spacing: -0.02vw;
}

h2 {
  font-size: max(2vw, 1.8vh);
  line-height: max(2.4vw, 2vh);
}

h3 {
  font-size: max(1vw, 2vh);
  line-height: max(1.2vw, 2.4vh);
}

p {
  font-size: max(1vw, 2vh);
  line-height: max(1.2vw, 2.4vh);
}

a {
  text-decoration: none;
}

.diagonal-divider {
  width: 0;
  height: 0;
  border-right: 100vw solid transparent;
  border-bottom: max(4vw, 3vh) solid var(--tursary);
  margin-top: -max(4vw, 3vh);
}

.diagonal-divider-secondary-footer {
  width: 0;
  height: 0;
  border-right: 100vw solid var(--secondary);
  border-bottom: max(4vw, 3vh) solid var(--tursary);
  margin-top: -max(4vw, 3vh);
}

.diagonal-divider-secondary {
  width: 0;
  height: 0;
  border-right: 100vw solid transparent;
  border-bottom: max(4vw, 3vh) solid var(--secondary);
  margin-top: -max(4vw, 3vh);
}

.selectDisable {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.top-item {
  margin-top: 8vh;
}

.underline-center {
  padding-top: max(2vw, 3vh);
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.short-text {
  display: none;
}

.temp {
  height: 20vh;
}





.contact-form {
  background-color: var(--secondary);
  width: 55%;
  margin: auto;
  display: flex;
  border-radius: max(2vw, 4vh);
  margin-top: max(3vw, 3vh);
}

.contact-form h2 {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  padding-bottom: 1vw;
}

.form-right {
  flex-basis: 50%;
  background-color: var(--tursary);
  border-radius: max(2vw, 4vh);
  padding-top: max(4vw, 4vh);
  padding-bottom: max(4vw, 6vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary);
}

.form-right h3 {
  padding-top: max(1.75vw, 1.75vh);
  font-size: max(1.5vw, 1.5vh);
}

.form-right p {
  padding-top: 0.75vh;
  font-size: max(1.25vw, 1.75vh);
}

.form-right a {
  margin-top: 0.75vh;
  margin-bottom: 0;
  padding: max(0.5vw, 0.75vh) max(1.5vw, 2vh);
  color: var(--primary);
  background: var(--accent);
  border-radius: max(0.5vw, 1vh);
  transition: 0.2s;
  font-size: max(1vw, 2vh);
}

.form-right a:hover {
  background: var(--primary);
  color: #000;
  transition: 0.2s;
}

.form-left {
  padding-top: max(4vw, 4vh);
  padding-bottom: max(4vw, 6vh);
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--tursary);
}

.form-left form {
  width: 80%;
}

.form-left input {
  margin-bottom: max(1vw, 1.5vh);
  padding: max(0.5vw, 0.5vh);
  border-radius: max(0.5vw, 0.5vh);
  border: none;
  font-size: max(0.75vw, 1.5vh);
}

.form-left label {
  font-size: max(1.25vw, 2vh);
}

.form-left form #submit {
  margin-top: max(1vw, 1vh);
  margin-bottom: 0;
  color: var(--primary);
  background: var(--accent);
  border-radius: max(0.5vw, 1vh);
  transition: 0.2s;
}

.form-left form #submit:hover {
  background: #000;
  color: var(--primary);
  transition: 0.2s;
}

.contact-form input {
  width: 100%;
}

.contact-form input:focus {
  outline: none;
  outline-offset: 0;
}






.about-title {
  margin: 4vw 25vw;
  margin-bottom: 6vw;
}

.description {
  margin-top: 1vw;
}





.profile-card-section {
  background-color: var(--secondary);
  padding-top: 3vw;
  padding-bottom: 3vw;
}

.profile-card {
  display: flex;
  background-color: var(--primary);
  width: 60vw;
  height: 30vw;
  margin: auto;
  border-radius: max(2vw, 4vh);
}

.profile-img {
  border-top-left-radius: max(2vw, 4vh);
  border-bottom-left-radius: max(2vw, 4vh);
  width: 25vw;
  height: 30vw;
  object-fit: cover;
}

.profile-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 35vw;
  padding: 0 2vw;
}

.profile-right .profile-text p {
  padding-top: 1vw;
  text-align: left;
}

.profile-right p {
  font-size: max(1vw, 1.2vh);
  line-height: max(1.2vw, 1.4vh);
}

.pfp-img {
  width: 10vw;
  clip-path: circle();
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border: max(0.2vw, 0.2vh) solid var(--accent);
}








.accordion {
  margin: max(1vw, 1vh) auto 20vh;
  width: 50vw;
}

.toggle {
  display: none;
}

.option {
  position: relative;
  margin-bottom: max(1vw, 1vh);
}

.accordion-title,
.content {
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: all 0.2s;
}

.accordion-title {
  background: var(--secondary);
  padding: max(1vw, 2vh);
  display: block;
  color: #000;
  font-weight: bold;
  font-size: max(1vw, 2vh);
}

.accordion-title:after,
.accordion-title:before {
  content: '';
  position: absolute;
  right: 1.25em;
  top: 1.25em;
  width: 2px;
  height: 0.75em;
  background-color: var(--accent);
  transition: all 0.2s;
}

.accordion-title:after {
  transform: rotate(90deg);
}

.content {
  border-top-style: none;
  max-height: 0;
  overflow: hidden;
  background-color: var(--secondary);

  p {
    margin: 0;
    padding: max(0.5vw, 1vh) max(1vw, 2vh) max(1vw, 2vh);
  }
}

.toggle:checked {
  &+.accordion-title+.content {
    max-height: 50vh;
    border-top-style: solid;
    border-color: var(--accent);
    border-width: max(0.1vw, 0.1vh);
  }

  &+.accordion-title:before {
    transform: rotate(90deg) !important;
  }
}






/* footer */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding-top: max(4vw, 5vh);
  background-color: var(--tursary);
  height: 50vh;
  color: var(--accent);
  text-align: center;
}

.footer-container h2 {
  font-size: max(2vw, 3vh);
  padding-bottom: max(0.4vw, 1vh);
}

.footer-column img {
  height: max(4vw, 7vh);
}

.footer-container p {
  color: var(--primary);
  padding-bottom: max(0.4vw, 0.5vh);
}

.footer-container a p {
  text-decoration: underline;
  padding-top: max(0.4vw, 0.5vh);
}

.footer-column {
  flex-basis: 33%;
}

.footer-center h2 {
  padding-top: max(1vw, 1vh);
}

#footer-top-padding {
  margin-top: max(2vw, 3.5vh);
}

.footer-links {
  display: flex;
  flex-basis: 0%;
  background-color: var(--tursary);
  justify-content: center;
}

.footer-links img {
  height: max(2vw, 4vh);
  padding: 0 max(0.3vw, 0.3vh);
}




/* key factor cards */
.key-factor-container {
  display: flex;
  justify-content: space-evenly;
  margin-top: max(3vw, 4vh);
  margin-left: 6vw;
  margin-right: 6vw;
  padding-bottom: max(4vw, 4vh);
}

.key-factor-card {
  padding: 4vw 3vw;
  margin: 2vw 2vw;
  background: var(--secondary);
  text-align: center;
  border-radius: max(2vw, 4vh);
  flex-basis: 100%;
  box-shadow: max(0.05vw, 0.05vh) max(0.1vw, 0.1vh) max(0.5vw, 0.5vh) rgb(0 0 0 / 0.4);
}

.key-factor-card img {
  height: max(5vw, 8vh);
}

.key-factor-card h2 {
  margin-top: 0.75vw;
}





/* image with text homescreen */
.img-container {
  position: relative;
  width: 100vw;
  height: 85vh;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - max(4vw, 3vh)));
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 35%;
}

.img-container .opacity-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  padding-left: 6vw;
  padding-bottom: 8vh;

  /* for text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--primary);
}

.img-container h2 {
  margin-bottom: max(0.8vw, 1.2vh);
}

.img-container a {
  color: inherit;
  font-size: max(1.5vw, 2.25vh);
  text-align: center;
  width: max(11vw, 16vh);
  padding: max(0.25vw, 0.4vh);
  margin-top: max(0.25vw, 0.25vh);
  background: var(--accent);
  border-radius: max(0.5vw, 1vh);
  transition: 0.2s;
}

.img-container a:hover {
  background: #000;
  color: var(--primary);
  transition: 0.2s;
}

.opacity-overlay img {
  width: max(2vw, 2vh);
  margin-right: max(1vw, 1vh);
}

.img-container li {
  list-style: none;
  display: flex;
  align-items: center;
  margin-bottom: max(.25vw, 1vh);
}

.img-container h2 {
  font-size: max(1.8vw, 2.25vh);
}

.img-container h3 {
  font-size: max(1.5vw, 2.1vh);
}




/* nav */
.navbar {
  background-color: var(--secondary);
  color: #000;
  border-bottom: 0.2vh solid var(--accent);
  width: 100%;
  height: 8vh;
  font-size: 2.4vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.navbar a {
  color: inherit;
}

.navbar-brand {
  float: left;
  padding-left: 2vh;
  padding-top: 2vh;
}

.navbar-brand img {
  height: 4vh;
}

.navbar ul {
  float: right;
  list-style: none;
}

.navbar ul li {
  display: inline-block;
  text-align: center;
}

.navbar ul li a {
  display: inline-block;
  min-width: 4vh;
  padding: 2vh 2.75vh;
  height: 8vh;
}

.navbar ul li a p {
  font-size: 2.5vh;
  display: inline-block;
  position: relative;
}

.navbar ul li a p::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 0.2vh;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transform-origin: center;
  transition: transform 0.25s ease-out;
}

.navbar ul li a p:hover::after {
  transform: scaleX(1);
  transform-origin: center;
}

.navbar ul li:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar .navbar-toggler {
  display: none;
}


@media (max-width: 767px) or (max-aspect-ratio: 1/1) {

  .contact-form {
    width: 95%;
    flex-direction: column;
    margin-top: 6vh;
  }

  .contact-form h2 {
    font-size: 3vh;
  }

  .form-right h3 {
    padding-top: 5vh;
    font-size: 2vh;
  }

  .contact-form #online{
    padding-bottom: 3vh;
  }

  .form-right {
    padding-top: max(8vw, 8vh);
    padding-bottom: max(10vw, 10vh);
  }

  .form-right h3 {
    font-size: 2.5vh;
  }

  .form-right p {
    font-size: 2vh;
  }
  .form-left input {
    margin-bottom: 2vh;
    padding: max(1vw, 1vh);
  }

  .form-left label {
    font-size: 2.5vh;
  }

  .about-title {
    margin: 3vh;
    margin-bottom: 8vh;
  }

  .description {
    margin-top: 3vh;
  }

  .profile-card-section {
    padding-top: 14vh;
    padding-bottom: 14vh;
  }

  .profile-card {
    flex-direction: column;
    width: 90vw;
    height: 110vh;
  }

  .profile-img {
    border-top-left-radius: 3vh;
    border-bottom-left-radius: 0;
    border-top-right-radius: 3vh;
    width: 90vw;
    height: 50vh;
  }

  .profile-right {
    width: 90vw;
    height: 60vh;
    padding: 0 3vh;
    padding-bottom: 3vh;
  }

  .profile-right .profile-text p {
    font-size: max(1vw, 2vh);
    line-height: max(1.2vw, 2.4vh);
    padding-top: 2vh;
    text-align: left;
  }

  .pfp-img {
    width: 25vw;
  }

  .short-text {
    display: inline-block;
  }

  .long-text {
    display: none;
  }

  h1 {
    line-height: 4vh;
    margin-bottom: 1vh;
  }

  .img-container {
    height: 70vh;
  }

  .img-container .opacity-overlay {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
  }

  .key-factor-container {
    flex-direction: column;
    margin-left: 3vw;
    margin-right: 3vw;
  }

  .key-factor-card {
    padding: 5vh 4vh;
    margin: 1.5vh 2vh;
  }

  .key-factor-card h2 {
    font-size: 4vh;
    margin-top: 3vh;
    margin-bottom: 1.75vh;
  }

  .footer-container {
    flex-direction: column;
    height: 75vh;
  }

  .footer-column {
    flex-basis: 15%;
  }

  .footer-useful {
    display: flex;
    justify-content: center;
  }

  #footer-useful-R {
    padding-left: 3vh;
  }

  .accordion {
    width: 100%;
  }

  .navbar {
    padding: 0;
    font-size: 2.75vh;
  }

  .navbar-brand {
    padding-top: 1.6vh;
  }

  .navbar ul {
    width: 100%;
    backdrop-filter: blur(16px);
    padding: 0;
    margin-top: 2.05vh;
    background-color: rgba(255, 255, 255, 0.7);
    height: 100vh;
    max-height: 0;
    overflow: hidden;
    transition: all ease-in-out 0.3s;
  }

  .navbar ul.open {
    max-height: 100vh;
  }

  .navbar ul li {
    width: 100%;
  }

  .navbar ul li a {
    width: 100%;
    padding: 0;
    font-size: 3vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar ul li a p {
    padding: 0;
    font-size: 3vh;
  }

  .navbar ul li:hover {
    background-color: rgba(255, 255, 255, 0.4);
  }

  .navbar ul li a p::after {
    height: 0.3vh;
    bottom: -0.5vh;
  }

  .navbar .navbar-toggler {
    display: inline;
    position: fixed;
    height: 4vh;
    top: 1.9vh;
    right: 2vh;
    background-color: transparent;
    color: #000;
    border: none;
    padding: 0 0.75vh;
    cursor: pointer;
  }

  .navbar .navbar-toggler span,
  .navbar .navbar-toggler span::before,
  .navbar .navbar-toggler span::after {
    display: block;
    content: '';
    background-color: #000;
    height: 0.4vh;
    width: 3vh;
    transition: all ease-in-out 0.3s;
  }

  .navbar .navbar-toggler span::before {
    transform: translateY(-1vh);
  }

  .navbar .navbar-toggler span::after {
    transform: translateY(0.7vh);
  }

  .navbar .navbar-toggler.open-navbar-toggler span {
    background-color: transparent;
  }

  .navbar .navbar-toggler.open-navbar-toggler span::before {
    transform: translateY(0px) rotate(45deg);
  }

  .navbar .navbar-toggler.open-navbar-toggler span::after {
    transform: translateY(-0.35vh) rotate(-45deg);
  }
}