@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

html {
  width: 100vw;
  overscroll-behavior: none;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: #121212;
  background-image: url(../assets/cream-paper.png);
  color: #fff;
}

header {
  position: fixed;
  width: 100vw;
  max-width: 100vw;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: transparent;
  transition: background-color 0.3s ease;

  @media (width >= 768px) {
    padding: 1rem 4rem;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo-svg {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.language-selector {
  display: flex;
  gap: 5px;
}

.language-selector button {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
}

#hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: -1;
  object-fit: cover;
  overflow-x: hidden;
  overscroll-behavior: none;
  user-select: none;
  pointer-events: none;
}

#hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

#hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0;
  animation: fadeInDown 1s ease-in-out;

  @media (width>= 480) {
    font-size: 4rem;
  }
}

.hero-content p {
  font-size: 1.5rem;
  margin-top: 0;
  animation: fadeInUp 1s ease-in-out;
}

.hero-content .cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  animation: fadeInUp 1s ease-in-out 0.5s;
  animation-fill-mode: both;
}

.hero-content .cta-button:hover {
  background-color: #fff;
  color: #121212;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#parallax-image {
  background-image: url("/assets/parallax.webp");
  width: 100vw;
  height: 450px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.parallax-content {
  color: white;
  backdrop-filter: blur(13px);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  .parallax-slogan {
    text-shadow: 1px 1px 2px #000;
  }
}

.logo-svg-center {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

#about,
#projects {
  padding: 8rem;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  overscroll-behavior: none;
}

#about {
  text-align: center;
}

#about > h2,
#about > p {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

#about > h2,
#projects > h2 {
  font-size: 2.3rem;
}

#about .about-list {
  list-style: none;
  margin-top: 3em;
  padding-inline-start: 0;
  display: flex;
  justify-content: center;
  gap: 25px;

  li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 25%;
    padding: 20px;
    background-color: #222;

    img {
      width: 75px;
      height: 75px;
    }

    .title {
      margin-bottom: 0;
      font-weight: 700;
      font-size: 1.2rem;
    }
  }
}

#projects h2 {
  text-align: center;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 1rem;
}

.grid-item {
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; /* Add transition for smooth effect */
}

.grid-item:hover img {
  transform: scale(1.05); /* Scale up slightly on hover */
}

.grid-item--quote {
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
}

.grid-item:nth-child(2) {
  grid-column: span 2;
}

.grid-item:nth-child(5) {
  grid-row: span 2;
}

.grid-item:nth-child(7) {
  grid-column: span 2;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #000;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.whatsapp-float:hover {
  transform: scale(1.5);
}

.whatsapp-float svg {
  width: 36px;
  height: 36px;
  fill: white;
}

@media (max-width: 768px) {
  #about,
  #projects {
    padding: 4rem 2rem;
  }

  #about .about-list {
    flex-direction: column;
    align-items: center;
  }

  #about .about-list li {
    width: 80%;
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .grid-item:nth-child(2),
  .grid-item:nth-child(5),
  .grid-item:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  #about,
  #projects {
    padding: 2rem 1rem;
  }

  #about > h2,
  #about > p {
    max-width: 100vw;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }
}
