/* 히어로 섹션 - 다크 배경 적용 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #000;
}

/* 슬라이더 컨테이너 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 개별 슬라이드 */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

/* 디바이스별 배경 이미지 설정 */
/* 웹 버전 (기본) */
.hero-slide.story-slide {
    background-image: url('/images/about/web/web-story-hero.jpeg');
}

.hero-slide.photography-slide {
    background-image: url('/images/about/web/web-photo-hero.jpeg');
}

.hero-slide.design-slide {
    background-image: url('/images/about/web/web-design-hero.png');
}

.hero-slide.marketing-slide {
    background-image: url('/images/about/web/web-marketing-hero.jpg');
}

.hero-slide.branding-slide {
    background-image: url('/images/about/web/web-brand-hero.png');
}

/* 태블릿 버전 */
@media (min-width: 768px) and (max-width: 1200px) {
    .hero-slide.story-slide {
        background-image: url('/images/about/tablet/tablet-story-hero.jpeg');
    }

    .hero-slide.photography-slide {
        background-image: url('/images/about/tablet/tablet-photo-hero.jpeg');
    }

    .hero-slide.design-slide {
        background-image: url('/images/about/tablet/tablet-design-hero.png');
    }

    .hero-slide.marketing-slide {
        background-image: url('/images/about/tablet/tablet-marketing-hero.jpg');
    }

    .hero-slide.branding-slide {
        background-image: url('/images/about/tablet/tablet-brand-hero.png');
    }
}

/* 모바일 버전 */
@media (max-width: 767px) {
    .hero-slide.story-slide {
        background-image: url('/images/about/mobile/mobile-story-hero.jpg');
    }

    .hero-slide.photography-slide {
        background-image: url('/images/about/mobile/mobile-photo-hero.jpeg');
    }

    .hero-slide.design-slide {
        background-image: url('/images/about/mobile/mobile-design-hero.png');
    }

    .hero-slide.marketing-slide {
        background-image: url('/images/about/mobile/mobile-marketing-hero.jpg');
    }

    .hero-slide.branding-slide {
        background-image: url('/images/about/mobile/mobile-brand-hero.png');
    }
}

.hero-slide.active {
    opacity: 1;
}

/* 슬라이드 콘텐츠 스타일 */
.slide-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 550px;
    color: #fff;
    z-index: 2;
    padding: 0 60px;
}

/* 왼쪽 정렬 콘텐츠 */
.slide-content.text-left {
    left: 0;
    text-align: left;
}

/* 오른쪽 정렬 콘텐츠 */
.slide-content.text-right {
    right: 0;
    text-align: right;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.slide-description {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.4s;
}

.slide-subdescription {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.6s;
}

/* 활성화된 슬라이드의 콘텐츠 애니메이션 */
.hero-slide.active .slide-title,
.hero-slide.active .slide-description,
.hero-slide.active .slide-subdescription {
    opacity: 1;
    transform: translateY(0);
}

/* 기존 그라데이션 오버레이를 슬라이드에 적용 - 다크 테마 */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* 새로운 하단 카테고리 네비게이션 스타일 */
.hero-slider-nav {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 카테고리 네비게이션 컨테이너 */
.slider-categories {
    display: flex;
    justify-content: center;
    width: 80%;
    max-width: 1000px;
}

/* 카테고리 아이템 (텍스트 + 선) */
.category-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

/* 카테고리 텍스트 */
.category-nav {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px 0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.category-nav:hover {
    color: #fff;
}

.category-nav.active {
    color: #fff;
    font-weight: 500;
}

/* 카테고리 선 */
.category-line {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
}

/* 활성화된 카테고리 선 스타일 */
.category-nav.active + .category-line::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.hero-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 550px;
    padding-right: 20px;
    color: #fff;
}

.hero-text h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -1px;
    color: #fff;
}

.hero-text p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.8);
}

.hero-text p strong {
    font-weight: var(--font-weight-bold);
    color: #fff;
}

.hero-text .btn {
    font-size: var(--font-size-base);
}

/* 공통 섹션 스타일 */
.about-section {
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.section-light {
    background-color: #ffffff;
    color: #000000;
}

.section-dark {
    background-color: #000000;
    color: #ffffff;
}

/* 컨테이너 설정 */
.about-section .container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* 행 설정 */
.about-section .row {
    display: flex;
    align-items: flex-start;  /* 중앙 정렬에서 상단 정렬로 변경 */
    margin-left: -15px;
    margin-right: -15px;
}

/* 타이틀 영역 컬럼 설정 */
.about-section .col-md-5,
.about-section .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

.about-section .col-md-6:first-child {
    padding-top: 15px; /* 상단에 약간의 여백 추가 */
}

/* 타이틀 스타일 */
.section-title-wrapper {
    padding-right: 40px;
    align-self: flex-start; /* 상단 정렬 추가 */
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    margin-bottom: 30px;
    text-align: left;
}

.section-light .section-title {
    color: #000000;
}

.section-dark .section-title {
    color: #ffffff;
}

/* 내용 스타일 */
.section-content {
    padding-left: 15px;
    padding-right: 15px;
}

.section-text-en {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.section-text-kr {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0;
    font-family: 'Noto Sans KR', sans-serif;
    opacity: 0.8;
}

.section-light .section-text-en,
.section-light .section-text-kr {
    color: #000000;
}

.section-dark .section-text-en,
.section-dark .section-text-kr {
    color: #ffffff;
}

/* 설명 텍스트 스타일 - 서비스 섹션용 */
.section-text-smaller {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 400;
    color: #333;
    margin-top: 0;
}

/* 블루 박스 효과 서비스 섹션 제목에 추가 */
#service-structure .section-title {
    position: relative;
}

#service-structure .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 100px;
    height: 50px;
    /*background-color: rgba(100, 180, 255, 0.3);*/
    z-index: -1;
}

/* 파트너 섹션 스타일 */
.partners-image-section {
    background-color: #ffffff;
    margin-bottom: -48px;
    overflow-x: hidden;
}

.partners-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

/* 애니메이션 효과 */
.animate-element {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 섹션별 z-index */
#who-we-are { z-index: 3; }
#foundation { z-index: 2; }
#creations { z-index: 1; }

/* 서비스 그리드 스타일 */
.service-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-row {
    display: flex;
    padding-left: 15px;
    /*gap: 40px;*/
}

.service-column {
    flex: 1;
    position: relative;
    margin-top: 50px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    color: #000;
    font-family: 'Montserrat', sans-serif;
}

.service-title sup {
    font-size: 0.9rem;
    font-weight: 500;
    vertical-align: super;
    margin-left: 2px;
}

.service-subtitle {
    color: #000000;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 15px 0 15px 0;
    font-family: 'Montserrat', sans-serif;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.service-list li {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

/* 프로세스 섹션 스타일 */
.process-section {
    /*padding: var(--spacing-3xl) 0;*/
    padding-bottom: 38px;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

.process-section .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding-top: 30px;
}

.process-step {
    flex: 1 0 100%;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

/* 이미지 컨테이너 스타일 */
.step-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
}

/* 숫자 스타일 */
.step-number {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 56px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    line-height: 1;
}

/* 이미지 스타일 */
.step-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    filter: brightness(1.2);
}

.process-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.step-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 3;
    color: #fff;
}

.step-desc {
    font-size: var(--font-size-base);
    color: #aaa;
    line-height: 1.6;
}

/* 포트폴리오 섹션 스타일 - 그리드 형태 */
#our-portfolio {
    padding-top: 120px;
    padding-bottom: 80px;
}

.portfolio-container {
    margin-top: 60px;
    width: 100%;
}

/* 포트폴리오 그리드 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3개씩 표시 */
    gap: 30px;
    width: 100%;
}

/* 포트폴리오 항목 */
.portfolio-item {
    background-color: #fff;
    /*border-radius: 8px;*/
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 비율 */
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 20px 20px 10px;
    margin: 0;
    color: #000;
}

.portfolio-desc {
    font-size: 0.95rem;
    padding: 0 20px 20px;
    margin: 0;
    color: #666;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ffffff;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* 애니메이션 */
.about-image,
.about-text,
.vision-item,
.team-member,
.client-logo,
.service-column,
.portfolio-item,
.process-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-loaded .about-image,
.page-loaded .about-text,
.page-loaded .vision-item,
.page-loaded .team-member,
.page-loaded .client-logo,
.page-loaded .service-column,
.page-loaded .portfolio-item,
.page-loaded .process-step {
    opacity: 1;
    transform: translateY(0);
}

.page-loaded .process-step:nth-child(1) {
    transition-delay: 0.1s;
}

.page-loaded .service-row:first-child .service-column:first-child,
.page-loaded .portfolio-item:nth-child(1),
.page-loaded .process-step:nth-child(2),
.page-loaded .vision-item:nth-child(1),
.page-loaded .team-member:nth-child(1),
.page-loaded .client-logo:nth-child(1) {
    transition-delay: 0.2s;
}

.page-loaded .service-row:first-child .service-column:last-child,
.page-loaded .portfolio-item:nth-child(2),
.page-loaded .process-step:nth-child(3),
.page-loaded .vision-item:nth-child(2),
.page-loaded .team-member:nth-child(2),
.page-loaded .client-logo:nth-child(2) {
    transition-delay: 0.3s;
}

.page-loaded .service-row:last-child .service-column:first-child,
.page-loaded .portfolio-item:nth-child(3),
.page-loaded .process-step:nth-child(4),
.page-loaded .vision-item:nth-child(3),
.page-loaded .team-member:nth-child(3),
.page-loaded .client-logo:nth-child(3) {
    transition-delay: 0.4s;
}

.page-loaded .service-row:last-child .service-column:last-child,
.page-loaded .portfolio-item:nth-child(4),
.page-loaded .client-logo:nth-child(4) {
    transition-delay: 0.5s;
}

.page-loaded .portfolio-item:nth-child(5),
.page-loaded .client-logo:nth-child(5) {
    transition-delay: 0.6s;
}

.page-loaded .portfolio-item:nth-child(6),
.page-loaded .client-logo:nth-child(6) {
    transition-delay: 0.7s;
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-text h1,
.hero-text p,
.hero-text .btn {
    animation: fadeInUp 1s ease forwards;
}

.hero-text p {
    animation-delay: 0.2s;
}

.hero-text .btn {
    animation-delay: 0.4s;
    opacity: 0;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 1200px) {
    .slide-content {
        max-width: 450px;
        padding: 0 40px;
    }

    .slide-title {
        font-size: 2.2rem;
    }

    .slide-description {
        font-size: 1.3rem;
    }

    .about-section {
        padding: 100px 0;
        min-height: 450px;
    }

    .section-title {
        font-size: 3rem;
    }

    .service-title {
        font-size: 1.4rem;
    }

    .service-subtitle {
        font-size: 1.1rem;
    }

    .step-image-container {
        width: 130px;
        height: 130px;
    }

    .step-number {
        font-size: 48px;
    }

    /* 포트폴리오 그리드 반응형 */
    .portfolio-title {
        font-size: 1.2rem;
    }

    .portfolio-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 991px) {
    .slide-content {
        max-width: 400px;
        padding: 0 30px;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .slide-description {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .slide-subdescription {
        font-size: 0.9rem;
    }

    .category-nav {
        font-size: 12px;
    }

    .hero-slider-nav {
        bottom: 60px;
    }

    .hero-text {
        text-align: center;
        max-width: 650px;
        margin: 0 auto;
        padding-right: 0;
    }

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

    .slider-categories {
        width: 90%;
    }

    .about-section {
        padding: 80px 0;
        min-height: 400px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .section-text-en {
        font-size: 1.2rem;
    }

    .section-text-kr {
        font-size: 1rem;
    }

    .section-text-smaller {
        font-size: 1.1rem;
    }

    .service-grid {
        gap: 40px;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .process-step {
        flex: 0 0 50%;
    }

    .step-image-container {
        width: 120px;
        height: 120px;
    }

    .step-number {
        font-size: 42px;
    }

    /* 포트폴리오 그리드 반응형 */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2개씩 표시 */
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 500px;
    }

    .slide-content {
        max-width: 100%;
        left: 0 !important;
        right: 0 !important;
        text-align: center !important;
        padding: 0 20px;
    }

    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .slide-description {
        font-size: 1.1rem;
    }

    .slide-subdescription {
        font-size: 0.85rem;
    }

    .hero-slider-nav {
        bottom: 40px;
    }

    .category-nav {
        font-size: 11px;
        padding: 3px 0;
    }

    .category-item {
        padding: 0 5px;
    }

    .about-section {
        padding: 60px 0;
        min-height: 350px;
    }

    .section-title {
        font-size: 2rem;
        text-align: left;
    }

    .about-section .row {
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
    }

    .about-section .col-md-6:first-child {
        order: -1;
    }

    .service-row {
        flex-direction: column;
        /*gap: 40px;*/
    }

    .section-text-smaller {
        font-size: 1.1rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .process-section .section-title {
        text-align: center;
    }

    /* 포트폴리오 섹션 반응형 */
    #our-portfolio {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .portfolio-container {
        margin-top: 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(1, 1fr); /* 1개씩 표시 */
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 1rem;
    }

    .slide-subdescription {
        display: none; /* 매우 작은 화면에서는 세부 설명 숨김 */
    }

    .hero-slider-nav {
        bottom: 30px;
    }

    .category-nav {
        font-size: 10px;
    }

    .slider-categories {
        width: 95%;
    }

    .about-section {
        padding: 40px 0;
        min-height: 300px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-text-en {
        font-size: 1rem;
    }

    .section-text-kr {
        font-size: 0.9rem;
    }

    .section-text-smaller {
        font-size: 1rem;
    }

    .service-grid {
        gap: 30px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-subtitle {
        font-size: 1rem;
    }

    .service-list li {
        font-size: 0.9rem;
    }

    .process-step {
        flex: 0 0 100%;
        padding: 15px;
    }

    .step-image-container {
        width: 100px;
        height: 100px;
    }

    .step-number {
        font-size: 36px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .step-desc {
        font-size: 0.9rem;
    }

    /* 포트폴리오 항목 모바일 스타일 조정 */
    .portfolio-title {
        font-size: 1.2rem;
        padding: 15px 15px 5px;
    }

    .portfolio-desc {
        font-size: 0.85rem;
        padding: 0 15px 15px;
    }
}

/* 반응형 미디어 쿼리 - 태블릿 이상 */
@media (min-width: 768px) {
    .process-step {
        flex: 0 0 50%;
    }
}

/* 반응형 미디어 쿼리 - 데스크탑 */
@media (min-width: 992px) {
    .process-step {
        flex: 0 0 25%;
    }

    .step-image-container {
        width: 150px;
        height: 150px;
    }

    .step-number {
        font-size: 56px;
    }
}

