@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;700&display=swap');

/* =========================================
   [사용자 설정 트윅]
   여기서 숫자를 바꾸면 디자인이 변경됩니다.
   ========================================= */
:root {
    /* [1. 첫 번째 그림 (Stock Analysis) 크기 조절] */
    --stock-image-width: 600px;
    --stock-image-height: 233px;

    /* [2. 나머지 그림들 (Resume, Thesis) 크기 조절] */
    --image-width: 600px;
    --image-height: 233px;

    /* [3. 간격 및 색상 조절] */
    --section-padding: 80px;
    /* 섹션 위아래 여백 */
    --content-gap: 80px;
    /* 글자와 그림 사이 간격 */
    --bg-dark: #333333;
    /* 어두운 배경 */
    --bg-header: #555555;
    /* 헤더 배경 */
    --text-color: #bbbbbb;
    /* 글자 색상 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Arimo', 'Helvetica Neue', sans-serif;
    background-color: #2b2b2b;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

/* ========== PAGE SECTION ========== */
.page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ... (lines 53-145 unchanged) ... */

/* [1번 그림 전용 규칙] Stock Analysis */
/* nth-child(2)인 이유는 보통 헤더가 1번째 section이기 때문입니다. */
.page-content:nth-of-type(1) .image-block img,
section.page-content:first-of-type .image-block img {
    /* 명시적으로 첫 번째 콘텐츠 섹션 지정 */
    width: var(--stock-image-width);
    height: var(--stock-image-height);
}

/* Backgrounds */

/* ========== PAGE 1: HEADER ========== */
.page-header {
    background-color: var(--bg-header);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.page-header .subtitle {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: 2px;
    position: static;
}

.page-header .title-wrapper {
    display: block;
}

.page-header .title-image {
    max-width: 800px;
    width: 90%;
    height: auto;
    position: static;
}

/* ========== CONTENT SECTIONS ========== */
.page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) 5%;
    min-height: 80vh;
}

.page-content .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    gap: var(--content-gap);
}

/* Text Block */
.text-block {
    flex: 1;
    max-width: 45%;
}

.text-block .icon {
    font-size: 48px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.text-block h2 {
    font-size: 64px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 30px;
    color: var(--text-color);
}

.text-block p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-color);
}

/* Image Block */
.image-block {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 기본 이미지 스타일 (나머지 그림들에 적용) */
.image-block img {
    width: var(--image-width);
    height: var(--image-height);
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* [1번 그림 전용 규칙] Stock Analysis */
/* nth-child(2)인 이유는 보통 헤더가 1번째 section이기 때문입니다. */
.page-content:nth-of-type(1) .image-block img,
section.page-content:first-of-type .image-block img {
    /* 명시적으로 첫 번째 콘텐츠 섹션 지정 */
    width: var(--stock-image-width);
    height: var(--stock-image-height);
}

/* OVERLAY IMAGE STYLE */
.overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    /* Center and tilt */
    width: 250px !important;
    /* Slightly larger for better visibility */
    height: auto !important;
    z-index: 100;
    /* Ensure on top */
    max-width: none !important;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Button Style */
.btn-visit {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 32px;
    /* Larger padding */
    background-color: #555555;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    /* Larger font */
    font-weight: bold;
    border-radius: 8px;
    /* Slightly more rounded */
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-visit:hover {
    background-color: #777777;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Backgrounds */
.bg-dark {
    background-color: var(--bg-dark);
}

.bg-light {
    background-color: #f5f5f5;
}

/* ========== OUR VISION SECTION ========== */
.page-vision {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding) 5%;
    min-height: 80vh;
}

.page-vision .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    width: 100%;
    gap: 60px;
}

.page-vision .left-col {
    flex: 1;
}

.page-vision .left-col .icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.page-vision .vision-title-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.page-vision .left-col p {
    font-size: 16px;
    line-height: 1.6;
    color: #888888;
    max-width: 400px;
}

.page-vision .right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 30px;
    padding-top: 60px;
}

.page-vision .right-col h3 {
    font-size: 72px;
    font-weight: 400;
    text-transform: uppercase;
    color: #cccccc;
    text-align: right;
    line-height: 1;
}

/* ========== FOOTER ========== */
.page-footer {
    background-color: #2b2b2b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 50vh;
}

.page-footer h2 {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.page-footer p {
    font-size: 18px;
    color: #888888;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {

    .page-content .container,
    .page-vision .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        /* Adjust gap for mobile */
    }

    .text-block,
    .image-block {
        max-width: 100%;
        width: 100%;
        /* Ensure full width */
    }

    /* Force reset for ALL images including the first one */
    .image-block img,
    .page-content:nth-of-type(1) .image-block img,
    section.page-content:first-of-type .image-block img {
        width: 100% !important;
        height: 250px !important;
        /* Fixed height for consistency */
        max-width: 500px;
        aspect-ratio: auto;
        object-fit: cover;
        /* Fill the area */
        margin: 0 auto;
        border-radius: 8px;
    }

    /* Adjust text sizes for mobile to prevent clipping */
    .text-block h2 {
        font-size: 42px;
        /* Smaller heading */
        word-break: keep-all;
        /* Prevent awkward breaks */
    }

    .text-block p {
        font-size: 16px;
        padding: 0 10px;
        /* Add side padding */
    }

    .page-vision .right-col {
        align-items: center;
        padding-top: 30px;
    }

    .page-vision .right-col h3 {
        text-align: center;
        font-size: 48px;
        /* Smaller vision title */
    }

    .page-header .title-image {
        max-width: 90%;
    }
}