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

/*----------body----------*/
body {
  margin: 0;
  background-color: #0d0d0d;
  font-family: "Pretendard", sans-serif;
}

.texture-overlay {
  position: fixed;
  background-color: #0d0d0d;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('texture.jpg');
  background-size: cover;
  background-blend-mode: color-dodge;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
  z-index: 10;
}
/*----------body----------*/


/*----------header----------*/
.main-header {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 24px 40px;
  gap: 64px;
  flex: 0 0 var(--header-h)
}

.logo svg,
.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.navi ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navi a {
  text-decoration: none;
  color: #646464;
  font-size: 24px;
  font-weight: 400;
}

.navi a.active {
  color: #ffffff;
}
/*----------header----------*/


/*----------main----------*/
.site {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.site-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1 1 auto;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: center;
  justify-content: flex-start;
  padding: 40px;
  gap: 24px;
  z-index: 100;
}
/*----------main----------*/


/*----------profile----------*/
.profile{
  width: 200px;
  height: 200px;
  border-radius: 9999px;
}
/*----------profile----------*/


/*----------projects----------*/
.projects-navi {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/*project filter*/
.projects-filter {
  display: flex;
  margin-left: auto;
  margin-right: 136px;
}

.projects-filter ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.projects-filter a {
  text-decoration: none;
  color: #646464;
  font-size: 20px;
  font-weight: 400;
}

.projects-filter a.active, p {
  color: #ffffff;
}

/*project content*/
.portfolio-grid{ 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  justify-content: center;
  gap: 12px;
}

.portfolio-item {
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: calc(2 * 420px + 1 * 12px);
  }
}
@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  align-items: flex-start;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  padding: 24px;
  gap: 2px;
  z-index: 2;
}

.portfolio-content p {
  font-weight: 400;
  font-size: 14px;
  opacity: 0.75;
}

.portfolio-content span {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  margin-top: 12px;
  font-size: 10px;
  border: #ffffff solid 1px;
}

.portfolio-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
  z-index: 1;
}

.portfolio-item.hide {
  display: none;
}
/*----------projects----------*/

/* PDF 모달 */
.modal {
  display: none;
  position: fixed;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
}

.modal.active {
  display: flex;
  opacity: 1;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #2b2b2b;
  width: 100%;
  max-width: 900px;
  height: 80vh;
  overflow-y: auto;
  position: relative;
}

.top-modal {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 900px;
}

.close-btn {
  position: relative;
  background: rgba(0, 0, 0, 0);
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.pdf-container {
  width: 100%;
  background-color: #2b2b2b;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

.pdf-container canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/*contact*/
.contact-area {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 40px;
}

.my-address {
  display: flex;
  flex-direction: column;
  flex: 0 0 50%;
  gap: 24px;
}

.my-address p{
  color:#ffffff;
  font-weight: 400;
  font-size: 14px;
}

.contact-icons i {
  font-size: 18px;
  color: #ffffff;
  margin-right: 8px;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.form-group label {
  color:#ffffff;
}

.form-group input {
  all: unset;
  border-bottom: #646464 solid 2px ;
  width: 100%;
  height: 32px;
  color: #ffffff;
}

.form-group input:focus,
textarea:focus {
  border-bottom: #ffffff solid 2px ;
  transition: all 0.3s;
}

.form-group textarea {
  all: unset;
  border-bottom: #646464 solid 2px ;
  width: 100%;
  min-height: 80px;
  resize: vertical;
  color: #ffffff;
}

.submit-btn {
  display: flex;
  margin-left: auto;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border: none;
  color:black;
  padding: 16px 24px;
}

@media (max-width: 768px) {
  .contact-area {
    flex-direction: column;
  }
  
  .my-address {
    flex: 1;
  }
}

.name-tag h2 {
  color: #ffffff;
}