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

:root {
  --bg: #121418;
  --surface: #1d2128;
  --surface-strong: #232933;
  --surface-soft: #2a303a;
  --surface-muted: #313844;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7ebf2;
  --text-muted: #aab3c2;
  --text-soft: #8f98a7;
  --accent: #4f8ff7;
  --accent-strong: #3f7ae0;
  --accent-soft: rgba(79, 143, 247, 0.16);
  --footer-color: #8f98a7;
  --shadow-panel: 0 20px 50px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(
      720px 320px at 50% -10%,
      rgba(79, 143, 247, 0.12),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  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);
  }
}

@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: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin: 8px 0 6px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}
.link-btn {
  display: block;
  background: linear-gradient(180deg, #334458 0%, #2b394c 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 20px;
  margin: 12px auto;
  width: 90%;
  max-width: 400px;
  border: 1px solid rgba(79, 143, 247, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.link-btn:hover {
  background: linear-gradient(180deg, #5c9bff 0%, #4a84ec 100%);
  border-color: rgba(79, 143, 247, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(39, 90, 183, 0.26);
}
.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: 28px;
}
.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.76;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}
.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: translateY(-1px);
  box-shadow: 0 0 32px rgba(79, 143, 247, 0.25);
}
