/* 기본 스타일 */

* {
    box-sizing: border-box;
}

html {
    height:100vh;
}
header {
    font-family: "San Francisco";
    background-color: white;
    padding: 2rem 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
body {
    font-family: "San Francisco";
    margin: 0 auto;
    padding: 0;
    background-color: white;
    min-height:100vh;
    color: black;
}

.container {
	max-width: 1000px; /* 원하는 최대 넓이 */
	margin: 0 auto; /* 화면 중앙 정렬 */
	padding: 0 1rem; /* 여백을 줌 */
}

@font-face {
    font-family: "San Francisco";
    font-weight: 100;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff");
  }

  /** Thin */
  @font-face {
    font-family: "San Francisco";
    font-weight: 200;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-thin-webfont.woff");
  }

  /** Regular */
  @font-face {
    font-family: "San Francisco";
    font-weight: 400;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
  }

  /** Medium */
  @font-face {
    font-family: "San Francisco";
    font-weight: 500;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-medium-webfont.woff");
  }

  /** Semi Bold */
  @font-face {
    font-family: "San Francisco";
    font-weight: 600;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-semibold-webfont.woff");
  }

  /** Bold */
  @font-face {
    font-family: "San Francisco";
    font-weight: 700;
    src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-bold-webfont.woff");
  }

.profile-section {
    display: flex;
    align-items: flex-start;
}

.profile-photo {
    width: 150px;
    height: 150px;
	border: 2px solid lightgrey;
    border-radius: 27px;
    margin-right: 2rem;
    object-fit: cover;
}

.profile-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* 프로필 정보 왼쪽 정렬 */
}

.profile-info h1 {
    margin: 0;
    font-size: 2rem;
}

.profile-info p {
    margin: 0.2rem 0;
    font-size: 1.2rem;
}

.job-title {
    color: #808080;
}

.action-btn {
    background-color: #0a84ff;
    color: #fff;
    border: none;
    padding: 0.5rem 1.7rem;
    margin-top: 2.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 구분선 */
.divider {
    border: 0;
    border-top: 0.1px solid #c7c7c7;
    margin: 0.1rem 0;
}

/* 앱 정보 섹션 */
.app-info {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    background-color: white;
    padding: 1rem;
    margin-top: 1rem;
	max-width: 1000px;
	margin: 0 auto;
}

.info-item {
    margin: 0 1rem;
    text-align: center;
}

.app-info .info-item p {
	color: #878787;
    white-space: nowrap; /* 타이틀 줄바꿈 방지 */
}

.info-item p {
    margin: 0.5rem 0;
}

/* h3에 word-break와 min-height를 적용하여 설명 줄바꿈 및 정렬 개선 */
.info-item h3 {
    word-break: keep-all;
    min-height: 40px; /* 최소 높이 지정 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item b {
    color: #808080;
    font-size: 0.9rem;
    /* font-weight는 b 태그의 기본값을 사용 */
}

/* 세로 구분선 */
.vertical-divider {
    height: 60px; /* 높이 증가 */
    width: 1px;
    margin-left: 2rem;
    margin-right: 2rem;
    background-color: #B3B3B3;
    align-self: center; /* Center the divider vertically */
}

.recents {
	display: block;
}

.news h1{
    font-family: "San Francisco";
    margin-top: 1rem;
}

/* 프로젝트 섹션 */
.projects {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    overflow: visible;
    width: 925px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 3700px; 
}

.project-item {
    display: flex;
    align-items: stretch;
    width: 900px;
    height: 500px;
    margin-right: 25px;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.project-video-wrapper {
    flex: 0 0 50%;
    background-color: #fff;
}

.project-video-wrapper video,
.project-video-wrapper > div {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-info-wrapper {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.project-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 18px;
    margin-right: 20px;
    border: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.project-header h3 {
    font-size: 1.8rem;
    color: #000000;
    margin: 0;
}

.project-short-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.project-links {
    margin-bottom: 20px;
}

.project-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    margin-right: 15px;
    text-decoration: none;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.project-links a:hover {
    background-color: #e9e9e9;
    color: #007aff;
}

.project-links-img {
    width: 24px;
    height: 24px;
}

.project-details {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px;
}

.project-details h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 15px 0 10px 0;
    border-left: 4px solid #0a84ff;
    padding-left: 10px;
}

.project-details h5 {
    font-size: 1rem;
    color: #444;
    margin: 10px 0 5px 0;
}

.project-details ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.project-details li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: background-color 0.2s ease;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.carousel-btn::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}

.carousel-btn.prev {
    left: -22px;
}

.carousel-btn.prev::before {
    transform: translate(-70%, -50%) rotate(-135deg);
}

.carousel-btn.next {
    right: -22px;
}

.carousel-btn.next::before {
    transform: translate(-30%, -50%) rotate(45deg);
}

/* 기술 스택 */
.skills {
    text-align: left;
	max-width: 1000px; /* 최대 너비 설정 */
	margin: 0 auto; /* 가운데 정렬 */
    padding-bottom: 5rem;
}

.skills-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.skills-item {
    margin-right: 10rem;
}

/* 푸터 */
footer {
    background-color: #1c1c1e;
    color: #ffffff;
    text-align: center;
    padding: 1rem;
}

/* 소개 섹션 */
.introduction p {
    text-align: left;
    padding-left: 1rem;
}

/* 미디어 쿼리 */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .profile-info {
        align-items: center;
    }

    .app-info {
        flex-direction: column;
    }

    .vertical-divider {
        display: none;
    }

    .info-item {
        margin: 0.5rem 0;
    }

    .skills-grid {
        flex-direction: column;
    }

    .skills-item {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* 가로 타임라인 (스크롤 없음) */
.horizontal-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center; /* 중앙 정렬 */
    padding: 30px 10px;
    position: relative;
    width: 100%;
}

/* The main horizontal axis line */
.horizontal-timeline::before {
    content: '';
    position: absolute;
    top: 48px; /* 마커 위치에 맞게 조정 */
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 0;
}

.timeline-year-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px; /* 좌우 여백 축소 */
    position: relative;
}

.timeline-year-marker {
    width: 100px; /* 크기 축소 */
    height: 100px; /* 크기 축소 */
    border-radius: 50%;
    background-color: #0a84ff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem; /* 폰트 크기 축소 */
    border: 4px solid white;
    box-shadow: 0 0 0 4px #0a84ff;
    z-index: 1;
    flex-shrink: 0;
}

.timeline-events {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.timeline-event {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 150px; /* 카드 너비 축소 */
}

.event-month {
    font-weight: 600;
    color: #0a84ff;
    margin-bottom: 5px;
    font-size: 0.9rem; /* 폰트 크기 축소 */
}

.timeline-event p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.85rem; /* 폰트 크기 축소 */
    word-break: keep-all; /* 단어 단위로 줄바꿈 */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .horizontal-timeline {
        /* 모바일에서는 세로 스크롤이 더 자연스러우므로, flex-direction을 column으로 변경 */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }
    .horizontal-timeline::before {
        /* 세로 모드에서는 축 숨김 */
        display: none;
    }
    .timeline-year-group {
        padding: 20px 0;
    }
    .timeline-year-marker {
        width: 90px;
        height: 90px;
        font-size: 1.5rem;
    }
    .timeline-event {
        width: 240px;
    }
}

/* 정보 섹션 줄바꿈 수정 */
.info-item h3 {
    word-break: keep-all;
}