/* =========================================================================
   ART 35mm - Premium Outdoor Cinema Design System
   ========================================================================= */

/* Variables */
:root {
    --color-bg: #0d0d0d;
    /* Rich Dark Gray */
    --color-surface: #1a1a1a;
    /* Dark Gray for panels */
    --color-accent: #D4AF37;
    /* Cinema Gold */
    --color-accent-hover: #F3E5AB;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0A0A0;
    --color-border: rgba(255, 255, 255, 0.1);

    --glass-bg: rgba(28, 28, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);

    --font-main: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    --font-heading: 'Pretendard Variable', 'Cinzel', serif;
    /* Or keep pretendard but bolder, wait, Cinzel is good for English headings */
}

/* Lucide Icons Global */
.lucide {
    width: 1em;
    height: 1em;
    stroke-width: 2px;
    stroke: currentColor;
    fill: none;
    vertical-align: -0.125em;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37 0%, #8B6914 100%);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F3E5AB;
}

/* ── Text Selection Color ── */
::selection {
    background: rgba(212, 175, 55, 0.35);
    color: #fff;
}

/* ── Scroll Progress Bar ── */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9999; /* 커스텀 커서보다는 낮고 헤더보다는 높게 */
    pointer-events: none;
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #BFA140, #F5DC6E, #D4AF37);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
    transition: width 0.1s ease-out;
}
::-moz-selection {
    background: rgba(212, 175, 55, 0.35);
    color: #fff;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    /* Lenis handles smooth scroll */
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* 커스텀 커서 사용 시 기본 커서 숨김 */
}

/* Custom Cursor - Firefly Swarm Mode */
.cursor-dot-swarm,
.cursor-outline-swarm {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
}

.cursor-dot-swarm {
    width: 3px;
    height: 3px;
    background-color: #e3ff4d;
    box-shadow: 0 0 12px 3px rgba(227, 255, 77, 0.9);
    animation: firefly-flicker 1.5s infinite ease-in-out;
}

.cursor-outline-swarm {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(227, 255, 77, 0.2) 0%, rgba(227, 255, 77, 0) 75%);
    filter: blur(4px);
}

.cursor-outline-swarm.hover {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(227, 255, 77, 0.4) 0%, rgba(227, 255, 77, 0) 75%);
}

@media (max-width: 1024px) {
    body { cursor: auto; }
    .cursor-dot-swarm, .cursor-outline-swarm { display: none; }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img,
video {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-wide {
    max-width: 1600px;
    /* 실적 카드 전용: 다른 본문(1400px)보다 넓게 배치 */
    margin: 0 auto;
    padding: 0 4%;
}

.section {
    padding: 12rem 0; /* 패딩 약간 확대 */
    position: relative;
    overflow: hidden;
}

/* 섹션 간의 깊이감 있는 공간감을 위한 상하단 페이드 오버레이 */
.section::before,
.section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

.section::before {
    top: 0;
    background: linear-gradient(to bottom, var(--color-bg) 0%, rgba(13,13,13,0.7) 40%, transparent 100%);
}

.section::after {
    bottom: 0;
    background: linear-gradient(to top, var(--color-bg) 0%, rgba(13,13,13,0.7) 40%, transparent 100%);
}

/* Explicit section separators for better visual distinction */
#services {
    position: relative;
    background-image: url('mountin.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.5);
    z-index: 1;
}

#services>* {
    position: relative;
    z-index: 2;
}

#portfolio {
    background-color: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.5);
}

#equipment {
    background: linear-gradient(to bottom, #111111, var(--color-bg));
    position: relative;
}

#equipment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

#process {
    background-color: #121212;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.5);
}

#contact {
    position: relative;
    background-image: url('contact-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
    z-index: 2;
}

#contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.7);
    z-index: 1;
}

#contact>* {
    position: relative;
    z-index: 3;
}

.section-header {
    margin-bottom: 4rem;
}

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

.section-subtitle {
    color: var(--color-accent);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.06);
    word-break: keep-all;
}

.accent {
    /* Metallic Gold Gradient Text */
    color: var(--color-accent);
    background: linear-gradient(135deg, #BFA140 0%, #F5DC6E 25%, #D4AF37 50%, #F5DC6E 75%, #BFA140 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gold-shimmer 3s linear infinite;
}

@keyframes gold-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes projector-flicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    10%, 90% { opacity: 0.98; filter: brightness(1.05); }
    30%, 70% { opacity: 1; filter: brightness(0.95); }
    50% { opacity: 0.96; filter: brightness(1.1); }
}

@keyframes cinematic-glint {
    0% { transform: translateX(-150%) skewX(-25deg); }
    100% { transform: translateX(150%) skewX(-25deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, #C9A227 0%, #F0D060 50%, #C9A227 100%);
    background-size: 200% auto;
    color: #000;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Shine sweep animation on hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 140%;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45), 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--color-text-primary);
    position: relative;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-outline:hover::after {
    left: 140%;
}

.btn-outline:hover {
    background-color: var(--color-text-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn-kakao,
.btn-naver,
.btn-youtube,
.btn-instagram {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    gap: 8px; /* 아이콘과 텍스트 간격 */
}

.btn-kakao i, .btn-kakao svg,
.btn-naver i, .btn-naver svg,
.btn-youtube i, .btn-youtube svg,
.btn-instagram i, .btn-instagram svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2px;
}

.btn-kakao:hover {
    background: rgba(254, 229, 0, 0.15);
    border-color: rgba(254, 229, 0, 0.6);
    color: #FEE500;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(254, 229, 0, 0.3);
    transform: translateY(-8px) scale(1.08);
}

.btn-naver:hover {
    background: rgba(3, 199, 90, 0.15);
    border-color: rgba(3, 199, 90, 0.6);
    color: #03C75A;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(3, 199, 90, 0.3);
    transform: translateY(-8px) scale(1.08);
}

.btn-youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.6);
    color: #FF0000;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 0, 0.3);
    transform: translateY(-8px) scale(1.08);
}

.btn-instagram:hover {
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.6);
    color: #E1306C;
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(225, 48, 108, 0.3);
    transform: translateY(-8px) scale(1.08);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(28, 28, 28, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Image Loading Experience (Skeleton & Fade-in) */
.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: inherit;
}

.skeleton-loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.img-fade-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-fade-in.loaded {
    opacity: 1;
}

.record-image {
    position: relative;
    overflow: hidden;
}

.record-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.film-countdown {
    font-family: 'Cinzel', serif;
    font-size: 8rem;
    font-weight: 700;
    color: #333;
    /* dark grey before it lights up */
    display: block;
    line-height: 1;
}

.loader-brand {
    margin-top: 2rem;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--color-text-secondary);
    opacity: 0;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

#header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 3rem;
}


.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Underline slide-in from center on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(-50%);
    filter: blur(0.5px);
}

.nav-links a:hover::after {
    width: 120%; /* Slightly wider than text for elegance */
    filter: drop-shadow(0 0 5px var(--color-accent));
}

.nav-links a:hover {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

/* HERO Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video,
.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.2) 50%, rgba(13, 13, 13, 0.5) 100%);
}

.hero-content {
    margin-top: 5rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 800px;
}

.hero-text .subtitle {
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero-text .title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow:
        0 2px 20px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(212, 175, 55, 0.06);
}

/* Fireflies Effect */
.fireflies-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #e3ff4d;
    box-shadow: 0 0 10px 2px rgba(227, 255, 77, 0.8), 0 0 20px 5px rgba(227, 255, 77, 0.4);
    will-change: transform, opacity;
}


/* firefly-rise 애니메이션이 자바스크립트 기반 랜덤 이동으로 대체되었습니다. */

@keyframes firefly-flicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.4; filter: brightness(1.5); }
}

/* Shooting Star Effect */
.shooting-star-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(-90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 10px #fff);
    border-radius: 50%;
}

@keyframes shooting-star-anim {
    0% {
        transform: translate(0, 0) rotate(-35deg) scaleX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(0, 0) rotate(-35deg) scaleX(1);
    }
    100% {
        transform: translate(-1000px, 700px) rotate(-35deg) scaleX(1);
        opacity: 0;
    }
}

/* Cinematic Reveal Animation Styles */
.cinematic-reveal {
    display: flex;
    flex-direction: column;
    position: relative;
}

.reveal-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em; /* Prevent clipping of descenders */
    margin-bottom: -0.1em;
}

.reveal-inner {
    display: block;
    transform: translateY(115%);
    will-change: transform;
}


.hero-text .desc {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.scroll-indicator p {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* SERVICES Section - Tab UI */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: stretch;
}

.about-text.glass-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
}

.about-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 550px;
    background: #000;
}

.vintage-grain-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); /* Subtle grain pattern */
    opacity: 0.15;
    pointer-events: none;
    z-index: 12;
    animation: grainMove 2s steps(4) infinite;
}

@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    30% { transform: translate(1%, -2%); }
    50% { transform: translate(-2%, 1%); }
    70% { transform: translate(2%, 2%); }
}

.light-leak-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.2) 0%, transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 11;
    animation: lightLeak 8s infinite alternate ease-in-out;
}

@keyframes lightLeak {
    0% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    100% { opacity: 0.6; transform: scale(1.5) rotate(10deg); background-color: rgba(255, 100, 0, 0.1); }
}

.image-loop-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: sepia(0.2) contrast(1.1);
    animation: projectorFlicker 0.15s infinite;
}

@keyframes projectorFlicker {
    0% { opacity: 1; filter: brightness(1) contrast(1.1); }
    50% { opacity: 0.95; filter: brightness(1.05) contrast(1.15); }
    100% { opacity: 1; filter: brightness(1) contrast(1.1); }
}

.loop-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.1) translate(0, 0);
}

.loop-img.active {
    opacity: 1;
    z-index: 1;
    animation: kenBurns 12s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(-2%, -2%); }
}

.about-loop-caption {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.loop-year {
    font-size: 1.8rem;
    color: #ff3e3e; /* Digital Red */
    font-weight: bold;
    letter-spacing: 2px;
}

.loop-status {
    font-size: 0.9rem;
    color: #fff;
    margin-top: 5px;
    animation: blink 1s infinite step-end;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Responsive About */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-visual {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .about-text.glass-panel {
        padding: 2rem;
    }
    .about-visual {
        min-height: 300px;
    }
}

.service-tabs {
    display: flex;
    gap: 0;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.service-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.4rem 2rem;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.35s ease;
    border-right: 1px solid var(--glass-border);
}

.service-tab-btn:last-child {
    border-right: none;
}

.service-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.service-tab-btn:hover .tab-icon .lucide {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.service-tab-btn.active {
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.06);
}

.service-tab-btn.active::after {
    width: 100%;
    animation: pulse-glow-line 2s infinite ease-in-out;
}

@keyframes pulse-glow-line {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 5px var(--color-accent); }
    50% { opacity: 1; box-shadow: 0 0 15px var(--color-accent); }
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-icon .lucide {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-tab-btn.active .tab-icon .lucide {
    color: var(--color-accent);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.tab-label {
    letter-spacing: -0.01em;
}

/* Panel container */
.service-panels {
    position: relative;
}

.service-panel {
    display: none;
    padding: 3rem;
    animation: panelFadeIn 0.45s ease;
}

.service-panel.active {
    display: block;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-inner {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}

/* Panel text area */
.panel-tag {
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.panel-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.panel-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.panel-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.panel-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.feat-icon {
    color: var(--color-accent);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Panel stats */
.panel-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-box {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(212, 175, 55, 0.08);
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    justify-content: center;
    white-space: nowrap;
    gap: 2px;
    /* Gold Gradient Text */
    color: var(--color-accent);
    background: linear-gradient(135deg, #BFA140 0%, #F5DC6E 40%, #D4AF37 60%, #F0D060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-num sup {
    font-size: 1rem;
    vertical-align: super;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

/* Panel Process (야외영화상영 내부 타임라인) */
.panel-process {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
}

.panel-process-label {
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.panel-process-steps {
    display: flex;
    gap: 0;
    position: relative;
}

.panel-process-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(28px / 2);
    right: calc(28px / 2);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    opacity: 0.4;
    z-index: 0;
}

.panel-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.panel-step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    transition: background 0.3s ease, color 0.3s ease;
}

.panel-step:hover .panel-step-num {
    background: var(--color-accent);
    color: #000;
}

.panel-step h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.panel-step p {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* Partner Logo Ticker (Distribution Panel) */
.partner-ticker {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    /* Edge fade effect */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    gap: 0;
    align-items: center;
    animation: logoScroll 40s linear infinite;
}

.ticker-item {
    flex-shrink: 0;
    width: 210px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.4s ease;
}

.ticker-item:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

.ticker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes logoScroll {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }

    /* -50% for seamless loop when gap is 0 */
}

/* PORTFOLIO Section */



/* EQUIPMENT Section */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

/* 모바일: 1열 */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}


.equipment-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.equipment-card:hover {
    transform: translateY(-12px);
    background: rgba(30, 30, 30, 0.5);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Lens flare overlay for equipment cards */
.equipment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.equipment-card:hover::before {
    opacity: 1;
}

.equipment-card .eq-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.eq-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.eq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.equipment-card:hover .eq-image img {
    transform: scale(1.12);
    animation: projector-flicker 2s infinite linear;
}

.equipment-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    word-break: keep-all;
}

.equipment-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* PROCESS Section */
.process-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    position: relative;
}

.process-wrapper::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.step-num {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-bg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.process-step p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ABOUT Section */
#about {
    position: relative;
    background-image: url('about-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(5, 5, 5, 0.85) 0%,
            rgba(5, 5, 5, 0.6) 50%,
            rgba(5, 5, 5, 0.85) 100%);
    z-index: 1;
}

#about>* {
    position: relative;
    z-index: 2;
}


.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2.4rem;
    color: var(--color-accent);
    margin-bottom: 2.5rem;
    line-height: 1.3;
    font-family: var(--font-heading);
    word-break: keep-all;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.85;
    margin-bottom: 1.8rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.about-text p:last-of-type {
    margin-bottom: 3.5rem;
}

.highlight-marker {
    color: rgba(204, 255, 0, 0.5); /* 50% 투명도 형광색 */
    font-weight: 700;
    display: inline;
    transition: all 0.3s ease;
}

.highlight-marker:hover {
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.6);
    filter: brightness(1.2);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2.5rem;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary);
    word-break: keep-all;
}

.highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.highlight-icon .lucide {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    stroke-width: 2px;
}

/* 주요 분야(WORKS) 카드 스타일 */
.works-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
    position: relative; /* 인디케이터 배치를 위해 추가 */
    background: rgba(255, 255, 255, 0.02);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.work-card {
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid transparent; /* 기본 보더 제거 (컨테이너 보더 활용) */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.work-card:hover {
    transform: translateY(-4px);
    color: var(--color-accent);
}

.work-card.active {
    /* active 스타일은 인디케이터가 대신하므로 텍스트 색상 정도만 조정 */
    color: var(--color-accent);
}

.work-icon {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.work-icon .lucide {
    width: 38px;
    height: 38px;
    stroke-width: 1.2px;
    color: var(--color-text-secondary);
    transition: all 0.4s ease;
}

.work-card:hover .work-icon .lucide,
.work-card.active .work-icon .lucide {
    color: var(--color-accent);
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.work-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.work-content {
    display: none;
    width: 100%;
}

.work-content.active {
    display: block;
    animation: fadeInSlideUp 0.6s ease-out forwards;
}

.work-content h4 {
    font-size: 1.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.work-content p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.work-records {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.work-record-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.work-record-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

.work-record-item span {
    color: var(--color-accent);
    font-weight: 700;
}

/* Major Fields Card Grid Layout */
.work-records-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* 좌측 정렬로 변경 */
    gap: 1.5rem;
    padding-top: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-record-card {
    width: calc((100% - (4 * 1.5rem)) / 8);
    /* 5열 너비로 수정 */
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    /* Added for click interaction */
}

/* 영화상영(야외상영) 탭만 PC에서 8열로 고정 */
@media (min-width: 1401px) {
    #work-outdoor .work-record-card {
        width: calc((100% - (7 * 1.5rem)) / 8);
    }
}

.work-record-card.clickable-record {
    cursor: pointer;
}

.work-record-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Responsive for grid cards (Synced with Movie Festival logic) */
@media (max-width: 1400px) {
    .work-record-card {
        width: calc((100% - (3 * 1.5rem)) / 4);
    }
}

@media (max-width: 1100px) {
    .work-record-card {
        width: calc((100% - (2 * 1.5rem)) / 3);
    }
}

@media (max-width: 768px) {
    .work-record-card {
        width: calc((100% - (1 * 1.5rem)) / 2);
    }
}

@media (max-width: 480px) {
    .work-record-card {
        width: 100%;
    }
}

/* Cinematic Effects for Record Cards */
.work-record-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png'); /* 필름 그레인 효과 */
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease;
    mix-blend-mode: overlay;
}

.work-record-card:hover::before {
    opacity: 0.15;
    animation: grain-flicker 0.2s steps(2) infinite;
}

/* Light Leak Effect */
.work-record-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.work-record-card:hover::after {
    opacity: 1;
    animation: light-leak-move 4s infinite alternate;
}

@keyframes grain-flicker {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-1%, -1%); }
}

@keyframes light-leak-move {
    0% { transform: translate(-10%, -10%) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.record-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    /* 세로형 카드로 변경 (스크린샷 비율 반영) */
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 영화상영(야외상영) 탭만 가로형(16:10) 유지 */
#work-outdoor .record-image {
    aspect-ratio: 16 / 10;
}

.record-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 1;
}

.work-record-card:hover .record-image::after {
    animation: cinematic-glint 0.8s ease-in-out forwards;
}

.record-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-record-card:hover .record-image img {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.1);
}

.record-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-accent);
    color: #000;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
}

.record-info {
    padding: 1.5rem 1.25rem;
    /* 원래 1.25rem 1rem에서 약 1.2배 확대 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.record-info h3 {
    font-size: 1.2rem;
    /* 원래 1rem에서 1.2배 확대 */
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
    word-break: keep-all;
}

.record-link {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.work-record-card:hover .record-link {
    color: var(--color-accent);
}

/* Simple Card Variant (No Image) */
.work-record-card.simple {
    min-height: 144px;
    /* 원래 120px에서 1.2배 확대 */
}

.work-record-card.simple h3 {
    font-size: 1.15rem;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 1400px) {
    .work-records-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .work-records-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .work-records-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Outdoor Screening Gallery Paging */
.gallery-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
    min-height: auto;
    /* Allow controls to be right under the photos */
}

/* Hover Preview Modal */
.hover-preview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: auto;
    max-width: 80vw;
    max-height: 85vh;
    z-index: 3000;
    pointer-events: none;
    /* Block interactions when hidden */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #000;
}

.hover-preview-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    /* Enable mouse events when visible */
}

.hover-preview-modal img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Cinematic Projector Skeleton Loader */
.skeleton-loader {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    border-radius: 8px;
}

.skeleton-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.08) 50%,
        transparent 100%
    );
    animation: projector-sweep 2s infinite linear;
    z-index: 1;
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: lens-pulse 2s infinite ease-in-out;
    z-index: 0;
}

@keyframes projector-sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes lens-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.gallery-page.active {
    display: block;
    opacity: 1;
}

.gallery-page.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.gallery-page.fade-in {
    animation: fadeInSlideUp 0.6s ease forwards;
}

.gallery-controls,
.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    /* Reduced to bring arrows closer to images */
    padding-bottom: 1rem;
}

/* Modern Pagination Styles */
.gallery-pagination-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.pagination-status .current-page,
.pagination-status .total-pages {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    min-width: 1.5rem;
    text-align: center;
}

.pagination-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pagination-bar-track:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pagination-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Cinzel', serif;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.pagination-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-accent) transparent transparent transparent;
}

.pagination-tooltip.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pagination-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF37, #F5DC6E);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 2px;
}

.gallery-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover:not(.disabled) {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.gallery-nav-btn.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.gallery-nav-btn .lucide {
    width: 18px;
    height: 18px;
}

.gallery-dots {
    display: flex;
    gap: 0.75rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CONTACT Section */
.contact-container {
    max-width: 800px;
}

.contact-info {
    padding: 4rem;
    text-align: center;
}

.contact-desc {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item .label {
    color: var(--color-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-item .value {
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-actions-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.contact-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-info {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 2rem;
    color: #666;
    font-size: 0.8rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .equipment-container {
        flex-direction: column;
    }


}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Menu UI */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 100;
    }

    #header.mobile-nav-active nav {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
    }

    #header.mobile-nav-active .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li a {
        font-size: 1.75rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: #fff;
        display: block;
        padding: 1rem;
    }

    .nav-links li a:hover {
        color: var(--color-accent);
    }

    /* Hamburger Animation */
    .mobile-nav-active .mobile-menu-btn span:nth-child(1) {
        top: 50% !important;
        transform: translateY(-50%) rotate(45deg);
        background: var(--color-accent);
    }

    .mobile-nav-active .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-active .mobile-menu-btn span:nth-child(3) {
        bottom: 50% !important;
        transform: translateY(50%) rotate(-45deg);
        background: var(--color-accent);
    }


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

    .process-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .process-wrapper::before {
        display: none;
    }

    .contact-actions {
        flex-direction: column;
    }

    /* Service Tab Mobile */
    .service-tabs {
        flex-direction: column;
        border-radius: 10px;
    }

    .service-tab-btn {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }

    .service-tab-btn:last-child {
        border-bottom: none;
    }

    .service-tab-btn::after {
        width: 3px;
        height: 0%;
        top: 0;
        left: 0;
        bottom: auto;
    }

    .service-tab-btn.active::after {
        width: 3px;
        height: 100%;
    }

    .service-panel {
        padding: 2rem 1.5rem;
    }

    .panel-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .section-title {
        font-size: 2.2rem;
        word-break: keep-all;
    }

    .stat-num {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    }

    .panel-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-box {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 110px;
        padding: 1.25rem 0.5rem;
    }

    /* Process mobile */
    .panel-process-steps {
        overflow-x: auto;
        padding-bottom: 1rem;
        gap: 0;
    }

    .panel-process-steps::before {
        top: 27px;
    }

    .panel-step {
        min-width: 140px;
        padding: 0 0.75rem;
    }

    .panel-step h4 {
        font-size: 0.85rem;
    }

    .panel-step p {
        font-size: 0.78rem;
    }

    /* Records mobile */
    .records-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Works mobile */
    .works-cards {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        margin-top: 2rem;
        padding-bottom: 10px;
        /* 스크롤바 공간 */
        scrollbar-width: none;
        /* Firefox */
    }

    .works-cards::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Edge */
    }

    .work-card {
        min-width: 120px;
        flex: 0 0 auto;
        padding: 1rem 0.5rem;
    }

    .work-card {
        padding: 1.5rem 1rem;
    }

    .work-icon {
        font-size: 2rem;
    }

    .work-card h4 {
        font-size: 1rem;
    }

    .works-content-area {
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }

    .work-content h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .work-content p {
        font-size: 0.95rem;
    }

    .work-records {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-top: 1.5rem;
    }

    .work-record-item {
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }

    /* About mobile */
    .about-text {
        padding: 2rem 1.5rem;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .about-highlights {
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }
}

/* =========================================================================
   Performance Detail Modal System
   ========================================================================= */

/* Performance Record Clickable */
.clickable-record {
    cursor: pointer;
    position: relative;
    border: 1.5px solid rgba(212, 175, 55, 0.2) !important;
    background: rgba(212, 175, 55, 0.05) !important;
    transition: all 0.3s ease !important;
}

.clickable-record:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--color-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.clickable-record small {
    background: rgba(212, 175, 55, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: 80vh;
    /* 85에서 80으로 줄여 가시성 확보 */
    z-index: 2001;
    transform: scale(0.9) translateY(40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2002;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-close:hover {
    background: var(--color-accent);
    color: #000;
    transform: rotate(90deg);
}

.modal-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

.modal-gallery {
    flex: 1.3;
    display: grid;
    grid-template-rows: 1fr 110px;
    /* 메인 사진이 남은 공간을 다 쓰고, 썸네일은 하단 110px 고정 */
    height: 100%;
    background: #000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modal-main-image {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
    min-height: 0;
    /* 사진 크기가 커져도 영역을 뚫고 나가지 않게 함 */
}

.modal-main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    cursor: zoom-in;
}

.modal-main-image img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.modal-thumbnails {
    height: 120px;
    display: flex;
    gap: 12px;
    padding: 10px 20px;
    background: #050505;
    overflow-x: auto; /* 모바일 터치 스크롤 허용 */
    -webkit-overflow-scrolling: touch;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    scroll-behavior: smooth;
}

/* 데스크탑에서 스크롤바 숨기기 (깔끔한 UI) */
.modal-thumbnails::-webkit-scrollbar {
    height: 4px;
}
.modal-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
}

.modal-thumb {
    width: 100px;
    height: 75px;
    object-fit: contain;
    background: #1a1a1a;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 4px;
    flex-shrink: 0;
}

.modal-thumb:hover {
    opacity: 1;
}

.modal-thumb.active {
    border-color: var(--color-accent);
    opacity: 1;
}

.modal-text {
    flex: 1;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    background: rgba(18, 18, 18, 1);
    overflow-y: auto;
    scrollbar-width: thin;
}

.modal-tag {
    color: var(--color-accent);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.modal-text h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.modal-desc p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.modal-points {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-points li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.modal-points li span {
    color: var(--color-accent);
    font-weight: bold;
}

/* Modal Mobile Responsive */
@media (max-width: 992px) {
    .modal-container {
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-gallery {
        height: auto;
        min-height: 350px;
    }

    .modal-thumbnails {
        height: 100px;
        padding: 5px 15px;
        overflow-x: auto;
    }

    .modal-thumb {
        width: 90px;
        height: 65px;
        flex-shrink: 0; /* 이미지 찌그러짐 방지 */
    }

    .modal-text {
        padding: 3rem 2rem;
    }

    .modal-text h3 {
        font-size: 2rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}

/* Floating Kakao Button */
.kakao-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #FEE500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.kakao-icon-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kakao-icon-wrap img {
    width: 100%;
    height: auto;
}

.kakao-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kakao-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.kakao-floating-btn:hover .kakao-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse Animation */
@keyframes kakao-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(254, 229, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0);
    }
}

.kakao-floating-btn {
    animation: kakao-pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .kakao-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .kakao-tooltip {
        display: none;
        /* Hide tooltip on mobile to avoid clutter */
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* SNS Button Icon Style */
.contact-actions .btn img {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.contact-actions .btn:hover img {
    opacity: 1;
    filter: drop-shadow(0 0 5px currentColor);
}

/* =========================================================================
   Back to Top & Toast Notification
   ========================================================================= */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 110px; /* 카카오 버튼 위쪽 */
    right: 30px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.back-to-top .arrow {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.back-to-top .text {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    .back-to-top .text {
        display: none; /* 모바일에서는 화살표만 표시 */
    }
    
    /* 갤러리 탭의 일반 카드들 (모바일 팝업 비활성화에 따라 커서 변경) */
    .work-record-card:not(.clickable-record) {
        cursor: default !important;
    }
}

/* Audio Toggle Button Styles */
.audio-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 999;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.audio-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.audio-icon {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.audio-icon .bar {
    width: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.audio-icon .bar:nth-child(1) { height: 60%; }
.audio-icon .bar:nth-child(2) { height: 100%; }
.audio-icon .bar:nth-child(3) { height: 80%; }
.audio-icon .bar:nth-child(4) { height: 40%; }

.audio-toggle-btn.playing .audio-icon .bar {
    animation: audio-bars 1.2s infinite ease-in-out;
}

.audio-toggle-btn.playing .audio-icon .bar:nth-child(1) { animation-delay: 0.1s; }
.audio-toggle-btn.playing .audio-icon .bar:nth-child(2) { animation-delay: 0.3s; }
.audio-toggle-btn.playing .audio-icon .bar:nth-child(3) { animation-delay: 0.0s; }
.audio-toggle-btn.playing .audio-icon .bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes audio-bars {
    0%, 100% { height: 40%; }
    50% { height: 100%; }
}

.audio-text {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

.audio-toggle-btn.playing .audio-text {
    color: #fff;
}

/* FAQ Styles (Polished & Organized) */
.faq-container {
    max-width: 950px;
    margin: 5rem auto 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.4);
}

.faq-question {
    width: 100%;
    padding: 1.4rem 2.2rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 1.2rem;
    color: var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.12);
}

.answer-content {
    padding: 0 2.2rem 1.6rem 2.2rem;
    border-left: 2px solid var(--color-accent);
    margin-left: 2.2rem;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.95rem;
}

.faq-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.faq-list li strong {
    color: #fff;
    font-weight: 600;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

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

.faq-item.active .faq-answer {
    max-height: 600px;
}

@media (max-width: 1024px) {
    .audio-toggle-btn {
        bottom: 20px;
        left: 20px;
        padding: 10px 15px;
    }
    .audio-text {
        display: none;
    }
}
/* =========================================================================
   HISTORY Section
   ========================================================================= */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    overflow: hidden;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    box-shadow: 0 0 15px var(--color-accent);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
    opacity: 0;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--color-bg);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px var(--color-accent);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 1.5rem 2rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-content:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: var(--color-accent);
}

.timeline-year {
    display: block;
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Mobile Responsive History */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        text-align: left !important;
        margin-bottom: 3rem;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-dot {
        left: 22px !important;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}

/* --- 3번 항목 개선 CSS --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info,
.contact-form-wrapper {
    width: 100%;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.contact-form-wrapper {
    padding: 3rem;
}

.form-title {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
}

/* ── Smart Form ── */
.form-required {
    color: var(--color-accent);
    font-size: 0.8em;
    margin-left: 2px;
}

.smart-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.smart-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
    font-family: var(--font-main);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.smart-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--color-accent);
}

.smart-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* 날짜 피커 다크 테마 */
.smart-date-input {
    color-scheme: dark;
}

/* 2열 레이아웃 */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
    .smart-btn {
        font-size: 0.82rem;
        padding: 0.5rem 0.85rem;
    }
}


@media (max-width: 1100px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* Audio Tooltip CSS */
.audio-control-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.audio-toggle-btn {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
}

.audio-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    background: rgba(28, 28, 28, 0.9);
    border: 1px solid var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.audio-tooltip.show {
    opacity: 1;
    transform: translateY(-50%) translateX(25px);
}

@media (max-width: 1024px) {
    .audio-control-wrapper {
        bottom: 20px;
        left: 20px;
    }
    .audio-tooltip {
        display: none;
    }
}

/* ── Footer ── */
footer {
    background: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-company-name {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.footer-company-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(200, 200, 200, 0.8);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.05em;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-biz-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.6rem;
}

.footer-biz-info {
    font-size: 0.8rem;
    color: rgba(140, 140, 140, 0.8);
    line-height: 1.6;
}

.footer-divider {
    font-size: 0.75rem;
    color: rgba(120, 120, 120, 0.4);
    user-select: none;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(140, 140, 140, 0.4);
}

@media (max-width: 768px) {
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .footer-biz-row {
        flex-direction: column;
        gap: 0.15rem;
    }
    .footer-divider {
        display: none;
    }
}

/* ── iOS Safari background-attachment: fixed 버그 수정 ── */
/* 아이폰/아이패드에서 패럴렉스 배경이 깨지는 현상 방지 */
@media (max-width: 1024px) {
    #services,
    #contact {
        background-attachment: scroll;
    }
}

/* 터치 디바이스 전체 대응 (태블릿 포함) */
@supports (-webkit-overflow-scrolling: touch) {
    #services,
    #contact {
        background-attachment: scroll;
    }
}
