/* =============================
         CONTACT PANEL
============================= */

.contact-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 350px;
  height: 100vh;
  padding: 1.5rem;
  transition: right 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.contact-panel.open {
  right: 0;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#close-contact {
  cursor: pointer;
  font-size: 1.6rem;
  padding: 5px;
}

/* Tabs */
.contact-tabs {
  display: flex;
  margin: 1.5rem 0;
  border-bottom: 1px solid #444;
}

.contact-tabs .tab {
  padding: 0.6rem 1rem;
  cursor: pointer;
  border: none;
  background: none;
  font-weight: 600;
  transition: 0.3s;
}

.contact-tabs .tab.active {
  border-bottom: 2px solid currentColor;
}

/* Tab Content */
.contact-tab-content {
  display: none;
  flex-direction: column;
}

.contact-tab-content.active {
  display: flex;
}

.contact-tab-content input,
.contact-tab-content textarea {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 6px;
}

/* Capsule Output */
#capsule-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  word-wrap: break-word;
  opacity: 0;
  transition: 0.4s;
}

#capsule-output.visible {
  opacity: 1;
}

/* Simple float fade-in animation */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

.portfolio-card.show {
  animation: fadeInUp 0.5s ease;
}
