:root {
  --bg-color: #0D0D17;
  --accent-color: #A1A1FF;
  --grad-color: #181829;
  --text-color: #f3f4ff;
}

* {
  text-decoration: none;
  margin: 0;
  padding: 0;
}

body, html, #app {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
  font-size: 25px;
  scrollbar-width: none;
}

/* Header / Navbar */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 50px;
  height: 37px;
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav {
  list-style: none;
  display: flex;
  gap: 25px;
}

header nav a {
  color: var(--text-color);
  font-size: 17px;
  transition: color 0.3s ease;
  cursor: pointer;
}

header nav a:hover {
  color: var(--accent-color);
}

nav a.active {
  color: var(--accent-color);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #A1A1FF,
    transparent
  );
  background-size: 200% auto;
  animation: glowline 2s linear infinite alternate;
  pointer-events: none;
  border-radius: 3px 3px 0 0;
  filter: drop-shadow(0 0 6px #A1A1FFcc) drop-shadow(0 0 12px #A1A1FF88);
  opacity: 0.6;
}

@keyframes glowline {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

/* Sections */
main {
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 1rem;
}

main p {
  font-size: 25px;
  line-height: 1.6;
  color: var(--text-color);
}

.section {
  min-height: 40vh;
  padding: 2rem 1rem;
  scroll-margin-top: 60px;
}

.section h1, .section h4{
  color: var(--accent-color);
  margin-bottom: 1rem;
}

#home {
  text-align: center;
  font-size: 27px;
  padding-bottom: 6rem;
}

#home img {
  max-width: 500px;
  width: 80%;
  height: auto;
  margin-top: 3rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(161, 161, 255, 0.3);
  animation: spin 6s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#about {
  background: rgba(161, 161, 255, 0.05);
  border-left: 4px solid var(--accent-color);
  font-size: 25px;
}

#about a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Projects Section */
#projects {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background: #1a1a28;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(161, 161, 255, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(161, 161, 255, 0.6);
  border-color: var(--accent-color);
  background: #222236;
}

.project-content {
  text-align: center;
}

.project-content h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 1rem;
  opacity: 0.85;
}

#wallet {
  font-size: 25px;
  text-align: center;
  background: #12121d;
  border-radius: 12px;
  padding: 1rem 0 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 4px 15px rgba(161, 161, 255, 0.2);
}

#wallet h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

#wallet img {
  display: block;
  margin: 1rem auto;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(161, 161, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#wallet img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(161, 161, 255, 0.5);
}

.address-container {
  display: inline-flex;
  align-items: flex-start;
  background: #1a1a28;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  gap: 8px;
  margin-top: 0.5rem;
}

.address-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.address-label {
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 2px;
}

.copy-address {
  font-family: monospace;
  font-size: 0.95rem;
  color: #ddd;
  user-select: all;
}

.copy-btn {
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 1rem;
  transition: transform 0.2s ease;
  margin-top: 6px;
}

.copy-btn:hover {
  transform: scale(1.2);
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1e293b;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  min-width: 250px;
  max-width: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #2ecc71;
}

.toast-title {
  font-weight: bold;
  font-size: 1rem;
  margin: 0;
  color: #2ecc71;
}

.toast-desc {
  font-size: 0.9rem;
  margin: 4px 0 0 0;
  color: #ddd;
}

.slide-left-enter-active,
.slide-left-leave-active {
  transition: all 0.3s ease;
}

.slide-left-enter-from {
  opacity: 0;
  transform: translateX(120%);
}

.slide-left-leave-to {
  opacity: 0;
  transform: translateX(120%);
}

.toast {
  position: fixed;
  top: 20px;
  right: -350px;
  background: #1e293b;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  min-width: 250px;
  max-width: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-left: 5px solid #2ecc71;
  transition: right 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.toast.show {
  right: 20px;
  opacity: 1;
}

.toast.hidden {
  right: -350px;
  opacity: 0;
}

/* Footer */
footer {
    background-color: var(--bg-color);
    color: #f4f4f4;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #A1A1FF,
    transparent
  );
  background-size: 200% auto;
  animation: glowline 2s linear infinite alternate;
  pointer-events: none;
  border-radius: 3px 3px 0 0;
  filter: drop-shadow(0 0 6px #A1A1FFcc) drop-shadow(0 0 12px #A1A1FF88);
  opacity: 0.6;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Responsive styles */
@media (max-width: 600px) {
  /* Navbar */
  header {
    padding: 15px 15px;
  }

  header nav {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  header nav a {
    font-size: 27px;
    padding: 5px 0;
  }

  /* Main Content */
  main {
    margin: 0.5rem;
    padding: 0 0.5rem;
  }

  .section {
    padding: 1.5rem 0.5rem;
    min-height: auto;
  }

  #home {
    font-size: 20px;
    padding-bottom: 3rem;
  }

  #home img {
    max-width: 90%;
    margin-top: 1.5rem;
  }

  #about {
    font-size: 18px;
    padding: 1rem;
    border-left-width: 3px;
  }

#wallet {
  padding: 1rem;
  margin: 0 auto;
  width: 95%;
  max-width: 500px; /* biar pas di layar besar */
  text-align: center;
  background: #12121d;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(161, 161, 255, 0.2);
  box-sizing: border-box;
}

#wallet img {
  display: block;
  max-width: 200px;
  margin: 0.5rem auto 1rem auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(161, 161, 255, 0.3);
}

.address-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 0.8rem;
  margin: 0 auto;
  width: 100%;
  max-width: 100%; /* pastikan tidak overflow */
  background: #1a1a28;
  border-radius: 8px;
  box-sizing: border-box;
}

.address-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.copy-address {
  font-family: monospace;
  font-size: 0.95rem;
  word-break: break-all;
  text-align: center;
  color: #ddd;
}

.copy-btn {
  margin-top: 4px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: transform 0.2s ease;
}

.copy-btn:hover {
  transform: scale(1.2);
}

  /* Toast Notification */
  .toast {
    right: 10px;
    left: 10px;
    max-width: unset;
    min-width: auto;
    text-align: center;
    font-size: 0.9rem;
  }

  .toast-title {
    font-size: 0.95rem;
  }

  .toast-desc {
    font-size: 0.8rem;
  }

  /* Footer */
  footer {
    font-size: 0.75rem;
    padding: 10px 5px;
  }
}
