/* ==========================================
   1. 기본 설정
========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: initial; }
body { font-family: 'Pretendard', 'Outfit', sans-serif; background-color: #050507 !important; color: #ffffff !important; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; display: inline-block; }
button { background: none; border: none; outline: none; font-family: inherit; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================
   2. 커스텀 커서 & 파티클 캔버스
========================================== */
.custom-cursor { position: fixed; top: 0; left: 0; width: 15px; height: 15px; background-color: #00f2fe; border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background-color 0.3s; display: flex; justify-content: center; align-items: center; mix-blend-mode: difference; }
.cursor-text { color: #000; font-size: 12px; font-weight: 700; opacity: 0; font-family: 'Outfit', sans-serif; }
#particle-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0.6; }

/* ==========================================
   3. 네비게이션
========================================== */
.detail-nav { position: fixed; top: 0; left: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; background: linear-gradient(to bottom, rgba(5,5,7,0.9), transparent); }
.back-btn { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; transition: opacity 0.3s; color: #fff; }
.back-btn:hover { opacity: 0.7; color: #00f2fe; }
.back-btn .arrow { font-size: 1.5rem; transition: transform 0.3s; }
.back-btn:hover .arrow { transform: translateX(-5px); }
.nav-logo { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.5rem; color: #00f2fe; }
.lang-toggle { display: flex; background: rgba(255,255,255,0.1); border-radius: 30px; padding: 4px; backdrop-filter: blur(5px); }
.lang-btn { padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; color: #aaa; transition: 0.3s; }
.lang-btn.active { background: #00f2fe; color: #000; }

/* ==========================================
   4. 히어로 섹션 (🔥 홀로그램 텍스트 효과)
========================================== */
.ai-hero { position: relative; width: 100vw; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 100px; }
.hero-title { 
    font-family: 'Outfit', sans-serif; 
    font-size: 6rem; 
    font-weight: 900; 
    margin-bottom: 20px; 
    position: relative; 
    /* 빛이 스르륵 지나가는 애니메이션 */
    background: linear-gradient(to right, #ffffff 20%, #00f2fe 40%, #4facfe 60%, #ffffff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}
@keyframes shine { to { background-position: 200% center; } }
.hero-subtitle { font-size: 1.5rem; font-weight: 500; color: #aaa; letter-spacing: 2px; }

/* ==========================================
   5. 무중력 부양 카드
========================================== */
.ai-info-section { padding: 80px 5%; display: flex; justify-content: center; align-items: center; min-height: 40vh; z-index: 2; position: relative; }
.levitate-container { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; max-width: 1200px; width: 100%; }
.levitate-card { flex: 1; min-width: 240px; background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 40px 30px; border-radius: 20px; text-align: center; box-shadow: 0 15px 35px rgba(0,0,0,0.3); will-change: transform; animation: levitate 4s ease-in-out infinite alternate; animation-delay: var(--delay); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, background 0.4s ease, border 0.4s ease; }
.levitate-card:hover { background: rgba(0, 242, 254, 0.08); border: 1px solid rgba(0, 242, 254, 0.5); box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(0, 242, 254, 0.3); transform: translate3d(0, -10px, 0) scale(1.02); }
.levitate-card:hover h4 { color: #fff; text-shadow: 0 0 15px rgba(0, 242, 254, 0.8); }
.levitate-card h4 { font-family: 'Outfit', sans-serif; font-size: 1rem; color: #00f2fe; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; transition: all 0.3s ease; }
.levitate-card p { font-size: 1.1rem; font-weight: 500; color: #FFF; line-height: 1.6; word-break: keep-all; }
.pc-br { display: block; }
.mobile-br { display: none; }
@keyframes levitate { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(0, -15px, 0); } }

/* ==========================================
   6. 3D 회전목마 갤러리 (안내 문구 하단 고정)
========================================== */
.ai-gallery-section { position: relative; width: 100vw; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; perspective: 1000px; z-index: 2; }
.carousel-container { position: relative; width: 300px; height: 400px; transform-style: preserve-3d; }
.carousel-3d { position: absolute; width: 100%; height: 100%; transform-style: preserve-3d; }
.carousel-item { position: absolute; top: 0; left: 0; width: 300px; height: 400px; border-radius: 20px; overflow: hidden; box-shadow: 0 0 30px rgba(0,242,254,0.2); border: 1px solid rgba(255,255,255,0.2); -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, rgba(0,0,0,0.2)); }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.item-caption { position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.7); color: #00f2fe; padding: 8px 15px; border-radius: 30px; font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 700; backdrop-filter: blur(5px); border: 1px solid rgba(0,242,254,0.3); }

/* 🔥 안내 문구를 화면 맨 아래로 이동 */
.scroll-hint { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); font-size: 1rem; color: #aaa; letter-spacing: 2px; animation: pulse 2s infinite; z-index: 10; width: 100%; text-align: center; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; color: #00f2fe; } }

/* ==========================================
   7. 다음 프로젝트
========================================== */
.next-project.ai-dark { background-color: #050507; color: white; padding: 150px 5%; text-align: center; display: flex; flex-direction: column; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); z-index: 2; position: relative; }
.next-label { font-family: 'Outfit', sans-serif; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; color: #aaa; }
.next-title { font-family: 'Outfit', sans-serif; font-size: 6vw; font-weight: 900; color: #00f2fe; transition: color 0.3s, transform 0.3s; }
.next-title:hover { color: white; transform: scale(1.05); text-shadow: 0 0 20px rgba(0,242,254,0.5); }

/* ==========================================
   8. 모바일 반응형
========================================== */
@media screen and (max-width: 768px) {
    .custom-cursor { display: none; } * { cursor: auto !important; }
    .detail-nav { padding: 15px 20px; background: rgba(5,5,7,0.95); }
    .back-btn { font-size: 0.8rem; } .nav-logo { font-size: 1.2rem; }
    .ai-hero { min-height: 40vh; padding-top: 120px; }
    .hero-title { font-size: 3rem; } .hero-subtitle { font-size: 1rem; }
    .pc-br { display: none; } .mobile-br { display: block; }
    .ai-info-section { padding: 40px 5%; }
    .levitate-container { flex-direction: column; gap: 20px; }
    .levitate-card { width: 100%; padding: 30px 20px; animation: none; transform: none !important; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    .levitate-card p { font-size: 1rem; }
    .ai-gallery-section { height: 80vh; }
    .carousel-container { width: 220px; height: 300px; }
    .carousel-item { width: 220px; height: 300px; }
    .item-caption { font-size: 0.75rem; bottom: 15px; left: 15px; }
    .scroll-hint { bottom: 8%; font-size: 0.85rem; }
    .next-project.ai-dark { padding: 100px 5%; }
    .next-project.ai-dark .next-title { font-size: 2.5rem; }
}
