/* 반응형 디자인 */

/* 태블릿 (1280px 이하) */
@media (max-width: 1280px) {
    .container {
        padding: 0 20px;
    }
}

/* 태블릿 (1280px 이하) */
@media (max-width: 1280px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* 로고 마키 섹션 크기 조정 */
    .logo-marquee-section {
        padding: 15px 0 !important;
    }
    
    .logo-marquee {
        height: 60px !important;
    }
    
    .logo-marquee-item {
        height: 30px !important;
    }
    
    .logo-marquee-item img {
        height: 30px !important;
    }
    
    /* 네비게이션 햄버거 메뉴 */
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 62px;
        flex-direction: column;
        background: #000000 !important;
        width: 100%;
        height: calc(100vh - 62px);
        text-align: center;
        transition: 0.3s;
        box-shadow: none !important;
        padding: 0;
        padding-top: 2rem !important;
        padding-bottom: 0;
        overflow-y: auto;
        z-index: 999;
        margin: 0;
        justify-content: flex-start;
        align-items: center;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: white !important;
        padding: 1.25rem 0 !important;
        display: block;
        font-size: 1.5rem !important;
        font-weight: 600 !important;
        width: 100%;
    }
    
    /* 선택된 메뉴 항목 - green 계열 컬러 활성화 */
    .nav-menu a.active {
        color: #00D3A1 !important;
        font-weight: 700 !important;
    }

    /* 태블릿에서 스크롤 상태여도 활성 메뉴는 블루(#2259C9)로 바뀌지 않게 그린 고정 */
    .navbar.scrolled .nav-menu a.active {
        color: #00D3A1 !important;
    }
    
    /* 모바일/태블릿에서 밑줄 완전히 제거 */
    .nav-menu a::after {
        display: none !important;
    }
    
    .nav-menu a.active::after {
        display: none !important;
    }
    
    .nav-menu a:hover::after {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About 페이지 - 태블릿에서 3열 유지 */
    .company-values-section {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
    }
    
    .company-value-card {
        min-height: auto;
    }
    
    /* company-value-card 패딩 설정 - 모두 20px */
    .company-value-card.mission-card {
        padding: 20px !important;
    }
    
    .company-value-card.values-card {
        padding: 20px !important;
    }
    
    .company-value-card.vision-card {
        padding: 20px !important;
    }
    
    /* 모든 카드 내부 요소들의 좌우 마진/패딩 제거 */
    .company-value-card .value-icon {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
    }
    
    .company-value-card .value-title {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    .company-value-card .value-description {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Contact 페이지 */
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    /* 서비스 페이지 그리드 조정 */
    .card[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* 히어로 섹션 폰트 크기 조정 */
    .hero:not(.hero-fullscreen) {
        padding: 150px 0 100px !important;
    }
    
    .hero-fullscreen {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    /* hero-overlay 센터 높이 - 완전 중앙 배치 */
    .hero-overlay {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
    }
    
    /* hero container와 content 중앙 배치 */
    .hero .container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* index(hero-fullscreen)에서 hero-content + hero-actions가 가로로 벌어지지 않게 세로 배치 */
    .index-page .hero.hero-fullscreen .container {
        flex-direction: column !important;
    }

    .index-page .hero.hero-fullscreen .hero-actions {
        margin-top: 0; /* 요청: 위 마진 제거 */
        gap: 0.875rem;
        flex-wrap: wrap;
    }

    /* about 페이지: 주요 타이틀 하단 마진(태블릿) */
    .about-page .about-intro-title,
    .about-page .about-section-title {
        margin-bottom: 32px !important;
    }
    
    /* about 페이지: intro-title 폰트 크기 조정(태블릿) */
    .about-page .about-intro-title {
        font-size: 2.2rem !important;
    }
    
    /* about 페이지: section-title 폰트 크기 조정(태블릿) */
    .about-page .about-section-title {
        font-size: 2rem !important;
    }
    
    /* 소식 페이지: 최신 소식 타이틀 폰트 크기(태블릿) */
    .news-page .about-section-title {
        font-size: 2rem !important;
    }

    /* 포트폴리오(태블릿): 그리드 2열 */
    .portfolio-page .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* portfolio.html: 태블릿에서 카드 본문 패딩 12px */
    .portfolio-page .portfolio-card > div:nth-child(2) {
        padding: 12px !important;
    }

    /* portfolio.html: 태블릿에서 카테고리 버튼 아래 마진 40px */
    .portfolio-page .portfolio-filter-buttons {
        margin-bottom: 40px !important;
    }

    /* portfolio.html: 태블릿에서 뱃지(해시태그) 크기 대폭 축소 */
    .portfolio-page .portfolio-card .si-hashtag {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.6rem !important;
        border-radius: 5px !important;
        line-height: 1.2 !important;
    }

    /* portfolio.html: 태블릿에서 뱃지 간격 */
    .portfolio-page .portfolio-badges {
        gap: 0.2rem !important;
    }

    
    .hero-content {
        margin: 0 !important;
    }
    
    /* 태블릿 히어로 - 모바일(480px 이하) 제외 */
    .hero h1 {
        font-size: 3rem !important;
    }
    
    .hero p {
        font-size: 1.3rem !important;
    }
    
    .hero .btn {
        font-size: 1rem !important;
        padding: 15px 30px !important;
    }
    
    /* hero-content fade-in-up 애니메이션 센터 정렬 */
    .hero-content.fade-in-up {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    /* 서비스 그리드 - 태블릿 2열 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* 성과 지표 */
    .stats-section > .container > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stats-category-title {
        font-size: 1.1rem;
    }
    
    /* SI 스크롤 섹션 */
    .si-scroll-section {
        padding: 2.5rem 0 !important;
        margin-bottom: 2rem !important;
    }
    
    .si-section-content-title {
        font-size: 1.6rem !important;
    }
    
    /* 서비스 콘텐츠 래퍼 */
    .service-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 태블릿: 목차(사이드바) 제거 */
    .service-sidebar {
        display: none !important;
    }

    /* 포트폴리오 상세(태블릿): 배경(portfolio-hero-back)이 세로 꽉 차게 (가로 크롭 OK) */
    .portfolio-detail-page .portfolio-detail-hero {
        background-size: cover !important;
        background-position: center !important;
        animation: none !important; /* heroZoom(background-size %)로 인해 세로가 안 꽉 찰 수 있어 비활성화 */
        height: auto !important;      /* 내용이 커져도 화면 밖으로 밀리지 않게 */
        min-height: 100vh !important; /* 기본은 풀스크린 유지 */
        padding-top: calc(62px + 48px) !important; /* 네비 높이 + 여유 */
        padding-bottom: 32px !important;
    }

    /* 태블릿: 히어로 텍스트가 확실히 보이도록(z-index/색상만) */
    .portfolio-detail-page .pd-hero-text {
        position: relative;
        z-index: 3;
    }

    .portfolio-detail-page .pd-hero-title {
        color: #ffffff !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #ffffff !important;
        max-width: 100% !important;
        overflow-wrap: anywhere;
        margin-bottom: 0.75rem !important;
    }

    .portfolio-detail-page .pd-hero-desc {
        color: rgba(255, 255, 255, 0.9) !important;
        opacity: 1 !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* 포트폴리오 상세(태블릿): pd-hero-text 중앙 정렬 + hero 이미지(메인 이미지) 조금 줄이기 */
    .portfolio-detail-page .pd-hero-content {
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: 0 !important;
        gap: 3rem !important;
    }

    .portfolio-detail-page .pd-hero-text {
        padding-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 620px; /* 요청: pd-hero-text 박스가 과하게 커지지 않게 */
        margin: 0 auto;
    }

    .portfolio-detail-page .pd-hero-image-wrapper {
        width: 100% !important;
        /* 고정값 대신 화면 크기에 따라 자연스럽게 스케일 */
        max-width: clamp(380px, 62vw, 600px);
        margin: 0 auto;
    }

    .portfolio-detail-page .pd-hero-image {
        width: 100% !important;
        height: auto !important;
        max-height: clamp(240px, 34vh, 460px);
    }

    /* Project Overview 제목(h2) 하단 마진 제거 (태블릿) */
    .portfolio-detail-page .pd-overview-section .pd-overview-header {
        margin-bottom: 0 !important;
    }

    .portfolio-detail-page .pd-overview-section .pd-overview-header h2 {
        margin-bottom: 0 !important;
    }

    /* (Project Snapshot 케이스 포함) Overview 섹션 내 h2도 하단 마진 제거 */
    .portfolio-detail-page .pd-overview-section .pd-section-header h2 {
        margin-bottom: 0 !important;
    }

    /* 제목 아래 내용이 안 붙는 원인: overview list 상단 마진 제거(태블릿) */
    .portfolio-detail-page .pd-overview-section .pd-overview-list {
        margin-top: 0 !important;
    }

    /* Live Service 타이틀 하단 마진 제거 (태블릿) */
    .portfolio-detail-page .pd-service-link-section .pd-overview-header h2 {
        margin-bottom: 0 !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-overview-header {
        margin-bottom: 0 !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-overview-list {
        margin-top: 0 !important;
    }

    /* Live Service 섹션 텍스트 크기 조정 (태블릿) */
    .portfolio-detail-page .pd-service-link-section .pd-overview-row p {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    /* Live Service 섹션 태블릿 레이아웃 - 세로 배치 */
    .portfolio-detail-page .pd-service-link-section .pd-service-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-service-text {
        width: 100% !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-service-button {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
    }

    /* Live Service 섹션 버튼 크기 조정 (태블릿) */
    .portfolio-detail-page .pd-service-link-section .pd-overview-row .btn {
        font-size: 1.05rem !important;
        padding: 0.9rem 2.2rem !important;
    }

    /* 포트폴리오 상세(태블릿): 이미지 옆(우측) 텍스트 영역 살리기 */
    .portfolio-detail-page .pd-key-screens-container {
        flex-direction: row !important;
        gap: 3rem !important;
        align-items: flex-start !important;
    }

    /* HTML이 (텍스트 -> 이미지) 순서인 섹션도 태블릿에서는 텍스트가 우측으로 오도록 */
    .portfolio-detail-page .pd-key-screens-container.is-text-left {
        flex-direction: row-reverse !important;
    }

    .portfolio-detail-page .pd-key-screens-images {
        flex: 0 0 62% !important;
        width: auto !important;
    }

    .portfolio-detail-page .pd-key-screens-texts {
        display: block !important;
        flex: 1 1 38% !important;
        position: sticky !important;
        top: calc(50vh - 120px) !important;
    }

    /* 포트폴리오 상세(태블릿): 하단 네비(목록으로/다음 프로젝트) 한 줄 정렬 + 크기 축소 */
    .portfolio-detail-page .pd-navigation-section {
        padding: 64px 0 !important;
    }

    .portfolio-detail-page .pd-navigation-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1rem !important;
    }

    .portfolio-detail-page .pd-nav-button {
        font-size: 0.95rem !important;
        padding: 0.55rem 1.05rem !important;
        border-radius: 8px !important;
        white-space: nowrap;
    }

    .portfolio-detail-page .pd-navigation-right {
        flex: 1 1 auto !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 0.25rem !important;
    }

    .portfolio-detail-page .pd-navigation-text {
        text-align: right !important;
    }

    .portfolio-detail-page .pd-navigation-title {
        font-size: 1.35rem !important;
        margin: 0 !important;
        gap: 0.5rem !important;
        justify-content: flex-end !important;
    }

    .portfolio-detail-page .pd-navigation-title svg {
        width: 20px !important;
        height: 20px !important;
    }

    .portfolio-detail-page .pd-navigation-subtitle {
        font-size: 0.9rem !important;
        margin: 0 !important;
        text-align: right !important;
    }
    
    .coming-soon-content {
        padding: 4rem 1.5rem !important;
    }
    
    .coming-soon-content h2 {
        font-size: 2.5rem !important;
    }
    
    .coming-soon-content p {
        font-size: 1.1rem !important;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    /* (정리) mobile-only-br: JS가 hero-description을 덮어써서 사용하지 않음 */
    /* 히어로 섹션 모바일 스타일 - 우선순위 높게 */
    .hero h1,
    #hero-title {
        font-size: 36px !important;
        letter-spacing: -1px !important;
        margin-bottom: 16px !important;
    }
    
    .hero p,
    #hero-description {
        font-size: 18px !important;
        min-height: 3.6em !important;
        line-height: 1.8 !important;
        margin-bottom: 0 !important;
    }
    
    .section-title {
        font-size: 1.75rem;
    }

    /* 소개(about) 페이지: fade-in-up 붙을 때 타이틀이 과하게 커지는 것 방지 */
    .about-page .section-title.fade-in-up {
        font-size: 1.5rem !important; /* 모바일에서 작게 조정 */
    }

    /* 소개(about) 페이지: "고객과 함께 쌓아온 디지털 신뢰" + 본문 폰트 사이즈 조정 */
    .about-page .about-intro-title {
        font-size: 1.5rem !important; /* services.html 타이틀과 비슷한 크기로 조정 */
        margin-bottom: 24px !important; /* 모바일 하단 마진 */
    }

    .about-page .about-intro-text {
        font-size: 20px !important;
    }

    .about-page .about-section-title {
        font-size: 1.5rem !important; /* services.html 타이틀과 동일한 크기로 조정 */
        margin-bottom: 24px !important; /* 모바일 하단 마진 */
    }
    
    /* 소식 페이지: 최신 소식 타이틀 폰트 크기(모바일) */
    .news-page .about-section-title {
        font-size: 1.5rem !important;
        margin-top: 32px !important;
        margin-bottom: 32px !important;
    }

    /* 소개(about) 페이지: 연표 - 연도(숫자)는 좌측, 내용은 모두 우측 정렬 */
    .about-page .timeline-line {
        left: 24px !important;
        right: auto !important;
        margin-left: 0 !important;
        transform: none !important;
    }

    .about-page .timeline-year {
        left: 24px !important;
        transform: translateX(-50%) !important; /* 라인 중앙에 배치 */
    }

    .about-page .timeline-item {
        padding-left: 72px !important; /* 연도/라인 영역 확보 */
    }

    .about-page .timeline-content {
        display: block !important;
        width: 100% !important;
        margin-top: 2.5rem; /* 연도 배지 아래로 */
    }

    .about-page .timeline-events-wrapper {
        flex: none !important;
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        order: 0 !important;
    }

    /* 기존 좌/우 지그재그 정렬 해제 (모바일에서는 모두 우측) */
    .about-page .timeline-item:nth-child(odd) .timeline-events-wrapper,
    .about-page .timeline-item:nth-child(even) .timeline-events-wrapper {
        order: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* 포트폴리오(모바일): 상단 카테고리(필터) 버튼은 작은 사이즈가 좋음 */
    .portfolio-page .filter-btn {
        padding: 0.65rem 1.1rem !important;
        font-size: 0.9rem !important;
        border-radius: 5px !important;
    }

    /* 포트폴리오(모바일): 상단 섹션 padding-top 24px */
    .portfolio-page .portfolio-filter-section {
        padding-top: 24px !important;
    }

    /* portfolio.html: 모바일에서 카테고리 버튼 아래 마진 24px */
    .portfolio-page .portfolio-filter-buttons {
        margin-bottom: 24px !important;
    }

    /* portfolio.html: 모바일에서 뱃지(해시태그) 크기 대폭 축소 */
    .portfolio-page .portfolio-card .si-hashtag {
        font-size: 0.7rem !important;
        padding: 0.22rem 0.55rem !important;
        border-radius: 5px !important;
        line-height: 1.2 !important;
    }

    /* portfolio.html: 모바일에서 뱃지 간격 */
    .portfolio-page .portfolio-badges {
        gap: 0.2rem !important;
    }

    /* portfolio.html: 모바일에서 부타이틀 숨김 + 타이틀 18px */
    .portfolio-page .portfolio-card > div:nth-child(2) > div:first-child > h3 {
        font-size: 18px !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
    }

    .portfolio-page .portfolio-card > div:nth-child(2) > div:first-child > p {
        display: none !important;
    }

    /* portfolio.html: 모바일에서 카드 본문 패딩 16px */
    .portfolio-page .portfolio-card > div:nth-child(2) {
        padding: 12px !important;
    }


    /* 포트폴리오 상세(모바일): 배경(portfolio-hero-back)이 세로 꽉 차게 (가로 크롭 OK) */
    .portfolio-detail-page .portfolio-detail-hero {
        background-size: cover !important;
        background-position: center !important;
        animation: none !important;
        height: auto !important;
        min-height: 100vh !important;
        padding-top: calc(62px + 40px) !important;
        padding-bottom: 28px !important;
    }

    /* 모바일: 히어로 텍스트가 확실히 보이도록(z-index/색상만) */
    .portfolio-detail-page .pd-hero-text {
        position: relative;
        z-index: 3;
    }

    .portfolio-detail-page .pd-hero-title {
        color: #ffffff !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #ffffff !important;
        max-width: 100% !important;
        overflow-wrap: anywhere;
        margin-bottom: 0.75rem !important;
    }

    .portfolio-detail-page .pd-hero-desc {
        color: rgba(255, 255, 255, 0.9) !important;
        opacity: 1 !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* 포트폴리오 상세(모바일): pd-hero-text/hero 모두 중앙 정렬 */
    .portfolio-detail-page .portfolio-detail-hero .container {
        text-align: center !important;
    }

    .portfolio-detail-page .pd-hero-content {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: 0 !important;
        gap: 3rem !important;
    }

    .portfolio-detail-page .pd-hero-text {
        padding-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
        max-width: clamp(260px, 88vw, 340px); /* 모바일에서 텍스트 박스 폭도 과하게 커지지 않게 */
        margin: 0 auto;
    }

    .portfolio-detail-page .pd-hero-actions {
        align-items: center !important;
    }

    /* 포트폴리오 상세(모바일): hero 이미지도 화면 크기에 따라 유동적으로 스케일 */
    .portfolio-detail-page .pd-hero-image-wrapper {
        width: 100% !important;
        max-width: clamp(260px, 86vw, 380px);
        margin: 0 auto;
    }

    .portfolio-detail-page .pd-hero-image {
        width: 100% !important;
        height: auto !important;
        max-height: clamp(200px, 30vh, 340px);
    }

    /* Project Overview 제목(h2) 하단 마진 제거 (모바일) */
    .portfolio-detail-page .pd-overview-section .pd-overview-header {
        margin-bottom: 0 !important;
    }

    .portfolio-detail-page .pd-overview-section .pd-overview-header h2 {
        margin-bottom: 0 !important;
    }

    /* (Project Snapshot 케이스 포함) Overview 섹션 내 h2도 하단 마진 제거 */
    .portfolio-detail-page .pd-overview-section .pd-section-header h2 {
        margin-bottom: 0 !important;
    }

    /* 제목 아래 내용이 안 붙는 원인: overview list 상단 마진 제거(모바일) */
    .portfolio-detail-page .pd-overview-section .pd-overview-list {
        margin-top: 0 !important;
    }

    /* Live Service 타이틀 하단 마진 제거 (모바일) */
    .portfolio-detail-page .pd-service-link-section .pd-overview-header h2 {
        margin-bottom: 0 !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-overview-header {
        margin-bottom: 0 !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-overview-list {
        margin-top: 0 !important;
    }

    /* Live Service 섹션 텍스트 크기 조정 (모바일) */
    .portfolio-detail-page .pd-service-link-section .pd-overview-row p {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    /* Live Service 섹션 모바일 레이아웃 - 세로 배치 */
    .portfolio-detail-page .pd-service-link-section .pd-service-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-service-text {
        width: 100% !important;
    }

    .portfolio-detail-page .pd-service-link-section .pd-service-button {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
    }

    /* Live Service 섹션 버튼 크기 조정 (모바일) */
    .portfolio-detail-page .pd-service-link-section .pd-overview-row .btn {
        font-size: 1rem !important;
        padding: 0.85rem 2rem !important;
    }

    /* 포트폴리오 상세(모바일): 이미지 옆 텍스트는 제거 */
    .portfolio-detail-page .pd-key-screens-texts {
        display: none !important;
    }

    .portfolio-detail-page .pd-key-screens-container,
    .portfolio-detail-page .pd-key-screens-container.is-text-left {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .portfolio-detail-page .pd-key-screens-images {
        /* 모바일: 내가 추가했던 공통 2열 grid를 없애고, 기존(프로젝트별) 레이아웃은 그대로 사용 */
        flex: 1 1 auto !important;
        width: 100% !important;
    }

    /* 포트폴리오 상세(모바일): 위치별 이미지 그림자(기본/활성 강조) 제거 */
    .portfolio-detail-page .pd-key-screen-image {
        box-shadow: none !important;
        filter: none !important;
    }

    .portfolio-detail-page .pd-key-screen-item.is-active .pd-key-screen-image {
        box-shadow: none !important;
        filter: none !important;
    }

    /* 포트폴리오 상세(모바일): 하단 네비(목록으로/다음 프로젝트) 한 줄 정렬 + 크기 축소 */
    .portfolio-detail-page .pd-navigation-section {
        padding: 48px 0 !important;
    }

    .portfolio-detail-page .pd-navigation-content {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
    }

    .portfolio-detail-page .pd-nav-button {
        font-size: 0.85rem !important;
        padding: 0.45rem 0.85rem !important;
        border-radius: 8px !important;
        white-space: nowrap;
    }

    .portfolio-detail-page .pd-navigation-right {
        flex: 1 1 auto !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .portfolio-detail-page .pd-navigation-text {
        text-align: right !important;
    }

    .portfolio-detail-page .pd-navigation-title {
        font-size: 1.1rem !important;
        margin: 0 !important;
        gap: 0.4rem !important;
        justify-content: flex-end !important;
    }

    .portfolio-detail-page .pd-navigation-title svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* 모바일에서는 두 요소를 한 줄 높이로 맞추기 위해 부타이틀은 숨김 */
    .portfolio-detail-page .pd-navigation-subtitle {
        display: none !important;
    }

    /* 포트폴리오(모바일): 그리드 2열 + 카드 간격(gap) */
    .portfolio-page .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    /* 모바일(서비스): hero 아래 service-tabs-section이 딱 붙도록 상단 여백 제거 */
    .service-tabs-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding: 0 !important;
    }

    .service-tabs {
        margin-top: 0 !important;
    }
    
    /* About 페이지 모바일 */
    .company-values-section {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .value-title {
        font-size: 1.5rem !important;
    }
    
    .value-description {
        font-size: 1rem !important;
    }
    
    /* Contact 페이지 모바일 */
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    
    /* 히어로 섹션 폰트 크기 조정 */
    .hero:not(.hero-fullscreen) {
        padding: 120px 0 80px !important;
    }
    
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .hero-fullscreen {
        min-height: 100vh;
    }
    
    /* 모바일 hero-fullscreen의 overlay는 100vh로 동영상과 동일한 높이 */
    .hero-fullscreen .hero-overlay {
        height: 100vh !important;
        align-items: center !important;
        padding-top: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* hero-fullscreen이 아닌 경우만 500px */
    .hero:not(.hero-fullscreen) .hero-overlay {
        height: 500px !important;
        align-items: flex-start !important;
        padding-top: 62px !important; /* 네비게이션 높이 */
        box-sizing: border-box !important;
    }
    
    /* 모바일 hero-fullscreen의 hero-content - 텍스트만 포함, 버튼은 레이아웃에서 제외 */
    .hero-fullscreen .hero-content {
        display: block !important; /* flex 제거하여 버튼이 레이아웃에 영향 안 받도록 */
        text-align: center !important;
        margin-top: 0 !important;
        height: 100vh !important;
        min-height: 100vh !important;
        width: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 2 !important;
        padding-top: 30vh !important; /* 텍스트를 중앙 상단에 배치 */
        padding-bottom: 0 !important;
    }
    
    .hero-fullscreen .hero-content.fade-in-up {
        margin-top: 0 !important;
        height: 100vh !important;
        min-height: 100vh !important;
        position: absolute !important;
        top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* hero-fullscreen 텍스트 스타일 */
    .hero-fullscreen .hero-content h1 {
        margin-bottom: 16px !important;
    }
    
    .hero-fullscreen .hero-content p {
        margin-bottom: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* hero-fullscreen의 버튼 컨테이너 - hero-content 레이아웃에서 완전 제외 */
    .hero-fullscreen .hero-content > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 0 !important;
        position: fixed !important;
        bottom: calc(5rem + 40px) !important; /* scroll-indicator bottom: 5rem + 40px */
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important; /* 높은 z-index로 확실히 위에 */
        pointer-events: auto !important;
        /* hero-content의 flex 레이아웃에서 완전 제외 */
        flex: none !important;
        align-self: auto !important;
        order: 999 !important;
        visibility: visible !important;
    }
    
    /* hero-content가 버튼 공간을 차지하지 않도록 */
    .hero-fullscreen .hero-content {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* hero-fullscreen의 버튼 고정 스타일 - 높이 줄이고 가로 길이 동일하게 */
    .hero-fullscreen .hero-content .btn,
    .hero-fullscreen .hero .btn,
    .hero-fullscreen .btn-primary,
    .hero-fullscreen .btn-secondary {
        font-size: 0.95rem !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        padding-left: 25px !important;
        padding-right: 25px !important;
        margin: 0 !important;
        display: block !important;
        width: calc(100% - 2rem) !important;
        max-width: 300px !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* =========================
       모바일 index hero 전용: 텍스트/버튼 겹침 방지
       - 버튼은 하단 고정 (화살표보다 40px 위)
       - 텍스트는 버튼 영역을 제외한 공간에서 중앙 정렬
       ========================= */
    .index-page .hero.hero-fullscreen .container {
        position: relative !important;
        height: 100vh !important;
        min-height: 100vh !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .index-page .hero.hero-fullscreen .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        /* 고정 버튼 영역만큼 아래 공간을 제외하고 텍스트를 중앙 정렬 */
        height: calc(100vh - 350px) !important;
        min-height: calc(100vh - 350px) !important;
        max-height: calc(100vh - 350px) !important;
        padding-top: 0 !important;
        padding-bottom: 250px !important; /* 버튼과 겹치지 않도록 하단 패딩 증가 */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important; /* 텍스트를 조금 더 위로 */
        text-align: center !important;
        z-index: 2 !important;
        padding-top: 15vh !important; /* 텍스트를 조금 더 위로 이동하여 버튼과의 간격 확보 */
    }

    /* 모바일 index: fade-in-up도 동일 위치(점프 방지) */
    .index-page .hero.hero-fullscreen .hero-content.fade-in-up {
        justify-content: flex-start !important;
        padding-top: 15vh !important;
        padding-bottom: 250px !important; /* 버튼과 겹치지 않도록 하단 패딩 증가 */
        max-height: calc(100vh - 350px) !important;
    }

    /* 모바일 index: 설명문이 1줄/2줄로 바뀌어도 덜렁거리지 않게 공간 확보 */
    .index-page .hero.hero-fullscreen #hero-description {
        min-height: 3.6em !important; /* line-height 1.8 기준 2줄 확보 */
        white-space: pre-line !important; /* \n 줄바꿈을 모바일에서만 실제 줄바꿈으로 */
    }

    .index-page .hero.hero-fullscreen .hero-actions {
        display: flex !important;
        flex-direction: column !important; /* 세로로 배치 */
        gap: 0.75rem !important; /* 버튼 간격 */
        align-items: center !important;
        justify-content: center !important;
        width: auto !important; /* 내용에 맞게 자동 크기 */
        position: absolute !important; /* hero 안에서만 고정(스크롤 시 같이 사라짐) */
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: calc(5rem + 60px) !important; /* 화살표(scroll-indicator) 바로 위에 배치 */
        z-index: 10 !important;
        pointer-events: auto !important;
    }

    .index-page .hero.hero-fullscreen .hero-actions .btn {
        font-size: 0.95rem !important; /* 폰트 크기 */
        padding-top: 12px !important;
        padding-bottom: 12px !important;
        padding-left: 24px !important; /* 좌우 패딩 */
        padding-right: 24px !important;
        margin: 0 !important;
        display: block !important; /* 블록 요소로 변경 */
        width: 140px !important; /* 버튼 가로 크기 */
        max-width: 140px !important;
        box-sizing: border-box !important;
        height: auto !important;
        min-height: auto !important;
        white-space: nowrap !important; /* 텍스트 줄바꿈 방지 */
        text-align: center !important; /* 텍스트 중앙 정렬 */
    }
    
    /* hero-fullscreen이 아닌 경우 기존 스타일 */
    .hero:not(.hero-fullscreen) .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-top: 62px !important;
        height: calc(500px - 62px) !important;
        min-height: calc(500px - 62px) !important;
        width: 100% !important;
    }
    
    .hero:not(.hero-fullscreen) .hero-content.fade-in-up {
        margin-top: 62px !important;
        height: calc(500px - 62px) !important;
        min-height: calc(500px - 62px) !important;
    }
    
    /* 모바일 히어로 - 태블릿/PC 스타일 덮어쓰기 */
    .hero h1,
    .hero:not(.hero-fullscreen) h1,
    #hero-title,
    .hero-content h1,
    .hero h1#hero-title {
        font-size: 36px !important;
        letter-spacing: -1px !important;
        margin-bottom: 16px !important;
    }
    
    .hero p,
    .hero:not(.hero-fullscreen) p,
    #hero-description,
    .hero-content p#hero-description,
    .hero p#hero-description {
        font-size: 18px !important;
        min-height: auto !important;
        line-height: 1.8 !important;
        margin-bottom: 0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* 스크롤 인디케이터 - 모바일에서만 표시 */
    .scroll-indicator {
        display: flex !important;
        position: absolute;
        bottom: 5rem !important; /* 핀치보다 높게 */
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        opacity: 0.8;
        transition: opacity 0.3s ease;
        cursor: pointer;
    }
    
    .scroll-indicator:hover {
        opacity: 1;
    }
    
    .scroll-arrow {
        animation: bounce 2s infinite;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .scroll-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateY(0);
        }
        40% {
            transform: translateY(-10px);
        }
        60% {
            transform: translateY(-5px);
        }
    }
    
    /* CTA 섹션 모바일 스타일 */
    .cta-section h2 {
        font-size: 24px !important;
    }
    
    .cta-section p {
        font-size: 16px !important;
    }
    
    /* 푸터 모바일 - 1열 */
    .footer-content {
        grid-template-columns: 1fr !important;
    }
    
    /* 로고 마키 섹션 모바일 크기 조정 */
    .logo-marquee-section {
        padding: 12px 0 !important;
    }
    
    .logo-marquee {
        height: 50px !important;
    }
    
    .logo-marquee-item {
        height: 25px !important;
    }
    
    .logo-marquee-item img {
        height: 25px !important;
    }
    
    /* 모바일 hero-fullscreen의 hero-content 위치 고정 */
    .hero-fullscreen .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-top: 0 !important;
        height: 100vh !important;
        min-height: 100vh !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .hero-fullscreen .hero-content.fade-in-up {
        margin-top: 0 !important;
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    /* hero-fullscreen의 버튼 컨테이너 고정 위치 */
    .hero-fullscreen .hero-content > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 0 !important;
        position: relative !important;
    }
    
    /* hero-fullscreen의 버튼 고정 스타일 */
    .hero-fullscreen .hero .btn {
        font-size: 0.95rem !important;
        padding: 12px 25px !important;
        margin: 0 !important;
        display: block !important;
        width: calc(100% - 2rem) !important;
        max-width: 300px !important;
        position: relative !important;
    }
    
    /* hero-fullscreen이 아닌 경우 기존 스타일 유지 */
    .hero:not(.hero-fullscreen) .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-top: 62px !important;
        height: calc(500px - 62px) !important;
        min-height: calc(500px - 62px) !important;
        width: 100% !important;
    }
    
    .hero:not(.hero-fullscreen) .hero-content.fade-in-up {
        margin-top: 62px !important;
        height: calc(500px - 62px) !important;
        min-height: calc(500px - 62px) !important;
    }
    
    .hero:not(.hero-fullscreen) .hero-content > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
        margin-top: 0 !important;
    }
    
    .hero:not(.hero-fullscreen) .hero .btn {
        font-size: 0.95rem !important;
        padding: 12px 25px !important;
        margin: 0 !important;
        display: block;
        width: calc(100% - 2rem);
        max-width: 300px;
    }
    
    /* 포트폴리오 그리드 조정 - 태블릿에서 2열 */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(350px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* 필터 버튼 스택 */
    div[style*="display: flex; justify-content: center"] {
        flex-direction: column;
        align-items: stretch;
    }
    
    div[style*="display: flex; justify-content: center"] .btn {
        width: 100%;
    }
    
    /* 포트폴리오 갤러리 반응형 */
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
    
    /* 서비스 그리드 반응형 - 모바일은 1열 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* 성과 지표 반응형 */
    .stats-section > .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stats-category-title {
        font-size: 1.1rem;
        margin-bottom: 2rem !important;
    }
    
    .stats-grid {
        gap: 2rem;
        margin-bottom: 0;
    }
    
    .stats-category {
        margin-bottom: 3rem;
    }
    
    .service-content {
        padding: 2rem;
    }
    
    .service-number {
        font-size: 3rem;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    /* SI 스크롤 섹션 반응형 */
    .si-scroll-section {
        padding: 2rem 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .si-section-content-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.25rem !important;
        padding-bottom: 0.875rem !important;
    }
    
    .si-section-content p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    
    /* 프로세스 상세 반응형 */
    .si-process-step-title {
        font-size: 1.15rem !important;
        margin: 1.5rem 0 0.875rem 0 !important;
    }
    
    .si-process-list {
        margin: 0.875rem 0 1.25rem 0 !important;
        padding-left: 1.25rem !important;
    }
    
    .si-process-list li {
        font-size: 0.95rem !important;
        margin-bottom: 0.625rem !important;
    }
    
    .si-process-deliverables {
        margin: 1.25rem 0 1.5rem 0 !important;
        padding: 1rem !important;
    }
    
    .si-process-deliverables strong {
        font-size: 1rem !important;
    }
    
    .si-process-deliverables ul li {
        font-size: 0.95rem !important;
    }
    
    /* 프로세스 서브섹션 반응형 */
    .si-process-subsection {
        margin: 1.25rem 0 !important;
    }
    
    .si-process-subsection strong {
        font-size: 1rem !important;
    }
    
    /* 가이드 버튼 반응형 */
    .si-guide-button {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    /* 모바일: 프로세스 인포그래픽(상단 아이콘들)이 화면을 넘지 않도록 세로 배치 */
    #service-2 .si-process-infographic {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        padding: 1.25rem 1rem !important;
    }

    #service-2 .si-process-step {
        width: 100% !important;
        max-width: 340px !important;
        min-width: 0 !important;
        padding: 0.85rem 1rem !important;
    }

    #service-2 .si-process-arrow {
        width: 24px !important;
        height: 24px !important;
        transform: rotate(90deg) !important; /* → 를 ↓ 로 */
    }

    #service-2 .si-process-arrow svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* 서비스 콘텐츠 래퍼 반응형 */
    .service-content-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 모바일: 목차(사이드바) 제거 */
    .service-sidebar {
        display: none !important;
    }
    
    /* 모바일: Solution Service Card 반응형 */
    .solution-services-grid {
        gap: 1.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .solution-service-card {
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 1rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .solution-service-icon {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .solution-service-title {
        font-size: 1.75rem !important;
    }
    
    .solution-service-subtitle {
        font-size: 1.25rem !important;
    }
    
    .solution-service-description {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .solution-service-card > div:not(.solution-service-icon) {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .solution-service-btn {
        width: 100% !important;
        max-width: 100% !important;
        align-self: stretch !important;
        text-align: center !important;
        margin-top: 1rem !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .coming-soon-content {
        padding: 3rem 1rem !important;
        min-height: 300px !important;
    }
    
    .coming-soon-content h2 {
        font-size: 2rem !important;
    }
    
    .coming-soon-content p {
        font-size: 1rem !important;
    }
}


