@charset "utf-8";
html {
  scroll-behavior: smooth;
}

/* 기본 설정 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #222;
}
a {
  text-decoration: none;
  color: inherit;
}
h1, h2, h3 {
  margin: 0 0 10px;
}
section {
  padding: 100px 20px 0px 20px;
  max-width: 960px;
  margin: auto;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 6px;
  background: #eee;
  color: #333;
  font-weight: bold;
  transition: all 0.3s ease; 
}
.btn.primary {
  background: #007BFF;
  color: white;
}
.btn.secondary {
  background: #f1f1f1;
  border: 1px solid #ccc;
}
.btn-1{
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 6px;
  background: #eee;
  color: #333;
  font-weight: bold;
}
.btn:hover {
  background: #007BFF;
  color: white;
  transform: scale(1.05);
}
.hamburger {
  display: none;
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}
.bar {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: 0.4s;
}

.bar.top {
  top: 0;
}

.bar.middle {
  top: 50%;
  transform: translateY(-50%);
}

.bar.bottom {
  bottom: 0;
}

/* 토글 시 X로 변신 */
.hamburger.active .top {
  transform: rotate(45deg);
  top: 45%;
}

.hamburger.active .middle {
  opacity: 0;
}

.hamburger.active .bottom {
  transform: rotate(-45deg);
  bottom: 45%;
}
#topButton {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #0009;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
}
#topButton:hover {
  transform: translateY(-4px);
  background-color: #000c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 헤더 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo {
  font-weight: bold;
  font-size: 24px;
}

  nav {
    display: none; /* 기본 숨김 */
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    z-index: 1000;
  }

nav a {
  position: relative;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}
nav a:hover {
  color: #007BFF;
}
nav a:hover::after {
  left: 0;
  width: 100%;
}

/* 인트로 */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.profile-img {
  width: 180px;
  border-radius: 50%;
}
.intro-text h1 {
  font-size: 36px;
}
.intro-text p {
  font-size: 20px;
  margin-bottom: 10px;
}

/* 어바웃 */
.about {
  text-align: center;
}
.img-2 > img{
    padding-top: 20px;
    margin-bottom: 20px;
    max-width: 500px;
    max-height: 500px;
    border-radius: 500px;
}
.me{
    margin: 0 auto;
    max-width: 700px;
}
.me > p{
  margin: 0 auto;
  max-width: 570px;
    padding-top: 20px;
}
.skills {
    margin-top: 20px;
    border: solid 1px;
    border-radius: 5px;
    background-color: #ddd2;
}
.skills span {
     line-height: 40px;
  margin: 0 10px;
  font-weight: bold;
  font-size: 18px;
}

/* 프로젝트 */
.projects .project-list {
  display: grid;
    grid-template-columns: 1fr 1fr;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.project-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 calc(33% - 20px);
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.thumbnail-1 {
  background-image: url(../img/red.png);
  background-size: cover;
  height: 220px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-2 {
  background-image: url(../img/print.png);
  background-size: cover;
  height: 220px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-3 {
  background-image: url(../img/13.png);
  background-size: cover;
  height: 250px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-4 {
  background-image: url(../img/redbull.png);
  background-size: cover;
  height: 250px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-5 {
  background-image: url(../img/frame3.png);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-6{
  background-image: url(../img/gro.png);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-7{
  background-image: url(../img/sm.png);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-8{
  background-image: url(../img/boat2.jpg);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-9{
  background-image: url(../img/Untitled-1-01.jpg);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-10{
  background-image: url(../img/ai_brand.png);
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-11{
  background-image: url(../img/north.jpg);
    background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-12{
  background-image: url(../img/speaker.png);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.thumbnail-13{
  background-image: url(../img/vocal.png);
    background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-14{
  background-image: url(../front.png);
    background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.thumbnail-15{
  background-image: url(../img/bord.png);
    background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.plan .project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.plan .project-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
/*비디오 섹션*/
.videoList{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:20px;
}
.videoCard {
  background: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.videoCard a{margin-left: 5px;}
.video-thum-1{
    width: 100%;
    height: 20vw;
}
.video-thum-2{
    background-image: url(../img/mv-1.png);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.video-thum-3{
    background-image: url(../img/vd-1.png);
  background-size: cover;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* 연락처 */
.contact {
  text-align: center;
}
.contact > h2 {
    margin: 0 auto;
  padding-bottom: 20px;
}
.socials {
 margin-left: -25px;
  display: flex;               
  justify-content: center;     
  gap: 40px;                   
  padding-bottom: 40px;
}
.contact .socials a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .socials a:first-child img{
    width: 140px;
}
.contact .socials a > img {
  width: 120px;
    height: 120px;
}
.phone{
    margin-top: 5px;
}
.mail{
    margin-top: 5px;
}

/* 푸터 */
footer {
  text-align: center;
  background: #f1f1f1;
  padding: 20px;
  font-size: 14px;
  color: #555;
}

/* 모바일 반응형 설정 */
@media (max-width: 768px) {
  section {
    padding: 60px 15px 0px 15px;
  }
  .intro {
    flex-direction: column;
    gap: 20px;
  }
  .profile-img {
    width: 120px;
  }
  .intro-text h1 {
    font-size: 28px;
  }
  .intro-text p {
    font-size: 16px;
  }
  .projects .project-list {
    grid-template-columns: 1fr;
  }
  .videoList{
    grid-template-columns: 1fr;
  }
  .videoCard{height: auto;}
  .video-thum-1{
    height: 45vw;
  }
  .project-card {
    flex: 1 1 100%;
  }
  .thumbnail-1 ,.thumbnail-2, .thumbnail-3, .thumbnail-4, .thumbnail-5, .thumbnail-6{
    height: 45vw;;
  }
.plan .project-list {
    grid-template-columns: 1fr;
  }
  .socials {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-left: 0;
  }
  .contact .socials a img {
    width: 100px;
      height: 110px;
  }
  .skills span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 16px;
  }
  .logo{
    margin-left: -10px;
  }
  header nav {
    padding: 10px;
    flex-direction: row; 
  }
  header nav a {
    margin-left: 10px;
    font-size: 14px;
    white-space: nowrap;
  }
  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  .img-2 img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  .me {
    padding: 30px 10px;
    max-width: 90%;
    text-align: left;
  }
  .me h1 {
    font-size: 20px;
  }
  .me p {
    font-size: 14px;
    line-height: 1.6;
  }
  #topButton {
    bottom: 20px;
    right: 20px;
  }
    .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1100;
  }

  nav {
    display: none; /* 기본 숨김 */
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    z-index: 1000;
  }

  nav a {
    margin: 10px 10px 0 0;
    font-size: 16px;
  }

  header {
    flex-direction: row;
    position: relative;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 769px) {
  nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    padding: 0;
  }
}