@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  list-style-type: none;
  color: #242424;
}
:root {
  --primary-color: rgb(252, 127, 44);
  --dark-color: rgb(230, 131, 65);
  --accent-color: rgb(119, 135, 139);
  --font-xlg: 4.5rem;
  --font-lg: 2rem;
  --font-med: 1.5rem;
  --font-norm: 1rem;
  --font-sm: 0.85rem;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
span {
  text-align: center;
  line-height: 1.25;
}
h1 {
  font-size: var(--font-lg);
}
p {
  line-height: 1.5;
  font-size: var(--font-sm);
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-1 {
  flex: 1;
}
.space-between {
  justify-content: space-around;
  align-items: center;
}
.row {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  padding: 50px 0;
  width: 100%;
  max-width: 1400px;
}
.section {
  transition: all 300ms ease;
}
.section__title {
  margin-bottom: 20px;
  z-index: 1;
}
section:nth-child(even) {
  background-color: #f8f8f8;
}
a {
  text-decoration: none;
  position: relative;
}
i:hover {
  opacity: 0.7;
}
.link__hover-effect:after {
  content: "";
  position: absolute;
  height: 3px;
  background-color: #242424;
  width: 0%;
  bottom: -3px;
  right: 0;
  transition: all 300ms ease;
}

.link__hover-effect:hover:after {
  width: 100%;
  left: 0;
}
.link__hover-effect--white:after {
  background-color: white;
}
input,
textarea {
  width: 100%;
  background-color: transparent;
  color: white;
  outline: none;
  border: 3px solid white;
  border-top: none;
  border-left: none;
  border-right: none;
  margin-bottom: 30px;
  transition: all 300ms ease;
}
input {
  line-height: 60px;
  font-size: var(--font-med);
}
textarea {
  font-size: var(--font-norm);
  resize: vertical;
  height: 100px;
  margin-top: 10px;
}

input:hover,
textarea:hover {
  border-color: grey;
}
input:focus,
textarea:focus {
  border-color: var(--accent-color);
}

label {
  font-size: var(--font-sm);
  font-weight: bold;
  padding-top: 10px;
}
.click {
  cursor: pointer;
}
.underlay {
  background-color: rgba(0, 0, 0, 0.25);
  padding: 20px;
  border: 2px solid black;
}
.hero__info,
.scroll,
nav {
  opacity: 1;
  visibility: visible;
}

.modal--open .hero__info,
.modal--open .scroll,
.modal--open nav {
  opacity: 0;
  visibility: hidden;
  transition: all 400ms;
}

/* 


dark theme


*/
.dark-theme {
  transition: all 400ms ease;
}
.dark-theme .nav__link--anchor,
.dark-theme .fa-circle-half-stroke,
.dark-theme .section__title,
.dark-theme .section__title,
.dark-theme #services p,
.dark-theme .services p,
.dark-theme #services h3,
.dark-theme .services h3,
.dark-theme .leadership__card--title,
.dark-theme .leadership__card--subtitle,
.dark-theme .leadership__card--para,
.dark-theme .service__card--title {
  color: white;
}
.dark-theme .hero__info--title,
.dark-theme .hero__info--para {
  font-weight: 700;
}
.dark-theme section,
.dark-theme nav,
.dark-theme body {
  background-color: #242424;
}
.dark-theme .service__card--img,
.dark-theme .scroll__icon,
.dark-theme .fa-brands,
.dark-theme .fa-envelope {
  filter: invert(1);
}
.dark-theme .personal__logo {
  filter: invert(1);
}

.dark-theme .scroll__icon,
.dark-theme .scroll__icon:after,
.dark-theme .link__hover-effect {
  color: white;
}
.dark-theme .link__hover-effect:after,
.dark-theme .btn__mail {
  background-color: white;
}

.dark-theme .btn__mail {
  border-color: white;
}
.dark-theme .btn__mail--white {
  color: #242424;
}
.dark-theme .text--accent {
  color: var(--primary-color);
  text-shadow: 1px 1px black;
}
.dark-theme .nav__link--anchor-primary {
  background-color: var(--dark-color);
  color: #242424;
}
.service__card:hover .service__card--para {
  color: white;
  font-weight: 700;
}

/* Nav BAR */

nav {
  height: 100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 10;
}

.nav__link--list {
  display: flex;
  position: relative;
}
.nav__link--anchor {
  margin: 0 12px;
  text-decoration: none;
  font-size: var(--font-med);
  font-weight: 700;
  max-width: 300px;
  text-align: center;
}

.nav__link--anchor-primary {
  color: white;
  background-color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 300ms ease;
  margin: 15px auto;
}
.nav__link--anchor-primary:hover {
  background-color: var(--accent-color);
}

.personal__logo {
  font-size: var(--font-lg);
  color: var(--primary-color);
  max-height: 75px;
  margin: 0 12px;
  font-weight: bold;
}

.text--accent {
  display: inline-block;
  color: var(--dark-color);
}
.text--accent--white {
  display: inline-block;
  color: white;
  font-weight: 700;
  text-shadow: 1px 1px black;
}
.text--wiggle {
  animation: animate-wiggle 1200ms infinite alternate;
}
.btn__mail {
  width: 50px;
  height: 50px;
  font-size: var(--font-med);
  border-radius: 50%;
  border: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #242424;
  z-index: 999;
}
.btn__mail--white {
  color: white;
}
.scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll__icon {
  width: 20px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll__icon:after {
  content: "";
  width: 4px;
  height: 6px;
  background-color: #fff;
  border-radius: 2px;
  animation: scroll 300ms infinite alternate-reverse;
}

@keyframes scroll {
  0% {
    transform: translateY(3px);
  }

  100% {
    transform: translateY(-3px);
  }
}
@keyframes animate-wiggle {
  0% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}
.width-50 {
  display: flex;
  flex-direction: column;
  width: 50%;
}

.width-50 img {
  width: 100%;
  max-width: 500px;
}
/* 

Modal 

*/

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  height: 770px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  visibility: hidden;
  z-index: -1;
  transition: visibility 1s, z-index 1s, box-shadow 0.5s ease;
}

.modal--open .modal {
  z-index: 60;
  box-shadow: 0 20px 80px 0 rgba(0, 0, 0, 0.7);
  visibility: visible;
}

.modal__half {
  width: 50%;
  padding: 40px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 300ms ease-in;
}
.modal__about {
  background-color: lightgray;
  transform: translateX(-110%);
}

.modal--open .modal__about,
.modal--open .modal__contact {
  transform: translatex(0%);
}
.modal__contact {
  background-color: #242424;
  color: white;
  transform: translateX(110%);
}

.modal__title {
  font-size: var(--font-lg);
}
.modal__title--contact,
.modal__subtitle--contact {
  color: white;
}

.modal__subitle {
  font-size: var(--font-med);
  padding: 24px 0;
}
.modal__subtitle--contact {
  font-size: var(--font-norm);
  padding: 12px;
}

.modal__para {
  line-height: 1.75rem;
  font-size: var(--font-norm);
}

.modal__para + .modal__para {
  padding: 30px 0;
}
.modal__para--contac .form__item {
  display: flex;
  flex-direction: column;
}

.form__item--label {
  color: white;
}

.form__submit {
  background-color: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  width: 100%;
  max-width: 240px;
  padding: 12px 24px;
  font-size: 20px;
  transition: all 300ms ease;
}

.form__submit:hover {
  border-color: white;
  background-color: transparent;
}
.form__submit:active {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal__overlay--loading {
  background-color: #242424;
  font-size: 80px;
  z-index: -1;
}
.modal__overlay--success {
  background-color: green;
  font-size: var(--font-lg);
  font-weight: 700;
  text-align: center;
  padding: 30px;
  color: white;
  z-index: -1;
}
.modal__overlay--visible {
  z-index: 1;
  display: flex;
}

.fa-spinner {
  animation: spinner 1000ms infinite;
}

.modal__exit {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
  color: white;
  font-size: var(--font-lg);
}
@keyframes spinner {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*  

Hero Section

*/

.hero__info--container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  height: calc(100vh - 80px);
  margin: 0 auto;
  text-align: center;
  padding-top: 30px;
  z-index: 1;
}

.hero__info--title {
  font-size: var(--font-xlg);
  margin-bottom: 30px;
}

.hero__info--para {
  font-size: var(--font-lg);
  margin: 24px 0;
  z-index: 1;
}

.hero__info--para,
.hero__info--title {
  animation: fade-up 800ms 500ms backwards;
  z-index: 10;
}
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

#hero {
  background-image: url(./assets/hero.webp);
  background-size: cover;
}

#safety .flex {
  gap: 2rem;
  align-items: baseline;
}

/* services */

.services {
  padding: 30px 30px;
  justify-content: center;
  width: 100%;
}

.services__img {
  margin: 0 auto;
  transition: all 300ms ease;
  padding-bottom: 20px;
}
.services h2 {
  text-align: center;
  font-size: var(--font-lg);
  font-weight: 700;
  margin: 0 auto;
  padding: 20px 0;
}
.services h3 {
  text-align: center;
  font-size: var(--font-med);
  font-weight: 700;
  margin: 0 auto;
  padding: 20px 0;
}

.services p {
  font-size: var(--font-med);
  text-align: center;
  margin: 0 auto;
  padding: 20px 30px;
}

/* leadership */

.leadership {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
}
.leadership__card {
  max-width: 400px;
  height: 300px;
}
.leadership__card--img {
  max-width: 150px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 30px 30px 50px rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.leadership__card--img:hover {
  transform: scale(2.2);
  transition: scale 300ms ease;
}

.leadership__card--wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 5%;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.leadership__card--title {
  font-size: var(--font-med);
  font-weight: 700;
  color: white;
}
.leadership__card--subtitle {
  font-size: var(--font-norm);
  color: white;
}

.leadership__card--content {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  z-index: 999;
}
.leadership__card--content:hover {
  opacity: 0;
  transition: opacity 300ms ease;
}

/* service__icons block */

.service__card--row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 auto;
}
.service__card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 0 auto;
  width: calc(100vw / 3);
  max-width: 500px;
  height: 300px;
  text-align: center;
}
.service__card--img {
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.service__card--wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 5%;
  overflow: hidden;
  padding: 15px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.service__card--title {
  font-size: var(--font-med);
  font-weight: 700;
}
.service__card--subtitle {
  font-size: var(--font-norm);
  padding: 10px 0;
}
.service__card--para {
  font-size: var(--font-norm);
}

.service__card--wrapper:before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;

  opacity: 0;
  transition: opacity 300ms ease;
}
.service__card:hover .service__card--wrapper:before {
  opacity: 0.7;
}
.service__card:hover .service__card--para {
  opacity: 1;
  transform: translateY(-50%);
  font-weight: 700;
  margin: 0 auto;
}

.service__card:hover .service__card--img,
.service__card:hover .service__card--title {
  transform: scale(1.05);
  filter: blur(5px);
}

.service__card--para {
  position: absolute;
  top: 50%;
  left: 0;
  padding: 10px;
  transform: translateY(100%);
  max-width: 500px;
  width: 100%;
  z-index: 3;
  opacity: 0;
  background-color: var(--accent-color);
  box-shadow: 0 40px 30px rgba(252, 127, 44, 0.5),
    0 -40px 30px rgba(252, 127, 44, 0.5);
  font-size: var(--font-med);
  transition: transform 450ms, opacity 500ms ease;
}

/*  Footer  */

footer {
  background-color: #242424;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
}
footer .row {
  padding: 2% 0 0 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
}
footer img {
  max-width: 70px;
}
.logo--white {
  filter: invert(1);
  transform: scale(1.6);
}
.footer__social--list a,
footer p,
.footer__anchor--popper,
.fa-arrow-up {
  color: white;
  text-decoration: none;
  padding: 20px;
}
.footer__social--list {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: space-around;
  animation: animate-wiggle 1800ms ease-in;
}
.footer__social--link {
  font-size: var(--font-lg);
}
.footer__address--container {
  margin-top: 45px;
}
.footer__anchor {
  margin-bottom: 30px;
  position: relative;
}
.footer__anchor--popper {
  position: absolute;
  right: 0;
  top: 0px;
  font-weight: 700;
  opacity: 0;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer__anchor:hover .footer__anchor--popper {
  transform: translateX(100px);
  opacity: 1;
}
.footer__address {
  font-size: var(--font-norm);
  color: white;
  line-height: 1rem;
  padding-top: 10px;
  margin: 0;
}
footer address,
footer phone,
footer email,
footer a {
  color: white;
}

/*  for large tablets */
@media (max-width: 821px) {
  .modal__half {
    height: 100%;
    padding: 0 30px;
  }
  .modal__half h3 {
    font-size: var(--font-med);
  }
  .modal__half h4 {
    font-size: var(--font-normal);
  }
  .modal__half p {
    font-size: var(--font-small);
  }

  .language__list {
    max-height: 80px;
  }
}
/*  for small phones -tablets - large smartphones */
@media (max-width: 768px) {
  nav {
    height: 68px;
    font-size: var(--font-norm);
  }
  h1 {
    font-size: var(--font-lg);
  }
  .hero__info--para {
    font-size: var(--font-med);
  }

  .container {
    padding: 0 20px;

    flex-wrap: wrap;
  }
  .personal__logo {
    max-height: 80%;
  }
  .modal {
    top: 3vh;
    left: 3vh;
    width: 100%;
    transform: none;
    height: auto;
    flex-direction: column-reverse;
  }
  .modal__half {
    width: 100%;
    border-radius: 0;
  }
  .dark-theme .text--accent {
    color: white;
    text-shadow: none;
    font-style: italic;
    font-weight: 700;
  }
  .service__card {
    width: 100%;
    margin: 0 auto;
  }
}

/*  midsized tablets/ phones */
@media (max-width: 541px) {
  .language {
    margin: 0;
    width: 30%;
  }
  nav {
    height: 68px;
    font-size: var(--font-norm);
  }
  .hero__info--title {
    font-size: var(--font-lg);
  }
  .modal__half h3 {
    font-size: var(--font-med);
  }
  .modal__half h4 {
    font-size: var(--font-normal);
  }
  .modal__half p {
    font-size: var(--font-small);
  }
  .language__img {
    max-width: 45px;
  }

  .width-50 {
    width: 100%;
  }
}
/*  smaller phones */
@media (max-width: 480px) {
  .nav__link:first-child {
    display: none;
  }
  nav {
    height: 68px;
    font-size: var(--font-norm);
  }
  h1 {
    font-size: var(--font-lg);
  }

  .hero__info--title {
    font-size: var(--font-lg);
  }
  .hero__info--para {
    font-size: var(--font-med);
    margin: 40px;
  }

  .project__description--title {
    text-align: center;
  }
  .width-50 {
    width: 100%;
  }

  .modal__half {
    padding: 35px;
  }
  .fa-times {
    padding-right: 2rem;
  }

  .dark-theme .text--accent {
    color: white;
    text-shadow: none;
    font-style: italic;
    font-weight: 700;
  }
}
