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

/* Variables */
:root {
    --color-bg: #050505;
    /* Deep Black */
    --color-surface: #121212;
    /* 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 */
}

/* 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;
}

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: 10rem 0;
    position: relative;
}

/* 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(5, 5, 5, 0.60);
    z-index: 1;
}

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

#portfolio {
    background-color: #0c0c0c;
    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, #0a0a0a, 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: #0c0c0c;
    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.jpg');
    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(5, 5, 5, 0.8);
    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;
}

.accent {
    color: var(--color-accent);
}

/* 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-color: var(--color-accent);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-text-primary);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background-color: var(--color-text-primary);
    color: #000;
    transform: translateY(-2px);
}

.btn-kakao,
.btn-naver,
.btn-youtube {
    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;
}

.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);
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(28, 28, 28, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* 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: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

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

.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(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.7) 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;
}

.hero-text .title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

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

.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 */
.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.active {
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.06);
}

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

.tab-icon {
    font-size: 1.4rem;
}

.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 340px;
    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: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    font-family: 'Cinzel', serif;
    line-height: 1;
}

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

.stat-label {
    font-size: 0.8rem;
    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(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.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;
}

.equipment-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.4);
    border-color: var(--color-accent);
}

.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.1);
}

.equipment-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

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

/* 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.jpg');
    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: 3.5rem 4rem;
    text-align: center;
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.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: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.highlight-icon {
    font-size: 1.5rem;
}

/* 주요 분야(WORKS) 카드 스타일 */
.works-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.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 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.03);
}

.work-card.active {
    border-color: var(--color-accent);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.work-icon {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
    display: block;
}

.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(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 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%;
    }
}

.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 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.2);
}

.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;
}

.gallery-page {
    width: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.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;
}

.gallery-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gallery-nav-btn:hover:not(.disabled) {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.gallery-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

.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;
    }

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

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

    /* 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: opacity 0.4s ease;
}

.modal-thumbnails {
    height: 120px;
    display: flex;
    gap: 12px;
    padding: 10px 20px;
    background: #050505;
    overflow-x: hidden;
    /* 마우스 제어를 위해 기본 스크롤바 숨김 */
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    cursor: ew-resize;
    /* 좌우 이동 가능함을 나타내는 커서 */
    scroll-behavior: auto;
    /* JS 제어 시 즉각적인 반응을 위해 auto 설정 */
}

.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 {
        padding: 10px;
    }

    .modal-thumb {
        width: 70px;
        height: 50px;
    }

    .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 */
    }
}

/* 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);
}