/* @import url('https://fonts.googleapis.com/css?family=Catamaran:400,700|Grand+Hotel'); */

:root {
  --clr-primary: #678e3e;
  --clr-primary-light: #beed8c;
  --clr-grey-10: #f1f5f8;
  --clr-white: #fff;
  /* --ff-primary: 'Catamaran', sans-serif;
  --ff-secondary: 'Grand Hotel', cursive; */
  --transition: all 0.25s linear;
  --spacing: 0.25rem;
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 2px solid red; */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #333;
  color: #fff;
  line-height: 1.5;
  font-size: 0.875rem;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  letter-spacing: var(--spacing);
  text-transform: capitalize;
  /* line-height: 1.25; */
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 0.875rem;
}
p {
  margin-bottom: 1.25rem;
}

@media screen and (min-width: 800px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 2rem;
  }
  h4 {
    font-size: 1rem;
  }
  body {
    font-size: 1rem;
  }

  /* h2,
  h3,
  h4 {
    line-height: 1;
  } */
}

/* ANIMATIONS */

@keyframes show {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  /* 50% {
    transform: scale(2);
    opacity: 0.5;
  } */
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideFromRight {
  0% {
    transform: translateX(1000px);
    opacity: 0;
  }
  50% {
    transform: translateX(-200px);
    opacity: 0.5;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

@keyframes slideFromLeft {
  0% {
    transform: translateX(-1000px);
    opacity: 0;
  }
  50% {
    transform: translateX(200px);
    opacity: 0.5;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}

.nav {
  /* text-align: center; */
  position: fixed;
  /* top: 0; */
  bottom: 0;
  background: #333;
  width: 100vw;
  height: 4rem;
  /* padding: 1rem; */
  border-top: 0.01px solid #777;
  box-shadow: 0 0 30px 15px #222;
}

ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 3rem;
}

ul li {
  list-style-type: none;
  padding-top: 1rem;
  /* display: inline-block; */
  /* padding-left: 2rem; */
}
ul li a {
  /* display: inline-block; */
  text-transform: uppercase;
  color: white;
  font-size: 1.25rem;
}
ul li a:hover {
  color: #ffe066;
  transform: scale(1.5);
}
ul li a i {
  transition: var(--transition);
}
ul li a:hover i {
  transform: scale(1.5);
}
.hero {
  text-align: center;
  /* min-height: calc(100vh - 1rem); */
  min-height: 100vh;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

@media screen and (min-width: 540px) {
  .hero {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 70%,
        rgba(0, 0, 0, 0.65)
      ),
      url(../images/metro.jpg) center/cover no-repeat fixed;
  }
  .nav {
    bottom: unset;
    top: 0;
    border-top: none;
    box-shadow: none;
    box-shadow: 0 0 30px 15px rgba(34, 34, 34, 0.7);
  }

  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
  }

  .projects {
    scroll-margin-top: 6.25rem !important;
  }
}

.hero h1 {
  color: white;
  text-transform: uppercase;
  font-size: 2rem;
}

.hero h1::before {
  content: '';
  display: block;
  height: 0.25rem;
  /* width: 12%; */
  width: 2rem;
  background: #ffe066;
  animation: slideFromLeft 3s ease-in-out 1;
}

.hero h1::after {
  content: '';
  display: block;
  height: 0.25rem;
  /* width: 40%; */
  width: 8rem;
  background: #ffe066;
  float: right;
  animation: slideFromRight 3s ease-in-out 1;
}

.hero p {
  clear: both;
  margin-top: 2rem;
  color: #f2f2f2;
  max-width: 90vw;
}

.hero-header {
  max-width: 20rem;
  margin: 0 auto;
}

.hero-center {
  max-width: 35em;
}

.btn {
  letter-spacing: var(--spacing);
  display: inline-block;
  margin-top: 2rem;
  border: 2px solid #fff;
  padding: 0.5rem 1rem;
  color: #fff;
  text-transform: uppercase;
  animation: show 3s linear 1;
  transition: var(--transition);
}

.btn:hover {
  font-weight: bold;
  background: #222;
  color: #ffe066;
  border-color: #ffe066;
  transform: scale(1.2);
}

.i1 {
  animation: slideDown 1s ease-in-out 1;
}

.i2 {
  animation: slideDown 2s ease-in-out 1;
}

.i3 {
  animation: slideDown 3s ease-in-out 1;
}

.divider {
  height: 0.25rem;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.1),
    rgba(255, 224, 102, 1),
    rgba(0, 0, 0, 0.1)
  );
}

.projects {
  /* scroll-margin-top: 6.25rem; */
  scroll-margin-top: 2.25rem;
  /* max-width: 90vw;
  margin: 0 auto; */
}

.projects h3 {
  margin-top: 2rem;
  margin-bottom: 4rem;
  text-align: center;
  text-transform: uppercase;
}

.projects h3::after {
  content: '';
  display: block;
  height: 0.2rem;
  width: 5rem;
  margin: 0 auto;
  margin-top: 0.25rem;
  background: #ffe066;
}

.grid-container {
  display: grid;
  /* 320 */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 2rem;
  align-items: flex-start;
  /* max-width: 1170px; */
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.project {
  text-align: center;
  margin-bottom: 4rem;
  /* max-height: 300px; */
}

.project h4 {
  letter-spacing: 0.15rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  color: #ffe066;
}

.img-container {
  max-width: 30rem;
  max-width: 75%;
  margin: 0 auto;
}

.img {
  height: 15rem;
  object-fit: cover;
}

.project p {
  max-width: 30em;
  margin: 0 auto;
}

.btn-container {
  display: inline-flex;
  display: flex;
  /* align-items: center; */
  justify-content: center;
  gap: 0 1rem;
  margin-top: 1rem;
}

.small-btn {
  letter-spacing: var(--spacing);
  /* display: inline-block; */
  border: 2px solid #fff;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.small-btn:hover {
  font-weight: bold;
  /* background: #222; */
  color: #ffe066;
  border-color: #ffe066;
  transform: scale(1.1);
}

.contact-section {
  background: #222;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.contact-info {
  /* margin: 1rem 1rem; */
  max-width: 24em;
  /* max-width: 75vw; */
  /* max-width: 300px; */
  margin: 0 auto;
}

.contact-info h3 {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4rem;
}

.contact-info h3::after {
  content: '';
  display: block;
  height: 0.2rem;
  width: 10rem;
  margin: 0 auto;
  margin-top: 0.25rem;
  background: #ffe066;
}

.contact-item {
  /* max-width: 75vw; */
  margin: 0 auto;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.contact-title {
  text-transform: uppercase;
  color: #ffe066;
}

.contact-text {
  text-transform: lowercase;
}

.contact-item a {
  color: #fff;
  transition: var(--transition);
}

.contact-item a:hover {
  text-decoration: underline;
  color: #ffe066;
  transform: scale(1.1);
}
