/* ===========================
   기본 설정
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --secondary-color: #fff;
    --accent-color: #ff6b35;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #999;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 18px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===========================
   헤더 & 네비게이션
   =========================== */
.header {
    position: relative;
    width: 100%;
    padding: 20px 60px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 60px;
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: var(--transition);
    filter: brightness(1) invert(0);
}

.header.scrolled .logo-img {
    height: 100px;
    filter: brightness(1) invert(0);
}

.mobile-menu .logo-img {
    height: 120px;
    filter: brightness(0) invert(1);
}

.footer-logo .logo-img {
    height: 150px;
    filter: brightness(0) invert(1);
}

.nav-desktop ul {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-desktop a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 22px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-desktop a:hover {
    color: var(--accent-color);
}

.nav-desktop a.active {
    color: var(--accent-color);
}

.header.scrolled .nav-desktop a {
    color: var(--primary-color);
    font-size: 20px;
}

.header.scrolled .nav-desktop a.active {
    color: var(--accent-color);
}

.header.scrolled .nav-desktop a:hover {
    color: var(--accent-color);
}

/* 모바일 메뉴 버튼 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
    background: var(--primary-color);
}

/* 기본 상태에서 검은색 유지 */
.header .mobile-menu-btn span {
    background: var(--primary-color);
}

/* 모바일 메뉴 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    z-index: 999;
    transition: var(--transition);
    padding: 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav a {
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

/* ===========================
   히어로 섹션
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 160px;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    transition: transform 0.15s ease-out;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transform: scale(1.12);
    transform-origin: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 80px;
    max-width: 900px;
    padding: 0 24px;
    top: -40px;
    transition: transform 0.1s ease-out;
}

.hero-title {
    font-size: clamp(48px, 7vw, 110px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease both;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 400;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.6s both;
    line-height: 1.6;
}

.scroll-indicator {
    display: none;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--secondary-color);
    animation: scrollDown 2s infinite;
}

/* ===========================
   페이지 히어로 (서브 페이지)
   =========================== */
.page-hero {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--secondary-color);
    text-align: center;
    padding: 140px 20px 100px;
    margin-top: 0;
}

.page-hero-content {
    width: 100%;
    text-align: center;
}

.page-title {
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 900;
    letter-spacing: -3px;
    margin: 0 auto 0;
    text-align: center;
    display: block;
    width: fit-content;
}

.page-subtitle {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0 auto;
    line-height: 1.2;
    text-align: center;
    display: block;
    max-width: 90%;
    padding: 0 20px;
}

/* ===========================
   컨테이너
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===========================
   섹션 공통
   =========================== */
.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

.section-description {
    font-size: clamp(20px, 2.4vw, 26px);
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.5;
    word-break: keep-all;
    word-wrap: break-word;
}

.large-text {
    font-size: clamp(20px, 2.5vw, 30px);
    line-height: 1.5;
    color: var(--text-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    word-break: keep-all;
    word-wrap: break-word;
    letter-spacing: -0.3px;
}

/* ===========================
   소개 섹션
   =========================== */
.intro-section {
    padding: 110px 0;
    background: var(--secondary-color);
    position: relative;
    z-index: 1;
}

/* ===========================
   프로젝트 섹션
   =========================== */
.projects-section {
    background: var(--light-gray);
    position: relative;
    z-index: 1;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.project-item.reverse {
    direction: rtl;
}

.project-item.reverse > * {
    direction: ltr;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-item:hover .project-image video {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: var(--secondary-color);
}

.project-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-subtitle {
    font-size: clamp(18px, 1.8vw, 22px);
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.project-description {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 2;
    color: var(--medium-gray);
}

/* ===========================
   About 페이지
   =========================== */
.about-content {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.about-intro {
    margin-bottom: 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.about-item {
    padding: 0;
    background: var(--secondary-color);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.about-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-item:hover .about-image img {
    transform: scale(1.1);
}

.about-item h3 {
    font-size: 24px;
    margin: 30px 40px 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    word-break: keep-all;
}

.about-item p {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 18px;
    position: relative;
    z-index: 1;
    word-break: keep-all;
    word-wrap: break-word;
    padding: 0 40px 40px;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes rippleExpand {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* 팀 섹션 */
.team-section {
    padding: 100px 0;
    background: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-category {
    padding: 0;
    background: var(--secondary-color);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    word-break: keep-all;
    word-wrap: break-word;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-category:hover .team-image img {
    transform: scale(1.1);
}

.team-category h3 {
    font-size: 20px;
    margin: 30px 30px 15px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
    white-space: nowrap;
    word-break: keep-all;
}

.team-category p {
    color: var(--medium-gray);
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: -0.2px;
    word-break: keep-all;
    padding: 0 30px 30px;
}

/* 클라이언트 섹션 */
.clients-section {
    padding: 100px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.client-item {
    padding: 40px;
    background: var(--light-gray);
    text-align: center;
    font-weight: 600;
    border-radius: 10px;
}

/* ===========================
   Works 페이지
   =========================== */
.filter-section {
    padding: 40px 0;
    background: var(--secondary-color);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
}

.filter-btn:hover:not(.active) {
    background: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.filter-btn.active:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.portfolio-grid {
    padding: 60px 0;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    text-align: center;
    color: var(--secondary-color);
}

.portfolio-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* ===========================
   포트폴리오 모달 (페이지 내 불투명 박스)
   =========================== */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    opacity: 1;
}

.portfolio-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
    pointer-events: auto;
    overflow: visible;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.portfolio-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--secondary-color);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10002;
    border-radius: 50%;
}

.portfolio-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.portfolio-modal-images-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.portfolio-modal-images-grid img {
    width: 100%;
    height: auto;
    min-height: 350px;
    max-height: 500px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    cursor: default;
    transition: transform 0.3s ease;
    border: none;
    outline: none;
    display: block;
    pointer-events: none;
    background: #000;
}

.portfolio-modal-images-grid img:hover {
    transform: none;
    box-shadow: none;
}

/* digital experience_2 폴더 이미지 스타일 - 비율 유지 */
.portfolio-modal-images-grid img.digital-experience-2-image {
    aspect-ratio: auto;
    object-fit: contain;
    max-height: 500px;
    width: 100%;
    height: auto;
}

/* 모달 네비게이션 버튼 */
.portfolio-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--secondary-color);
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10003;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    line-height: 1;
    padding: 0;
    text-align: center;
}

.portfolio-modal-nav .nav-arrow-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    object-fit: contain;
    display: block;
    transition: filter 0.3s ease;
}

.portfolio-modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-modal-nav:hover .nav-arrow-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(100%) saturate(2000%) hue-rotate(0deg) brightness(110%) contrast(100%);
}

.portfolio-modal-nav.visible {
    display: flex;
}

.portfolio-modal-prev {
    left: 20px;
}

.portfolio-modal-next {
    right: 20px;
}

/* 단일 이미지인 경우 (기존 호환성) */
.portfolio-modal-image-container {
    max-width: 100%;
    max-height: calc(80vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-modal-image {
    max-width: 100%;
    max-height: calc(80vh - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* 모달 반응형 스타일 */
@media (max-width: 768px) {
    .portfolio-modal-content {
        max-width: 90%;
        max-height: 85vh;
        padding: 15px;
    }

    .portfolio-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .portfolio-modal-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 8px;
    }

    .portfolio-modal-images-grid img {
        min-height: 280px;
        max-height: 380px;
        aspect-ratio: 4 / 3;
    }
    
    .portfolio-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 40px;
        line-height: 1;
        padding: 0;
        text-align: center;
    }
    
    .portfolio-modal-nav .nav-arrow-icon {
        width: 20px;
        height: 20px;
    }
    
    .portfolio-modal-prev {
        left: 10px;
    }
    
    .portfolio-modal-next {
        right: 10px;
    }

    .portfolio-modal-image-container {
        max-height: calc(85vh - 50px);
    }

    .portfolio-modal-image {
        max-height: calc(85vh - 50px);
    }
}

@media (max-width: 480px) {
    .portfolio-modal-content {
        max-width: 95%;
        max-height: 90vh;
        padding: 10px;
    }

    .portfolio-modal-close {
        top: 8px;
        right: 8px;
        font-size: 24px;
        width: 32px;
        height: 32px;
    }

    .portfolio-modal-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 5px;
    }

    .portfolio-modal-images-grid img {
        min-height: 200px;
        max-height: 280px;
        aspect-ratio: 4 / 3;
    }
    
    .portfolio-modal-nav {
        width: 45px;
        height: 45px;
        font-size: 36px;
        line-height: 1;
        padding: 0;
        text-align: center;
    }
    
    .portfolio-modal-nav .nav-arrow-icon {
        width: 18px;
        height: 18px;
    }
    
    .portfolio-modal-prev {
        left: 5px;
    }
    
    .portfolio-modal-next {
        right: 5px;
    }

    .portfolio-modal-image-container {
        max-height: calc(90vh - 40px);
    }

    .portfolio-modal-image {
        max-height: calc(90vh - 40px);
    }
}

/* ===========================
   이미지 확대 Lightbox
   =========================== */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--secondary-color);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10002;
    border-radius: 50%;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.image-lightbox-image {
    width: 95%;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    animation: lightboxFadeIn 0.3s ease;
    display: block;
    margin: 0 auto;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .image-lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 36px;
        width: 44px;
        height: 44px;
    }

    .image-lightbox-image {
        width: 98%;
        height: auto;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .image-lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 32px;
        width: 40px;
        height: 40px;
    }

    .image-lightbox-image {
        width: 100%;
        height: auto;
        max-height: 95vh;
    }
}

/* ===========================
   Contact 페이지
   =========================== */
.contact-section {
    padding: 110px 0;
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info,
.contact-form-wrapper {
    background: var(--secondary-color);
    border-radius: 24px;
    padding: 48px 56px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
}

.contact-info h2 {
    font-size: 40px;
    margin: 0;
    letter-spacing: -0.5px;
}

.contact-description {
    font-size: 20px;
    color: var(--medium-gray);
    line-height: 1.75;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.contact-item p {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 17px;
}

.contact-form-wrapper {
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.06));
    pointer-events: none;
}

/* 폼 스타일 */
.contact-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.96);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.submit-btn {
    padding: 18px 60px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    justify-self: start;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 지도 섹션 */
.map-section {
    height: 400px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

/* ===========================
   CTA 섹션
   =========================== */
.cta-section {
    padding: 100px 0 60px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
}

.cta-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 48px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===========================
   푸터
   =========================== */
.footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 60px;
    margin-bottom: 40px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-img {
    display: block;
}

.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-info p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
    padding: 0;
}

.footer-info p:first-child {
    margin-bottom: 0.2em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-links a {
    font-size: 16px;
    opacity: 0.8;
    transition: var(--transition);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: block;
}

.footer-links a:first-child {
    margin-bottom: 0.2em;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

/* ===========================
   개인정보처리방침 모달
   =========================== */
.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.privacy-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.privacy-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.privacy-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
    border-radius: 50%;
}

.privacy-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.privacy-modal-body {
    color: var(--text-color);
    line-height: 1.8;
}

.privacy-modal-body h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.privacy-intro {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.privacy-date {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.privacy-section {
    margin-bottom: 35px;
}

.privacy-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.privacy-section p {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.8;
}

.privacy-section ol,
.privacy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.privacy-section li {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.8;
}

.privacy-section ul {
    list-style-type: disc;
}

.privacy-section ol {
    list-style-type: decimal;
}

.privacy-section ul ul {
    list-style-type: circle;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .privacy-modal-content {
        width: 95%;
        max-height: 85vh;
        padding: 30px 20px;
    }

    .privacy-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .privacy-modal-body h2 {
        font-size: 24px;
    }

    .privacy-section h3 {
        font-size: 18px;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .privacy-modal-content {
        width: 100%;
        max-height: 90vh;
        padding: 25px 15px;
        border-radius: 0;
    }

    .privacy-modal-close {
        top: 8px;
        right: 8px;
        font-size: 24px;
        width: 32px;
        height: 32px;
    }

    .privacy-modal-body h2 {
        font-size: 20px;
    }

    .privacy-section h3 {
        font-size: 16px;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 13px;
    }
}

/* ===========================
   애니메이션
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0%, 100% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50% {
        transform: scaleY(0.5);
        transform-origin: top;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Intersection Observer 애니메이션 */
.fade-in-view {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-view.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   반응형 디자인
   =========================== */
@media (max-width: 1024px) {
    .project-item {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 100px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 40px;
        border-radius: 22px;
    }

    .contact-info {
        gap: 32px;
    }

    .portfolio-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 30px;
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
    }

    .header.scrolled {
        padding: 15px 30px;
        padding-top: calc(15px + env(safe-area-inset-top, 0px));
    }

    .nav-desktop {
        display: none;
    }

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

    .logo-img {
        height: 100px;
        filter: brightness(1) invert(0);
    }

    .header.scrolled .logo-img {
        height: 80px;
        filter: brightness(1) invert(0);
    }

    .mobile-menu .logo-img {
        height: 90px;
        filter: brightness(0) invert(1);
    }

    .footer-logo .logo-img {
        height: 100px;
        filter: brightness(0) invert(1);
    }
    
    .page-hero {
        padding-top: 150px;
    }

    .hero {
        padding-top: 150px;
    }

    .scroll-indicator {
        bottom: 60px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        white-space: normal;
    }

    .page-hero {
        height: 50vh;
        margin-top: 60px;
    }

    .section-title {
        font-size: 36px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-category h3 {
        white-space: normal;
        font-size: 20px;
    }

    .project-info {
        padding: 40px 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-item {
        padding: 40px;
    }
    
    .about-circle {
        width: 150px;
        height: 150px;
        top: -40px;
        right: -40px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-category h3 {
        white-space: normal;
        font-size: 20px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .portfolio-items {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 32px 28px;
        border-radius: 20px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    }

    .contact-info {
        gap: 26px;
    }

    .contact-info h2 {
        font-size: 32px;
    }

    .contact-description {
        font-size: 18px;
    }

    .contact-details {
        gap: 24px;
    }

    .contact-item h3,
    .contact-item p {
        font-size: 18px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .footer-content {
        grid-template-columns: 1fr;
    }

    .portfolio-info h3 {
        font-size: 20px;
    }

    .portfolio-info p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 20px;
        padding-top: calc(15px + env(safe-area-inset-top, 0px));
    }

    .logo-img {
        height: 80px;
        filter: brightness(1) invert(0);
    }

    .header.scrolled .logo-img {
        height: 70px;
        filter: brightness(1) invert(0);
    }

    .mobile-menu .logo-img {
        height: 75px;
        filter: brightness(0) invert(1);
    }

    .footer-logo .logo-img {
        height: 85px;
        filter: brightness(0) invert(1);
    }
    
    .page-hero {
        padding-top: 120px;
    }
    
    .header {
        padding: 20px 20px;
        padding-top: calc(20px + env(safe-area-inset-top, 0px));
    }
    
    .header.scrolled {
        padding: 15px 20px;
        padding-top: calc(15px + env(safe-area-inset-top, 0px));
    }

    .hero {
        padding-top: 120px;
    }

    .scroll-indicator {
        bottom: 40px;
        font-size: 11px;
    }

    .mobile-nav a {
        font-size: 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .page-title {
        font-size: 36px;
    }

    .project-info {
        padding: 30px 20px;
    }

    .about-item {
        padding: 30px 20px;
    }


    .submit-btn {
        width: 100%;
        justify-self: stretch;
    }

    .container,
    .container-fluid {
        padding: 0 20px;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .filter-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .portfolio-info h3 {
        font-size: 18px;
    }

    .portfolio-info p {
        font-size: 14px;
    }

    .category-tag {
        font-size: 11px;
        padding: 6px 14px;
    }

    .contact-section {
        padding: 80px 0;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 26px 20px;
        border-radius: 18px;
        gap: 22px;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
    }

    .contact-info h2 {
        font-size: 28px;
    }

    .contact-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .contact-details {
        gap: 20px;
    }

    .contact-item h3,
    .contact-item p {
        font-size: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 15px;
        padding: 14px;
    }

    .submit-btn {
        font-size: 15px;
        padding: 16px;
    }
}

