@charset "UTF-8";

/* 웹폰트 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 프리텐다드 폰트 */
/* font-weight: 숫자입력;
100 = Thin
200 = ExtraLight (매우 얇음)
300 = Light (얇음) 
400 = Regular (보통)
500 = Medium (중간)
600 = SemiBold (약간 두꺼움)
700 = Bold (두꺼움) 
800 = ExtraBold (매우 두꺼움)
900 = Black */

::selection {
  background-color: #6366f1;
  color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  font-size: 10px;
}

body {
  font-family: "pretendard";
  font-weight: 200;
  background: #121212;
  color: #fff;
}

/************************************* 상단 *************************************/
header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

/* portfolio */
.side span {
  font-size: 16px;
}

nav .nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav .nav-links a {
  position: relative;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

/************************************* 인트로 *************************************/
main {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
}

.intro-content {
  text-align: center;
  z-index: 1;
}

.greeting {
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  word-break: keep-all;
}

.intro-text {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 30px;
  word-break: keep-all;
}

/* 타이핑 효과 단어 */
.typing-text {
  color: #6366f1;
}

.cursor-blink {
  display: inline-block;
  width: 3px;
  height: 1em; /* 폰트 크기에 맞춰 자동 조절 */
  vertical-align: middle;
  background-color: #fff;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes fadeOutCursor {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.subtitle {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
  letter-spacing: 1px;
  line-height: 1.6;
  word-break: keep-all;
}

/* 링크 */
.social-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-bottom: 60px;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #6366f1;
  transition: all 0.3s;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.social-links a:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* 스크롤 안내 */
.scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.scroll-indicator span {
  display: block;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

/* 화살표 */
.scroll-arrow {
  width: 30px;
  height: 30px;
  font-size: 20px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/************************************* 각 제목 *************************************/
.section-title {
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 60px;
  text-align: center;
}

/************************************* 각 컨테이너 *************************************/
.container {
  max-width: 1400px;
  margin: 0 auto;
}

/************************************* 프로젝트 *************************************/
.projects {
  padding: 120px 30px;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-content {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.project-image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-content:hover .project-image img {
  transform: scale(1.05);
}

/* 프로젝트 제목 */
.project-title {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: #6366f1;
  font-weight: 500;
}

/************************************* 소개 *************************************/
#about {
  padding: 120px 30px;
}

.about-greeting {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 32px;
  line-height: 1.6;
}

.about-desc {
  font-size: 15px;
  font-weight: 300;
  color: rgb(255 255 255 / 70%);
  line-height: 1.9;
  margin-bottom: 60px;
  word-break: keep-all;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-label {
  font-size: 13px;
  color: rgb(255 255 255 / 0.7);
}

.skills-value {
  font-size: 14px;
  color: #ffffff;
}

/************************************* 경험 *************************************/
#Activities {
  padding: 120px 30px;
}

.Activities-list {
  margin: 0 auto;
}

.Activities-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.Activities-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #ffffff;
}

.Activities-course {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #ffffff;
  word-break: keep-all;
}

.Activities-date {
  font-size: 14px;
  color: #ffffff;
  text-align: right;
  letter-spacing: 0.3px;
}

/************************************* 연락 *************************************/
#contact {
  padding: 120px 30px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  text-decoration: none;
}

.contact-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.contact-sub {
  font-size: 13px;
  color: rgb(255 255 255 / 0.7);
  display: block;
}

/************************************* 하단 *************************************/
footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 60px;
  font-size: 14px;
}

/************************************* scroll-top *************************************/
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 15px;
  width: 30px;
  height: 30px;
  font-size: 20px;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    visibility 0.6s;

  /* 화살표 모양 동일하게 */
  padding: 0;
  margin: 0;
  font-family: inherit; /* 폰트 상속 받게 */
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/************************************* 스크롤 reveal *************************************/
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
