:root {
  --homebg: #0d0b07;
  --aboutbg: #232d3f;
  --projectsbg: #005b41;
  --contactbg: #008170;
  --calculation: 1;
  --w-column: 200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--aboutbg);
}
body::-webkit-scrollbar {
  display: none;
}
.bakery-container .main-cover {
  width: 50rem;
  margin: 0rem auto;
  height: max-content;
}
.project-detail {
  color: #fff;
  margin-bottom: 2rem;
  font-weight: lighter;
  padding: 0rem 1rem;
}

.project-detail .main-title {
  text-align: center;
  margin-bottom: 4rem;
  margin-top: 2rem;
}

.project-detail .main-title h1 {
  position: relative;
  text-transform: uppercase;
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
}

.project-detail .main-title h1 span {
  color: #41ffee;
}

.project-detail .main-title h1 .bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #777676;
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  z-index: -1;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 5.6rem;
}

.project-detail p {
  line-height: 2rem;
  font-size: 1rem;
}

.project-detail .first-para {
  margin: 2rem 0rem;
}

.container {
  height: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5rem;
}

.wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.grid {
  width: 100%;
  height: 30rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, 15rem);
  grid-template-rows: repeat(6, 8rem);
  grid-gap: 0.5rem;
  background-color: rgba(0, 0, 0, 0.479);
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 1rem;
  justify-content: center;
}
.grid::-webkit-scrollbar {
  display: none;
}
.grid.change {
  pointer-events: none;
}

.img-wrapper {
  background-color: #000;
  border-radius: 1rem;
  overflow: hidden;
}

.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  opacity: 0.5;
  transform: scale(1.2);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
}

.grid-img:hover {
  opacity: 0.8;
  transform: scale(1);
}

.grid.change .grid-img {
  opacity: 0.1;
}

.big-img {
  position: absolute;
  top: 15%;
  left: 13%;
  width: 75%;
  height: 70%;
  object-fit: 100%;
  object-position: center;
  border-radius: 1rem;
  animation: imageAnim 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes imageAnim {
  from {
    transform: scale(0) rotate(20deg);
  }

  to {
    transform: scale(1) rotate(0);
  }
}

.shadow {
  width: 50rem;
  aspect-ratio: 1;
  background-color: #000;
  border-radius: 50%;
  position: absolute;
  background-image: radial-gradient(#000, #353535);
  filter: blur(4rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

.details-head.anim {
  animation-delay: 0.3s;
}
.reasons.anim {
  animation-delay: 0.6s;
}

.technologies.anim {
  animation-delay: 0.9s;
}

.anim {
  opacity: 0;
  transform: translateY(2rem);
  animation: moveup 0.5s linear forwards;
}
@keyframes moveup {
  100% {
    opacity: 1;
    transform: translateY(0rem);
  }
}

/*Mobile Responsiveness*/
@media (max-width: 1030px) {
  .grid {
    width: 100%;
    height: 60vh;
    aspect-ratio: none;
    grid-template-columns: repeat(auto-fit, 15rem);
    grid-template-rows: repeat(6, 8rem);
    overflow-y: auto;
  }
  .big-img {
    top: 15%;
    left: 5%;
    width: 90%;
    height: 50%;
  }
}

@media (max-width: 830px) {
  .bakery-container .main-cover {
    width: 100%;
    margin: 0rem;
    padding: 0rem 2rem;
  }
  .container {
    margin-bottom: 0rem;
  }
  .grid {
    width: 100%;
    height: 50vh;
    aspect-ratio: none;
    grid-template-columns: repeat(auto-fit, 13rem);
    grid-template-rows: repeat(6, 8rem);
    overflow-y: auto;
  }
  .big-img {
    top: 15%;
    left: 5%;
    width: 90%;
    height: 60%;
  }
}

@media (max-width: 500px) {
  .bakery-container .main-cover {
    width: 100%;
    margin: 0rem;
    padding: 0rem 1rem;
  }
  .project-detail {
    margin-bottom: 2rem;
    padding: 0rem;
  }
  .project-detail .main-title {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
  }

  .project-detail .main-title h1 {
    font-size: 2rem;
  }

  .project-detail .main-title h1 .bg-text {
    font-size: 3.5rem;
  }
  .project-detail p {
    width: 100%;
    line-height: 2rem;
    font-size: 1rem;
  }

  .container {
    margin-bottom: 1rem;
  }

  .grid {
    width: 100%;
    height: 50vh;
    aspect-ratio: none;
    grid-template-columns: repeat(auto-fit, 10rem);
    grid-template-rows: repeat(8, 6rem);
    gap: 1rem;
    overflow-y: auto;
  }
  .big-img {
    top: 15%;
    left: 0%;
    width: 100%;
    height: 50%;
  }
}
@media (max-width: 380px) {
  .grid {
    width: 100%;
    height: 50vh;
    aspect-ratio: none;
    grid-template-columns: repeat(auto-fit, 9rem);
    grid-template-rows: repeat(8, 6rem);
    gap: 1rem;
    overflow-y: auto;
  }
  .big-img {
    top: 15%;
    left: 0%;
    width: 100%;
    height: 60%;
  }
}
@media (max-width: 365px) {
  .big-img {
    top: 15%;
    left: 0%;
    width: 100%;
    height: 50%;
  }
}

@media (max-width: 350px) {
  .grid {
    width: 100%;
    height: 50vh;
    aspect-ratio: none;
    grid-template-columns: repeat(auto-fit, 8rem);
    grid-template-rows: repeat(8, 5rem);
    gap: 1rem;
    overflow-y: auto;
  }
  .big-img {
    top: 15%;
    left: 0%;
    width: 100%;
    height: 40%;
  }
}
