/* ========================================
   PHYSIOKHAN 랜딩 페이지 전용 스타일
   베이지톤 프리미엄 테마
   ======================================== */

/* Pretendard 폰트 임포트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 연한 크림톤 배경 클래스 */
.bg-cream-light {
    background-color: #FAF8F5 !important;
}

/* 전체 body 배경 크림톤 적용 */
body {
    background-color: #FAF8F5 !important;
    overflow-x: hidden;
    position: relative;
}

html {
    overflow-x: hidden;
}

/* 맵 섹션 전용 스타일 */
#map {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    height: 420px;
}

/* 데스크탑에서 맵과 Contact 좌우 배치 */
@media (min-width: 768px) {
    #contact > div {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    #map {
        height: 600px !important;
    }
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-container {
        box-shadow: inset 40px 0 40px -40px rgba(0,0,0,0.05),
                    inset -40px 0 40px -40px rgba(0,0,0,0.05);
    }

    #process-section .group {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 히어로 슬라이드 애니메이션 */
@keyframes hero-fade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* 캐로셀 스크롤 애니메이션 */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-408px * 6)); }
}

@media (min-width: 768px) {
    .carousel-track {
        animation: scroll 30s linear infinite;
    }

    .carousel-track:hover {
        animation-play-state: paused;
    }
}

@media (max-width: 767px) {
    .carousel-track {
        animation: none;
    }
}

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

/* 히어로 슬라이드 */
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: hero-fade 15s linear infinite;
    z-index: 0;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 3s; }
.hero-slide:nth-child(3) { animation-delay: 6s; }
.hero-slide:nth-child(4) { animation-delay: 9s; }
.hero-slide:nth-child(5) { animation-delay: 12s; }

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* 브랜드 컬러 */
.bg-brand-navy {
    background-color: #005691;
}

.bg-brand-purple {
    background-color: #7E3794;
}

.text-brand-navy {
    color: #005691;
}

.text-brand-purple {
    color: #7E3794;
}

/* 섹션 공통 스타일 - 좌우 내부 그림자 효과 */
.section-container {
    box-shadow: inset 80px 0 80px -80px rgba(0, 0, 0, 0.08), inset -80px 0 80px -80px rgba(0, 0, 0, 0.08);
}

/* 터치 인터랙션 */
.program-card.touched p {
    opacity: 1;
    max-height: 80px;
    transition: all 0.3s ease;
}

.program-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* 고품질 이미지 렌더링 */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 스크롤 애니메이션 헬퍼 */
.scroll-animate {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 반짝이는 텍스트 애니메이션 */
.sparkle-text {
    animation: sparkle 3s ease-in-out infinite;
    color: #D4AF37;
    font-weight: bold;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.85;
        text-shadow: 0 0 3px rgba(212, 175, 55, 0.2);
    }
    25% {
        opacity: 0.95;
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3),
                     0 0 8px rgba(212, 175, 55, 0.15);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 6px rgba(212, 175, 55, 0.4),
                     0 0 10px rgba(212, 175, 55, 0.25),
                     0 0 15px rgba(212, 175, 55, 0.1);
    }
    75% {
        opacity: 0.95;
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3),
                     0 0 8px rgba(212, 175, 55, 0.15);
    }
}

/* 크기 펄스 애니메이션 */
@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.animate-scale-pulse {
    animation: scalePulse 2s ease-in-out infinite;
}

.animate-scale-pulse:hover {
    animation: none;
    transform: scale(1.05);
}

/* 스크롤바 숨기기 */
.scrollbar-hide {
    overflow-y: hidden !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Expert Showcase Section */
#expertGallery {
    position: relative;
    transition: max-height 0.7s ease-in-out, overflow 0.7s ease-in-out;
}

.expert-card {
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

#expertGallery .expert-card:nth-child(2) {
    margin-top: -80px;
    position: relative;
    transition: all 0.7s ease-in-out;
}

.hidden-experts {
    display: none;
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
    transform: translateY(20px);
}

#showMoreBtn {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

#showMoreBtn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.expert-card img {
    transition: transform 0.5s ease-in-out;
}

.expert-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #expertGallery {
        max-height: 500px !important;
    }

    #expertGallery .expert-card:nth-child(2) {
        margin-top: -80px;
    }

    .expert-card .flex-col {
        flex-direction: column !important;
    }
}
