/* Noto Sans KR 폰트 로드 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --bg-color: #ffffff;
    --text-color:  #000000;
    --sub-text-color: #666666;
    --font-main: 'Pretendard Variable', Pretendard;
    --header-height: 80px;
    --desktop-padding: 40px;  /* 로고 및 콘텐츠의 왼쪽 고정 여백 기준 (40px) */
    --mobile-padding: 20px;   /* 모바일 우측 여백 기준 (20px) */
    --max-content-width: 1200px; /* PC에서 콘텐츠가 퍼지는 것을 방지하는 최대 너비 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-weight: 500;    
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}

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


/* --------------------------------------
   1. 헤더 (Header)
   -------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--desktop-padding);
    background: rgba(255, 255, 255, 0);
    z-index: 2002;
    transition: background-color 1s ease, color 1s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-right: auto;
    align-self: center;
}

.logo a {
    color: var(--text-color);
}

.site-header.hero-overlay-header {
    background-color: transparent;
    border-bottom: none;
    color: #000000;
    position: absolute;
}

.site-header.hero-overlay-header .logo a {
    color: #000000;
}

.site-header.hero-overlay-header .desktop-nav a {
    color: #000000;
}

.site-header.hero-overlay-header .desktop-nav a:hover,
.site-header.hero-overlay-header .desktop-nav a.active {
    color: rgb(100, 100, 100,0.4);
}

.desktop-nav a {
    margin-left: 30px;
    font-size: 1.5rem;
    font-weight: 500;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #818181;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px; 
    height: 100%;
    z-index: 2001;
    font-size: 0;
    line-height: 0;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    

}

.mobile-menu-btn::before,
.mobile-menu-btn::after {
    content: '';
    position: absolute;
    left: 0;
    width: 80%;
    height: 3px; 
    background-color: var(--text-color);
    transition: transform 0.3s ease, top 0.3s ease, background-color 0.3s ease;
}

.mobile-menu-btn::before {
    top: calc(50% - 5px);
}

.mobile-menu-btn::after {
    top: calc(50% + 3px);
}

.site-header.hero-overlay-header .mobile-menu-btn::before,
.site-header.hero-overlay-header .mobile-menu-btn::after {
    background-color: #000000;

}

.mobile-menu-btn.is-active::before,
.mobile-menu-btn.is-active::after {
    background-color: var(--text-color) !important;
}

.mobile-menu-btn.is-active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn.is-active::after {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* --------------------------------------
   2. 히어로 슬라이더 (Hero Slider)
   -------------------------------------- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000000;
    text-align: center;
}

.slide.current {
    opacity: 1;
}

.hero-text {
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.8;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
}

.scroll-down-arrow .arrow {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid #000000;
    border-top: none;
    border-left: none;
    transform: translateY(-5px) rotate(45deg);
    animation: bounce 2s infinite;
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
        opacity: 0.7;
    }

    40% {
        transform: translateY(-5px) rotate(45deg);
        opacity: 1;
    }

    60% {
        transform: translateY(-2.5px) rotate(45deg);
        opacity: 0.9;
    }
}

/* --------------------------------------
   3. 프로젝트 리스트/그리드
   -------------------------------------- */
.project-list-section {
    max-width: 100%;
    margin: 0 auto;
}

.project-list {
    padding-top: 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    padding: 80px 0;
    max-width: 100%;
    margin: 0 auto;
}

.project-item {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    opacity: 0.75;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.project-image img.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-list .project-info {
    max-width: var(--max-content-width);
    margin-left: var(--desktop-padding);
    margin-right: auto;
    margin-top: 25px;
    margin-bottom: 0;
    padding: 0;
    display: block;
}

.project-list .project-info h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0;
}

.grid-page-content {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 100px;
    max-width: var(auto-fit);
    margin-left: var(--desktop-padding);
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.grid-page-content h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 60px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1.5fr));
    gap: 10px;
}

.project-grid .project-item {
    cursor: pointer;
    overflow: hidden;
    margin-bottom: 20px;
}

.project-grid .project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f4f4f4;
    overflow: hidden;
}

.project-grid .project-info {
    margin-left: 0;
    margin-top: 15px;
    padding: 0;
    display: block;
}

.project-grid .project-info h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
}

/*--------------------------------------
   4. Behance-Style Project Detail Page
   -------------------------------------- */
.project-detail-page {
    padding-top: var(--header-height);
    width: 100%;
}

.project-hero {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #ffffff;
}

.project-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-info-section {
    width: 100%;
    padding-top:  var(--desktop-padding);
    background: rgb(255, 255, 255);
}

.project-info-container {
    max-width: 1080px;
    margin-left:  40px;
    margin-right: auto;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #000000;
}

.project-category {
    font-size: 1rem;
    color: #000000;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 60px;
}

.project-description p {
    margin-bottom: 20px;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid #000000;
}

.project-meta-grid .meta-item {
    display: flex;
    flex-direction: column;
}

.project-meta-grid .meta-label {
    font-size: 1rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.project-meta-grid .meta-value {
    font-size: 1rem;
    color: #000000;
    font-weight: 500;
}

.project-gallery {
    width: 100%;
}

.project-gallery img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.project-gallery img.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.project-footer {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 var(--desktop-padding);
}

.back-link {
    display: inline-block;
    font-size: 1.5rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #5e5e5e;
}

/* --------------------------------------
   5. 표준 페이지 (About, Contact)
   -------------------------------------- */
.standard-page-content {
    padding-top: calc(var(--header-height) + 50px);
    padding-bottom: 100px;
    max-width: var(auto-fit);
    margin-left: var(--desktop-padding);
    margin-right: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 3fr));
    gap: 40px;
    
}

.standard-page-content h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.standard-page-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 50px;
    margin-bottom: 20px;
}

.standard-page-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.standard-page-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.standard-page-content hr {
    border: none;
    border-top: 1px solid #2b2b2b;
    margin: 60px 0;
}

.standard-page-content .team-member p {
    color: var(--sub-text-color);
    font-size: 1.5rem;
    margin-bottom: 20px;

}

/* --------------------------------------
   6. 모바일 메뉴 오버레이 및 푸터
   -------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mobile-nav-overlay a {
    font-size: 1.5rem;
    margin: 15px 0;
    font-weight: 500;
    display: block;
}

footer {
    text-align: left;
    padding: 40px;
    font-size: 1rem;
    color: #646464;
    border-top: 1px solid #ffffff;
}

/* --------------------------------------
   7. 반응형 (Mobile, 768px 이하)
   -------------------------------------- */
@media (max-width: 768px) {
    .site-header {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
        height: var(--header-height);
    }

    .site-header.hero-overlay-header .logo a {
        color: #000000;
    }

    .site-header.hero-overlay-header .mobile-menu-btn::before,
    .site-header.hero-overlay-header .mobile-menu-btn::after {
        background-color: #000000;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1.5rem;
    }

    .project-list {
        padding-top: 60px;
        gap: 50px;
    }

    .project-list .project-info {
        padding-left: 0px var(--mobile-padding);
        padding-right: var(--mobile-padding);
        margin-left: 0;
        margin-right: 0;
    }

    .project-list .project-info h2 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .grid-page-content {
        margin-left: 0;
        margin-right: 0;
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
        max-width: 90%;
        padding-top: calc(var(--header-height) + 30px);
    }

    .grid-page-content h1 {
        font-size: 1.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Behance-style Project Detail Mobile */
    .project-hero {
        height: 50vh;
        min-height: 300px;
    }

    .project-info-container {
        margin-left:  20px;
        margin-right: auto;

    }


    .project-title {
        font-size: 1.5rem;
    }

    .project-category {
        font-size: 1rem;
    }

    .project-description {
        font-size: 1.5rem;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-footer {
        margin: 40px auto;
        padding: 0 var(--mobile-padding);
    }

    .standard-page-content {
        margin-left: 0;
        margin-right: 0;
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
        max-width: 100%;
        padding-top: calc(var(--header-height) + 30px);
    }
    footer {
    text-align: left;
    padding: 20px;
}
}