@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500|Acorn:400,500,600&display=swap");

@font-face {
  font-family: 'Acorn';
  src: url('Acorn-SemiBold.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Acorn', sans-serif;
  background: #000000 url('x.jpg') center center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #fff;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.card {
  max-width: 380px;
  margin: auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.3), 0 30px 60px rgba(88, 101, 242, 0.2);
  animation: cardAppear 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translate3d(0, 60px, 0) scale(0.8);
    filter: blur(15px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.card[data-state="#about"] { height: 500px; }
.card[data-state="#progress"] { height: 500px; }
.card[data-state="#projects"] { height: 500px; }
.card[data-state="#contact"] { height: 500px; }

.card-header {
  position: relative;
  display: flex;
  height: 220px;
  flex-shrink: 0;
  width: 100%;
  transition: all 0.4s ease;
}

.card-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
  transition: all 0.4s ease;
}

.card-fullname {
  position: absolute;
  bottom: 0;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transform: translate(-50%, -15px);
  left: 50%;
  background: linear-gradient(135deg, #5865F2, #8A2BE2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-jobtitle {
  position: absolute;
  bottom: 0;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translate(-50%, 5px);
  left: 50%;
  color: rgba(255, 255, 255, 0.8);
}

.card-main {
  position: relative;
  flex: 1;
  display: flex;
  padding-top: 10px;
  flex-direction: column;
}

.card-content {
  padding: 25px;
  flex: 1;
}

.card-subtitle {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
  color: #5865F2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-text {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0 0 10px 0;
  font-weight: 400;
  font-family: "Acorn", sans-serif;
}

.card-social {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 25px;
  margin-bottom: 20px;
  gap: 15px;
}

.card-social a {
  color: #fff;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.3);
  font-size: 16px;
  text-decoration: none;
}

.card-social a:hover {
  background: rgba(88, 101, 242, 0.4);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.card-buttons {
  display: flex;
  background: rgba(88, 101, 242, 0.1);
  margin-top: auto;
  position: sticky;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(10px);
}

.card-buttons button {
  flex: 1 1 auto;
  background: none;
  font-size: 12px;
  border: none;
  padding: 15px 5px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  font-family: "Acorn", sans-serif;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-buttons button:hover,
.card-buttons button.is-active {
  color: #fff;
  border-bottom: 3px solid #5865F2;
  background: linear-gradient(to bottom, rgba(88, 101, 242, 0) 0%, rgba(88, 101, 242, 0.2) 100%);
}

.card-section {
  display: none;
  transition: opacity 0.3s ease;
}

.card-section.is-active {
  display: block;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-timeline {
  margin-top: 20px;
  position: relative;
}

.card-timeline::after {
  content: "";
  position: absolute;
  left: 42px;
  width: 2px;
  top: 0;
  height: 100%;
  background: linear-gradient(to bottom, #5865F2, #8A2BE2, #6B4CE6);
}

.card-item {
  position: relative;
  padding: 0 20px 25px 60px;
  z-index: 1;
}

.card-item:last-child {
  padding-bottom: 5px;
}

.card-item::after {
  content: attr(data-year);
  position: absolute;
  top: 0;
  left: 37px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  font-size: 10px;
  text-indent: -35px;
  border: 2px solid #fff;
  background: linear-gradient(to bottom, #8A2BE2, #5865F2);
  color: #5865F2;
  font-weight: bold;
}

.card-item-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: #fff;
}

.card-item-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-family: "Acorn", sans-serif;
}

.card-contact-wrapper {
  margin-top: 20px;
}

.card-contact {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Acorn", sans-serif;
  line-height: 1.6;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-contact + .card-contact {
  margin-top: 12px;
}

.card-contact:hover {
  background: rgba(88, 101, 242, 0.1);
  color: #fff;
}

.card-contact svg {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  color: #5865F2;
  transition: 0.3s;
}

.contact-me {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #5865F2, #8A2BE2);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: "Acorn", sans-serif;
  border-radius: 10px;
  margin-top: 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
  transition: all 0.3s ease;
}

.contact-me:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(88, 101, 242, 0.4);
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.4);
}

.project-title {
  font-size: 16px;
  font-weight: 600;
  color: #5865F2;
  margin-bottom: 8px;
}

.project-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-family: "Acorn", sans-serif;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .card {
    max-width: 350px;
  }

  .card-content {
    padding: 20px;
  }

  .card-avatar {
    width: 100px;
    height: 100px;
  }

  .card-fullname {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .card-buttons button {
    font-size: 10px;
    padding: 12px 3px;
  }

  .card-fullname {
    font-size: 18px;
  }

  .card-jobtitle {
    font-size: 10px;
  }
}

/* Hilangkan efek klik biru untuk tombol dan link */
button, a {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus, button:active,
a:focus, a:active {
  outline: none;
  box-shadow: none;
  background: none;
}

.card-buttons button {
  position: relative;
  overflow: hidden;
}

.card-buttons button::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 0%;
  background: rgba(88, 101, 242, 0.2);
  transition: width 0.3s ease;
  z-index: 0;
}

.card-buttons button:hover::before {
  width: 100%;
}

.card-buttons button,
.card-buttons button.is-active {
  position: relative;
  z-index: 1;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
}

.about-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Acorn", sans-serif;
  transition: 0.3s ease;
}

.about-list li i {
  width: 20px;
  margin-right: 12px;
  color: #5865F2;
  font-size: 14px;
  min-width: 20px;
}

.about-list li span {
  font-weight: 500;
  color: #ffffff;
  margin-left: 5px;
}

.about-box {
  width: 100%;
  display: block;
}

.card-section .card-content {
  width: 100%;
  padding: 25px;
  box-sizing: border-box;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -2;
  top: 0;
  left: 0;
}

.card-section {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-section.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  }
