/* 폰트 설정 */
@font-face {
    font-family: 'MainFont';
    src: url('fonts/font.ttf') format('truetype');
}

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #00ff88;
    --card-bg: rgba(26, 26, 26, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'MainFont', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

header {
    padding: 20px 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* --- 간격 수정 포인트 --- */

/* 히어로 섹션은 화면을 꽉 채워야 멋지므로 유지 */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

/* 프로젝트 섹션: 위아래 패딩 줄임 */
#portfolio {
    padding: 60px 10%; /* 기존 100px에서 축소 */
    min-height: auto;   /* 화면을 억지로 꽉 채우지 않음 */
}

/* 프로젝트와 컨택트 사이의 거리 대폭 축소 */
#contact {
    padding: 40px 10% 100px 10%; /* 상단 간격을 확 줄이고 하단 여백만 확보 */
    min-height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ----------------------- */

.reveal-text {
    font-size: clamp(3rem, 10vw, 6rem);
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    margin-top: 10px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.highlight {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px; /* 타이틀 아래 간격 축소 */
    position: relative;
    display: inline-block;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.status {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.steam { background: #1b2838; color: #66c0f4; }
.upcoming { background: var(--accent-color); color: #000; }
.ongoing { background: #333; }

.social-links {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.social-item {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.social-item:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    opacity: 0.4;
}