@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500|Jost:400,500,600&display=swap");

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: "Jost", sans-serif;
  background: url('../img/bg.jpg') center/cover fixed no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #f5f5f5;
}

.hidden { display: none; }

.profile-card {
  width: 380px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn .8s ease;
}

/* Loader */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-content {
  font-size: 30px;
  font-weight: bold;
  color: #ffcc70;
  font-family: "Jost", sans-serif;
}

/* Tabs */
.card-tabs {
  display: flex;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.card-tabs button {
  flex: 1;
  background: 0;
  border: 0;
  color: rgba(255,255,255,.8);
  padding: 14px 8px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: .3s;
  white-space: nowrap;
}
.card-tabs button.is-active,
.card-tabs button:hover {
  color: #fff;
  border-bottom: 3px solid #ffcc70;
}

/* Header */
.card-header {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 15px;
}
.card-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffcc70;
}
.card-fullname { 
  font-size: 20px; 
  font-weight: 600; 
  color: #fff; 
}
.verified { 
  color: #4fa3ff; 
  font-size: 16px; 
  margin-left: 5px; 
}
.card-jobtitle { 
  font-size: 12px; 
  color: #eaeaea; 
}

/* Content */
.card-content {
  padding: 20px;
  min-height: 200px;
}
.card-section { display: none; }
.card-section.is-active { 
  display: block; 
  animation: fadeIn .5s ease; 
}
.section-title { 
  font-size: 16px; 
  color: #ffcc70; 
  margin-bottom: 10px; 
}

/* Social Icons */
.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-icons a {
  color: #fff;
  font-size: 18px;
  background: rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 50%;
  transition: 0.3s;
}
.social-icons a:hover {
  background: #ffcc70;
  color: #000;
  transform: translateY(-3px);
}

/* Project Card */
.project-card {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 10px;
  margin-top: 10px;
}
.project-title {
  color: #ffcc70;
  font-weight: 600;
  margin-bottom: 5px;
}

/* ============ SKILLS ============ */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.skill-name {
  font-weight: 600;
  color: #fff;
}
.skill-value {
  color: #ffcc70;
  font-weight: 500;
}
.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffcc70, #ffb347);
  border-radius: 999px;
  transition: width 1.2s ease;
}

/* ============ TIMELINE ============ */
.card-timeline {
  margin-top: 10px;
  padding-left: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}
.timeline-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffcc70;
  flex-shrink: 0;
  margin-top: 3px;
  transition: 0.3s;
}
.timeline-item.current .timeline-marker {
  background: #4fa3ff;
  box-shadow: 0 0 10px #4fa3ff, 0 0 20px #4fa3ff, 0 0 30px #4fa3ff;
  animation: glowPulse 1.5s infinite alternate;
}
.timeline-content { flex: 1; }
.timeline-year {
  font-weight: bold;
  color: #ffcc70;
  margin-bottom: 3px;
}
.timeline-item.current .timeline-year { 
  color: #4fa3ff; 
  text-shadow: 0 0 5px #4fa3ff; 
}
.timeline-text {
  font-size: 14px;
  color: #eaeaea;
}

/* Animasi glow */
@keyframes glowPulse {
  from {
    box-shadow: 0 0 10px #4fa3ff, 0 0 20px #4fa3ff;
  }
  to {
    box-shadow: 0 0 15px #4fa3ff, 0 0 30px #4fa3ff;
  }
}

/* Contact */
.contact-info p { margin-bottom: 5px; }
.contact-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #ffcc70;
  color: #000;
  border-radius: 5px;
  text-decoration: none;
  transition: .3s;
}
.contact-btn:hover { background: #ffb347; }

/* Animasi umum */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}