@import url("basic.css");
@import url("nav.css");
@import url("main.css");
@import url("project.css");
@import url("one-eye.css");
@import url("modal.css");
@import url("contact.css");
@import url("btn.css");

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 테마 토글 버튼 */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  background: var(--accent-color);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* 반응형 디자인 - GitHub 섹션 */
@media (max-width: 768px) {
  .skill-filters {
    overflow-x: auto;
  }
}

/* Footer */
.footer {
  background: var(--accent-color);
  color: var(--bg-primary);
  text-align: center;
  padding: 2rem 0;
}

/* 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  /* 동그란 바 네비게이션 모바일 스타일 */
  .circle-nav {
    bottom: 100px;
    padding: 5px 16px;
  }

  .circle-nav.sticky {
    top: 15px;
    bottom: auto;
  }

  .nav-circle {
    padding: 6px 12px;
  }

  .nav-item-text {
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  .animated-bg svg {
    font-size: 100px;
  }

  .summary-text p {
    font-size: 1rem;
  }

  .modal-content {
    margin: 20% auto;
    padding: 1.5rem;
  }

  .summary-section h3 {
    font-size: 1.5rem;
  }

  .summary-section p {
    font-size: 1rem;
  }

  .summary-icon {
    font-size: 2.5rem;
  }

  .summary-stats {
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .hero-buttons .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    flex: 1;
    max-width: 120px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* 기술 스택 띠 모바일 스타일 */
  .tech-scroll-container {
    padding: 2rem 0;
  }

  .tech-scroll {
    gap: 1.5rem; /* 모바일에서 간격 더 줄임 */
    animation-duration: 15s; /* 모바일에서 더 빠르게 (20s → 15s) */
    margin-right: 1.5rem; /* 모바일에서 세트 간 간격도 조정 */
  }

  .tech-item {
    width: 40px; /* 모바일에서 더 작게 (50px → 40px) */
    height: 40px;
    padding: 6px;
  }

  .tech-item::after {
    font-size: 0.65rem;
    padding: 4px 6px;
    bottom: -25px;
  }

  .tech-item:hover::after {
    opacity: 0;
    visibility: hidden;
  }

  /* 세모 관련 스타일 제거 */
  /* .tech-item::before {
    bottom: -20px;
    border-width: 4px;
  } */

  .tech-item:hover {
    transform: translateY(-5px) scale(1.05);
  }
}

/* 기술 스택 무한 스크롤 띠 */
.tech-scroll-container {
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary); /* About Me 배경색과 맞춤 */
  padding: 3rem 0;
  position: relative;
  white-space: nowrap;
}

.tech-scroll-container::before,
.tech-scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.tech-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.tech-scroll {
  display: inline-flex;
  gap: 2rem; /* 간격 더 줄임 (2.5rem → 2rem) */
  animation: scroll-left 20s linear infinite; /* 속도 빠르게 (30s → 20s) */
  align-items: center;
  margin-right: 2rem; /* 세트 간 간격도 조정 */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tech-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; /* 더 작게 (60px → 50px) */
  height: 50px; /* 더 작게 (60px → 50px) */
  padding: 8px; /* 패딩 줄임 (10px → 8px) */
  background: transparent; /* 배경 제거 */
  border: none; /* 테두리 제거 */
  box-shadow: none; /* 그림자 제거 */
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.tech-item svg {
  width: 100%;
  height: 100%;
  fill: var(--text-secondary);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-10px) scale(1.1);
}

.tech-item:hover svg {
  fill: #f97316;
}

/* 기술 이름 툴팁 */
.tech-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--bg-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 11;
}

/* 세모 제거 */
/* .tech-item::before {
  content: "";
  position: absolute;
  bottom: -29px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent-color);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
} */

.tech-item:hover::after {
  opacity: 1;
  visibility: visible;
}

/* 스크롤 애니메이션 일시정지 호버 효과 제거 */
/* .tech-scroll-container:hover .tech-scroll {
  animation-play-state: paused;
} */

/* 다크 모드에서의 특별한 색상 조정 */
[data-theme="dark"] .tech-item svg {
  fill: var(--text-primary);
}

[data-theme="dark"] .tech-item:hover svg {
  fill: #f97316;
}

.tech-item[data-name="python"]:hover svg,
.tech-tag .tech-item[data-name="python"] svg,
.active .tech-item[data-name="python"] svg {
  fill: #3776ab;
}
.tech-item[data-name="fastapi"]:hover svg,
.tech-tag .tech-item[data-name="fastapi"] svg,
.active .tech-item[data-name="fastapi"] svg {
  fill: #009688;
}
.tech-item[data-name="django"]:hover svg,
.tech-tag .tech-item[data-name="django"] svg,
.active .tech-item[data-name="django"] svg {
  fill: #092e20;
}
.tech-item[data-name="yolo"]:hover svg,
.tech-tag .tech-item[data-name="yolo"] svg,
.active .tech-item[data-name="yolo"] svg {
  fill: #111f68;
}
.tech-item[data-name="openai"]:hover svg,
.tech-tag .tech-item[data-name="openai"] svg,
.active .tech-item[data-name="openai"] svg {
  fill: #412991;
}
.tech-item[data-name="bigquery"]:hover svg,
.tech-tag .tech-item[data-name="bigquery"] svg,
.active .tech-item[data-name="bigquery"] svg {
  fill: #669df6;
}
.tech-item[data-name="flask"]:hover svg,
.tech-tag .tech-item[data-name="flask"] svg,
.active .tech-item[data-name="flask"] svg {
  fill: #3babc3;
}
.tech-item[data-name="redis"]:hover svg,
.tech-tag .tech-item[data-name="redis"] svg,
.active .tech-item[data-name="redis"] svg {
  fill: #ff4438;
}
.tech-item[data-name="notion"]:hover svg,
.tech-tag .tech-item[data-name="notion"] svg,
.active .tech-item[data-name="notion"] svg {
  fill: black;
}
.tech-item[data-name="firebase"]:hover svg,
.tech-tag .tech-item[data-name="firebase"] svg,
.active .tech-item[data-name="firebase"] svg {
  fill: #dd2c00;
}
.tech-item[data-name="front"]:hover svg,
.tech-tag .tech-item[data-name="front"] svg,
.active .tech-item[data-name="front"] svg {
  fill: #f7df1e;
}
.tech-item[data-name="github"]:hover svg,
.tech-tag .tech-item[data-name="github"] svg,
.active .tech-item[data-name="github"] svg {
  fill: black;
}
.tech-item[data-name="etc"]:hover svg,
.tech-tag .tech-item[data-name="etc"] svg,
.active .tech-item[data-name="etc"] svg {
  fill: #f97316;
}

.tech-item[data-name="all"]:hover svg,
.tech-tag .tech-item[data-name="all"] svg,
.active .tech-item[data-name="all"] svg {
  fill: red;
}

/* 다크 모드 */
[data-theme="dark"] .tech-item[data-name="notion"]:hover svg,
[data-theme="dark"] .tech-tag .tech-item[data-name="notion"] svg,
[data-theme="dark"] .active .tech-item[data-name="notion"] svg {
  fill: white;
}
[data-theme="dark"] .tech-item[data-name="github"]:hover svg,
[data-theme="dark"] .tech-tag .tech-item[data-name="github"] svg,
[data-theme="dark"] .active .tech-item[data-name="github"] svg {
  fill: white;
}

/* 라이트 모드 */
[data-theme="light"] .tech-tag .tech-item[data-name="github"] svg,
[data-theme="light"] .tech-tag .tech-item[data-name="notion"] svg,
[data-theme="light"] .active .tech-item[data-name="github"] svg,
[data-theme="light"] .active .tech-item[data-name="notion"] svg {
  fill: black;
}

.project-card .tech-item {
  width: 20px;
  height: 20px;
  padding: 0px;
  cursor: auto;
  &:hover {
    transform: translateY(0px) scale(1.1);
  }
}

.project-card .tech-item:hover::after {
  opacity: 0;
  visibility: hidden;
}

.projects-grid .project-card .project-content .etc-info {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 1200px) {
}

@media (max-width: 1047px) {
  .tech-item:hover::after {
    opacity: 0;
    visibility: hidden;
  }
  .tech-item:hover {
    transform: translateY(0px) scale(1);
  }
  .tech-item::after {
    display: none; /* 툴팁 숨김 */
  }
}

@media (max-width: 536px) {
}

/* 테마 토글 툴팁 말풍선 스타일 */
.theme-tooltip-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1002;
}

.theme-tooltip {
  position: absolute;
  bottom: 5px;
  left: -100px;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: var(--card-bg);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  white-space: nowrap;
  z-index: 10;
  border: 1px solid #eee;
}

.theme-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 200px;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: var(--accent-color) transparent transparent transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

.theme-tooltip.hidden {
  display: none;
}
