@charset "utf-8";

/* ============================================================
   헤더 & 풀메뉴 (상태 / 전환 / 복합 효과 전용)
   - 정적 레이아웃·크기·색상은 head.php Tailwind 유틸리티로 처리
   - 여기에는 .header-fixed / .menu-open / .active / .visible 등
     상태 변경에 따른 스타일과 pseudo-element 애니메이션만 남김
   ============================================================ */

/* ----------- 헤더 상태 전환 ----------- */
#header.header-fixed > .navigation,
#header.menu-open > .navigation {
    background-color: #fff;
    box-shadow: 0 10px 15px 0 rgba(0, 0, 0, 0.05);
    padding-top: 0;
}

/* 로고 컬러 토글: 기본 white → fixed/open 시 black */
#header.header-fixed .logo img.logo-white,
#header.menu-open .logo img.logo-white {
    opacity: 0;
}
#header.header-fixed .logo img.logo-black,
#header.menu-open .logo img.logo-black {
    opacity: 1;
}

/* PC 네비 메뉴 항목: 기본 숨김 → header-fixed 시 슬라이드인 */
#header .navigation-menu > li {
    transform: translateX(-10%);
    opacity: 0;
    transition: all 0.6s ease-in-out;
    pointer-events: none;
}
#header.header-fixed .navigation-menu > li {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ----------- 햄버거 토글러 (.active = X자 변형) ----------- */
.menu-icon.active .toggler-1 {
    transform: rotate(45deg);
}
.menu-icon.active .toggler-2 {
    opacity: 0;
}
.menu-icon.active .toggler-3 {
    transform: rotate(-45deg);
}

/* ----------- PC 네비 라벨 한 글자씩 페이드인 (pseudo-element) ----------- */
.navigation-label .char {
    display: inline-block;
    position: relative;
    color: transparent;
    overflow: hidden;
}
.navigation-label .char::before,
.navigation-label .char::after {
    position: absolute;
    top: 0;
    left: 0;
    color: #212121;
    content: attr(data-char);
    transition: transform 0.35s;
    transition-delay: calc(30ms * var(--char-index));
}
.navigation-label .char::before {
    transform: translateY(100%);
}
.navigation-label:hover .char::before {
    transform: translateY(0%);
    opacity: 1;
    color: var(--primary);
}
.navigation-label:hover .char::after {
    transform: translateY(-100%);
}

/* ============================================================
   풀메뉴 (햄버거 토글 → #header.menu-open 시 표시)
   ============================================================ */

/* 풀메뉴 초기 상태 (숨김) */
#header .full-menu-wrap {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}
#header .full-menu-wrap .menu-item {
    pointer-events: none;
}

/* 풀메뉴 hover / active 색상 전환 */
#header .full-menu-wrap .menu-item h5 {
    transition: color 0.4s ease-in-out, background-color 0.4s ease-in-out, border-color 0.4s ease-in-out;
}
#header .full-menu-wrap .menu-item .menu-item-title {
    transition: color 0.4s ease-in-out;
}
#header .full-menu-wrap .menu-item .menu-item-title:hover,
#header .full-menu-wrap .menu-item.active > h5 .menu-item-title {
    color: var(--primary);
}
#header .full-menu-wrap .menu-item h5 .icon-wrap {
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}
#header .full-menu-wrap .menu-item .menu-box > li > a {
    transition: color 0.3s ease-in-out, font-weight 0.3s ease-in-out;
}
#header .full-menu-wrap .menu-item .menu-box > li > a:hover {
    color: var(--primary);
    font-weight: 600;
}

/* 배경 이미지 슬라이드 (오버레이) */
#header .full-menu-wrap .img-wrap .img {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s ease-in-out, transform 0.8s ease-in-out;
}
#header .full-menu-wrap .img-wrap .img.visible {
    opacity: 1;
    transform: scale(1);
}

/* 풀메뉴 열림 상태 */
#header.menu-open {
    pointer-events: auto;
}
#header.menu-open .full-menu-wrap,
#header.menu-open .full-menu-wrap .menu-item {
    opacity: 1;
    pointer-events: auto;
}
#header.menu-open .navigation-menu {
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s ease-in-out;
}

/* ----------- 모바일 (lg 미만): 풀메뉴 아코디언 / 헤더 투명화 ----------- */
@media (max-width: 1023px) {
    /* 풀메뉴 열림 시 네비 배경/그림자 제거 → 메뉴 흰 배경과 시각적 통합 */
    #header.menu-open > .navigation,
    #header.menu-open.header-fixed > .navigation {
        background-color: transparent;
        box-shadow: none;
    }

    /* 메뉴 아이템 펼침 상태 (visible) */
    #header .full-menu-wrap .menu-item.visible h5 {
        background-color: var(--primary);
    }
    #header .full-menu-wrap .menu-item.visible h5 .menu-item-title,
    #header .full-menu-wrap .menu-item.visible h5 .menu-item-title .en {
        color: #fff;
    }
    #header .full-menu-wrap .menu-item.visible h5 .icon-wrap {
        color: #fff;
        transform: rotate(180deg);
    }

    /* 아코디언 roller: JS 가 inline height 로 토글, 트랜지션만 정의 */
    #header .full-menu-wrap .menu-item .menu-box-roller {
        height: 0;
        transition: height 0.35s ease-in-out;
    }
}

/* 메인 */
/* ============================================================
   메인 히어로 (Hero Section)
   - 기본 상태: padding + border-radius (카드형)
   - 스크롤로 벗어나면(.is-exit): padding 0, border-radius 0
   - GSAP ScrollTrigger scrub 으로 CSS 변수 보간 처리
   ============================================================ */
.hero-section {
    --hero-progress: 0; /* 0 = initial, 1 = exit */
    padding: calc(var(--space-36) * (1 - var(--hero-progress)));
    transition: padding 0.1s linear;
    will-change: padding;
}

.hero-section-wrap {
    border-radius: calc(3rem * (1 - var(--hero-progress, 0)));
    transition: border-radius 0.1s linear;
    will-change: border-radius;
}

/* JS 미사용 / 폴백 (scrub 대신 단순 토글) */
.hero-section.is-exit {
    --hero-progress: 1;
}

/* 메인 히어로 Swiper + Parallax */
.main-hero-swiper,
.main-hero-swiper .swiper-wrapper,
.main-hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.main-hero-swiper .swiper-slide {
  overflow: hidden;
}



.hero-slide-content [data-swiper-parallax] {
  will-change: transform, opacity;
}

.main_bg {
    opacity: 1;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

/* ----------- 메인 히어로 텍스트 (sub-title → title 순으로 페이드인) ----------- */
.hero-slide-content .hero-sub-title,
.hero-slide-content .hero-title {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}



/* ----------- 메인 히어로 페이지네이션 (원형 진행 bullet) ----------- */
.hero-pagination {
    --hero-autoplay: 5s;
}
.hero-pagination .hero-bullet {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    cursor: pointer;
}
.hero-pagination .hero-bullet-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.3s ease, transform 0.3s ease;
}
.hero-pagination .hero-bullet-active .hero-bullet-dot {
    background: #fff;
    transform: scale(1.1);
}
.hero-pagination .hero-bullet-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.hero-pagination .hero-bullet-active .hero-bullet-ring {
    opacity: 1;
}
.hero-pagination .hero-bullet-ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 1.5;
}
.hero-pagination .hero-bullet-ring-bar {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 100.531; /* 2 * π * r (r=16) */
    stroke-dashoffset: 100.531; /* 0% 시작 */
}
.hero-pagination .hero-bullet-active .hero-bullet-ring-bar {
    animation: heroBulletProgress var(--hero-autoplay, 5s) linear forwards;
}
.main_slide.is-paused .hero-pagination .hero-bullet-active .hero-bullet-ring-bar {
    animation-play-state: paused;
}

@keyframes heroBulletProgress {
    from { stroke-dashoffset: 100.531; }
    to { stroke-dashoffset: 0; }
}

/* ----------- 메인 히어로 prev / next ----------- */
.hero-prev.swiper-button-disabled,
.hero-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* =========================================================================
   메인페이지 섹션 전용 스타일
   - layout / spacing 은 Tailwind 처리, 여기는 효과/애니메이션만 정의
   ========================================================================= */

/* ----------------------------------
   1. ABOUT SECTION
---------------------------------- */


/* ----------------------------------
   2. BUSINESS SECTION
---------------------------------- */
.business-bg-stage .business-bg {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.7s ease, transform 5s ease-out;
  will-change: opacity, transform;
}
.business-bg-stage .business-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.business-card {
  cursor: pointer;
}
.business-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56,41,204,0.18), rgba(56,41,204,0));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.business-card:hover::before {
  opacity: 1;
}

/* ----------------------------------
   3. EXPORT PERFORMANCE
---------------------------------- */
.export-section {
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(56,41,204,0.18) 0%, rgba(56,41,204,0) 70%),
    #050610;
}
.export-grid-overlay {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 6rem 6rem;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
.export-stat {
  transition: background 0.4s ease, transform 0.4s ease;
}
.export-stat:hover {
  background: #0c1020;
}
.export-stat .count-target {
  display: inline-block;
}

/* ----------------------------------
   4. GLOBAL NETWORK
---------------------------------- */
.global-network-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 80% 20%, rgba(56,41,204,0.2) 0%, transparent 70%),
    radial-gradient(40% 60% at 15% 80%, rgba(108,93,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.global-map {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(56,41,204,0.12) 0%, transparent 70%),
    #0a0e1a;
    
}

.global-map-routes .route-path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  opacity: 0;
}
.global-map.is-animate .route-path {
  animation: routeDraw 2.4s ease forwards;
}
.global-map.is-animate .route-path:nth-child(2)  { animation-delay: 0.05s; }
.global-map.is-animate .route-path:nth-child(3)  { animation-delay: 0.18s; }
.global-map.is-animate .route-path:nth-child(4)  { animation-delay: 0.31s; }
.global-map.is-animate .route-path:nth-child(5)  { animation-delay: 0.44s; }
.global-map.is-animate .route-path:nth-child(6)  { animation-delay: 0.57s; }
.global-map.is-animate .route-path:nth-child(7)  { animation-delay: 0.70s; }
.global-map.is-animate .route-path:nth-child(8)  { animation-delay: 0.83s; }
.global-map.is-animate .route-path:nth-child(9)  { animation-delay: 0.96s; }
.global-map.is-animate .route-path:nth-child(10) { animation-delay: 1.09s; }
.global-map.is-animate .route-path:nth-child(11) { animation-delay: 1.22s; }
.global-map.is-animate .route-path:nth-child(12) { animation-delay: 1.35s; }
.global-map.is-animate .route-path:nth-child(13) { animation-delay: 1.48s; }
.global-map.is-animate .route-path:nth-child(14) { animation-delay: 1.61s; }
.global-map.is-animate .route-path:nth-child(15) { animation-delay: 1.74s; }
.global-map.is-animate .route-path:nth-child(16) { animation-delay: 1.87s; }

@keyframes routeDraw {
  0%   { stroke-dashoffset: 80; opacity: 0; }
  20%  { opacity: 1; }
  100% { stroke-dashoffset: 0;  opacity: 0.85; }
}

.global-point {
  width: 1.2rem;
  height: 1.2rem;
}
.global-point .global-point-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 9999px;
  background: #6c5dff;
  box-shadow: 0 0 12px rgba(108,93,255,0.8);
  z-index: 2;
}
.global-point.is-main .global-point-dot {
  width: 1.2rem;
  height: 1.2rem;
  background: #ffffff;
  box-shadow: 0 0 24px rgba(108,93,255,1), 0 0 4px #fff inset;
}
.global-point .global-point-pulse {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 9999px;
  background: rgba(108,93,255,0.45);
  animation: pointPulse 2.4s ease-out infinite;
  animation-delay: var(--p-delay, 0s);
  z-index: 1;
}
.global-point.is-main .global-point-pulse {
  background: rgba(255,255,255,0.55);
  width: 1.2rem;
  height: 1.2rem;
}
.global-point .global-point-label {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translate(-50%, -4px);
}
.global-point:hover .global-point-label,
.global-point.is-main .global-point-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes pointPulse {
  0%   { transform: scale(1);   opacity: 0.65; }
  100% { transform: scale(5.5); opacity: 0;    }
}



.sub-hero-section::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  z-index: 3;
}


.reveal-fade {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s cubic-bezier(0.16,1,0.3,1),
              transform 1s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal-fade.is-inview {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 1023px) {
  .global-map {
    aspect-ratio: 4 / 3;
  }
  .global-point .global-point-label {
    font-size: 1rem;
  }
  .process-arrow {
    display: none !important;
  }
}




.business-item {
  perspective: 300px;
}


.business-box {
  transform-origin: center top;
  filter: brightness(1);
  overflow: hidden;
}



/* tablet 이하 - 세로 스택, 패딩 축소 */
@media (max-width: 1023px) {
  .business-item {
    margin-bottom: var(--space-24);
  }
  .business-box {
    flex-direction: column;
    padding: var(--space-32);
    gap: var(--space-24);
    border-radius: 1.2rem;
  }

}


.esg-image {
  opacity: 0;
  transition: opacity 0.7s ease-out;
  pointer-events: none;
}
.esg-image.is-active {
  opacity: 1;
  pointer-events: auto;
}



