:root {
  --body-color: rgb(250, 250, 250);
  --color-white: rgb(255, 255, 255);

  --text-color-second: rgb(68, 68, 68);
  --text-color-third: rgb(67, 133, 255);

  --first-color: rgb(110, 87, 224);
  --first-color-hover: rgb(40, 91, 212);

  --second-color: rgb(0, 201, 255);
  --third-color: rgb(192, 166, 49);
  --first-shadow-color: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--body-color);
}

.container {
  width: 100%;
  position: relative;
}

nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 90px;
  line-height: 90px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding-left: 50px;
  padding-right: 50px;
  transition: 0.3s;
  z-index: 100;
}

.nav-logo {
  position: relative;
}
.nav-logo span {
  position: absolute;
  top: -15px;
  right: -20px;
  font-size: 90px;
  color: var(--text-color-second);
}
.nav-name {
  font-size: 50px;
  font-weight: 600;
  color: var(--text-color-third);
}

.nav-menu,
.nav_menu_list {
  display: flex;
  font-size: 24px;
}

.nav-menu .nav_list {
  list-style: none;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color-second);
  font-weight: 500;
  padding-inline: 10px;
  margin-inline: 10px;
}

.nav-link:hover {
  color: var(--text-color-third);
}

/*MAIN*/
.home_section {
  display: flex;
  justify-content: left;
  align-items: center;
  background-color: var(--body-color);
  padding: 170px 100px 100px;
  gap: 40px;
  opacity: 0;
  transform: translateY(32px);
  animation: fadeInUp 1s 0.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.main-text {
  max-width: 50%;
}

.main-text h1 {
  font-size: 48px;
  margin: 10px 0;
}

.main-text .highlight {
  color: var(--text-color-third);
}

.main-image {
  width: 500px;
}
.main-image img {
  width: 500px;
  max-width: 100%;
  border-radius: 15%;
  padding: 10px;
}

.main-social {
  display: flex;
  justify-content: left;
  gap: 30px;
  margin-top: 30px;
}

.main-social img {
  width: 50px;
  height: 50px;
  filter: grayscale(100%);
  transition: filter 0.1s ease;
}

.main-social img:hover {
  filter: grayscale(0%);
}

/*About*/
.about {
  background-color: #f8f8f8;
  padding: 100px 9vw;
}

.about h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--text-color-second);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.about-left {
  flex: 0.3;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(67, 133, 255, 0.1);
  border-left: 5px solid var(--text-color-third);
  position: relative;
  overflow: visible;
}

.about-left h3::before {
  margin-right: 10px;
  font-size: 24px;
  vertical-align: -3px;
}

.about-left h3 {
  margin-bottom: 15px;
  font-size: 24px;
  color: var(--text-color-second);
}

.about-left p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 20px;
}

.about-left .download {
  background-color: var(--first-color);
  color: white;
  font-weight: bold;
}

.about-right {
  flex: 0.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(67, 133, 255, 0.1);
  border-right: 5px solid var(--text-color-third);
  position: relative;
  overflow: visible;
  padding: 32px 28px;
  margin-top: 0;
  min-width: 320px;
  box-sizing: border-box;
}

.about-image {
  width: 100%;
  margin-top: 80px;
  display: flex;
  gap: 50px;
  justify-content: center;
}

.about-image img {
  max-width: 360px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
  margin-bottom: 20px;
  position: relative;
  padding-left: 22px;
}

.skill-category h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-color-third);
  box-shadow: 0 0 5px var(--text-color-third);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  border: 1.5px solid var(--text-color-third);
  background-color: var(--color-white);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.skills span img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/*project*/
.project-section {
  background: var(--body-color);
  padding: 100px 9vw;
}
.project-section h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 10px;
  color: #383838;
  font-weight: 700;
}
.project-section hr {
  width: 90%;
  margin: 0 auto 40px auto;
  border: 0.5px solid #ccc;
}

.gallery-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 10px;
}

.scroll-btn {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #436cff;
  font-size: 28px;
  border-radius: 50%;
  width: 60px;
  height: 50px;
  box-shadow: 0 2px 8px rgba(67, 133, 255, 0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 2;
}
.scroll-btn:hover {
  background: #436cff;
  color: #fff;
}

.project-gallery {
  display: flex;
  overflow-x: auto;
  gap: 28px;
  padding: 20px 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-gallery::-webkit-scrollbar {
  display: none;
}

.project-card {
  background: white;
  min-width: 350px;
  max-width: 350px;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(70, 120, 255, 0.08);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: grab;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 10px 32px rgba(67, 133, 255, 0.18);
}
.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #eee;
  border-bottom: 1px solid #f0f0f0;
}
.project-content {
  flex: 1;
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-content h3 {
  font-size: 22px;
  color: #323232;
  margin-bottom: 6px;
}
.project-content p {
  font-size: 15px;
  color: #444;
  flex: 1;
}
.project-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.project-links .btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  padding: 7px 16px;
  background: #f6f6f9;
  border: none;
  border-radius: 9px;
  color: #224de0;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 8px rgba(67, 133, 255, 0.07);
}

.project-links .btn.link:hover {
  background: #dae6ff;
  color: #1b3caa;
}

@media (max-width: 800px) {
  .project-card {
    min-width: 270px;
    max-width: 270px;
  }
}

/*Team*/
.team-section {
  background-color: #f8f8f8;
  padding-left: 150px;
  padding-right: 150px;
}

.team-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--text-color-second);
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.team-member {
  display: grid;
  width: 250px;
  transition: width 0.4s ease;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.team-member.expanded {
  width: 300px;
}

.image-wrapper {
  padding: 20px;
  cursor: pointer;
  margin-bottom: -30px;
  text-align: center;
}

.image-wrapper img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.card-core {
  padding: 20px 10px;
  text-align: center;
}

.card-core h3 {
  margin: 5px 0;
}

.card-core p {
  font-size: 14px;
  color: #666;
  margin: 4px 0;
}

.hover-detail {
  flex: 1;
  padding: 20px;
  background-color: #f7f7f7;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0s ease;
  text-align: left;
  display: none;
}

.team-member.expanded .hover-detail {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: grayscale(100%);
  transition: filter 0.1s ease;
}

.social-icons img:hover {
  filter: grayscale(0%);
}

/* 푸터 */
.site-footer {
  margin-top: 100px;
  background-color: #f4f4f4;
  padding: 20px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer .footer-locale {
  color: #000000;
  font-size: 14px;
}

#toTopBtn {
  position: fixed;
  bottom: 38px;
  right: 32px;
  z-index: 999;
  background: var(--color-white);
  color: var(--text-color-third);
  font-size: 28px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(67, 133, 255, 0.14);
  cursor: pointer;
  opacity: 0.82;
  transition: background 0.2s, opacity 0.2s;
  display: none;
}
#toTopBtn:hover {
  background: var(--text-color-third);
  color: var(--color-white);
  opacity: 1;
}

@media (max-width: 1200px) {
  nav {
    padding-left: 20px;
    padding-right: 20px;
  }
  .home_section {
    padding: 130px 40px 60px;
  }
  .about {
    padding: 70px 3vw;
  }
  .project-section {
    padding: 70px 3vw;
  }
  .team-section {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 900px) {
  .home_section {
    flex-direction: column;
    align-items: center;
    padding: 100px 10px 40px;
    gap: 20px;
  }
  .main-image {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .main-image img {
    width: 80vw;
    min-width: 220px;
    max-width: 330px;
  }
  .main-text {
    max-width: 100%;
    text-align: center;
  }
  .about-container {
    flex-direction: column;
    gap: 30px;
  }
  .about-left,
  .about-right {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .about-image {
    width: 50px;
  }
  .team-section {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    height: auto;
    line-height: 1.2;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 16px;
  }
  .nav-name {
    font-size: 32px;
  }
  .nav-menu,
  .nav_menu_list {
    flex-direction: column;
    font-size: 16px;
    align-items: center;
  }
  .home_section {
    padding: 80px 0 24px;
  }
  .main-social {
    margin-left: 30%;
  }
  .main-image img {
    width: 100vw;
    max-width: 220px;
  }
  .about {
    padding: 32px 2vw;
  }
  .about-left {
    margin-left: 25%;
  }
  .about-right {
    width: 200px;
    margin-left: 25%;
  }
  .about-image {
    margin-left: 25%;
    width: 50%;
    height: 50%;
  }
  .project-section {
    padding: 32px 2vw;
  }
  .project-card {
    min-width: 220px;
    max-width: 95vw;
  }
  .gallery-wrapper {
    gap: 2px;
  }
  .scroll-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .team-section {
    padding: 0;
  }
  .team-member {
    width: 92vw;
    max-width: 350px;
    margin: 0 auto 16px auto;
  }
  .about-image img {
    max-width: 98vw;
  }
}
