@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
body {
  font-family: "Inter", sans-serif;
  background-color: #f7fafc;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.notion-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.notion-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.emoji {
  font-size: 1.5rem;
}

.flag-icon {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 8px;
}

.changelog-item {
  border-left: 4px solid;
  padding-left: 1rem;
}

/* Style untuk efek kilau pada tombol */
.shine-button {
  position: relative;
  overflow: hidden;
  z-index: 10;
  /* Keep basic button styling but remove extra effects */
  display: inline-block;
  background-color: #4f46e5; /* indigo-600 */
  color: white;
  font-weight: bold;
  font-size: 1.125rem; /* text-lg */
  border-radius: 9999px; /* rounded-full */
  padding: 0.75rem 2rem; /* py-3 px-8 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
  text-decoration: none; /* Remove underline from link */
  transition: all 0.3s ease, background-color 0.2s ease;
  transform: translateY(0) scale(1);
  cursor: pointer;
}

.shine-button:hover {
  background-color: #4338ca; /* indigo-700 */
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.3);
}

.shine-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #4338ca; /* indigo-700 */
}

.shine-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 150%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
  animation: shine 2s infinite;
}

/* Ripple effect for click */
.shine-button .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.carousel-item {
  flex-shrink: 0;
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  will-change: transform;
}

/* Video carousel improvements */
.carousel-item .aspect-video {
  aspect-ratio: 16 / 9;
  position: relative;
}

.carousel-item .aspect-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.header-bg {
  position: relative;
  background-image: url("../img/header.png");
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}

.header-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.header-bg h1,
.header-bg p {
  z-index: 2;
  color: white;
  position: relative;
}

/* Styles for the running logos section */
.running-logos-container {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #fff 20%,
    #fff 80%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #fff 20%,
    #fff 80%,
    transparent
  );
  position: relative;
}

.running-logos.paused {
  animation-play-state: paused;
}

.running-logos img {
  height: 40px; /* match h-10 class */
  width: auto;
  margin-right: 2rem; /* match mr-8 class */
  filter: grayscale(90%);
  transition: filter 0.3s ease;
  backface-visibility: hidden; /* Prevent flickering on images */
  transform: translateZ(0); /* Force hardware acceleration */
}

.running-logos img:hover {
  filter: grayscale(0%);
}

.running-logos-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* pastikan isi inner juga satu baris */
}

.running-logos-track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.running-logos-track.paused {
  /* animation-play-state: paused; - no animation on this element */
}

.running-logos-track img {
  height: 40px;
  width: auto;
  margin-right: 2rem;
  object-fit: contain;
}

.running-logos {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  /* animation: scroll-left 20s linear infinite; - replaced with JavaScript */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hover effects for Fitur Unggulan card items */
.notion-card .inline-flex.items-center.rounded-full {
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.notion-card .inline-flex.items-center.rounded-full:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  /* Add a subtle glow effect */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 0 15px rgba(255, 255, 255, 0.2);
}

.notion-card .inline-flex.items-center.rounded-full:hover .text-xl {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Add a subtle background color transition */
.notion-card .inline-flex.items-center.rounded-full.bg-blue-100:hover {
  background-color: #dbeafe;
}

.notion-card .inline-flex.items-center.rounded-full.bg-green-100:hover {
  background-color: #dcfce7;
}

.notion-card .inline-flex.items-center.rounded-full.bg-purple-100:hover {
  background-color: #ead6fd;
}

.notion-card .inline-flex.items-center.rounded-full.bg-red-100:hover {
  background-color: #fee2e2;
}

.notion-card .inline-flex.items-center.rounded-full.bg-yellow-100:hover {
  background-color: #fef9c3;
}

.notion-card .inline-flex.items-center.rounded-full.bg-gray-100:hover {
  background-color: #f3f4f6;
}

/* Add subtle scaling effect to the entire Fitur Unggulan section on hover */
#fitur-unggulan-section {
  transition: transform 0.3s ease;
}

#fitur-unggulan-section:hover {
  transform: scale(1.01);
}
