:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --strong-green: #00E34D;
    --strong-orange: #FF4D00;
    --font-main: "Pretendard", sans-serif;
}

/* 모바일 흔들림 방지 및 기본 레이아웃 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    width: 100%; 
    overflow-x: hidden; 
    background-color: var(--black); 
    position: relative;
}
body { color: var(--white); font-family: var(--font-main); line-height: 1.7; -webkit-font-smoothing: antialiased; }

#particleCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.7; }

/* Header & Nav: 로고 수직 중앙 정렬 보정 */
header { position: fixed; top: 10px; width: 100%; padding: 0 5vw; z-index: 1000; }
.nav-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px; padding: 1.2rem 2.8rem;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.075);
}

.logo {
    display: flex;
    align-items: center;
    transform: translateY(0px); /* 중앙 정렬 미세 보정 */
}
.logo img { height: 25px; width: auto; display: block; }

nav a { color: var(--white) !important; text-decoration: none; font-size: 0.85rem; margin-left: 2rem; letter-spacing: 2px; font-weight: 500; transition: color 0.3s ease; }
nav a:hover { color: var(--strong-orange) !important; }

/* Typography 인터랙션 */
.hover-orange { transition: color 0.3s ease; }
.hover-orange:hover { color: var(--strong-orange) !important; }
.flash-trigger { color: var(--white); transition: color 0.8s ease; }
.flash-active { animation: flashGreen 1.2s ease-out; }
@keyframes flashGreen {
    0% { color: var(--white); text-shadow: none; }
    30% { color: var(--strong-green); text-shadow: 0 0 15px var(--strong-green); }
    100% { color: var(--white); text-shadow: none; }
}

/* Section */
section { padding: 12vw 0; position: relative; z-index: 2; }
.container { max-width: 1600px; margin: 0 auto; padding: 0 5vw; }
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
#heroVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 10; }
h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; }

/* About & Grid */
.label-kr { font-size: 1.15rem; font-weight: 700; margin-bottom: 2rem; letter-spacing: 0.15em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 3rem; }
.description { font-size: 1.1rem; color: #eee; max-width: 550px; font-weight: 400; margin-bottom: 1rem; }
.kr-summary { font-size: 1.05rem; color: #888; font-weight: 400; max-width: 550px; line-height: 1.8; }

/* Gallery */
.gallery-item { display: flex; align-items: center; gap: 4vw; margin-bottom: 25vw; }
.gallery-item.reverse { flex-direction: row-reverse; }
.img-box { flex: 3; aspect-ratio: 3 / 4; position: relative; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 1.2s ease; }
.img-box::after { content: ''; position: absolute; inset: 0; background: var(--strong-orange); opacity: 0; transition: 0.4s; mix-blend-mode: color; }
.img-box:hover::after { opacity: 0.8; }
.text-box { flex: 1; }
h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.5rem; }

/* Footer: 반투명 디자인 */
footer { 
    padding: 10vw 5vw 6vw; z-index: 2; position: relative; 
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-wrap { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-label { font-size: 0.75rem; color: #666; margin-bottom: 1rem; }
.footer-link { font-size: clamp(1rem, 2vw, 2rem); text-decoration: none; color: #fff; font-weight: 600; white-space: nowrap; }
.copyright { color: #666; font-size: 0.75rem; text-align: center; margin-top: 5rem; }

/* Mobile Optimization: 기존 요청 사항 유지 */
@media (max-width: 768px) {
    header { padding: 0 3vw; top: 10px; }
    .nav-container { padding: 0.8rem 1.2rem; }
    .logo { transform: translateY(1px); } 
    .hero-content h1 { font-size: 4.5rem; }
    h2 { font-size: 3rem; margin-bottom: 2rem; }
    .description { font-size: 1.3rem; }
    .gallery-item, .gallery-item.reverse { flex-direction: column; gap: 2rem; margin-bottom: 35vw; }
    .img-box { width: 100vw; margin-left: -5vw; flex: none; }
    .text-box { width: 100%; padding: 0; }
    h3 { font-size: 2.2rem; }
    .footer-wrap { flex-direction: column; gap: 4rem; }
    .footer-link { font-size: 6vw; }
}

/* Animations: PC 초기 투명도 설정 */
@media (min-width: 769px) {
    .slide-in-up, .slide-in-left, .slide-in-right { opacity: 0; transition: 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
    .slide-in-up { transform: translateY(30px); }
    .slide-in-left { transform: translateX(-30px); }
    .slide-in-right { transform: translateX(30px); }
}
.is-visible { opacity: 1 !important; transform: translate(0, 0) !important; }