/* **************************************** */
/*  Header */
/* **************************************** */
.header {
  display: flex;
  justify-content: space-between;
  height: 9.6rem;

  align-items: center;
}

.logo {
  font-family: "Cardo", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  display: inline-block;
  color: #1e293b;
  text-decoration: none;
}
/* **************************************** */
/*  Navigation */
/* **************************************** */

.nav-container {
  max-width: 120rem;
  margin: 0 auto;
  width: 100%;
}
.nav-wrap {
  padding: 3.2rem 1.6rem;

  position: relative;
  display: flex;
  justify-content: space-between;
}

.links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4.8rem;
}
.main-nav {
  display: flex;
  align-items: center;
}

.nav-link:link,
.nav-link:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: all 0.3s;
  color: #1e293b;
}

.nav-link:hover,
.nav-link:active {
  color: #1e293bc2;
}

/**** mobile ****/
.btn-mobile-nav {
  border: none;
  background-color: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 3.5rem;
  width: 3.5rem;

  color: #1e293b;
}

.icon-mobile-nav[name="close-outline"] {
  display: none;
}

/* Sticky nav */

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  height: 8rem;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 12px 13px -20px #111;
  z-index: 99;
}

.sticky .section_home {
  margin-top: 8rem;
}

/* **************************************** */
/*  Home Section */
/* **************************************** */
.section-home {
  padding: 8rem 0 9.6rem 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
}
.hero-text-box {
  align-self: center;
}
.hero-subtitle {
  text-transform: uppercase;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: #1e293b;
  letter-spacing: 2px;
}
.content {
  font-size: 1.68rem;
  max-width: 60rem;
  margin-bottom: 2rem;
  line-height: 1.55;
  color: #334155;
}

.profile-img {
  max-width: 70%;
  border-radius: 300px 300px 15px 15px;
  margin: 0 auto;
  /* border-radius: 10px; */
}
.btn-dark {
  background-color: rgb(30, 41, 59);
  color: white;
  text-decoration: none;
}
.btn-dark:hover,
.btn-dark:active {
  background-color: #1e293bc2;
}

/* **************************************** */
/*  about Section */
/* **************************************** */
.section-about {
  background-color: #f9f9f9;
  padding: 8rem 0;
}
.about-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 7.2rem;
}

.about-subtitle {
  font-family: "Cardo", sans-serif;
  font-weight: 400;
  font-size: 2.96rem;
  line-height: 1.15;
  margin: 1rem 0 1.3rem 0;
  color: #1e293b;
}
.check-icon {
  height: 3rem;
  width: 3rem;
  color: #1e293b;
}

/* **************************************** */
/*  skills Section */
/* **************************************** */
.section-skills {
  padding: 8rem 0;
}
.skills-heading {
  display: block;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skill-wrap {
  flex: 1 1 calc(20% - 10px);
  /* flex-wrap: wrap; */
  /* 각 아이콘이 한 줄에 5개씩 배치되도록 설정 */
  box-sizing: border-box;
  text-align: center;
  margin: 5px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skill-icon {
  max-width: 100%; /* 아이콘이 부모 요소의 크기에 맞도록 설정 */
  height: auto;
  height: 3.5rem;
  width: 3.5rem;
  opacity: 0.85;
  margin-bottom: 10px;
}
.skill-wrap p {
  font-size: 1.6rem;
  max-width: 50rem;
  margin-bottom: 6.4rem;
  line-height: 1.55;
  color: var(--text2);
}
/* **************************************** */
/*  projects Section */
/* **************************************** */
.section-projects {
  padding: 8rem 0;
  background-color: #f9f9f9;
}

.projects-nav-box {
  display: grid;
  grid-template-columns: repeat(5, 16rem);
  column-gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  margin-top: 5rem;
  column-gap: 4rem;
  row-gap: 10rem;
}

.project-image-wrap {
  max-width: 50rem;
  max-height: 25rem;
  overflow: hidden;
  border-radius: 4px;
  /* margin: 50px auto; */
  margin-bottom: 2rem;
  box-shadow: 2px 8px 8px rgb(227, 227, 227);
  cursor: pointer;
}

.project-image-wrap img {
  width: 100%;

  object-fit: cover;

  transition: all 0.4s;
}

.project-image-wrap:hover img {
  transform: scale(1.1);
}

.project-name {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 5rem;
}

.project-btn {
  font-size: 1.4rem;
  font-weight: 500;
  color: #1e293b;
  border-radius: 5px;
  padding: 10px 16px;
  border: 1px solid #1e293b;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  background-color: #f9f9f9;
}

.project-btn:hover,
.project-btn:active {
  background-color: #1e293bc2;
  color: white;
}
.tools {
  display: flex;
  /* justify-content: space-between; */
}

.tool {
  font-size: 1.2rem;
  max-width: 60rem;
  line-height: 1.55;
  color: #334155;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.project-name {
  margin-bottom: 0.5rem;
}
.project-btn-wrap {
  display: flex;
  column-gap: 3rem;
}

.project-btn {
  margin-right: 2rem;
  background-color: none;
}

.project-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e293b;

  font-family: "Inter", sans-serif;
  cursor: pointer;

  text-decoration: underline;
}

.poster {
  display: flex;
  align-items: center;
}

/* *********** modal ************* */
.modal img {
  max-width: 70rem;
}

.close-modal {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: none;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* -------------------------- */
/* CLASSES TO MAKE MODAL WORK */
.hidden {
  display: none;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 4rem;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 9999;
}
/* -------------------------- */
/* fillter project */

#filterable-cards .project-card.hide {
  display: none;
}

#filter-buttons button.active {
  background-color: #1e293b;
  color: white;
  /* text-decoration: none; */
}

/* **************************************** */
/* contact Section */
/* **************************************** */

.section-contact {
  padding: 8rem 0;
}
.contact-title {
  text-align: left;
}

.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.cta-form label {
  display: block;
  font-size: 1.5rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 1.1rem;
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 0.4rem;
  color: inherit;
  font-size: 1.5rem;
  font-family: inherit;
  margin-bottom: 3.2rem;
}

/* 
#message {
  padding-bottom: 5rem;
} */

.send-message-btn {
  font-size: 2rem;
  color: var(--text1);
  border: initial;
  background-color: initial;
  border-bottom: 2px solid var(--accent);
  padding: 1.3rem 0;
  cursor: pointer;
}

.mail-wrap,
.call-wrap {
  display: flex;
  column-gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
}
.mail,
.call {
  width: 2rem;
  height: 2rem;
  color: #1e293b;
}

.content-mail,
.content-call {
  font-size: 1.68rem;
  max-width: 60rem;
  line-height: 1.55;
  color: #334155;
}
.contact-box {
}

.contact-info {
  margin-top: 12rem;
  width: 100%;
  border-top: 0.1px solid rgb(17, 17, 17);
}

/* **************************************** */
/* footer */
/* **************************************** */

.footer {
  background-color: #f9f9f9;
  padding: 4.8rem 0;
  /* border-top: 0.1px solid rgb(17, 17, 17); */
}

.copyright {
  font-size: 1.2rem;
  display: inline-block;
}

.footer-wrap {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.social-icon {
  font-size: 2rem;

  color: #1e293b;
}

.social-icon:link,
.social-icon:visited {
  text-decoration: none;
  transition: all 0.2s;
}

.social-icon:hover,
.social-icon:active {
  color: #616161;
}
