/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active { max-height: 405px; }

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  background: var(--bg-gradient-onyx);
  border-radius: 20px;
}

.info-content .name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.info-content .title,
.info-content .job {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus { background: var(--bg-gradient-yellow-1); }

.info_more-btn:hover::before,
.info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }

.info_more-btn span { display: none; }

.sidebar-info_more {
  opacity: 1;
  visibility: visible;
  transition: var(--transition-2);
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-info a:hover,
.social-list a:hover,
.navbar a:hover {
  color: var(--orange-yellow-crayola);
  transition: all 0.3s ease;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-info address { font-style: normal; }

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  color: var(--light-gray-70);
  font-size: 18px;
}

.social-item .social-link:hover { color: var(--light-gray); }

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(240, 1%, 17%, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--jet);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2);
  z-index: 5;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

.navbar-link {
  color: var(--light-gray);
  font-size: var(--fs-8);
  padding: 20px 7px;
  transition: color var(--transition-1);
}

.navbar-link:hover,
.navbar-link:focus { color: var(--light-gray-70); }

.navbar-link.active { color: var(--orange-yellow-crayola); }

/*-----------------------------------*\
  #CHATBOT
\*-----------------------------------*/

/* ----------------------------------------------
 * Generated by Animista on 2025-8-4 20:49:44
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation pulsate-fwd
 * ----------------------------------------
 */
@-webkit-keyframes pulsate-fwd {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes pulsate-fwd {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  50% {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

.chatbot-container {
  background: var(--bg-gradient-yellow-2);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.chat-messages {
  height: 500px;
  overflow-y: auto;
  padding: 15px;
  margin-bottom: 15px;
}

.chat-input-area {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--jet);
  border-radius: 8px;
  background: var(--eerie-black-2);
  color: var(--white-2);
}

.chat-send-btn {
  padding: 8px 15px;
  border-radius: 8px;
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  background: var(--vegas-gold);
  animation: pulsate-fwd 2s ease-in-out infinite both;
}

.chat-feedback-btn {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--eerie-black-2);
  color: var(--light-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.chat-feedback-btn:hover {
  background: var(--onyx);
  color: var(--orange-yellow-crayola);
}

/* 챗봇 헤더 스타일 */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.chatbot-toggle {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  border: 2px solid var(--jet);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.chatbot-toggle:hover {
  background: var(--onyx);
  color: var(--white-2);
  border-color: var(--light-gray);
  transform: scale(1.05);
}

.chatbot-toggle ion-icon {
  font-size: 16px;
}

/* 툴팁 스타일 */
.toggle-tooltip {
  position: absolute;
  top: 50%;
  left: calc(11vw + 2px);
  transform: translateY(-50%);
  background: var(--eerie-black-1);
  border: 2px solid var(--jet);
  border-radius: 8px;
  padding: 10px 12px;
  width: 220px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--eerie-black-1);
}

.toggle-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--jet);
}

.toggle-tooltip p {
  margin: 0 0 6px 0;
  color: var(--light-gray);
  font-size: 0.85rem;
  line-height: 1.3;
}

.toggle-tooltip p:last-child {
  margin-bottom: 0;
}

/* 호버 시 툴팁 표시 */
.chatbot-toggle:hover + .toggle-tooltip,
.toggle-tooltip:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(5px);
}

/* 피드백 모달 스타일 */
.feedback-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.feedback-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--eerie-black-1);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--jet);
}

.feedback-header h3 {
  color: var(--white-2);
  margin: 0;
  font-size: 1.2rem;
}

.feedback-close {
  background: none;
  border: none;
  color: var(--light-gray);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feedback-close:hover {
  background: var(--jet);
  color: var(--white-2);
}

.feedback-body {
  padding: 20px;
}

.feedback-body p {
  color: var(--light-gray);
  margin-bottom: 15px;
  line-height: 1.5;
}

#feedbackText {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--jet);
  border-radius: 8px;
  background: var(--eerie-black-2);
  color: var(--white-2);
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
}

#feedbackText:focus {
  outline: none;
  border-color: var(--orange-yellow-crayola);
}

.feedback-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

.feedback-submit,
.feedback-cancel {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feedback-submit {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

.feedback-submit:hover {
  background: var(--vegas-gold);
}

.feedback-cancel {
  background: var(--jet);
  color: var(--light-gray);
}

.feedback-cancel:hover {
  background: var(--onyx);
  color: var(--white-2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.message {
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 8px;
  max-width: 80%;
}

.user-message {
  background: var(--onyx);
  margin-left: auto;
  background-color: var(--orange-yellow-crayola);
  color:  var(--eerie-black-2);
  margin-left: auto;
  margin-right: 10px;
}

.bot-message {
  background: var(--eerie-black-2);
  margin-right: auto;
  background-color: var(--eerie-black-2);
  color: var(--light-gray);
  margin-right: auto;
  margin-left: 10px;
  position: relative;
}

.message-content {
  margin-bottom: 8px;
}

.message-feedback {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.feedback-like,
.feedback-dislike {
  background: none;
  border: 1px solid var(--jet);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feedback-like {
  color: var(--light-gray);
}

.feedback-dislike {
  color: var(--light-gray);
}

.feedback-like:hover {
  background: var(--onyx);
  border-color: var(--light-gray);
  color: var(--white-2);
}

.feedback-dislike:hover {
  background: var(--onyx);
  border-color: var(--light-gray);
  color: var(--white-2);
}

.feedback-like ion-icon,
.feedback-dislike ion-icon {
  font-size: 14px;
}

/* 채팅 메시지 영역의 스크롤바 */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--eerie-black-1);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--vegas-gold);
}

/* 타이핑 효과 스타일 */
.typing-message {
  background: var(--eerie-black-2) !important;
  color: var(--light-gray) !important;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-yellow-crayola);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
} 

/* 프로젝트 그리드 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* 로딩 스피너 */
.loading-spinner {
  text-align: center;
  padding: 2rem;
  margin: 2rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--vegas-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #666;
  font-size: 0.9rem;
}

/* 더 이상 데이터 없음 */
.no-more-data {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

.no-more-data p {
  margin: 0;
  font-size: 0.9rem;
}

/* 프로젝트 아이템 스타일 개선 */
.project-item {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border-gradient-onyx);
  border: 1px solid var(--jet);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(255, 193, 7, 0.1);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 필터 버튼 스타일 */
.filter-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-item button {
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--jet);
  background: var(--border-gradient-onyx);
  color: var(--light-gray);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  position: relative;
  overflow: hidden;
}

.filter-item button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient-yellow-1);
  opacity: 0;
  transition: var(--transition-1);
  z-index: -1;
}

.filter-item button:hover {
  border-color: var(--orange-yellow-crayola);
  color: var(--orange-yellow-crayola);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.filter-item button.active {
  background: var(--orange-yellow-crayola);
  border-color: var(--orange-yellow-crayola);
  color: var(--eerie-black-1);
  font-weight: var(--fw-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-item button.active::before {
  opacity: 1;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .filter-list {
    gap: 0.5rem;
  }
  
  .filter-item button {
    padding: 0.6rem 1.2rem;
    font-size: var(--fs-8);
  }
} 

/*-----------------------------------*\
  #PROJECT MODAL
\*-----------------------------------*/

.project-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--eerie-black-1);
  margin: 5vh auto;
  padding: 3vh;
  border: 1px solid var(--jet);
  border-radius: 15px;
  width: 85%;
  max-width: 70vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--light-gray);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition-1);
}

.close-modal:hover,
.close-modal:focus {
  color: var(--orange-yellow-crayola);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 15px;
}

.modal-img {
  width: 75%;
  height: 50vh;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--jet);
  margin: 0 auto;
  display: block;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
}

.project-details .h3 {
  color: var(--white-2);
  font-size: var(--fs-2);
  font-weight: var(--fw-600);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.project-details .project-category {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  background: var(--onyx);
  padding: 5px 12px;
  border-radius: 8px;
  width: max-content;
}

.project-description,
.project-tech {
  color: var(--light-gray);
}

.project-description .h4,
.project-tech .h4 {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  margin-bottom: 15px;
  letter-spacing: 0.3px;
}

.project-description p {
  line-height: 1.7;
  font-size: var(--fs-6);
  margin-bottom: 15px;
  color: var(--light-gray);
  text-align: left;
  word-spacing: 0.5px;
  letter-spacing: 0.2px;
}

.project-tech ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech li {
  background: var(--onyx);
  color: var(--light-gray);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: var(--fs-8);
  border: 1px solid var(--jet);
  font-weight: var(--fw-500);
  letter-spacing: 0.2px;
}

.project-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-gradient-onyx);
  color: var(--light-gray);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  text-decoration: none;
  border: 1px solid var(--jet);
  transition: var(--transition-1);
}

.project-links a:hover {
  background: var(--bg-gradient-yellow-1);
  color: var(--eerie-black-1);
}

.project-links a ion-icon {
  font-size: 18px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    max-width: 85vw;
    margin: 3vh auto;
  }
  
  .modal-body {
    grid-template-columns: 1fr;
    gap: 2vh;
  }
  
  .modal-img {
    height: 40vh;
    width: 80%;
  }
  
  .project-links {
    flex-direction: column;
  }
} 