@import "reset.css";

@keyframes firstFlip {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* 2. 무한 반복용: 앞/뒤 멈췄다 도는 루틴 */
@keyframes loopFlip {
    0%, 40% { transform: rotateY(0deg); }      /* 앞면 멈춤 */
    50%, 90% { transform: rotateY(180deg); }   /* 뒷면 멈춤 */
    100% { transform: rotateY(360deg); }       /* 다시 앞으로 */
}
.portfolioSection {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.portfolioSection .portfolioArticle {
  display: flex;
  gap: 100px;
  height: auto;
}
.portfolioSection .portfolioArticle {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  justify-content: space-between;
}
.portfolioBox {
  display: flex;
  width: 100%;
  gap: 4%;
}
.portfolioBox .picturePart {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  width: 45%;
  height: 100%;
}
.portfolioBox .picturePart div {
  width: 100%;
  height: 345px;
}
.portfolioBox.portfolioOne .picturePart div {
  background: url(/img/matrixCalculator.png) no-repeat;
  background-size: contain;
  background-position: center;
}
.portfolioBox.portfolioTwo .picturePart div {
  background: url(/img/hanoiTowerImage.png) no-repeat;
  background-size: contain;
  background-position: center;
}
.portfolioBox.portfolioThree .picturePart div {
  background: url(/img/kioskPicture.png) no-repeat;
  background-size: contain;
  background-position: center;
}
.portfolioBox.portfolioFour .picturePart div {
  background: url(/img/rhythmPangPangImage.png) no-repeat;
  background-size: contain;
  background-position: center;
}
.portfolioBox.portfolioFive .picturePart div {
  background: url(/img/ourhomeLogo.png) no-repeat;
  background-size: contain;
  background-position: center;
}

.portfolioBox.portfolioSix .picturePart div {
  background: url(/img/clean79Logo.png) no-repeat;
  background-size: contain;
  background-position: center;
}
.portfolioBox.portfolioSeven .picturePart div {
  background: url(/img/handon.jpg) no-repeat;
  background-size: contain;
  background-position: center;
}
.portfolioBox .contentPart {
  display: flex;
  justify-content: center;
  flex-flow: column;
  justify-content: space-between;
  width: 55%;
  height: 100%;
  min-height: 345px;
}
.portfolioBox.portfolioFull .contentPart {
  width: 100%;
}
.portfolioBox .contentPart .contentBox {
  width: 100%;
  display: flex;
  flex-flow: column;
  align-items: flex-start;
}
.portfolioBox .contentPart .contentBox ul {
  width: 100%;
  height: 100%;
}
.portfolioBox .contentPart .contentBox >ul {
  margin-bottom: 20px;
}
.portfolioBox .contentPart .contentBox >ul li {
  font-size: 2.1rem;
  font-weight: 400;
  color: var(--main-color);
  letter-spacing: -0.1rem;
  margin-bottom: 5px;
}
.portfolioBox .contentPart .contentBox >ul li:last-child {
  margin-bottom: 0px;
}
.portfolioBox .contentPart .contentBox >ul li span {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--main-color);
}
.portfolioBox .iconList {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: flex-start;
}
.portfolioBox .iconList li {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  background-size: contain;
}
.portfolioBox .contentPart .contentBox p {
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--sub-color);
  line-height: 160%;
  width: 100%;
}
.portfolioBox .contentPart .contentBox p.conPer {
  font-weight: 600;
  color: #333;
}
.portfolioBox .contentPart .buttonBox {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 10%;
  justify-content: flex-start;
}
.portfolioBox .contentPart .buttonBox a {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  width: 30%;
  height: 35px;
  margin-left: 0%;
  margin-right: 10%;
  background: transparent;
  border-radius: 1rem;
  transition: linear 0.2s all;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 5px;
  max-width: 160px;
  cursor: pointer;
  color: var(--black-color);
}
.portfolioBox .contentPart .buttonBox a:last-child {
  margin-right: 0;
}
.portfolioSection .portfolioArticle .contentPart .buttonBox a i {
  display: none;
  margin-right: 5px;
  opacity: 0;
  font-size: 20px;
}
.portfolioBox .contentPart .buttonBox a span {
  font-size: 1.6rem;
  font-weight: 500;
  color: #111;
  line-height: 100%;
  padding-top: 1px;
}
.portfolioBox .contentPart .buttonBox a:hover {
  transition: linear 0.2s all;
}
.portfolioBox .contentPart .buttonBox a:hover i {
  opacity: 1;
  display: block;
  transition: linear 0.2s all;
  color: var(--white-color);
}
.portfolioBox .contentPart .buttonBox a:hover span {
  transition: linear 0.2s all;
  color: var(--white-color);
  margin-right: 0%;
}
.portfolioBox .contentPart {
  align-items: flex-start;
  width: 55%;
  height: 100%;
}
.portfolioBox .contentPart .contentBox {
  text-align: left;
}
.portfolioBox .contentPart .buttonBox a {
  border: 0.3rem solid #415ca6;
}
.portfolioBox .contentPart .buttonBox a:hover {
  border: 0.3rem solid #0e2460;
  background: #0e2460;
}

.portfolioBox.portfolioTwo .contentPart .buttonBox a {
  border: 0.3rem solid #111;
}
.portfolioBox.portfolioTwo .contentPart .buttonBox a:hover {
  border: 0.3rem solid #111;
  background: #111;
}
.portfolioBox.portfolioThree .contentPart .buttonBox a {
  border: 0.3rem solid #3f3f7c;
}
.portfolioBox.portfolioThree .contentPart .buttonBox a:hover {
  border: 0.3rem solid #3f3f7c;
  background: #3f3f7c;
}
.portfolioBox.portfolioFour .contentPart .buttonBox a {
  border: 0.3rem solid #00b4fb;
}
.portfolioBox.portfolioFour .contentPart .buttonBox a:hover {
  border: 0.3rem solid #00b4fb;
  background: #00b4fb;
}
.portfolioBox.portfolioSix .contentPart .buttonBox a {
  border: 0.3rem solid #00c3dc;
}
.portfolioBox.portfolioSix .contentPart .buttonBox a:hover {
  border: 0.3rem solid #00c3dc;
  background: #00c3dc;
}
.portfolioBox.portfolioSeven .contentPart .buttonBox a {
  border: 0.3rem solid #e6b53c;
}
.portfolioBox.portfolioSeven .contentPart .buttonBox a:hover {
  border: 0.3rem solid #e6b53c;
  background: #e6b53c;
}
.portfolioBox.portfolioSeven .contentPart .buttonBox a:hover i, 
.portfolioBox.portfolioSeven .contentPart .buttonBox a:hover span {
  color: #1c1c1c;
}

.iconMysql {
  background: url("../img/icon/mysql.png") no-repeat;
}
.iconCss {
  background: url("../img/icon/css.png") no-repeat;
}
.iconHtml {
  background: url("../img/icon/html5.webp") no-repeat;
}
.iconPhp {
  background: url("../img/icon/php.png") no-repeat;
}
.iconJava {
  background: url("../img/icon/java.png") no-repeat;
}
.iconNodejs {
  background: url("../img/icon/nodejs.png") no-repeat;
}
.iconSass {
  background: url("../img/icon/sass.png") no-repeat;
}
.iconPug {
  background: url("../img/icon/pug.png") no-repeat;
}
.iconJquery {
  background: url("../img/icon/jquery.png") no-repeat;
}
.iconGit {
  background: url("../img/icon/git.png") no-repeat;
}

    .portfolioBox {
        opacity: 0;
        transform: translateY(100px) rotateX(-20deg);
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        perspective: 1000px;
    }
    .portfolioBox.active {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }