* {
  font-family: Verdana, Helvetica, Tahoma, sans-serif;
  font-weight: 300;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body.no-scroll {
  overflow: hidden; /*To prevent scrolling when inside modals*/
}
::selection {
  background: #cbdfbd;
  color: #182b31;
}
html {
  scroll-behavior: smooth;
}
h1 {
  font-weight: 700;
  font-size: clamp(1rem, 2rem, 3rem);
  text-transform: uppercase;
  margin-bottom: 0.5em;
  color: #182b31;
  letter-spacing: 0.2em;
}
h2 {
  font-weight: 500;
  font-size: clamp(0.875rem, 1.5rem, 2.125rem);
  margin-bottom: 1em;
  color: #ffecd1;
  letter-spacing: 0.05em;
}
p {
  font-size: clamp(0.8rem, 1.05rem, 1.3rem);
  line-height: 2;
  letter-spacing: 0.05em;
}
a {
  font-size: clamp(0.8rem, 1.05rem, 1.3rem);
  line-height: 2;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: #ffecd1;
  transition: 0.4s;
  cursor: pointer;

  &:hover {
    transition: all 0.3s ease;
    color: #f0b8a1;
  }
}
body {
  background-image: url("/images/GridCrossPattern-Light.png");
  background-repeat: repeat;
  background-color: #fff6e9;
  min-height: 200vh;
}
img {
  position: relative;
  object-fit: cover;
  object-position: center;
}
button {
  border-style: none;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
:root {
  --grid-top-padding: 1em;
  --border-radius-large: 24px;
  --border-radius-small: 12px;
}
/*Nav Bar*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transition: 0.6s;
  z-index: 200;
}
header.pc {
  padding: 4em 10em;
  align-items: center;
}
header.pc .nav-texts {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-text {
  list-style: none;
  text-decoration: none;
}
.nav-text a {
  position: relative;
  line-height: 0;
  text-decoration: none;
  color: #ffecd1;
  letter-spacing: 0.125em;
  margin: 0 1em;
}
.nav-text a:hover {
  transition: all 0.3s ease;
  color: #f0b8a1;
}
/*Nav Bar - mobile*/
header.mobile {
  display: none;
  padding: 1em;
  align-items: initial;
  background-color: rgba(24, 43, 49, 0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
}
#hamburger-icon {
  display: none;
  cursor: pointer;
}
#hamburger-icon div {
  width: 35px;
  height: 3px;
  background-color: #ffecd1;
  margin: 6px 0;
  transition: 0.4s;
}
header.mobile.open {
  background-color: rgba(24, 43, 49, 1);
  transition-duration: 0s;
}
.open {
  .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
  }
  .bar2 {
    opacity: 0;
  }
  .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -8px);
    transform: rotate(45deg) translate(-6px, -8px);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
}
.mobile-menu {
  display: none;
  position: absolute;
  padding-top: 3.5em;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: rgba(24, 43, 49, 0.8);
  backdrop-filter: blur(5px);
  li {
    margin-bottom: 3.5em;
  }
}
.mobile {
  .nav-text {
    display: none;
    align-items: center;
  }
}

/*Nav Bar - sticky ver*/
header.sticky {
  padding: 0.5em 5em;
  background-color: rgba(24, 43, 49, 0.8);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  .nav-text {
    padding: 0.75em 0;
    transform: translateY(50%);
    a {
      color: black;
      background: rgb(240, 184, 161);
      background: linear-gradient(
        10deg,
        rgba(240, 184, 161, 1) 0%,
        rgba(230, 156, 124, 1) 100%
      );
      border-radius: var(--border-radius-small);
      padding: 0.75em;
      margin: 0 0.5em;

      &:hover {
        color: #ffecd1;
      }
    }
  }
}
/*Main Banner*/
.banner {
  position: relative;
  height: 100vh;
  height: 100svh;
  background-color: #182b31;
  z-index: 50;
}
.banner-image {
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 20%;
}
.banner-content-area {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
}
.banner-container {
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 3em 3em 3em;
  box-sizing: border-box;
  max-width: 1500px;
}
.banner-content {
  align-content: center;
  overflow: hidden;
}
.banner-content {
  h1 {
    color: #ffecd1;
    font-weight: 500;
    margin-bottom: 0;
    text-align: center;
  }
  img {
    width: min(500px, 100%);
    border-radius: var(--border-radius-large);
  }
}
/*Div Containers*/
.content-area {
  position: relative;
  clear: both;
  padding: 3em 0;
}
.container {
  overflow: hidden;
  padding: 1em;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 1300px;
}
.title {
  text-align: center;
  border-radius: var(--border-radius-large);
  background: rgb(240, 184, 161);
  background: linear-gradient(
    10deg,
    rgba(240, 184, 161, 1) 0%,
    rgba(230, 156, 124, 1) 100%
  );
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  h1 {
    color: #182b31;
    margin-bottom: 0;
  }
  h2 {
    font-weight: 600;
    color: #182b31;
    margin-bottom: 0;
    text-transform: uppercase;
  }
}
.content {
  padding: 2em;
  box-sizing: border-box;
  border-radius: var(--border-radius-large);
  background: rgb(193, 193, 193);
  background: linear-gradient(
    45deg,
    rgba(193, 193, 193, 1) 0%,
    rgba(240, 184, 161, 1) 100%
  );
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  overflow: clip;

  h2 {
    text-transform: uppercase;
    margin-bottom: 0.5em;
    color: #182b31;
    font-weight: 600;
  }
}
.blur-load /*Images*/ {
  background: none;
  background-size: cover;
  background-position: center;
  img {
    opacity: 0;
    transition: opacity 200ms ease-in-out;
  }
}
.blur-load.loaded {
  img {
    opacity: 1;
  }
}
.image {
  flex-grow: initial;
  overflow: hidden;
  padding: 0;
  img {
    flex-grow: initial;
    overflow: hidden;
    width: 100%;
    min-height: 100%;
    filter: grayscale(100%);
  }
}
.layered-grid {
  img {
    width: 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
    z-index: 1;
  }
}
/*GRIDS AND FLEXES*/
.banner-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-content: center;
  gap: 2em;

  & > * {
    flex-basis: content;
  }

  &:nth-child(2) {
    aspect-ratio: 1/1;
  }
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  padding-top: var(--grid-top-padding);
}
.about-grid {
  display: grid;
  grid-template-columns: none;
  gap: 2em;
  padding-top: var(--grid-top-padding);
}
.layered-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2em;
  height: 100%;
  padding-top: var(--grid-top-padding);
}
.grid-row-span-2 {
  grid-row: span 2;
}
/*Text On the letter*/
.letter-text {
  position: relative;
  z-index: 10;
  p {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: 500;
    font-size: clamp(1rem, 4vw, 1.7rem);
    color: #182b31;
    padding-right: 0.7em;
    padding-left: 0.7em;
  }
  #contactsText1 {
    margin-top: 20%;
    font-weight: 600;
  }
  #contactsText2 {
    margin-top: 27.5%;
  }
  #contactsText3 {
    margin-top: 35%;
    font-weight: 600;
  }
  #contactsText4 {
    margin-top: 45%;
  }
}
/*For layered images*/
.letter-layered {
  position: relative;
  min-width: 100%;
  padding-bottom: 60%;
  height: 0;
  margin-top: 1em;

  img {
    position: absolute;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));

    /*For correct image layering*/

    &:nth-child(1) {
      z-index: 1;
    }

    &:nth-child(2) {
      z-index: 2;
    }

    &:nth-child(3) {
      z-index: 3;
    }
  }
}

/*For flower field*/
.footer {
  padding-bottom: 0;
}
.bottom {
  position: relative;

  img {
    position: absolute;
    transform: translateY(-100%);
    width: 100%;
    height: auto;
    z-index: -1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  }
}
/*To Top Button*/
.scroll-button {
  position: fixed;
  bottom: 35px;
  right: 35px;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 40;
  background: rgb(240, 184, 161);
  background: linear-gradient(
    10deg,
    rgba(240, 184, 161, 1) 0%,
    rgba(230, 156, 124, 1) 100%
  );
  border-radius: 50%;

  img {
    width: 26px;
    height: 26px;
  }
}

/*Scroll Animations*/
.hidden {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(30%);
  transition: all 1s;
}
.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: all 1s;
}
/*Gallery Grid*/
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  padding-top: 1em;
}
.gallery-box {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  h2,
  p {
    position: absolute;
    color: #ffecd1;
    text-shadow: 2px 2px 5px black;
    z-index: 2;
    width: 100%;
    transition: opacity 0.2s, transform 0.3s;
  }

  h2 {
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0;
    letter-spacing: 0.1em;
  }

  p {
    bottom: 0;
    letter-spacing: 0.1em;
  }

  &:hover {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
  }

  &:hover:before {
    transition: all 0.3s ease-in-out;
  }

  img {
    z-index: 1;
    transition: all 0.3s ease-in-out;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);

    &:hover {
      transition: all 0.3s ease-in-out;
    }

    &:after {
      content: "";
      position: absolute;
      background-color: rgba(0, 0, 0, 0.6);
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      opacity: 0;
    }

    &:hover {
      transition: all 0.3s ease-in-out;
    }
  }
}
.dark-text {
  /* For light background images in portfolio*/
  h2,
  p {
    color: #182b31;
  }
}
.zoom-in {
  h2 {
    top: 50%;
    transform: translatey(-50%);
    text-align: center;
    margin: 0;
  }

  p {
    text-align: center;
    top: calc(50% + 40px);
    transition: all 0.3s ease;
    opacity: 0;
  }

  &:hover {
    img {
      transform: scale(1.1);
      filter: none;
    }

    p {
      transform: translateY(-10%);
      transition: all 0.3s ease;
      opacity: 1;
    }
  }
}
/* The Gallery Modal */
.modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-grid {
  display: flex;
  flex-wrap: wrap;
  div {
    flex: 33.3%;
  }
}
.modal-comment {
  background: none;
  text-align: center;
  h2 {
    font-weight: 600;
    color: #ffecd1;
    margin-bottom: 0;
    text-transform: uppercase;
  }
  p {
    color: #ffecd1;
  }
  margin: 1em 0.5em;
  padding: 0.5em 1em;
}
.modal-img-container {
  margin: 1em 0.5em;
  img {
    vertical-align: middle;
    width: 100%;
  }
}
.modal-tall-img {
  display: flex;
  flex-direction: row;
}
.vertical-modal {
  flex-wrap: nowrap;
  flex-direction: column;
  div {
    flex: 100%;
    max-width: 100%;
  }
}
.modal-header {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: auto;
  z-index: 2000;

  .close {
    font-size: 2.5rem;
    color: #ffecd1;
    background-color: rgba(24, 43, 49, 0.8);
    backdrop-filter: blur(5px);
    padding: 0 8px 5px 8px;
    margin: 0.8em 1.3em;
    border-radius: var(--border-radius-small);
    display: none;
    transition: 0.3s ease-in-out;

    &:hover,
    &:focus {
      color: #cbdfbd;
      text-decoration: none;
      cursor: pointer;
    }
  }
}
.modal-with-padding {
  padding: 0 200px;
  @media only screen and (max-width: 1070px) {
    padding: 0;
  }
}
@media only screen and (max-width: 1070px) {
  .pc {
    display: none;
  }
  header.sticky {
    display: none;
  }
  header.mobile {
    display: flex;
  }
  .mobile .nav-text {
    display: flex;
  }
  #hamburger-icon {
    display: block;
  }
  .modal-grid {
    div {
      flex: unset;
      max-width: 100%;
    }
  }
  .modal-header {
    .close {
      margin: 0.1em 0.3em;
    }
  }
  .modal-tall-img {
    display: flex;
    flex-direction: column;
  }
  /* Disable content fade-in and fly-in on mobile */
  .hidden {
    opacity: 1;
    filter: none;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (min-width: 600px) {
  .banner-flex {
    flex-direction: row;
  }
  .banner-content h1 {
    margin-bottom: 1em;
  }
  .banner-content-area {
    padding: 4.75em 0 3.75em 0;
  }
  .banner-flex > * {
    flex-basis: 100%;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (prefers-reduced-motion: reduce) {
  .hidden {
    transition: all 1s;
  }
  html {
    scroll-behavior: auto;
  }
}
