@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Poppins:wght@400;500&display=swap");

:root {
  --bg-light: #f9fafb;
  --bg-dark: #0f172a;
  --text-light: #0f172a;
  --text-dark: #f9fafb;
  --button-bg: #1e293b;
  --button-hover: #334155;
  --footer-color: #94a3b8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  text-align: center;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* animation: fadeInPage 1s ease-in-out both;
  transition: background 0.3s, color 0.3s; */
}

.content {
  max-width: 600px;
  margin: auto;
}
.section {
  background: #1e293b;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
}
.popup-box {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #334155;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  animation: fadeInOut 4s ease-in-out;
  max-width: 90vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  align-items: center;
}

.popup-text {
  white-space: normal;
  word-break: break-word;
  font-size: 0.75rem;
}

.popup-time {
  width: 100%;
  text-align: center;
  font-size: 0.65rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* Responsif di HP */
@media (max-width: 480px) {
  .popup-box {
    left: 16px;
    right: 16px;
    bottom: 16px;
    font-size: 0.7rem;
    padding: 8px 12px;
  }
  .popup-time {
    font-size: 0.65rem;
  }
}

.popup-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

@media (max-width: 480px) {
  .popup-link {
    align-items: center;
    text-align: center;
  }
}

/* Animasi */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  10%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.dark-mode .link-btn {
  background: #1e293b;
  color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.dark-mode .link-btn:hover {
  background: #334155;
}
.dark-mode .footer {
  color: #cbd5e1;
}
.dark-mode .social-icons img {
  filter: invert(1);
}

@keyframes fadeInPage {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInItem {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInItem 1s forwards;
}
.fade-delay-1 {
  animation-delay: 0.2s;
}
.fade-delay-2 {
  animation-delay: 0.4s;
}
.fade-delay-3 {
  animation-delay: 0.6s;
}
.fade-delay-4 {
  animation-delay: 0.8s;
}
.fade-delay-5 {
  animation-delay: 1s;
}
.fade-delay-6 {
  animation-delay: 1.2s;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 20px auto;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInItem 1s ease-in-out;
}
h1 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 10px 0 5px;
  font-weight: 700;
  color: inherit;
}
p {
  font-size: 1rem;
  color: inherit;
  margin-bottom: 20px;
}
.link-btn {
  display: block;
  background: var(--button-bg);
  color: white;
  text-decoration: none;
  padding: 14px 20px;
  margin: 12px auto;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(55, 65, 81, 0.2);
}
.link-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px) scale(1.02);
}
.theme-toggle {
  margin-top: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 2px solid #94a3b8;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  color: inherit;
}
.theme-toggle:hover {
  background-color: #1e293b;
}
.dark-mode .theme-toggle:hover {
  background-color: #334155;
  color: #f9fafb;
}
.social-icons {
  margin-top: 30px;
}
.social-icons a {
  margin: 0 10px;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s;
}
.social-icons img {
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.2);
  opacity: 1;
}
.footer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--footer-color);
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
  }
}

.link-btn.highlight {
  animation: pulseGlow 2s infinite ease-in-out;
  z-index: 2;
  position: relative;
}
.link-btn.highlight:hover {
  transform: scale(1.04);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.4);
}
