*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat.ttf");
}

@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto.ttf");
}

:root {
  font-size: 100%;
  scroll-behavior: smooth;
  --black: #1e1e1e;
  --white: #ededed;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--white);
  color: var(--black);
}

h1 {
  font-family: "Montserrat";
  font-size: clamp(2rem, 2.5rem, 5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

h2 {
  font-family: "Montserrat";
  font-size: clamp(1.5rem, 2rem, 4rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: "Montserrat";
  font-size: clamp(1rem, 1.5rem, 3rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
}

p {
  font-family: "Roboto";
  font-size: clamp(0.5rem, 1rem, 2rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1rem;
}

#header {
  width: 100%;
  height: 10vh;
  position: sticky;
  top: 0;
  z-index: 999;
}

#navbar {
  background-color: var(--black);
  color: var(--white);
  width: 100%;
  height: 100%;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: #1e1e1e88 0 4px 8px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: auto;
  height: 8vh;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: invert();
}

.logo:hover {
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
}

.nav-links > li > a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.125rem;
  background: linear-gradient(to left, var(--white), var(--white)) bottom left /
    0 2px no-repeat;
  transition: background-size 250ms, background-position 0ms 250ms;
}

.nav-links > li > a:hover {
  background-position: bottom right;
  background-size: 100% 2px;
}

.cta {
  width: 8rem;
  height: auto;
  aspect-ratio: 5 / 2;
  font-family: "Roboto", sans-serif;
  font-size: clamp(0.5rem, 1rem, 2rem);
  font-weight: 750;
  padding: 0.25rem;
}

.shop-now {
  border: none;
  border-radius: 9999999px;
  background-color: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background-color 250ms, box-shadow 250ms;
}

.shop-now:hover {
  background-color: #dfdfdf;
  box-shadow: #1e1e1e33 0 0 16px;
}

.shop-now-navbar {
  height: 90%;
  width: auto;
  overflow: hidden;
}

#main {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 90vh repeat(3, auto);
  grid-template-areas:
    "hero"
    "about"
    "gallery"
    "contacts";
}

#hero {
  grid-area: hero;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.blur {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ededed88, transparent);
  backdrop-filter: blur(4px);
}

.hero-content-container {
  padding: 2rem;
}

.hero-heading {
  font-weight: 1000;
}

.hero-text {
  font-size: clamp(1rem, 1.5rem, 3rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-button-container {
  display: flex;
  gap: 1rem;
}

.learn-more {
  border: 4px solid var(--black);
  border-radius: 9999999px;
  background-color: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background-color 250ms, color 250ms, box-shadow 250ms;
}

.learn-more:hover {
  background-color: var(--black);
  color: var(--white);
  box-shadow: #1e1e1e33 0 0 16px;
}

#about {
  grid-area: about;
}

#about > :nth-child(even) {
  background-color: var(--black);
  color: var(--white);
}

#about > article {
  padding: 8rem 6rem;
}

.feature-container {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, 16rem);
  grid-auto-rows: 16rem;
  justify-content: center;
  align-content: center;
  gap: 2rem;
}

.feature {
  background-color: #dfdfdf;
  width: 16rem;
  height: 16rem;
  padding: 1rem;
  border-radius: 16px;
  transition: box-shadow 250ms, transform 250ms;
}

.feature:hover,
.gallery-image:hover {
  box-shadow: #1e1e1e33 0 0 16px;
  transform: translateY(-0.25rem);
}

#gallery {
  grid-area: gallery;
  background-color: var(--black);
  color: var(--white);
  padding: 8rem;
}

.gallery-heading {
  font-weight: 750;
  text-decoration: underline;
  margin-bottom: 6rem;
  text-align: center;
}

.gallery-image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.gallery-image {
  border-radius: 16px;
  width: auto;
  height: 16rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: box-shadow 250ms, transform 250ms;
}

#contacts {
  grid-area: contacts;
  background-color: var(--white);
  color: var(--black);
  padding: 8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

#contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#contact-form > label {
  margin-top: 2rem;
  margin-bottom: 0.25rem;
}

#contact-form > input,
textarea {
  font-family: "Robot", sans-serif;
  font-size: 1rem;
  border: 2px solid #444444;
  border-radius: 4px;
  padding: 0.5rem;
}

#contact-form > input {
  height: 2.5rem;
}

#message-send-btn {
  margin-top: 2rem;
  height: 3rem;
  background-color: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 9999999px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 750;
  cursor: pointer;
  transition: box-shadow 250ms, background-color 250ms;
}

#message-send-btn:hover {
  box-shadow: #1e1e1e33 0 0 16px;
  background-color: #272727;
}

.contact-info {
  background-color: #dfdfdf;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: #1e1e1e33 0 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  animation: hover-animation 3s ease-in-out 0s infinite alternate;
}

@keyframes hover-animation {
  0% {
    transform: translateY(-0.5rem);
  }

  100% {
    transform: translateY(0.5rem);
  }
}

.contact-info > img {
  width: 100%;
  border-radius: 16px;
}

.contact-info > div {
  text-align: center;
}

.contact-info p {
  margin-bottom: 2rem;
}

.contact-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hyperlink {
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
}

.hyperlink:hover {
  text-decoration: underline;
}

#footer {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 1rem;
  background-color: var(--black);
  color: var(--white);
  height: 25vh;
  padding-top: 1.5rem;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-links > li > a {
  background-color: #dfdfdf;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 9999999px;
  cursor: pointer;
  transition: box-shadow 250ms, transform 250ms;
}

.social-links > li > a:hover {
  box-shadow: #1e1e1e33 0 0 16px;
  transform: translateY(-0.25rem) rotateZ(360deg);
}

.social-links > li > a > img {
  width: 2rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

@media (min-width: 1448px) {
  :root {
    font-size: 32px;
  }
}

@media (max-width: 1024px) {
  .gallery-image {
    height: 12rem;
  }
}

@media (max-width: 768px) {
  .shop-now-navbar {
    font-size: 0.75rem;
  }

  .gallery-image {
    height: 8rem;
  }
}

@media (max-width: 500px) {
	.shop-now-navbar {
		display: none;
  }
}

@media (max-width: 425px) {
  #contacts {
    flex-direction: column;
  }

  #contacts,
  #gallery {
    padding: 4rem;
  }
}

@media (max-width: 375px) {
  .logo-container {
    display: none;
  }

  #navbar {
    justify-content: center;
  }
}

@media (max-width: 320px) {
  :root {
    font-size: 14px;
  }
}
