/* -------------------------------------------------------------------------- */
/* Reset & Base Styles                                                        */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #F7F5F0; /* 메인 소프트 베이지 */
    color: #333333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* 감성적인 명조체 타이틀 클래스 */
.serif-title {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    color: #2A2825;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #8C8275;
    margin: 15px auto 0;
}

/* -------------------------------------------------------------------------- */
/* GNB (Header Navbar)                                                        */
/* -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(247, 245, 240, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(217, 210, 197, 0.5);
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4A443C;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6E665A;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2A2825;
}

/* -------------------------------------------------------------------------- */
/* Home Section (Hero)                                                        */
/* -------------------------------------------------------------------------- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, #EFECE5, #F7F5F0);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #6E665A;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4A443C;
    color: #F7F5F0;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #2A2825;
    transform: translateY(-2px);
}

/* Home Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s forwards ease-out;
}

.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------- */
/* About Section                                                              */
/* -------------------------------------------------------------------------- */
.about-section {
    background-color: #F7F5F0;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 70px;
}

.info-box {
    background-color: #EFECE5;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(217, 210, 197, 0.4);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box h3 {
    font-size: 1.15rem;
    color: #4A443C;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    color: #6E665A;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Skills */
.subtitle {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-item {
    background: #FFF;
    padding: 20px 25px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.skill-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fa-custom img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #EFECE5;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0; /* JS 애니메이션 작동 전 기본값 0 */
    height: 100%;
    background-color: #A69B8D;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* -------------------------------------------------------------------------- */
/* Design & Motion Section (Cards)                                            */
/* -------------------------------------------------------------------------- */
.bg-light-beige {
    background-color: #EFECE5;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(74, 68, 60, 0.12);
}

.card-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    color: #2A2825;
    margin-bottom: 10px;
}

.card-content .tool {
    font-size: 0.85rem;
    color: #A69B8D;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-content .desc {
    font-size: 0.95rem;
    color: #6E665A;
}

/* -------------------------------------------------------------------------- */
/* Contact Section                                                            */
/* -------------------------------------------------------------------------- */
.contact-section {
    background-color: #2A2825; /* 몰입감과 전문성을 주는 딥 브라운/다크 베이지 */
    color: #EFECE5;
    text-align: center;
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.contact-box h2 {
    color: #F7F5F0;
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.ambition {
    font-size: 1.05rem;
    color: #D9D2C5;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-divider {
    border: 0;
    height: 1px;
    background-color: rgba(217, 210, 197, 0.2);
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 35px;
}

.contact-info li {
    margin: 15px 0;
}

.contact-info a {
    font-size: 1.2rem;
    color: #EFECE5;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

/* 마우스 오버 시 슬며시 오른쪽으로 움직이며 색상 변화 */
.contact-info a:hover {
    color: #F7F5F0;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(247, 245, 240, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #D9D2C5;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #F7F5F0;
    color: #2A2825;
    transform: translateY(-5px);
}

/* -------------------------------------------------------------------------- */
/* Modal Styles                                                               */
/* -------------------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(42, 40, 37, 0.85); /* 따뜻한 다크 톤 투명도 */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    background-color: #F7F5F0;
    max-width: 750px;
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

.modal-content {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.modal-caption {
    padding: 30px;
    background-color: #F7F5F0;
}

.modal-caption h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.modal-tool {
    font-size: 0.85rem;
    color: #A69B8D;
    font-weight: 500;
    margin-bottom: 15px;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #F7F5F0;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #D9D2C5;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 반응형 모바일 구조 조정 */
@media (max-width: 768px) {
    .profile-grid, .skills-grid, .card-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}
.modal-content, #modalVideo {
    width: 100%;
    max-height: 500px;
    object-fit: cover; /* 미디어 비율 유지하며 채우기 */
    display: none; /* 기본적으로 숨김, JS에서 제어 */
}

/* 비디오의 경우 object-fit을 달리하고 싶다면 */
#modalVideo {
    object-fit: contain; /* 비디오 전체가 보이도록 비율 유지 */
    background-color: #000; /* contain 사용 시 여백 색상 */
}