/* GnuBoard 기본 요소 숨김 - 커스텀 디자인 적용 */
#hd,
#ft,
#aside,
#container_title,
.sound_only,
#hd_wrapper,
#hd_pop {
    display: none !important;
}

#wrapper,
#container_wr,
#container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Philosophy Section - 풀스크린 배경 이미지 + 텍스트 오버레이 */
.philosophy-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}

/* 배경 이미지 컨테이너 */
/* 배경 이미지 컨테이너 */
.philosophy-bg,
.philosophy-bg-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.philosophy-bg-static {
    z-index: 0;
}

.philosophy-bg {
    z-index: 1;
}

/* 정적 배경 (흑백) - 항상 전체 보임 */
.philosophy-bg-static .philosophy-bg-left,
.philosophy-bg-static .philosophy-bg-right {
    clip-path: none !important;
    transition: none !important;
}

/* 왼쪽 배경 - 한 장 이미지의 왼쪽 절반 */
.philosophy-bg-left {
    width: calc(50% + 1px);
    /* 1px 겹침으로 틈 방지 */
    height: 100%;
    background-size: 200% 100%;
    /* 이미지를 2배로 확대해서 절반만 보이게 */
    background-position: left center;
    /* 왼쪽 절반 표시 */
    background-repeat: no-repeat;
    /* 마스크 초기 상태 - 위에서 아래로 */
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 오른쪽 배경 - 한 장 이미지의 오른쪽 절반 */
.philosophy-bg-right {
    width: 50%;
    height: 100%;
    margin-left: -1px;
    /* 왼쪽과 겹침 */
    background-size: 200% 100%;
    /* 이미지를 2배로 확대해서 절반만 보이게 */
    background-position: right center;
    /* 오른쪽 절반 표시 */
    background-repeat: no-repeat;
    /* 마스크 초기 상태 - 아래에서 위로 */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 마스크 열림 상태 */
.philosophy-bg-left.revealed,
.philosophy-bg-right.revealed {
    clip-path: inset(0 0 0 0);
}

/* 어두운 오버레이 (텍스트 가독성) */
.philosophy-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* 텍스트 오버레이 - GSAP 타임라인에서 직접 제어 */
.philosophy-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 5%;
    max-width: 1400px;
    opacity: 0;
    /* transform과 transition 제거 - GSAP에서 제어 */
}

.philosophy-title {
    font-family: 'Nanum Gothic', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 100;
    /* Light */
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    /* GSAP에서 개별 제어 */
}

.philosophy-v-line {
    width: 1px;
    height: 60px;
    /* 세로선 길이 (7px은 너무 작아서 디자인적으로 60px 정도로 설정, 7px을 원하시면 height: 7px로 변경) */
    background-color: rgba(255, 255, 255, 0.5);
    margin: 20px auto 30px;
    opacity: 0;
    /* GSAP 연동을 위해 초기값 0 */
}

.philosophy-desc {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 1300px;
    margin: 0 auto;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    /* GSAP에서 개별 제어 */
}

.philosophy-desc .desc-line1 {
    font-size: 24px;
    font-weight: 400;
    display: block;
}

.philosophy-desc .desc-line2 {
    font-size: 18px;
    font-weight: 400;
    display: block;
    margin-top: 20px;
}

.philosophy-desc .desc-line3 {
    font-size: 18px;
    font-weight: 400;
    display: block;
}

/* 반응형 */
@media (max-width: 768px) {
    .philosophy-section {
        height: auto;
        /* min-height: 100vh; */
        padding: 100px 0;
    }

    .philosophy-bg,
    .philosophy-bg-static {
        flex-direction: column;
    }

    .philosophy-bg-left,
    .philosophy-bg-right {
        width: 100%;
        height: 50%;
        background-size: 100% 200%;
        /* 세로 분할을 위해 세로 2배 */
    }

    .philosophy-bg-left {
        background-position: center top;
        /* 상단 절반 */
    }

    .philosophy-bg-right {
        background-position: center bottom;
        /* 하단 절반 */
    }

    .philosophy-title {
        font-size: 1.5rem;
        margin-top: -30px;
        /* Move title up */
        margin-bottom: 10px;
    }

    .philosophy-desc {
        padding: 0 20px;
    }

    .philosophy-desc .desc-line1 {
        font-size: 14px;
        font-weight: 400;
        display: block;
        margin-top: -5px;
        /* Move up slightly */
    }

    .philosophy-desc .desc-line2 {
        font-size: 16px;
        font-weight: 400;
        display: block;
        margin-top: 180px;
        /* Move down significantly to overlap/center in photo */
    }

    .philosophy-desc .desc-line3 {
        font-size: 16px;
        font-weight: 400;
        display: block;
    }
}

/* ========================================
   Marquee Text Section - 스크롤 텍스트
   ======================================== */
.marquee-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bs3.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* 패럴랙스 효과 추가 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marquee-content {
    text-align: center;
}

.marquee-track {
    position: relative;
    white-space: nowrap;
    will-change: transform;
}

.marquee-text {
    display: inline-block;
    font-family: 'Nanum Gothic', sans-serif;
    font-size: 80px;
    font-weight: 300;
    /* Light */
    color: #fff;
    letter-spacing: -2px;
    margin: 0;
    padding-left: 50%;
    /* 가운데에서 시작 */
}

/* 서브텍스트 - 24px, 페이드인 */
.marquee-subtext {
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.marquee-subtext.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 */
@media (max-width: 1200px) {
    .marquee-text {
        font-size: 60px;
    }

    .marquee-subtext {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .marquee-section {
        height: 40vh;
        min-height: 300px;
    }

    .marquee-text {
        font-size: 40px;
    }

    .marquee-subtext {
        font-size: 16px;
    }
}

/* ========================================
   Video Section - 마우스 오버 시 재생
   ======================================== */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    cursor: pointer;
}

/* 비디오 배경 */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

/* 호버 시 비디오 밝아짐 */
.video-section:hover .video-bg {
    opacity: 1;
}

/* 어두운 오버레이 with Dot Pattern */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dot Pattern: 1px dots */
    background-color: transparent;
    /* Background removed as requested */
    background-image: radial-gradient(rgba(0, 0, 0, 0.25) 1px, transparent 1px);
    /* Reduced opacity to 25% */
    background-size: 3px 3px;
    /* Dot spacing */
    z-index: 2;
    transition: background-color 0.5s ease;
    /* Transition only color */
}

/* 호버 시 오버레이 연해짐 (배경색만 변경) */
.video-section:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    /* Darker tint on hover */
}

/* 텍스트 콘텐츠 */
.video-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 5%;
    max-width: 900px;
}

.video-subtitle {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.video-title {
    font-family: 'Nanum Gothic', sans-serif;
    font-size: clamp(2.4rem, 6.4vw, 4.0rem);
    font-weight: 300;
    /* Light */
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.video-desc {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 40px;
}

.video-cta {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.video-section:hover .video-cta {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* 반응형 */
@media (max-width: 768px) {
    .video-section {
        height: auto;
        min-height: 80vh;
        padding: 80px 0;
    }

    .video-title {
        font-size: 2.5rem;
    }

    .video-desc {
        font-size: 1rem;
    }
}

/* ========================================
   Instagram Section
   ======================================== */
.instagram-section {
    position: relative;
    width: 100%;
    padding: 120px 5%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* 배경 이미지 래퍼 */
.instagram-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 배경 이미지 그리드 */
.portfolio-bg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    height: 100%;
    gap: 0;
}

.portfolio-bg-item {
    width: 100%;
    height: 100%;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 어두운 오버레이 */
.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2;
}

.instagram-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 70px;
    border-radius: 8px;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.instagram-icon {
    color: #fff;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.instagram-icon svg {
    width: 36px;
    height: 36px;
    transition: transform 0.3s ease;
}

.instagram-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.instagram-section:hover .instagram-icon svg {
    transform: scale(1.1);
}

.instagram-title {
    font-family: 'Nanum Gothic', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 300;
    /* Light */
    color: #fff;
    margin-bottom: 10px;
}

.instagram-handle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.instagram-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 4px;
}

.instagram-btn {
    display: inline-block;
    width: 180px;
    padding: 12px 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
    text-decoration: none;
    text-align: center;
    border: none;
    background: #fff;
    transition: all 0.3s ease;
}

.instagram-btn:hover {
    background: #ff4c4c;
    color: #fff;
}

/* 반응형 */
@media (max-width: 768px) {
    .instagram-section {
        padding: 80px 5%;
    }

    .instagram-title {
        font-size: 1.8rem;
    }

    .instagram-desc {
        font-size: 0.95rem;
    }
}