@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html::before {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  content: "";
  opacity: 0;
  pointer-events: none;
  background: url("./assets/images/noise.gif");
  background-attachment: fixed;
}

.announcement {
  display: flex;
  position: absolute;
  font-family: "Poppins", sans-serif;
  top: 30px;
  padding: 1rem;
  width: 100%;
  justify-content: space-between;
  background-color: #fff;
  z-index: 100;
  transition: 0.3s ease-in;
}

.announcement p {
  max-width: 250px;
}

.announcement-icon {
  font-size: 1.5rem;
  padding: 0 0.5rem;
  border: 1px dashed #000;
}

img,
picture {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
cite,
dl,
dd,
ul {
  margin: 0;
}

@font-face {
  font-family: "Avant Garde";
  src: url("./assets/fonts/ITC_Avant_Garde_Gothic/AvantGarde-Bold.otf")
    format("woff2");
}

@font-face {
  font-family: "Avant Garde Book";
  src: url("./assets/fonts/ITC_Avant_Garde_Gothic/AvantGarde-Book.ttf")
    format("woff2");
}
@font-face {
  font-family: "Monument Black";
  src: url("./assets/fonts/monumentextended-black-webfont.woff") format("woff2");
}

@font-face {
  font-family: "Monument Regular";
  src: url("./assets/fonts/monumentextended-regular-webfont.woff")
    format("woff2");
}

:root {
  --primary-font-family: "Avant Garde";
  --background-color: #d4c9c9;
  --primary-color: #fff;
  --secondary-color: #000;
  --supplementary-color: rgb(179, 131, 226);
}

body {
  overflow-x: hidden;
  perspective: 1500px;
  background-color: var(--background-color);
  color: var(--secondary-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-size: 1rem;
}

.container {
  width: 87%;
  max-width: 1900px;
  margin: 0 auto;
  will-change: transform;
  transition: 0.5s ease transform;
}

header {
  padding-top: 2rem;
}

.main-nav {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.2rem;
}
.logo a {
  text-decoration: none;
  color: var(--secondary-color);
  font-family: "Monument Black";
}

.fa-bars {
  margin-left: auto;
  font-size: 1.2rem;
}
.make-bold {
  font-family: var(--primary-font-family);
}

nav ul.desktop {
  display: none;
}

.hide-mobile-nav {
  display: none;
}

nav ul.mobile {
  width: 100%;
  text-align: right;
  position: absolute;
  top: 35px;
  left: 0;
  right: 0;
  background-color: var(--secondary-color);
  z-index: 1;
  padding: 3rem 0 3rem 0;
}
nav ul.mobile li {
  list-style-type: none;
}
nav ul.mobile li a {
  display: block;
  color: var(--background-color);
  font-family: var(--primary-font-family);
  margin-right: 1rem;
  font-size: 1.1rem;
}

nav ul.mobile li:not(:last-child) a {
  padding-bottom: 2rem;
}

.header-text {
  width: 100%;
  padding-top: 4.5rem;
}

.header-text h1 {
  font-size: 2.5rem;
  font-family: "Monument Black";
}

.header-text p {
  max-width: 250px;
  color: var(--secondary-color);
  font-size: calc((1.6 - 1) * 1.2vh + 1rem);
  font-family: "Avant Garde Book";
  margin-top: 0.8em;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.line-across-text {
  position: relative;
}

.text-without-line {
  display: none;
}

.line-across-text::after {
  border-bottom: 0.4em solid #ffe872;
  content: "";
  width: 100%;
  top: 53%;
  right: 0;
  left: 0;
  position: absolute;
  z-index: -1;
  animation: linethrough 4s ease-out;
}

@keyframes linethrough {
  0% {
    width: 0px;
  }

  30% {
    width: 35px;
  }

  100% {
    width: 100%;
  }
}

.fa-long-arrow-alt-right {
  position: relative;
  top: 1.5px;
  animation: arrowRight 1s linear infinite;
}

/* Main */
main {
  text-align: center;
  margin: 5rem 0 5rem 0;
}

.main-content {
  padding: 2.5rem 0;
}

.main-header {
  font-size: 2.5rem;
  font-family: "Monument Black";
  margin-bottom: 1rem;
}

.latest-work img {
  display: block;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 25px 20px -20px;
}

.project-name {
  padding-top: 2rem;
  font-family: var(--primary-font-family);
  font-size: 1.5rem;
}

.latest-work-content p {
  font-family: "Avant Garde Book";
  font-weight: 400;
  line-height: 1.8;
  padding: 0.7rem 0;
  text-align: center;
  margin: 0 auto;
}

a.btn {
  color: var(--primary-color);
  text-decoration: none;
}
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 18px;
  font-size: 0.8rem;
  font-family: var(--primary-font-family);
  border-radius: 0.15em;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 25px 20px -20px;
}

.btn-1 {
  background: #000;
  color: #fff;
  transition: transform 0.3s ease;
}

.fa-long-arrow-alt-right {
  position: relative;
  top: 1.5px;
  animation: arrowRight 1s linear infinite;
}

@keyframes arrowRight {
  0% {
    left: 0;
  }

  50% {
    left: 5px;
  }
  100% {
    left: 0;
  }
}

.contact {
  padding: 6rem 0 1rem 0;
}

.mailto {
  text-decoration: none;
  color: var(--secondary-color);
  font-family: var(--primary-font-family);
}

.mailto:hover {
  color: #555;
  transition: color 200ms ease-in-out;
}

.mySlides {
  display: none;
}

.mySlides img {
  vertical-align: middle;
}

.slideshow-container {
  /* max-width: 1000px; */
  position: relative;
  margin: auto;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 55%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #555;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: #717171;
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@media only screen and (max-width: 300px) {
  .prev,
  .next,
  .text {
    font-size: 11px;
  }
}

#subscribe {
  padding: 2rem 0;
}

.subscribe p,
.contact p {
  font-size: 1rem;
  font-family: "Avant Garde Book";
  line-height: 1.8;
  text-align: center;
}

.subscribe-box #form h2 {
  font-size: 2rem;
  font-family: var(--primary-font-family);
}

.free-tag {
  font-family: var(--primary-font-family);
}

.subscribed-text {
  display: none;
  background-color: var(--primary-color);
  color: var(--supplementary-color);
  position: absolute;
  right: 0;
  text-align: left;
  padding: 0.5em 0.7em;
  font-family: var(--primary-font-family);
  font-size: 1.2rem;
}

.subscribe-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.submit-btn {
  background-color: var(--supplementary-color);
  color: var(--primary-color);
  border: 1px var(--supplementary-color) solid;
  font-family: "Avant Garde Book";
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: bold;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1.3rem;
  padding-right: 1.3rem;
  border: none;
  display: block;
  margin: 15px auto;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0.15em;
}

.submit-btn:active {
  top: 0.1em;
}

.submit-btn:focus-within {
  outline-color: var(--supplementary-color);
}

.input {
  width: 300px;
  border: none;
  color: #444;
  padding: 1.1rem;
  max-width: 100%;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
  box-shadow: rgba(0, 0, 0, 0.35) 0px 25px 20px -20px;
  font-family: "Avant Garde Book";
}

.input:focus-within {
  outline-color: var(--supplementary-color);
}

.input::placeholder {
  color: #d5d5d5;
  font-family: "Avant Garde Book";
}
.slideshow-container h2 {
  font-size: 1.2rem;
  font-family: "Monument Black";
  font-style: italic;
}

.box {
  display: block;
  background-color: #fff;
  padding: 2rem 0;
  border-radius: 10px;
  margin-left: auto;
  margin-top: auto;
  margin-top: 2rem;
  box-shadow: rgba(42, 42, 42, 0.24) 0px 3px 8px;
}

.box-text {
  text-align: left;
  padding: 0 2rem;
}
cite {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: var(--primary-font-family);
  font-style: normal;
  line-height: 15px;
  color: #424242;
  letter-spacing: 0.7px;
  padding: 0 0.7rem;
}

.box blockquote {
  font-family: "Avant Garde Book";
  font-size: 0.9rem;
  line-height: 20px;
  font-weight: 400;
  color: rgb(66, 66, 66);
  padding: 1rem 0.7rem;
}

.box img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100px;
  border-radius: 50%;
}

footer {
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 5rem 0 2rem 0;
}

.follow h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.follow h3 a {
  display: inline-block;
  font-family: var(--primary-font-family);
  text-decoration: none;
  color: var(--primary-color);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--primary-color);
}

.follow {
  padding-bottom: 2rem;
}

.copyright small {
  display: block;
  font-family: "Avant Garde Book";
  text-align: center;
  font-size: 0.7rem;
  margin: 1rem 0 0 0;
  opacity: 0.8;
}
.copyright a {
  text-decoration: none;
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.preloader {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  position: fixed;
  overflow: hidden;
  margin: 0;
  z-index: 10000;
}

.kinetic {
  position: relative;
  height: 80px;
  width: 80px;
}

.kinetic::after,
.kinetic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border: 50px solid transparent;
  border-bottom-color: var(--background-color);
  animation: rotateA 2s linear infinite 0.5s;
}

.kinetic::before {
  transform: rotate(90deg);
  animation: rotateB 2s linear infinite;
}

@keyframes rotateA {
  0%,
  25% {
    transform: rotate(0deg);
  }

  50%,
  75% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateB {
  0%,
  25% {
    transform: rotate(90deg);
  }

  50%,
  75% {
    transform: rotate(270deg);
  }

  100% {
    transform: rotate(450deg);
  }
}

@media (min-width: 575px) {
  header {
    padding-top: 3rem;
  }
  .header-text {
    padding-top: 5rem;
  }

  .header-text p {
    max-width: 420px;
  }

  nav ul.desktop {
    display: block;
  }
  nav ul.nav-ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  nav ul.nav-ul li {
    list-style-type: none;
  }

  nav ul.nav-ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-family: "Monument Black";
    font-size: 0.9rem;
  }

  .header-text h1,
  .main-header {
    font-size: 3.2rem;
  }

  .main-nav span {
    display: none;
  }

  .hide {
    display: none;
  }

  .submit-btn {
    display: inline-block;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 760px) {
  .announcement {
    /* border-radius: 100px; */
    padding: 1rem 2.5rem;
    width: 97%;
    right: 1rem;
    left: 1rem;
    margin: 0 auto;
  }

  .announcement-icon {
    font-size: 1.7rem;
  }

  .announcement p {
    max-width: 500px;
  }

  .main-content {
    padding: 3rem 0;
  }

  .header-text h1 {
    max-width: 550px;
    font-size: 3rem;
  }

  .main-content {
    padding: 3rem 0;
  }

  .main-header {
    font-size: 3rem;
  }

  .latest-work {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .reversed img {
    order: 2;
  }

  .latest-work-content {
    text-align: left;
    margin: -35px 0;
    /* This will change based on the content */
  }

  .text-with-line {
    display: none;
  }

  .text-without-line {
    display: block;
  }
  .slideshow-container h2 {
    font-size: 1.5rem;
  }

  .box blockquote {
    padding: 1rem 0;
  }

  cite {
    padding: 0;
  }

  .box {
    display: flex;
    padding: 2rem 3rem;
    align-items: center;
  }

  .box img {
    width: 100px;
    height: 100px;
  }

  .prev,
  .next {
    top: 60%;
  }

  #subscribe {
    background-image: url("./assets/images/subscribe-bk.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 5rem;
    padding: 4rem 0;
    /* background-color: #000; */
    color: var(--primary-color);
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  }

  .input {
    position: relative;
  }

  #projects {
    text-align: left;
  }

  .slideshow-container {
    margin-top: 3rem;
  }

  .contact h2 {
    text-align: left;
  }

  .latest-work-content p {
    max-width: 480px;
    margin: 0;
    text-align: left;
  }
  .contact p {
    text-align: left;
    max-width: 500px;
  }

  .subscribe p {
    max-width: 550px;
    text-align: center;
    margin: 0 auto;
  }

  .input {
    width: 400px;
  }

  .follow h3 a {
    font-size: 1.5rem;
  }

  a.btn {
    color: var(--primary-color);
    text-decoration: none;
  }

  .btn {
    text-decoration: none;
    padding: 14px 18px;
    font-size: 0.8rem;
    position: relative;
    box-shadow: none;
  }

  .btn-1 {
    background: #000;
    color: #fff;
    transition: transform 0.3s ease;
  }
}

@media (min-width: 1024px) {
  .announcement-icon {
    font-size: 1.7rem;
    cursor: pointer;
    transition: border 0.3s ease;
  }

  .announcement-icon:hover {
    border: 1px dashed #fff;
  }

  .wrapper {
    width: 92%;
  }

  .box {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .box img {
    width: 100px;
    height: 100px;
  }

  .box blockquote {
    font-size: 0.95rem;
    line-height: 25px;
  }

  cite {
    font-size: 0.8rem;
  }

  .header-text {
    padding-top: 5rem;
  }

  .header-text h1 {
    font-size: 3.59rem;
    max-width: 650px;
  }

  .main-header {
    font-size: 3.59rem;
  }

  #projects {
    text-align: left;
  }

  .main-content {
    padding: 4rem 0;
  }

  nav ul.nav-ul {
    gap: 3rem;
  }

  nav ul.nav-ul li a {
    transition: color 200ms ease-in-out;
    position: relative;
  }
  nav ul.nav-ul li a:hover {
    color: #555;
  }
  nav ul.nav-ul li a:hover::before {
    content: "";
    width: 100%;
    position: absolute;
    right: 0;
    top: -5px;
    border-bottom: 5px solid #ffe872;
    animation: drawline 0.3s ease-out;
    animation-fill-mode: forwards;
  }
  nav ul.nav-ul li a:hover::after {
    content: "";
    width: 100%;
    position: absolute;
    left: 0;
    top: 118%;
    border-bottom: 5px solid #ffe872;
    animation: drawline 0.3s ease-out;
    animation-fill-mode: forwards;
  }

  @keyframes drawline {
    0% {
      width: 0px;
    }
    100% {
      width: 100%;
    }
  }

  a.btn {
    color: var(--primary-color);
    text-decoration: none;
  }
  .btn {
    text-decoration: none;
    padding: 20px 30px;
    position: relative;
    top: 1.2rem;
  }

  .btn-1 {
    background: #000;
    color: #fff;
    transition: transform 0.3s ease !important;
  }

  .btn-1::after,
  .btn-1::before {
    content: "";
    position: absolute;
    opacity: 0.3;
    background: #000;
    border-radius: inherit;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
    transition: transform 0.3s ease;
  }

  .btn-1:hover {
    transform: translate(-12px, -12px);
  }

  .btn-1:hover::after {
    transform: translate(6px, 6px);
  }

  .btn-1:hover::before {
    transform: translate(12px, 12px);
  }

  #subscribe {
    transform-style: preserve-3d;
    transform: perspective(1000px);
  }

  .subscribe-container {
    transform: translateZ(20px);
  }

  .subscribed-text {
    font-size: 1.5rem;
  }

  .follow h3 {
    gap: 2rem;
  }

  .follow h3 a {
    font-size: 2rem;
    transition: color 200ms ease-in-out;
  }
  .copyright small a {
    transition: color 250ms ease-in-out;
  }
  .copyright small a:hover,
  .follow h3 a:hover {
    color: #aaa;
    border-bottom: 1px solid #aaa;
  }
}
