@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");

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

:root {
  --main-color: #ff0090;
  --second-color: #fca3b7;
  --bg-color: #626f78;
  --black: #15051e;
  --white: #fff;
  --pink: #fc0fc0;
  --light-white: rgba(255, 255, 255, 0.5);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  --meta-font: "Boldonse", system-ui;
  --eater-font: "Oswald", sans-serif;
  --jello-animation: jello 0.9s both;
  --bounce-animation: bounce 0.9s both;
  --pulse-animation: pulse 0.5s ease-in-out both;
  --shake-animation: shake 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955) both;
  --float-animation: float 2s linear infinite;
}

* {
  font-family: var(--meta-font);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s linear;
}

html {
  font-size: 62.5%;
  scroll-padding-top: 8rem;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 1rem;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--white);
}

body {
  background-color: var(--second-color);
}

section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes jello {
  0% {
    transform: scale3d(1, 1, 1);
  }
  30% {
    transform: scale3d(1.25, 0.75, 1);
  }
  40% {
    transform: scale3d(0.75, 1.25, 1);
  }
  50% {
    transform: scale3d(1.15, 0.85, 1);
  }
  65% {
    transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    transform: scale3d(1.05, 0.95, 1);
  }
  100% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(-45px);
    animation-timing-function: ease-in;
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  40% {
    transform: translateY(-24px);
    animation-timing-function: ease-in;
  }
  65% {
    transform: translateY(-12px);
    animation-timing-function: ease-in;
  }
  82% {
    transform: translateY(-6px);
    animation-timing-function: ease-in;
  }
  93% {
    transform: translateY(-4px);
    animation-timing-function: ease-in;
  }
  25%,
  55%,
  75%,
  87% {
    transform: translateY(0px);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translateY(0px);
    animation-timing-function: ease-out;
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: rotate(0deg);
    transform-origin: 50% 100%;
  }
  10% {
    transform: rotate(2deg);
  }
  20%,
  40%,
  60% {
    transform: rotate(-4deg);
  }
  80% {
    transform: rotate(-2deg);
  }
  90% {
    transform: rotate(2deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.8rem;
  background: var(--main-color);
  color: var(--white);
  cursor: pointer;
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
  padding: 1rem 3rem;
}

.btn:hover {
  animation: var(--jello-animation);
}

.title {
  margin-bottom: 2rem;
  text-align: center;
}

.title span {
  font-size: 2rem;
  color: var(--main-color);
}

.title h3 {
  font-family: var(--eater-font);
  font-size: 4rem;
  color: var(--white);
  font-weight: normal;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header.active {
  background: rgba(255, 12, 206, 0.6);
  backdrop-filter: blur(2rem);
}

.header .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.header .flex .logo img {
  height: 5.5rem;
}

.header .flex .navbar a {
  font-size: 2rem;
  margin-left: 2rem;
  color: var(--white);
}

.header .flex .navbar a:hover {
  color: var(--main-color);
}

#menu-btn {
  font-size: 2.5rem;
  color: var(--white);
  display: none;
}

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .info-container .box-container .box,
  .info-container .box-container .box:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 768px) {
  #menu-btn {
    display: inline-block;
  }

  #menu-btn.fa-xmark {
    transform: rotate(90deg);
  }

  .header .flex .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--pink);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease-in-out;
  }

  .header .flex .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 1;
    pointer-events: auto;
  }

  .header .flex .navbar a {
    font-size: 2.5rem;
    margin: 2rem;
    display: block;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .title h3 {
    font-size: 3rem;
  }

  .home {
    min-height: 80vh;
  }

  .about .row .content p {
    font-size: 1.8rem;
  }

  .home .content h3 {
    position: relative;
    left: 50px; /* Geser ke kanan */
  }

  .home .content a.btn {
    position: relative;
    left: 50px;
  }

  .box-container .box:nth-child(2) {
    position: relative;
    bottom: 20px;
  }

  .about .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* jarak kanan kiri keseluruhan */
  }

  .about .image {
    margin-left: 80px; /* geser gambar ke kiri */
  }

  .about .content {
    margin-right: 80px; /* geser teks ke kanan */
  }

  .box:nth-child(2) {
    margin-top: 20px; /* geser ke kanan */
  }
}

.home {
  min-height: 100vh;
  background: url("../images/bgCARD.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .content {
  text-align: center;
}

.home .content p {
  color: var(--second-color);
}

.home .content h3 {
  font-size: clamp(5rem, 15vw, 15rem);
  color: var(--main-color);
  text-shadow: var(--box-shadow);
  font-family: var(--eater-font);
  font-weight: normal;
  clip-path: polygon(10% 0, 90% 0, 100%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
  padding: 1rem 3rem;
}

.info-container {
  background: #ff95e4;
}

.info-container .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 27rem);
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
}

.info-container .box-container .box {
  border-radius: 1rem;
  transform: translateY(-1rem);
  padding: 3rem 2rem;
  background-color: var(--main-color);
  text-align: center;
}
.info-container .box-container .box:nth-child(even) {
  background: #881673;
  transform: translateY(1rem);
}

.info-container .box-container .box:nth-child(even) h3 {
  color: var(--white);
}

.info-container .box-container .box img {
  height: 25rem;
  width: 100%;
  object-fit: contain;
}

.info-container .box-container .box h3 {
  margin-top: 2rem;
  font-size: 2rem;
  color: #fface2;
}

.info-container .box-container .box:nth-child(1) img {
  animation: var(--bounce-animation) infinite;
}

.info-container .box-container .box:nth-child(2) img {
  animation: var(--shake-animation) infinite;
}

.info-container .box-container .box:nth-child(3) img {
  animation: var(--pulse-animation) infinite;
}

.about .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.about .row .image {
  flex: 1 1 40rem;
}

.about .row .image img {
  width: 100%;
  animation: var(--float-animation);
}

.about .row .content {
  flex: 1 1 40rem;
  text-align: center;
}

.about .row .content span {
  font-size: 2rem;
  color: var(--main-color);
}

.about .row .content h3 {
  font-size: 3rem;
  color: var(--white);
}

.about .row .content p {
  color: var(--pink);
}

.about.row .content p {
  line-height: 1.8;
  padding: 0.5rem 0;
  color: var(--light-white);
  font-size: 1.6rem;
}

.events .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 35rem);
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.events .box-container .box {
  border-radius: 2rem;
  text-align: center;
  padding: 2rem;
  background-color: #881673;
}

.events .box-container .box:nth-child(odd) {
  background-color: var(--main-color);
}

.events .box-container .box:nth-child(odd) h3 {
  color: var(--black);
}

.events .box-container.box img {
  height: 20rem;
  margin-bottom: 1rem;
}

.events .box-container .box:hover img {
  animation: var(--shake-animation);
}

.events .box-container .box h3 {
  font-size: 2rem;
  color: var(--white);
  margin: 1rem 0;
}

.events .box-container .box p {
  font-size: 1.6rem;
  color: var(--light-white);
  line-height: 1.8;
}

/* ANIMASI SCROLL */

.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  will-change: transform, opacity;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

.animate.from-left {
  transform: translateX(-50px);
}

.animate.from-right {
  transform: translateX(50px);
}

.video-tutorial {
  padding: 6rem 10%;
  background: var(--second-color);
  color: #fff;
  text-align: center;
}

.video-tutorial .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.video-tutorial .content {
  flex: 1 1 45rem;
}

.video-tutorial .content span {
  font-size: 1.8rem;
  color: var(--pink);
  display: inline-block;
  margin-bottom: 1rem;
}

.video-tutorial .content h3 {
  font-size: 3rem;
  margin: 0.5rem 0 1rem;
}

.video-tutorial .content p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: rgb(255, 253, 255);
}

.video-tutorial .video-preview {
  flex: 1 1 45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-tutorial .video-preview video {
  width: 100%;
  max-width: 600px;
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.video-tutorial .btn-container {
  margin-top: 2rem;
}

.video-tutorial .btn {
  padding: 1rem 2.5rem;
  background: var(--main-color);
  color: var(--white);
  font-weight: bold;
  border-radius: 2rem;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

/* Popup modal */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: #000;
  padding: 1rem;
  border-radius: 1rem;
}

.video-modal-content video {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.close-video {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

.latest-news {
  padding: 4rem 2rem;
  background: rgb(247, 236, 251);
  border-radius: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.latest-news .title {
  text-align: center;
  margin-bottom: 2rem;
}

.latest-news .title span {
  font-size: 3rem;
  color: #e91e63;
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.latest-news .title h3 {
  font-size: 2rem;
  color: #333;
}

.news-box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.news-box {
  background: var(--second-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-img {
  width: 100%;
  height: 180px; /* Kamu bisa ubah ke ukuran yang sesuai */
  object-fit: cover;
  border-radius: 1rem;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.news-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1rem;
}

.news-detail {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.news-box .btn {
  display: inline-block;
  background: #e91e63;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 1.5rem;
  text-decoration: none;
  transition: 0.3s;
}

/* Komentar Section */
.comments-section {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.comments-section .title span {
  font-size: 3rem;
  color: rgb(255, 14, 151);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.comments-section .title span::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #000;
}

.comment-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.enhanced-contact {
  background: #f7f7f7;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  max-width: 400px;
}

.enhanced-contact h4 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #d36bf8;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.enhanced-contact .info-item {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: #555;
}

.enhanced-contact .info-item i {
  font-size: 1.3rem;
  color: #d36bf8;
  margin-right: 0.8rem;
}

.comment-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-form input,
.comment-form textarea {
  padding: 1rem;
  border-radius: 0.8rem;
  border: 1px solid #ccc;
}

.comment-form .btn {
  align-self: flex-start;
}

/* footer */

.footer {
  background: rgba(255, 0, 149, 0.6);;
  color: #fff;
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
  padding: 4rem 2rem 2rem;
  margin-top: 3rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-left {
  max-width: 400px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-nav,
.footer-socials {
  display: flex;
  flex-direction: column;
}

.footer-nav h4,
.footer-socials h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #fff;
}

.footer-nav a,
.footer-socials a {
  color: #ccc;
  text-decoration: none;
  margin: 0.4rem 0;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-socials a:hover {
  color: #d36bf8;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a i {
  font-size: 1.4rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.social-icons a:hover i {
  color: #d36bf8;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #fdeaea;
}