/* -----------------------------------
   Asta Sans Font Family
------------------------------------ */
@font-face {
    font-family: "AstaSans";
    src: url("./static/AstaSans-Light.ttf") format("truetype");
    font-weight: 300;
}

@font-face {
    font-family: "AstaSans";
    src: url("./static/AstaSans-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "AstaSans";
    src: url("./static/AstaSans-Medium.ttf") format("truetype");
    font-weight: 500;
}

@font-face {
    font-family: "AstaSans";
    src: url("./static/AstaSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "AstaSans";
    src: url("./static/AstaSans-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "AstaSans";
    src: url("./static/AstaSans-ExtraBold.ttf") format("truetype");
    font-weight: 800;
}

/* -----------------------------------
   기본 설정 & 색 팔레트
------------------------------------ */
:root {
    --bg: #f9f7f3;
    --bg-alt: #ffffff;
    --text: #333;
    --subtext: #555;
    --accent: #b5d8f7;
    --accent-dark: #8fc5f3;
    --card-bg: #ffffff;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --radius-lg: 22px;
}

/* 부드러운 스크롤 */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "AstaSans", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* -----------------------------------
   Hero 영역 (메인 index 전용)
------------------------------------ */

.hero {
    min-height: 100vh;
    padding: 60px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 15px rgba(193, 194, 195, 0.45);
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.88;
    margin-bottom: 26px;
}

/* -----------------------------------
   상단 페이지 네비 (알약 버튼)
------------------------------------ */

.page-nav {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
}

/* 버튼 스타일 */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    border: none;
    color: #1d1d1d;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn.primary {
    background: var(--accent-dark);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(193, 194, 195, 0.45);
    background-color: #8fc5f3;
}

/* -----------------------------------
   공통 페이지 레이아웃
------------------------------------ */

.page {
    min-height: 100vh;
}

.page-header {
    max-width: 750px; /* 컨테이너와 정렬 맞추기 */
    margin: 0 auto;
    padding-top: 20px;
}

.section {
    padding: 60px 16px;
    display: flex;
    justify-content: center;
}

.container {
    background: #ffffff;
    max-width: 750px;
    width: 100%;
    padding: 40px 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
}

/* -----------------------------------
   Projects 카드 레이아웃
------------------------------------ */

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-soft);
}

/* 크리스마스 프로젝트: 텍스트 + 작은 이미지 */
.project-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.project-info {
    flex: 1;
}

/* 오른쪽 썸네일 (작게) */
.project-thumb {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------
   Links 페이지 버튼
------------------------------------ */

.link-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.link-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* -----------------------------------
   메인: 크리스마스 프로젝트 원형 카드 (pill)
------------------------------------ */

.project-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffffffee;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.project-pill:hover {
    transform: translateY(-3px);
    background: rgba(203, 202, 202, 0.06);
    box-shadow: 0 12px 30px rgba(193, 194, 195, 0.45);
}

.pill-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(193, 194, 195, 0.45);
}

.pill-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pill-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pill-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.pill-desc {
    font-size: 0.78rem;
    color: #666;
}

/* -----------------------------------
   Contact 페이지용
------------------------------------ */

.contact-info {
    margin-top: 10px;
    font-weight: 600;
    color: #444;
}

/* -----------------------------------
   Footer
------------------------------------ */

.footer {
    text-align: center;
    padding: 20px 0 40px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* -----------------------------------
   반응형 (모바일 대응)
------------------------------------ */

@media (max-width: 600px) {
    .project-card {
        flex-direction: column;
        align-items: center; /* 중앙 정렬 */
        text-align: center; /* 텍스트도 중앙 */
        gap: 20px;
    }

    .project-thumb {
        width: 190px;   /* 모바일에서 크게 */
        height: 190px;
        border-radius: 18px;
    }

    .page-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-pill {
        width: 100%;
        justify-content: flex-start;
    }
}