@import "tailwindcss";

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/Home.JPG");
  background-size: cover;
  background-position: center;
}

.mountain-card {
  transition: all 0.3s ease;
}

.mountain-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.container {
  max-width: 420px !important;
  height: 520px;
  perspective: 1000px;
}

.card {
  height: 100%;
  width: 100%;
  background-color: aliceblue;
  position: relative;
  transition: transform 1.5s;
  transform-style: preserve-3d;
  border-radius: 2rem;
}

.container:hover > .card {
  cursor: pointer;
}

.container.is-flipped .card {
  transform: rotateY(180deg) rotateZ(180deg);
}

.front,
.back {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 0 10px 2px rgba(50, 50, 50, 0.25);
  backface-visibility: hidden;
  background: linear-gradient(-135deg, #075300, #438156);
  color: white;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px;
  text-align: center;
}

.front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back {
  transform: rotateY(180deg) rotateZ(180deg);
}

.front-heading,
.back-heading {
  font-size: 24px;
  font-weight: bold;
  font-family: "Segoe UI", sans-serif;
}

/* From Uiverse.io by asgardOP */
.button {
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  border: none;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: 0.1s;
}
.button svg {
  color: white;
  width: 30px;
  height: 30px;
  z-index: 9;
}

.button:hover svg {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.2s ease;
}

.button.instagram {
  background: linear-gradient(120deg, #833ab4, #fd1d1d, #fcb045);
}

.button.whatsapp {
  background: linear-gradient(120deg, #02ff2c, #008a12);
}

.button.twitterx {
  background: rgb(69, 187, 255);
}

.button.youtube {
  background: rgb(255, 33, 33);
}

.button.github {
  background: black;
}

.button:active {
  transform: scale(0.85);
}

.button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.button::before {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  background-color: #212121;
  border-radius: 50px;
  z-index: -1;
  border: 0px solid rgba(255, 255, 255, 0.411);
  transition: 0.4s;
}

.button:hover::before {
  width: 0px;
  height: 0px;
}

@media (max-width: 640px) {
  .container {
    width: 90%;
    height: 520px;
  }

  .card {
    border-radius: 1.5rem;
  }

  .front,
  .back {
    padding: 30px;
    gap: 12px;
  }

  .front-heading,
  .back-heading {
    font-size: 20px;
  }

  .front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
