/* Background slideshow animation with smooth transitions */
@keyframes backgroundSlideshow {
  0%,
  10% {
    background-image: url("assets/images/bg.jpg");
  }
  12.5%,
  22.5% {
    background-image: url("assets/images/brownies-bites-cheese.jpg");
  }
  25%,
  35% {
    background-image: url("assets/images/brownies-bites-chocochip.jpg");
  }
  37.5%,
  47.5% {
    background-image: url("assets/images/brownies-bites-almond.jpg");
  }
  50%,
  60% {
    background-image: url("assets/images/brownies-bites-chocoalmond.jpg");
  }
  62.5%,
  72.5% {
    background-image: url("assets/images/brownies-bites-chococheese.jpg");
  }
  75%,
  85% {
    background-image: url("assets/images/brownies-bites-original.jpg");
  }
  87.5%,
  97.5% {
    background-image: url("assets/images/brownies-bites-whitecoco.jpg");
  }
  100% {
    background-image: url("assets/images/bg.jpg");
  }
}

/* Reset dan Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  height: 100vh;
  color: white;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #712f00;
  background-image: url("assets/images/bg.jpg");
  animation: backgroundSlideshow 8s infinite ease-in-out;
  animation-delay: 0.5s;
}

/* Preload all background images to prevent flickering */
body::after {
  content: "";
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  background-image: url("assets/images/bg.jpg"),
    url("assets/images/brownies-bites-cheese.jpg"),
    url("assets/images/brownies-bites-chocochip.jpg"),
    url("assets/images/brownies-bites-almond.jpg"),
    url("assets/images/brownies-bites-chocoalmond.jpg"),
    url("assets/images/brownies-bites-chococheese.jpg"),
    url("assets/images/brownies-bites-original.jpg"),
    url("assets/images/brownies-bites-whitecoco.jpg");
  z-index: -999;
}

/* Overlay untuk background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Container */
.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* Header Section */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.title {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Links Section */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  position: relative;
}

.link-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.link-item:hover::before {
  left: 100%;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.link-item:active {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.1s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.social-icon:active {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: absolute;
  left: 20px;
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.link-text {
  flex: 1;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 480px) {
  .container {
    padding: 30px 16px;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    font-size: 15px;
  }

  .link-item {
    padding: 14px 18px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 25px 12px;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .title {
    font-size: 20px;
  }

  .subtitle {
    font-size: 14px;
  }

  .link-item {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  animation: fadeInUp 0.8s ease-out;
}

.link-item {
  animation: fadeInUp 0.8s ease-out;
}

.link-item:nth-child(1) {
  animation-delay: 0.1s;
}

.link-item:nth-child(2) {
  animation-delay: 0.2s;
}

.link-item:nth-child(3) {
  animation-delay: 0.3s;
}

.link-item:nth-child(4) {
  animation-delay: 0.4s;
}

.link-item:nth-child(5) {
  animation-delay: 0.5s;
}
