:root {
    --bg-color: #FFFFFF;
    --text-color: #121212;
}

/* 다크모드 변수 */
:root.dark {
    --bg-color: rgb(61, 61, 61);
    --text-color: #FFFFFF;
}

body.dark {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark #hero:not(.neural-hero-section) {
    background: transparent;
}

/* 인터랙티브 배경 컨테이너 */
#constellation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    /* 라이트 모드: 단색 배경 */
    background: #FFF;
    transition: background 0.5s ease;
}

/* 홀로그램 효과 - 제거됨 */

/* 라이트 모드 Blob 효과 - 숨김 */
.blob {
    display: none;
}

/* 위로 올라가는 도형 효과 */
.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.05);
    animation: circleAnimate 25s linear infinite;
    bottom: -150px;
    border-radius: 0;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes circleAnimate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* 다크 모드에서 circles 숨김 */
body.dark .circles {
    display: none;
}

/* 큰 blob - 왼쪽 상단 */
.blob:nth-child(2) {
    width: 220px;
    height: 220px;
    background-color: #FFE4C9;
    top: 5%;
    left: 3%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-float-1 18s ease-in-out infinite alternate;
    animation-delay: 0s;
}

/* 중간 blob - 중앙 */
.blob:nth-child(3) {
    width: 150px;
    height: 150px;
    background-color: #D4F0E7;
    top: 40%;
    left: 45%;
    border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    animation: blob-float-2 12s ease-in-out infinite alternate;
    animation-delay: 1s;
}

/* 중간 blob - 중앙 하단 */
.blob:nth-child(4) {
    width: 140px;
    height: 140px;
    background-color: #E8E0F0;
    bottom: 12%;
    left: 38%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-float-3 20s ease-in-out infinite alternate;
    animation-delay: 2s;
}

/* 아주 큰 blob - 오른쪽 상단 */
.blob:nth-child(5) {
    width: 280px;
    height: 280px;
    background-color: #FFD6D6;
    top: -5%;
    right: 5%;
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    animation: blob-float-4 15s ease-in-out infinite alternate;
    animation-delay: 0.5s;
}

/* 중간 blob - 오른쪽 하단 */
.blob:nth-child(6) {
    width: 160px;
    height: 160px;
    background-color: #D6E8FF;
    bottom: 5%;
    right: 18%;
    border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    animation: blob-float-5 16s ease-in-out infinite alternate;
    animation-delay: 1.5s;
}

/* 각 blob마다 다른 애니메이션 */
@keyframes blob-float-1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1) rotate(10deg);
        border-radius: 40% 60% 70% 30% / 50% 50% 50% 50%;
    }
    100% {
        transform: translate(-15px, 15px) scale(0.9) rotate(-8deg);
        border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
    }
}

@keyframes blob-float-2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
    }
    50% {
        transform: translate(-25px, 25px) scale(1.15) rotate(-12deg);
        border-radius: 60% 40% 60% 40% / 50% 50% 50% 50%;
    }
    100% {
        transform: translate(20px, -20px) scale(0.85) rotate(15deg);
        border-radius: 40% 60% 40% 60% / 70% 30% 70% 30%;
    }
}

@keyframes blob-float-3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        transform: translate(40px, 20px) scale(1.2) rotate(20deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    100% {
        transform: translate(-30px, -25px) scale(0.8) rotate(-18deg);
        border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%;
    }
}

@keyframes blob-float-4 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }
    50% {
        transform: translate(-35px, -40px) scale(1.05) rotate(-15deg);
        border-radius: 30% 70% 50% 50% / 70% 70% 30% 30%;
    }
    100% {
        transform: translate(25px, 30px) scale(0.95) rotate(12deg);
        border-radius: 50% 50% 70% 30% / 50% 50% 50% 50%;
    }
}

@keyframes blob-float-5 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
    }
    50% {
        transform: translate(20px, 35px) scale(1.08) rotate(8deg);
        border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
    }
    100% {
        transform: translate(-25px, -15px) scale(0.92) rotate(-10deg);
        border-radius: 50% 50% 50% 50% / 70% 30% 70% 30%;
    }
}

/* 다크 모드에서 blob 숨김 */
body.dark .blob {
    display: none;
}

/* 라이트 모드에서 canvas 숨김 */
#constellationCanvas {
    display: none;
    width: 100%;
    height: 100%;
}

/* 라이트 모드에서 stardust-canvas 숨김 */
body:not(.dark) #stardust-canvas {
    display: none;
}

/* 다크 모드: 별자리 배경 */
body.dark #constellation-container {
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    animation: none;
}


body.dark #constellationCanvas {
    display: block;
}

/* 다크 모드에서 버블 숨김 */
body.dark .bubble {
    display: none;
}

body.dark .site-nav {
    background-color: transparent;
}

body.dark .text-black {
    color: white !important;
}

body.dark .text-black\/40 {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .text-black\/50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark .text-black\/20 {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark .text-black\/70 {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.dark .bg-white {
    background-color: rgb(61, 61, 61) !important;
}

/* 다크모드에서 오른쪽 텍스트 영역의 텍스트를 원래 색상에서 살짝 밝게 */
body.dark .lg\:col-span-7 .rotating-text-speak {
    color: #7a6bf5 !important;
}

body.dark .lg\:col-span-7 .rotating-text-caption {
    color: #4a52b8 !important;
}

body.dark .lg\:col-span-7 .rotating-text-counsel {
    color: #7a7fd4 !important;
}

/* CTA 섹션 배경색 조정 - 라이트 모드는 밝게, 다크 모드는 어둡게 */
section.py-60[style*="background-color"] {
    background-color: #FBFBFB !important;
}

body.dark section.py-60[style*="background-color"] {
    background-color: #616161 !important;
}

body.dark section.bg-\[#FBFBFB\] .text-black\/20 {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark section.bg-\[#FBFBFB\] .text-black\/50 {
    color: rgba(255, 255, 255, 1) !important;
}

body.dark section.bg-\[#FBFBFB\] h2 {
    color: white !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

body.dark section.bg-\[#FBFBFB\] .cta-primary.bg-black {
    background-color: white !important;
    color: rgb(61, 61, 61) !important;
}

body.dark section.bg-\[#FBFBFB\] .cta-primary.bg-black.text-white {
    color: rgb(61, 61, 61) !important;
}

body.dark section.bg-\[#FBFBFB\] .cta-primary:hover {
    background-color: rgba(172, 103, 103, 0.9) !important;
}

body.dark section.bg-\[#FBFBFB\] .cta-secondary {
    border-color: white !important;
    color: white !important;
    background-color: transparent !important;
}

body.dark section.bg-\[#FBFBFB\] .cta-secondary:hover {
    background-color: white !important;
    color: rgb(61, 61, 61) !important;
}

body.dark .border-black\/\[0\.03\] {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark .stats-bg {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%) !important;
}

body.dark .services-bg {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%) !important;
}

body.dark .features-bg {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%) !important;
}

body.dark .cta-section {
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%) !important;
}

body.dark .bg-black {
    background-color: white !important;
}

/* 푸터는 예외 처리 */
body.dark footer.bg-black {
    background-color: #121212 !important;
}

body.dark .bg-black.text-white {
    color: #121212 !important;
}

/* 푸터의 텍스트는 흰색 유지 */
body.dark footer.bg-black.text-white {
    color: white !important;
}

body.dark .border-black {
    border-color: white !important;
}

body.dark .border-black.text-sm {
    color: white !important;
}

body.dark .bg-black\/90:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

body.dark .hover\:bg-black:hover {
    background-color: white !important;
}

body.dark .hover\:text-white:hover {
    color: #121212 !important;
}

body.dark footer {
    background-color: #121212 !important;
}

body.dark footer,
body.dark footer * {
    color: white !important;
}

body.dark footer .text-white\/60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark footer .text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.dark footer .text-white\/40 {
    color: rgba(255, 255, 255, 0.4) !important;
}

body.dark footer svg {
    stroke: currentColor !important;
    color: currentColor !important;
}

body.dark .reveal-mask {
    background-color: rgb(61, 61, 61);
}


/* 이미지/비디오 컨테이너 모서리 둥글게, 흰색 테두리 */
.img-container {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: none;
    overflow: hidden !important;
    -webkit-border-radius: 20px !important;
    -moz-border-radius: 20px !important;
}

body.dark .img-container {
    border-color: white;
    background-color: white;
}

/* SPEAK 영상 영역 배경색 */
#speak .img-container {
    background-color: #f1f5f7;
}

/* CAPTION 영상 영역 배경색 */
#caption .img-container {
    background-color: #f1f5f7;
}

/* COUNSEL 영상 영역 배경색 */
#counsel .img-container {
    background-color: #ececec;
}

body.dark .bg-\[#F5F5F5\] {
    background-color: rgb(61, 61, 61) !important;
}

/* 다크모드 토글 스위치 */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch #input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196f3;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    z-index: 0;
    overflow: hidden;
}

.sun-moon {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

#input:checked + .slider {
    background-color: black;
}

#input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

#input:checked + .slider .sun-moon {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: white;
    -webkit-animation: rotate-center 0.6s ease-in-out both;
    animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
    opacity: 0;
    transition: 0.4s;
    fill: gray;
}

#input:checked + .slider .sun-moon .moon-dot {
    opacity: 1;
}

.slider.round {
    border-radius: 34px;
}

.slider.round .sun-moon {
    border-radius: 50%;
}

#moon-dot-1 {
    left: 10px;
    top: 3px;
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 4;
}

#moon-dot-2 {
    left: 2px;
    top: 10px;
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 4;
}

#moon-dot-3 {
    left: 16px;
    top: 18px;
    position: absolute;
    width: 3px;
    height: 3px;
    z-index: 4;
}

#light-ray-1 {
    left: -8px;
    top: -8px;
    position: absolute;
    width: 43px;
    height: 43px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#light-ray-2 {
    left: -50%;
    top: -50%;
    position: absolute;
    width: 55px;
    height: 55px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#light-ray-3 {
    left: -18px;
    top: -18px;
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

.cloud-light {
    position: absolute;
    fill: #eee;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

.cloud-dark {
    position: absolute;
    fill: #ccc;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-delay: 1s;
}

#cloud-1 {
    left: 30px;
    top: 15px;
    width: 40px;
}

#cloud-2 {
    left: 44px;
    top: 10px;
    width: 20px;
}

#cloud-3 {
    left: 18px;
    top: 24px;
    width: 30px;
}

#cloud-4 {
    left: 36px;
    top: 18px;
    width: 40px;
}

#cloud-5 {
    left: 48px;
    top: 14px;
    width: 20px;
}

#cloud-6 {
    left: 22px;
    top: 26px;
    width: 30px;
}

@keyframes cloud-move {
    0% {
        transform: translateX(0px);
    }

    40% {
        transform: translateX(4px);
    }

    80% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0px);
    }
}

.stars {
    transform: translateY(-32px);
    opacity: 0;
    transition: 0.4s;
}

.star {
    fill: white;
    position: absolute;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    animation-name: star-twinkle;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

#input:checked + .slider .stars {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

#star-1 {
    width: 20px;
    top: 2px;
    left: 3px;
    animation-delay: 0.3s;
}

#star-2 {
    width: 6px;
    top: 16px;
    left: 3px;
}

#star-3 {
    width: 12px;
    top: 20px;
    left: 10px;
    animation-delay: 0.6s;
}

#star-4 {
    width: 18px;
    top: 0px;
    left: 18px;
    animation-delay: 1.3s;
}

@keyframes star-twinkle {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate-center {
    0% {
        transform: translateX(26px) rotate(0);
    }
    100% {
        transform: translateX(26px) rotate(360deg);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: none; /* 커스텀 커서를 위해 기본 커서 숨김 */
    overflow-x: hidden;
}

/* 커스텀 마그네틱 커서 */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                height 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.1s ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* 다크모드에서 커서 색상 변경 */
body.dark #custom-cursor {
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
    mix-blend-mode: difference;
}

#cursor-text {
    font-size: 10px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: none;
    z-index: 10000;
    position: relative;
}

/* 라이트 모드에서 커서 텍스트 색상 - 커서 배경이 투명하므로 텍스트는 검정색 */
#custom-cursor #cursor-text {
    color: black !important;
}

/* 다크 모드에서 커서 텍스트 색상 - 커서 배경이 흰색이므로 텍스트는 검은색 */
body.dark #custom-cursor #cursor-text {
    color: black !important;
}

.cursor-active {
    width: 100px !important;
    height: 100px !important;
    transform: translate(-50px, -50px);
}

/* 텍스트 애니메이션 및 마스크 */
.reveal-mask {
    position: absolute;
    inset: 0;
    background-color: white;
    transform-origin: right;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-mask.active {
    transform: scaleX(0);
}

.parallax-item {
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 부드러운 호버 전환 */
.nav-item:hover {
    text-decoration: line-through;
}

.img-container img,
.img-container video {
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
    border-radius: 12px !important;
    display: block;
    overflow: hidden;
}

/* 비디오 래퍼 - 라운드 처리 */
.video-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative;
    -webkit-border-radius: 20px !important;
    -moz-border-radius: 20px !important;
}

.img-container video,
.video-wrapper video,
video.rounded-video {
    border-radius: 20px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    -webkit-border-radius: 20px !important;
    -moz-border-radius: 20px !important;
    display: block !important;
    overflow: hidden !important;
}

/* 스크롤 선 애니메이션 */
.line-grow {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-grow.active {
    transform: scaleX(1);
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scroll-indicator {
    height: 80px;
    width: 1px;
    background: rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    animation: scrollLine 2s infinite cubic-bezier(0.7, 0, 0.3, 1);
}

/* 네비게이션 로고 스타일 */
.site-nav {
    isolation: isolate;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav.visible {
    transform: translateY(0);
}

.logo-container {
    mix-blend-mode: normal;
}

.logo-container img {
    display: block;
    mix-blend-mode: normal;
    filter: none;
}

/* 히어로 섹션 - 깔끔한 스타일 */
#hero {
    background: #ffffff;
}

/* 텍스트 순환 (흰색 배경) */
.text-rotator-wrapper {
    position: relative;
    width: 100%;
}

.text-rotator-container {
    position: relative;
    width: 100%;
    height: 348px;
    overflow: visible;
}

@media (min-width: 1024px) {
    .text-rotator-container {
        height: 510px;
    }
}

.text-rotator-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 348px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .text-item {
        height: 520px;
    }
}

.rotating-text {
    font-size: clamp(5rem, 15vw, 14rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* 로고 색상 */
.rotating-text-speak {
    color: #655bec;
}

/* SPEAK 텍스트만 왼쪽 정렬 */
.text-item-speak {
    justify-content: flex-start;
    padding-left: 0;
    margin-left: -4rem;
    transform: translateY(-15px);
}

@media (min-width: 1024px) {
    .text-item-speak {
        margin-left: -8rem;
    }
}

/* CAPTION 텍스트 위치 조정 */
.text-item-caption {
    transform: translateY(-3px);
}

/* COUNSEL 텍스트 위치 조정 */
.text-item-counsel {
    transform: translateY(5px);
}

.rotating-text-caption {
    color: #323a96;
}

.rotating-text-counsel {
    color: #6166c4;
}

#hero {
    overflow: visible;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.service-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.service-image-container img,
.service-image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image-container img,
.service-card:hover .service-image-container video {
    transform: scale(1.1);
}

.service-card.rotating-active {
    transform: scale(1.05) translateY(-4px);
    z-index: 10;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-card.rotating-active .service-image-container {
    opacity: 1 !important;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-column-right {
        gap: 1rem;
    }
}

/* CTA 버튼 스타일 */
.cta-primary {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-secondary {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 통계 섹션 배경 */
.stats-bg {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.stats-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

/* 서비스 섹션 배경 */
.services-bg {
    background: #ffffff;
    position: relative;
}

.services-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* CAPTION 섹션 특별 배경 */
.caption-bg {
    position: relative;
}

.caption-bg::before {
    content: '';
    position: absolute;
    top: -20vh;
    left: 0;
    right: 0;
    bottom: -20vh;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 249, 250, 0.15) 20%, rgba(248, 249, 250, 0.15) 80%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* 다크모드에서 CAPTION 섹션 그라데이션 제거 */
body.dark .caption-bg::before {
    background: transparent;
}

/* CAPTION 섹션 왼쪽 텍스트 영역 왼쪽으로 이동 */
.caption-text-left {
    transform: translateX(-6rem);
}

@media (max-width: 1023px) {
    .caption-text-left {
        transform: none;
    }
}

/* 히어로 섹션 오른쪽 텍스트 영역 왼쪽으로 이동 */
.hero-text-right {
    transform: translateX(-4rem);
}

@media (max-width: 1023px) {
    .hero-text-right {
        transform: none;
    }
}

/* 주요 특징 섹션 배경 */
.features-bg {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 50%, #fafafa 100%);
    position: relative;
}

.features-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(0, 0, 0, 0.015) 49%, rgba(0, 0, 0, 0.015) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 0, 0, 0.015) 49%, rgba(0, 0, 0, 0.015) 51%, transparent 52%);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

/* 아코디언 UI 스타일 */
.accordion-container {
    margin-bottom: 40px;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    opacity: 0.7;
}

.accordion-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
}

.accordion-icon {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content-inner {
    padding: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.6);
}

body.dark .accordion-content-inner {
    color: rgba(255, 255, 255, 0.7);
}

body.dark .accordion-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark .accordion-title {
    color: white;
}

body.dark .accordion-icon {
    color: white;
}

/* 앵커 링크 스크롤 오프셋 - 네비게이션 바 높이만큼 조정 */
#speak,
#caption,
#counsel {
    scroll-margin-top: 80px;
}

/* 뉴런 형태 히어로 섹션 */
.neural-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body:not(.dark) .neural-hero-section {
    background: #ffffff;
}

.neural-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 1;
}

body:not(.dark) .neural-hero-section::before {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* 메인 노드 (AX2 CORE ENGINE) */
.neural-main-node {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translate(0, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.neural-core-icon {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 3px solid rgba(59, 130, 246, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.2);
    margin-bottom: 25px;
    animation: neural-glow 2s ease-in-out infinite;
    position: relative;
}

body:not(.dark) .neural-core-icon {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 3px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.neural-core-logo {
    width: 225px;
    height: 225px;
    object-fit: contain;
}

/* 라이트모드: 일반 로고 표시, 다크 로고 숨김 */
.neural-core-logo.neural-logo-light {
    display: block;
}

.neural-core-logo.neural-logo-dark {
    display: none;
}


/* 다크모드: 다크 로고 표시, 일반 로고 숨김 */
body.dark .neural-core-logo.neural-logo-light {
    display: none;
}

body.dark .neural-core-logo.neural-logo-dark {
    display: block;
}

.neural-core-icon::after {
    display: none;
}

@keyframes neural-glow {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.2); 
    }
    50% { 
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.8), inset 0 0 30px rgba(59, 130, 246, 0.4); 
    }
}

.neural-core-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.neural-core-ax2 {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: 0.1em;
}

body:not(.dark) .neural-core-ax2 {
    color: #1e293b;
}

.neural-core-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

body:not(.dark) .neural-core-label {
    color: #64748b;
}

.neural-core-info {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    min-width: 280px;
}

body:not(.dark) .neural-core-info {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.neural-core-info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

body:not(.dark) .neural-core-info-title {
    color: #1e293b;
}

.neural-core-info-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

body:not(.dark) .neural-core-info-desc {
    color: #64748b;
}

/* 서비스 카드 노드 */
.neural-sub-nodes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.neural-service-card-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 30px;
    min-width: 500px;
    transition: all 0.3s ease;
}

body:not(.dark) .neural-service-card-node {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.neural-service-card-node[data-index="0"] {
    top: 20%;
    right: 8%;
    transform: translate(0, -50%);
}

.neural-service-card-node[data-index="1"] {  
    top: 50%;
    right: 8%;
    transform: translate(0, -50%);
}

.neural-service-card-node[data-index="2"] {
    top: 80%;
    right: 8%;
    transform: translate(0, -50%);
}

.neural-service-icon-wrapper {
    position: relative;
    z-index: 20;
}

.neural-service-icon {
    width: 75px;
    height: 75px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body:not(.dark) .neural-service-icon {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.neural-service-icon svg {
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.8);
}

body:not(.dark) .neural-service-icon svg {
    color: #64748b;
}

.neural-service-icon-wrapper::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.neural-service-card-node[data-color="green"] .neural-service-icon-wrapper::before {
    color: #34d399;
}

.neural-service-card-node[data-color="yellow"] .neural-service-icon-wrapper::before {
    color: #fbbf24;
}

.neural-service-card-node[data-color="pink"] .neural-service-icon-wrapper::before {
    color: #f472b6;
}

.neural-service-card-content {
    flex: 1;
}

.neural-card-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.neural-card-speak {
    color: #34d399;
}

.neural-card-caption {
    color: #fbbf24;
}

.neural-card-counsel {
    color: #f472b6;
}

.neural-card-subtitle {
    font-size: 1.09375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-weight: 500;
}

body:not(.dark) .neural-card-subtitle {
    color: #64748b;
}

.neural-card-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

body:not(.dark) .neural-card-description {
    color: #64748b;
}

/* 스크롤 다운 인디케이터 애니메이션 */
.mouse-wheel {
    animation: mouse-scroll 1.5s ease-in-out infinite;
}

@keyframes mouse-scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.arrow-down {
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* 다크모드에서 스크롤 인디케이터 색상 조정 */
body.dark .mouse-wheel {
    background: white;
}

body:not(.dark) .mouse-wheel {
    background: rgba(0, 0, 0, 0.6);
}

body:not(.dark) .w-6.h-10 {
    border-color: rgba(0, 0, 0, 0.3);
}

body:not(.dark) .w-6.h-10.group-hover {
    border-color: rgba(0, 0, 0, 0.6);
}

body:not(.dark) .arrow-down {
    color: rgba(0, 0, 0, 0.4);
}

body:not(.dark) .arrow-down.group-hover {
    color: rgba(0, 0, 0, 0.8);
}
