@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300&display=swap');

:root {
  --primary-color: #7d9d92;
  --secondary-color: #ee9b1b;
  --dark-color: #141414;
  --light-color: #f4f4f4;
  --success-color: #5cb85c;
  --error-color: #d9534f;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px var(--primary-color);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Libre Franklin', sans-serif;
  color: #333;
  line-height: 1.6;
  background-image: url(../images/bg1.jpeg);
  background-color: rgba(255, 255, 255, 0.5);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  overflow-x: hidden;
}

section {
  margin: 0 auto;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: #333;
}

h1,
h2 {
  font-weight: 300;
  line-height: 1.2;
  margin: 10px 0;
}

p {
  margin: 10px 0;
}

img {
  width: 100%;
}

code,
pre {
  background: #333;
  color: #fff;
  padding: 10px;
}

.hidden {
  display: none;
}

/* Navbar */

.navbar {
  background-color: var(--light-color);
  color: var(--primary-color);
  height: 100px;
  position: fixed;
  top: 0;
  width: 100%;
  transition: 0.4s;
  z-index: 1;
}

.navbar ul {
  display: flex;
}

.navbar a {
  color: var(--primary-color);
  padding: 0 10px;
  margin: 0 5px;
}

.navbar .flex {
  justify-content: space-between;
}

.logo {
  font-size: 40px;
  padding: 0;
  margin: 0;
  transition: 0.4s;
}

.social-nav {
  justify-content: right;
}

.hidden-nav {
  display: none;
}

.email-div {
  align-items: flex-end !important;
  justify-content: flex-end !important;
  height: auto;
}

.nav-email {
  color: var(--secondary-color) !important;
  margin: 0;
}

/* Hero */

.hero h1 {
  font-weight: bold;
  text-align: left;
  font-size: 40px;
}

.hero p {
  text-align: left;
  margin: 20px 0;
}

.hero .grid {
  overflow: visible;
  grid-template-columns: 55% 45%;
  gap: 30px;
}

.hero-button {
  background-color: (--primary-color);
  border: 1px var(--light-color) solid;
  color: var(--light-color);
  float: right;
}

.svg {
  margin-left: 100px;
}

/* Directors */

.card-d {
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 412px;
  height: auto;
  margin: 10px;
}

.directors img {
  width: 50%;
}

/* Certifications */

.cert .glass {
  padding: 30px;
}

/* Gallery */

.gallery {
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
}

.gallery img {
  border: 4px solid var(--secondary-color);
}

.bss-slides {
  background: rgba(0, 0, 0, 0);
  position: relative;
  display: block;
}
.bss-slides:focus {
  outline: 0;
}
.bss-slides figure {
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}
.bss-slides figure:first-child {
  position: relative;
}

.bss-slides figure img {
  opacity: 0;
  -webkit-transition: opacity 1.2s;
  transition: opacity 1.2s;
  position: relative;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  max-width: 900px;
}
.bss-slides .bss-show {
  object-fit: cover;
  z-index: 0;
}
.bss-slides .bss-show img {
  min-height: 100%;
  opacity: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.bss-slides figcaption {
  position: absolute;
  font-family: sans-serif;
  font-size: 0.8em;
  bottom: 0.75em;
  right: 0.35em;
  padding: 0.25em;
  color: #fff;
  background: #000;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 2px;
  opacity: 0;
  -webkit-transition: opacity 1.2s;
  transition: opacity 1.2s;
}
.bss-slides .bss-show figcaption {
  z-index: 2;
  opacity: 1;
}
.bss-slides figcaption a {
  color: #fff;
}
.bss-next,
.bss-prev {
  color: #fff;
  position: absolute;
  background: #000;
  background: rgba(0, 0, 0, 0.6);
  top: 50%;
  z-index: 0;
  font-size: 2em;
  margin-top: -1.2em;
  opacity: 0.5;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.bss-next:hover,
.bss-prev:hover {
  cursor: pointer;
  opacity: 1;
}
.bss-next {
  right: 0;
  padding: 10px 5px 15px 10px;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.bss-prev {
  left: 0;
  padding: 10px 10px 15px 5px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.bss-fullscreen {
  display: block;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.3)
    url(https://leemark.github.io/better-simple-slideshow/img/arrows-alt_ffffff_64.png);
  -webkit-background-size: contain;
  background-size: contain;
  position: absolute;
  top: 5px;
  left: 5px;
  cursor: pointer;
  opacity: 0.3;
}
.bss-fullscreen:hover {
  opacity: 0.8;
}
:-webkit-full-screen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  -webkit-background-size: contain;
  background-size: contain;
}
:-moz-full-screen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  background-size: contain;
}
:-ms-fullscreen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  background-size: contain;
}
:full-screen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  -webkit-background-size: contain;
  background-size: contain;
}
:-webkit-full-screen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  -webkit-background-size: contain;
  background-size: contain;
}
:-moz-full-screen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  background-size: contain;
}
:-ms-fullscreen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  background-size: contain;
}
:fullscreen .bss-fullscreen {
  background: rgba(0, 0, 0, 0.4)
    url(https://leemark.github.io/better-simple-slideshow/img/compress_ffffff_64.png);
  -webkit-background-size: contain;
  background-size: contain;
}

/* Services */

.service-cards {
  margin: 0 auto !important;
  max-width: 900px;
  justify-content: space-between;
  align-items: flex-start;
}

.service-card {
  width: 300px;
  margin: 40px auto;
}

.service-card i {
  font-size: 5rem;
}

.service-card h3 {
  font-size: 2rem;
  color: var(--light-color);
}

.service-card:hover {
  background-color: var(--dark-color);
  color: var(--secondary-color);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 25px;
  width: 300px;
}

.services-button {
  justify-content: center;
  align-items: center;
}

/* Testimonials */

.diamond {
  width: 100px;
  height: 100px;
  background: var(--light-color);
  border-radius: 20px;
  margin: 80px 0 0 90px;
  transform: rotate(-45deg); /* Rotate Origin */
  transform-origin: 0 100%;
}

/* Project */

.project-hero {
  width: 100%;
  height: auto;
}

.project-hero .glass {
  max-width: 900px;
  padding: 10px;
}

.projects {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.projects .glass {
  padding: 10px 20px;
}

.projects .card {
  margin-top: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: repeat(1fr 3);
  row-gap: 10px;
  column-gap: 10px;
}

.main-image {
  height: 100%;
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 4;
}

.content {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20% 20%;
}

.border-r {
  padding: 0 10px;
  margin: 10px;
  border-left: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
}

/* Contact */

.contact-diamond {
  margin-top: 100px;
}

.diamond-text {
  top: '0';
  right: '50';
  font-size: '35';
  color: var(--primary-color);
}

.contact-section svg {
  margin: 0 10px;
}

.contact-section .hidden {
  margin: 0;
}

.form-y {
  margin-top: -23%;
}

.contact-form {
  height: auto;
  width: auto;
}

.contact-form input[type='text'],
.contact-form input[type='email'] {
  border: 0;
  border-bottom: 1px solid var(--primary-color);
  width: 100%;
  padding: 3px;
  font-size: 16px;
}

.contact-form textarea {
  border: 0;
  border-bottom: 1px solid var(--primary-color);
  width: 100%;
  height: auto;
  padding: 3px;
  font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
}

.submit {
  margin-top: 10px;
}

/* Footer */

.footer {
  margin-top: 40px;
  padding: 20px 0;
}

.footer a {
  color: var(--secondary-color);
}

.footer a:hover {
  color: var(--light-color);
}

.footer .flex {
  justify-content: space-between;
}

/* tablet */

@media (max-width: 900px) {
  .contact-section .flex {
    flex-direction: column;
    height: fit-content;
    overflow-y: visible;
  }

  .shown {
    display: none;
  }

  .hidden {
    display: block;
  }

  .hidden-nav {
    display: block;
  }

  .shown-nav {
    display: none;
  }

  .social-nav {
    height: auto;
  }

  .hero .glass {
    display: flex;
    flex-direction: column;
  }

  .hero h1,
  .hero p {
    text-align: center;
  }

  .hero-button {
    float: none;
    margin: 0 auto;
    padding: 0 auto;
  }

  .directors .flex {
    flex-direction: column;
  }

  .card-d {
    margin: 10px 0;
  }

  .form-y {
    margin-top: 0;
  }

  .navbar {
    height: 170px;
    padding-top: 10px;
  }

  .footer .grid,
  .projects-grid,
  .content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .navbar .flex {
    flex-direction: column;
    justify-content: flex-start;
  }

  .page-nav .flex {
    justify-content: center;
  }

  .logo {
    font-size: 40px;
  }

  .hero {
    margin-top: 150px;
  }

  .cert .flex,
  .diamonds {
    flex-direction: column;
  }

  .services {
    overflow: hidden;
  }

  .service-cards {
    justify-content: center;
    align-items: center;
  }

  .service-card {
    width: 150px;
    margin: 40px 10px;
  }

  .service-card i {
    font-size: 3rem;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .service-card:hover {
    padding: 5px;
    margin: 20px 10px;
    width: 300px;
  }

  .projects {
    text-align: center;
  }

  .border-r {
    border: none;
  }

  .contact-section {
    margin-top: 100px;
  }

  .contact .card {
    align-items: center;
    justify-content: center;
    margin: 10px auto;
  }

  .hero-form {
    width: 300px;
  }

  .modal-text {
    font-size: xx-small;
  }

  .modal-text h1,
  .cert h1 {
    font-size: small;
  }

  .cert h1,
  .services h1 {
    font-size: 2rem;
  }
}

/* mobile */

@media (max-width: 500px) {
  .navbar {
    overflow: hidden;
    margin: 0 auto;
    height: 125px;
    text-align: center;
    font-size: 12px;
  }

  .navbar {
    padding: 5px;
  }

  .navbar a {
    margin: 0;
  }

  .navbar .flex {
    flex-direction: column;
  }

  .hidden-nav {
    white-space: nowrap;
  }

  .page-nav {
    margin: 0;
    padding: 0;
    width: 250px;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
  }

  .page-nav li {
    padding: 0;
  }

  .page-nav .flex {
    white-space: nowrap;
  }

  .logo {
    width: 270px;
    height: auto;
  }

  .card-d {
    width: 270px;
    height: auto;
  }

  .line {
    width: 260px;
  }

  .services .flex {
    flex-direction: column;
  }

  .service-card {
    width: 150px;
    margin: 20px 10px;
  }

  .service-card i {
    font-size: 3rem;
  }

  .service-card h3 {
    font-size: 1.5rem;
  }

  .service-card:hover {
    padding: 5px;
    margin: 20px 10px;
    width: 150px;
  }

  .contact-section {
    margin-top: 10px;
  }

  .contact-diamond {
    margin-top: 125px;
  }

  .contact-section svg {
    width: 250px;
    height: 300px;
  }
}

.hover a:hover {
  color: var(--secondary-color);
}

.hover:hover {
  transform: scale(0.95);
}
