.chat-container {
  transition: all 0.3s ease;
  transform: translateY(100%);
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.chat-container.open {
  transform: translateY(0);
  opacity: 1;
  height: auto;
}
#chat-window {
  scroll-behavior: smooth;
}
.message {
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html,
body {
  overflow-x: hidden; /* Mencegah scroll horizontal */

  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #0a0f1d, #0f172a);
  color: #e2e8f0;
}
.hero-gradient {
  background: linear-gradient(190deg, #1e3a8a 0%, #0f172a 100%);
}
.project-card {
  transition: all 0.3s ease;
  border: 1px solid #334155;
  background: linear-gradient(145deg, #1e293b, #0f172a);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: #3b82f6;
}
.feature-icon {
  background: rgba(59, 130, 246, 0.1);
}
.tech-badge {
  background: rgba(59, 130, 246, 0.15);
}
.section-title {
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px;
}
.profile-img {
  border: 3px solid #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}
.skill-bar {
  height: 8px;
  border-radius: 4px;
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}
.chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}
.chatbot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px;
  border: 1px solid #334155;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.chatbot-window.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.chatbot-header {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  padding: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message {
  max-width: 80%;
  padding: 12px;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.user-message {
  background: #3b82f6;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bot-message {
  background: #334155;
  color: #e2e8f0;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}
.chatbot-input {
  padding: 16px;
  border-top: 1px solid #334155;
  display: flex;
  gap: 8px;
}
.chatbot-input input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 12px 16px;
  color: white;
  outline: none;
}
.chatbot-input input:focus {
  border-color: #3b82f6;
}
.chatbot-input button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.chatbot-input button:hover {
  background: #2563eb;
}
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px;
  background: #334155;
  border-radius: 12px;
  margin-right: auto;
  width: fit-content;
}
.typing-dot {
  width: 8px;
  height: 8px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}
.certificate-card {
  background: linear-gradient(145deg, #1e293b, #334155);
  border: 1px solid #334155;
  transition: all 0.3s ease;
}
.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.primary {
  color: #3b82f6;
}
.border-primary {
  border-color: #3b82f6;
}
.bg-primary {
  background-color: #3b82f6;
}
.bg-primary\/10 {
  background-color: rgba(59, 130, 246, 0.1);
}

.hero-gradient {
  background: linear-gradient(120deg, #3730a3 0%, #0f172a 100%);
}
.project-card {
  transition: all 0.3s ease;
  border: 1px solid #334155;
  background: linear-gradient(145deg, #1e293b, #0f172a);
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: #4f46e5;
}
.feature-icon {
  background: rgba(79, 70, 229, 0.1);
}
.tech-badge {
  background: rgba(79, 70, 229, 0.15);
}
.section-title {
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #4f46e5;
  border-radius: 3px;
}
.role-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
