@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 40px;
}

body, html {
  width: 100%;
  height: 100%;
}

.hero {
  min-height: 100vh;
  width: 100%;
  background-color: white;
  background-image: url(assets/PC.gif);
  background-position: center;
  background-size: cover !important;
  background-repeat: no-repeat;
  position: fixed;
}

.gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0));
  pointer-events: none;
}


.title {
  position: absolute;
  top: 20px; 
  bottom: -100px;   /* Distance from top */
  left: 20px;   /* Distance from left */
  z-index: 10;
}

.title img {
  width: auto;
  max-width: 600px; /* or adjust based on your image */
  height: auto;
}


.button-container {
  position: absolute;
  top: 5px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
  flex-wrap: nowrap;
  align-items: center;
}
/* 
.ca {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  padding: 0.44666rem 0.469rem;
  border-radius: 9999px;
  border: 2px solid black; 
  color: black;             
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: medium;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 400px;
  margin-left: 100px;
}
 */

.btn {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center; 
  border: 1px solid;
  border-radius: 1000px;
  background-color: transparent;
  position: relative;
  transition: all 0.2s;
  text-decoration: none;
  border-color: none;
}

.btn-ca {
  order: 0;
  display: inline-block;
  align-items: center;
  justify-content: center; 
  border: 1px solid;
  border-radius: 1000px;
  background-color: transparent;
  position: relative;
  transition: all 0.2s;
  text-decoration: none;
  border-color: none;
  width: fit-content;
}

.btn-img {
  display: block;
  width: 100%;
  height: auto;
}

.ca {
  position: absolute;
  top: 40%;
  left: 45%;
  transform: translate(-50%, -50%);
  color: black; /* or white depending on your background */
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  pointer-events: none; /* Allow click-through to the <a> */
  font-size: 18px;
}

.btn-ca:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px;
}

.btn-ca:active {
  transform: translateY(-3px);
}

.btn-ca::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  z-index: -1;
  transition: all 0.3s;
}

.btn-ca:link,
.btn-ca:visited {
  text-decoration: none;
  color: transparent;
  padding: 10px;
  margin-top: 15px;
  border: 1px solid;
  border-radius: 1000px;
  transition: all 0.2s;
  position: relative;
  background-color: transparent;
}

.btn-ca:hover::after {
 
  transform: scaleX(1.4) scaleY(1.5);
  opacity: 0;
}



.link-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(27, 27, 27, 0.5);
}

.btn:active {
  transform: translateY(-3px);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  z-index: -1;
  transition: all 0.3s;
}

.btn:link,
.btn:visited {
  text-decoration: none;
  color: transparent;
  padding: 10px;
  margin-top: 15px;
  border: 1px solid;
  border-radius: 1000px;
  transition: all 0.2s;
  position: relative;
  background-color: transparent;
}

.btn:hover::after {
  background-color: rgb(0, 238, 255);
  transform: scaleX(1.4) scaleY(1.5);
  opacity: 0;
}

.btn img {
  width: 80px;
  height: 80px;
}

.button-mobile {
  display: none;
  flex-direction: row;
 top: -50px;
  justify-content: center;
  margin-top: 10px;
}



 @media (max-width: 768px) {
  .hero {
    background-image: url(assets/Phone.gif);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    padding-top: 30px;
  }

  .title {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    margin-bottom: -50px;
  }

  .title img {
    width: 100%;
    max-width: 350px;
    height: auto;
  }



  .button-container {
    display: none; /* Sembunyikan tombol desktop di mobile */
  }

  .button-mobile {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .ca{
    font-size: 11px;
  }

  .button-mobile img {
    width: 50px;
    height: 50px;
    filter: none; /* Hapus efek pudar jika ada */
    opacity: 1; /* Pastikan tidak transparan */
    transition: transform 0.3s ease;
  }

  .button-mobile img:hover {
    transform: scale(1.05);
  }
}

