*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family:'IBM Plex Mono', ui-monospace, monospace;
    text-decoration: none;
}
body{
    overflow-x: hidden;
    font-family:'IBM Plex Mono', ui-monospace, monospace;
    background: #222;
}
#content {
    padding-top: 0;
}
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    width: 100%;
    max-width: 1200px;     /* ✅ 내용 폭 제한 */
    margin: 0 auto;        /* ✅ 가운데 정렬 */
    padding: 0 20px;       /* ✅ 좌우 여백(이게 핵심) */
}
.hero-header{
  min-height: 100vh;              /* 화면 높이 */
  display: flex;
  align-items: center;            /* 위아래 중앙 */
}
.container .hero-pic{
    width: clamp(300px, 30vw, 600px);
    border-radius: 0%;
    overflow: hidden;
    border: none;
    box-shadow: 5px 7px 25px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}
.hero-pic img{
    max-width: 100%;
    height: auto;
    width: 100%;
    display: block;
    transform: scale(1.02);
    transform-origin: center;
    transition: 0.5s;
}
.hero-pic img:hover{
    transform: scale(1.2);
}
.hero-fixed{
    will-change: transform;
}
.hero-text{
    max-width: 500px;
    display: flex;
    flex-direction: column;
    position: relative; 
}
.hero-text p{
  color: #e5e5e5;
  line-height: 1.6;   /* ✅ 기본적이고 편안한 웹 표준 */
}
.hero-text h5{
    color: #e5e5e5;
    font-size: 14px;
    white-space: nowrap;
}
.hero-text h5 .input{
  display: inline-block;
  width: 14ch;        
  white-space: nowrap;
}
.hero-text h5 .typed{
  display: inline-block;  /* 커서가 텍스트 끝을 따라가게 */
  border-right: 2px solid #89F336;
  animation: blink 0.7s steps(1) infinite;
}
/* Blinking */
@keyframes blink{
  50% { border-color: transparent; }
}
.hero-text h5 span{
    color: #89F336;
    font-size: 16px;
}
.hero-text h1{
    color:#89F336;
    font-size: 3rem;
}
.hero-text p{
    color: #e5e5e5;   
}
.btn-group{
    display: flex;
    flex-wrap: wrap;
    gap: 7px; 
    margin:45px 0;
}
.btn-group .btn{
    border-color: #d5d5d5;
    color: #fff;
    background-color: #333;
    padding: 12px 25px;
    margin: 5px 0;
    margin-right: 0;
    border-radius: 30px;
    border: 2px solid #e5e5e5;
    box-shadow: 0 10px 10px -8px rgb(0 0 0);
}
.btn.active{
    border-color:#89F336;
}
.hero-text .social{
  display: flex;
  gap: 10px;       /* 기존 i의 margin-right 대체 */
  align-items: center;
}
.hero-text .social a,
.hero-text .social a:visited{
  color: #e5e5e5;
}
.hero-text .social i{
    color: #e5e5e5;
    font-size: 18px;
    margin-right: 0;
    transition: color 0.5s, text-shadow 0.5s;
}
.hero-text .social i:hover{
    color:#89F336;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #89F336,
        0 0 20px #89F336,
        0 0 40px #89F336;
    transform: rotate(360deg);
    
}
/* click condition (glow + green) */
.hero-text .social i.active {
    color: #89F336;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #89F336,
        0 0 20px #89F336,
        0 0 40px #89F336;
}

/* 햄버거 버튼 (기본 숨김) */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    color: #111;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}
/* 모바일에서 메뉴를 슬라이드로 변경 */
@media (max-width: 768px) {
    #content .container {
        flex-direction: column !important;
        padding-top: 2rem;
    }
    .menu-toggle {
        display: block;
    }

    .project-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 250px;
        height: 100vh;
        background: #fff;
        border-right: 1px solid #ddd;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 9998;
    }

    .project-menu.active {
        left: 0;
    }

    .portfolio-container {
        padding-top: 60px !important;
        flex-direction: column;
    }
}


/* gallery가 full-screen으로 덮는 경우 피하기: height 조정 */
.gallery {
  /* height: 100vh;  <- 이런게 있으면 제거하거나 min-height로 변경 */
  min-height: 60vh;
}


