/* 기본 초기화 */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

body {
    overflow-x: hidden;
    /* font-family는 body에 한 번만 선언해도 하위 요소로 상속됩니다 */
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    background: #222;
    color: #e5e5e5;
}

#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; /* 0% 대신 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: transform 0.5s; /* transition 대상 명시 권장 */
}

.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 h1 {
    color: #89F336;
    font-size: 3rem;
}

.hero-text h5 {
    color: #e5e5e5;
    font-size: 15px;
    white-space: nowrap;
}

.hero-text h5 span {
    color: #89F336;
    font-size: 16px;
}

/* 텍스트 타이핑 효과 관련 */
.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;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-text p {
    color: #e5e5e5;
    line-height: 1.6;
    margin-top: 10px; /* 필요 시 간격 추가 */
}

/* 버튼 그룹 */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 45px 0;
}

.btn-group .btn {
    display: inline-block; /* 버튼 정렬을 위해 추가 */
    color: #fff;
    background-color: #333;
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid #e5e5e5;
    box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 1);
    transition: 0.3s;
}

.btn.active {
    border-color: #89F336;
}

/* 소셜 아이콘 */
.hero-text .social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-text .social a {
    color: #e5e5e5;
    transition: 0.3s;
}

.hero-text .social i {
    font-size: 18px;
    transition: color 0.5s, text-shadow 0.5s, transform 0.5s;
}

.hero-text .social i:hover,
.hero-text .social i.active {
    color: #89F336;
    text-shadow: 0 0 5px #fff, 0 0 10px #89F336, 0 0 20px #89F336;
}

.hero-text .social i:hover {
    transform: rotate(360deg);
}

footer {
    text-align: left; /* 기존 스타일 유지 */
    padding: 10px 20px 20px 20px;
    margin: 0 auto;
    width: 100%;
}

/* 추가: 푸터 내 링크들의 기본 색상 */
footer a {
    color: inherit; /* 주변 글자색과 맞춤 */
    text-decoration: none;
    margin-right: 15px; /* 링크 사이 간격 */
    font-size: 0.9em;
    transition: 0.25s; /* 부드러운 효과 */
}

/* 추가: 마우스 올렸을 때 다른 링크들과 똑같은 효과 적용 */
footer a:hover {
    color: #e5e5e5; 
}

/* --- 햄버거 버튼 (수정됨) --- */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    color: #e5e5e5; /* 배경이 어두우므로 밝은 색으로 변경 */
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

html {
    /* 스크롤바가 생겨도 컨텐츠 영역이 줄어들지 않게 공간을 미리 확보 */
    scrollbar-gutter: stable;
    /* 혹은 */
    overflow-y: scroll;
}

/* 모바일 레이아웃 */
@media (max-width: 768px) {
    #content .container {
        flex-direction: column !important;
        padding-top: 2rem;
        gap: 3rem; /* 모바일에서는 간격을 좁히는 것이 좋습니다 */
    }

    .menu-toggle {
        display: block;
    }

    .project-menu {
        position: fixed;
        top: 0;
        left: -300px;
        width: 250px;
        height: 100vh;
        border-right: 1px solid #d3d3d3;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 9998;
    }

    .project-menu.active {
        left: 0;
    }
}

/* 기타 섹션 */
.gallery {
    min-height: 60vh;
}

.legal-content {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

.legal-content p, 
.legal-content li {
    font-size: 0.9rem;
}

