* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    scroll-margin-top: 12vh; /* 스크롤 시 화면 중앙에 오도록 조정 */
}

html {
    scroll-behavior: smooth; /* 부드러운 스크롤 효과 */
}

body {
    font-family: "Noto Sans KR", serif;
}

.sidebar {
    position: fixed;
    width: 250px;
    height: 100vh;
    background-color: #1d1e1f;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
}

.profile {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.profile h3 {
    color: white;
    font-size: 18px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
}

.nav-item:hover {
    background-color: #454d55;
}

.nav-item.active {
    background-color: #454d55;
}

.nav-item i {
    color: white;
    font-size: 20px;
    min-width: 30px;
}

.nav-item span {
    color: white;
    margin-left: 10px;
    display: block;
}

.sidebar.collapsed .nav-item span,
.sidebar.collapsed .profile h3 {
    display: none;
}

.sidebar.collapsed .profile img {
    width: 40px;
    height: 40px;
}

.toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
}

#content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s ease;
}

#content.expanded {
    margin-left: 60px;
}

.about-container {
    width: 1200px;  /* max-width 대신 width 사용 */
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 300px minmax(900px, 1fr); /* 우측 영역 최소 너비 지정 */
    gap: 60px;
}

.profile-section {
    text-align: center;
    width: 300px;  /* 너비 고정 */
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 300px;
    object-fit: cover;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info {
    background-color: #f8f9fa;
    padding: 20px 20px 20px 0px;
    border-radius: 10px;
    margin-top: 20px;
}

.contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.contact-item i {
    font-size: 16px;  /* 아이콘 크기 조정 */
    width: auto;  /* width 제거 */
    color: #2c3e50;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;  /* 아이콘과 텍스트 사이 간격 */
    min-width: 200px;  /* 최소 너비 설정 */
}

.info-section {
    width: 900px;  /* 너비 고정 */
    padding: 20px;
}

.info-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    width: 100%;  /* 너비 100% */
    white-space: pre-line;  /* 줄바꿈 허용 */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ffffff;  /* 배경색 추가 */
    color: #1d1e1f; 
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
}

.social-links i {
    font-size: 40px;  /* 아이콘 크기 조정 */
}

@media (max-width: 1200px) {
    .about-container {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .profile-section,
    .info-section {
        width: 100%;
    }
    
    .info-section {
        padding: 20px 0;
    }
}

/* Skills Section */

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    color: #2c3e50;
    border-top: 1px solid #eaeaea;
}

.skills-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: bold;
}

.skill-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.skill-level {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: bolder;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.skill-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

/* Language/Framework/Library 태그 스타일 */
.tag-java { background-color: #b4d9f3; color: #2c3e50; }
.tag-spring { background-color: #c8e6c9; color: #2c3e50; }
.tag-spring-boot { background-color: #a5d6a7; color: #2c3e50; }
.tag-jpa { background-color: #90caf9; color: #2c3e50; }
.tag-thymeleaf { background-color: #80deea; color: #2c3e50; }
.tag-mysql { background-color: #ffcc80; color: #2c3e50; }

.tag-html { background-color: #ffcdd2; color: #2c3e50; }
.tag-css { background-color: #e1bee7; color: #2c3e50; }
.tag-javascript { background-color: #fff59d; color: #2c3e50; }
.tag-jsp { background-color: #b3e5fc; color: #2c3e50; }
.tag-mybatis { background-color: #c5cae9; color: #2c3e50; }
.tag-jquery { background-color: #90caf9; color: #2c3e50; }

.tag-reactjs { background-color: #b3e5fc; color: #2c3e50; }

/* Tools/Analytics 태그 스타일 */
.tag-postman { background-color: #ffccbc; color: #2c3e50; }
.tag-notion { background-color: #e0e0e0; color: #2c3e50; }
.tag-intellij { background-color: #ffecb3; color: #2c3e50; }
.tag-git { background-color: #ffcdd2; color: #2c3e50; }
.tag-github { background-color: #d1c4e9; color: #2c3e50; }
.tag-gitlab { background-color: #f8bbd0; color: #2c3e50; }

.tag-eclipse { background-color: #c5cae9; color: #2c3e50; }
.tag-figma { background-color: #b2dfdb; color: #2c3e50; }
.tag-vscode { background-color: #90caf9; color: #2c3e50; }
.tag-mysql-workbench { background-color: #ffe0b2; color: #2c3e50; }
.tag-dbeaver { background-color: #c8e6c9; color: #2c3e50; }
.tag-swagger { background-color: #b2ebf2; color: #2c3e50; }
.tag-aws-rds { background-color: #fff59d; color: #2c3e50; }

.tag-bootstrap { background-color: #e1bee7; color: #2c3e50; }
.tag-nginx { background-color: #b2dfdb; color: #2c3e50; }

/* Education */

.education-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    color: #2c3e50;
    border-top: 1px solid #eaeaea;
}

.education-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: bold;
}

.education-item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2c3e50;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.school-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.education-period {
    color: #e67e22;
    font-size: 1rem;
    font-weight: 500;
}

.major {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.education-details {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.education-description {
    margin-top: 10px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.gpa {
    color: #666;
    font-size: 0.95rem;
}

/* Projects Section */

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    color: #2c3e50;
    border-top: 1px solid #eaeaea;
}

.projects-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: bold;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-type {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.project-description {
    margin-bottom: 20px;
}

.project-description ul {
    list-style: none;
    padding-left: 0;
}

.project-description li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.project-description li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c3e50;
}

.link-container{
    padding-left: 1.2rem;
    margin-top: 10px
}

.project-link {
    color: #3498db;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline;
    margin-top: 10px;
    padding-left: 5px;
}

.project-link:hover {
    text-decoration: underline;
}

.tech-stack {
    background-color: #fff8e1;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.tech-stack span {
    display: inline-block;
    margin-right: 10px;
    color: #2c3e50;
}

.project-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.project-button {
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-button:hover {
    background-color: #e9ecef;
}

.notion-icon{
    width: 20px;
}

/* Award Section */

.awards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    color: #2c3e50;
    border-top: 1px solid #eaeaea;
}

.awards-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: bold;
}

.awards-list {
    display: grid;
    gap: 30px;
}

.award-item {
    display: flex;
    gap: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.award-item:hover {
    transform: translateY(-2px);
}

.award-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon i {
    font-size: 24px;
    color: #e67e22;
}

.award-content {
    flex-grow: 1;
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.award-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.award-date {
    color: #666;
    font-size: 0.9rem;
}

.award-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.award-issuer {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

/* 수상 등급에 따른 아이콘 색상 변경 */
.award-gold .award-icon i { color: #f1c40f; }
.award-silver .award-icon i { color: #95a5a6; }
.award-bronze .award-icon i { color: #d35400; }

/* Certificate Section */

.certificates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    color: #2c3e50;
    border-top: 1px solid #eaeaea;
}

.certificates-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: bold;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.certificate-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    display: flex;
    gap: 20px;
}

.certificate-card:hover {
    transform: translateY(-2px);
}

.certificate-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-icon i {
    font-size: 20px;
    color: #2c3e50;
}

.certificate-content {
    flex-grow: 1;
}

.certificate-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.certificate-info {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.certificate-date {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.certificate-issuer {
    color: #2c3e50;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 500;
}

/* 자격증 종류별 아이콘 색상 */
.type-dev .certificate-icon i { color: #3498db; }
.type-security .certificate-icon i { color: #2ecc71; }
.type-network .certificate-icon i { color: #e74c3c; }
.type-database .certificate-icon i { color: #f39c12; }

/* Career Section */

.career-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    color: #2c3e50;
    border-top: 1px solid #eaeaea;
}

.career-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
    font-weight: bold;
}

.career-timeline {
    position: relative;
    padding-left: 50px;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
}

.career-item {
    position: relative;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.career-item::before {
    content: '';
    position: absolute;
    left: -44px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #2c3e50;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #2c3e50;
}

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.company-info {
    flex-grow: 1;
}

.company-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.job-title {
    font-size: 1.1rem;
    color: #34495e;
    margin: 0;
}

.career-period {
    color: #666;
    font-size: 0.95rem;
    white-space: nowrap;
    margin-left: 20px;
}

.career-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.career-details {
    margin-top: 15px;
}

.career-details h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 15px 0 10px 0;
}

.career-details ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.career-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

.career-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2c3e50;
}

.tech-stack {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.tech-stack h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #2c3e50;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    padding: 5px 12px;
    background-color: #e9ecef;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #2c3e50;
}

/* Top Button */

.to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1d1e1f;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;  /* 기본적으로 투명 */
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;  /* z-index 값 증가 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.to-top-btn:hover {
    background-color: #34495e;
    transform: translateY(-3px);
}

.to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

/* 모바일 화면에서의 위치 조정 */
@media (max-width: 768px) {
    .to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-body h2 {
    display: inline;
    font-size: 1.25rem;
    color: #2c3e50;
    margin: 2rem 0 1.2rem 0;
    padding-bottom: 0.5rem;
}

.modal-body p {
    line-height: 1.6;
    color: #4a4a4a;
}

.modal-body ul {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
}

.modal-body li {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 1rem;
    position: relative;
}

/* .modal-body li::before {
    content: "•";
    position: absolute;
    left: -1.2rem;
    color: #2c3e50;
} */

/* Tech Stack 스타일 */
.modal-body h2:last-of-type {
    margin-top: 2.5rem;
}

.modal-body h2 + p,
.modal-body p + p {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    padding-bottom: 0px;
    margin-bottom: 10px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-modal-content{
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1d1e1f;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #999;
}

.close-image {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-image:hover {
    color: #999;
}


/* Updated project button styles */
.project-button.readme-btn {
    background-color: #1d1e1f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.project-button.readme-btn:hover {
    background-color: #34495e;
}

.project-button.readme-btn i {
    font-size: 1rem;
}

blockquote{
    margin-bottom: 10px;
    color: #1d1e1f;
    border-left: .25rem solid #1d1e1f;
    padding: 1rem;
}

.modal-body i {
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    vertical-align: middle;
    font-size: 26px;
}

.deployment-url{
    display: inline;
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2rem 0 1.2rem 0;
    padding-bottom: 0.5rem;
}

.summary-title{
    font-weight: bold;
}

.modal-body hr{
    margin-bottom: 30px;
    margin-top: 20px;
}

.modal-body h1{
    font-size: 25px;
}

.persona-image{
    width: 700px;
    height: 300px;
}

.project-button.image-btn {
    background-color: #1d1e1f;
    color: white;
    border: none;
}

.project-button.image-btn:hover {
    background-color: #34495e;
}

.image-gallery {
    position: relative;
    padding: 0;
}

.image-gallery img {
    width: 100%;
    height: auto;
    display: none;
}

.image-gallery img.active {
    display: block;
}

.image-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
}

.test-account{
    margin-bottom: 40px;
}