/* ...之前的所有样式保持不变... */
/* ...Jejak, Digital Wayang 等样式... */

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --color-maroon: #660808; --color-brown: #382417; --color-gold: #C97F2E; 
    --color-cream: #F5E8D0; --color-indigo: #3A4E6B; --color-rattan: #E6D8B1;
    --font-head: 'DM Serif Display', serif; --font-body: 'Cormorant Garamond', serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--color-brown); color: var(--color-cream); font-family: var(--font-body); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; }
p { font-size: 1.15rem; line-height: 1.6; opacity: 0.9; }

/* Navigation */
.fixed-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(to bottom, rgba(56, 36, 23, 0.95), rgba(56, 36, 23, 0.5));
    backdrop-filter: blur(8px); padding: 15px 5%; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--color-gold); }
.logo-img { height: 45px; width: auto; margin-right: 12px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a:hover { color: var(--color-gold); }
.nav-right { font-family: monospace; font-size: 0.9rem; color: var(--color-rattan); display: flex; gap: 20px; align-items: center; }
.btn-outline { border: 1px solid var(--color-rattan); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; }
.btn-outline:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-brown); }

/* Cursor Light */
.cursor-light {
    position: fixed; top: 0; left: 0; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201,127,46,0.3) 0%, rgba(0,0,0,0) 60%); 
    transform: translate(-50%, -50%) scale(0); pointer-events: none; z-index: 999;
    mix-blend-mode: plus-lighter; transition: opacity 0.3s;
}

/* Hero Section */
.hero-section {
    height: 100vh; position: relative; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: radial-gradient(circle at center, #543b32 0%, #241610 100%);
}
.hero-title { font-size: clamp(3rem, 8vw, 6rem); color: var(--color-cream); margin-bottom: 20px; }
.hero-subtitle { color: var(--color-gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.scroll-indicator { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; animation: bounce 2s infinite; color: var(--color-rattan); }
.scroll-indicator .line { width: 1px; height: 40px; background: var(--color-gold); margin-top: 10px; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* About Section */
.about-section {
    position: relative; overflow: hidden; padding: 100px 5%; color: var(--color-cream);
    background: linear-gradient(to bottom, #241610 0%, #3A4E6B 40%, #3A4E6B 60%, #382417 100%);
}
.about-bg-pattern {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 0; opacity: 0.4;
    animation: floatPattern 80s linear infinite; pointer-events: none; mix-blend-mode: overlay; 
}
@keyframes floatPattern { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.about-header-visual { width: 100%; display: flex; justify-content: center; margin-bottom: 60px; }
.logo-visual-container { perspective: 1000px; z-index: 2; }
.logo-card { width: 250px; height: 250px; position: relative; transform-style: preserve-3d; transition: transform 0.1s ease-out; }
.logo-img-3d { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); transform: translateZ(50px); }
.logo-glow {
    position: absolute; top: 50%; left: 50%; width: 200px; height: 200px;
    background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
    opacity: 0.1; transform: translate(-50%, -50%) translateZ(-20px);
    filter: blur(40px); animation: pulseGlow 4s infinite alternate;
}
@keyframes pulseGlow { 0% { opacity: 0.1; transform: scale(0.8); } 100% { opacity: 0.3; transform: scale(1.2); } }

.about-grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 100px; }
.about-card {
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
    padding: 30px; backdrop-filter: blur(10px); transition: transform 0.3s, border-color 0.3s, background 0.3s;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.about-card:hover { transform: translateY(-10px); border-color: var(--color-gold); background: rgba(0, 0, 0, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.about-card h3 { font-size: 2rem; color: var(--color-gold); margin-bottom: 15px; font-family: var(--font-head); }
.card-line { width: 50px; height: 3px; background: var(--color-gold); margin-bottom: 20px; box-shadow: 0 0 10px var(--color-gold); }
.emblem-list, .objective-list { text-align: left; width: 100%; }
.emblem-list li, .objective-list li { margin-bottom: 12px; position: relative; padding-left: 15px; }
.emblem-list li::before, .objective-list li::before { content: '•'; color: var(--color-gold); position: absolute; left: 0; font-weight: bold; }
.reveal-text { opacity: 0; transform: translateY(30px); }

/* Team Section */
.team-block { width: 100%; position: relative; z-index: 5; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 3rem; color: var(--color-gold); }
.team-swiper { width: 100%; padding: 50px 0; overflow: visible; }
.swiper-slide {
    width: 300px; height: 450px; background-color: #222; border: 1px solid var(--color-gold); border-radius: 12px; 
    position: relative; display: flex; align-items: flex-end; overflow: hidden; cursor: grab; 
    transition: box-shadow 0.3s ease, border-color 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.swiper-slide-active { border-color: #fff; box-shadow: 0 20px 50px rgba(201, 127, 46, 0.3); z-index: 10; }
.card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #333; 
    background-size: cover; background-position: center; image-rendering: -webkit-optimize-contrast; opacity: 1; z-index: 1;
}
.card-bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); transition: opacity 0.4s ease; z-index: 2;
}
.swiper-slide-active .card-bg::after { opacity: 0; }
.card-info { 
    position: relative; z-index: 10; padding: 20px; width: 100%; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, transparent 100%); 
}
.card-info h3 { color: var(--color-gold); font-size: 1.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.swiper-button-next, .swiper-button-prev { color: var(--color-gold); text-shadow: 0 0 10px rgba(0,0,0,0.8); }

/* Stage */
.stage-container { width: 100%; }
.stage-part { min-height: 100vh; padding: 100px 5%; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.stage-content-wrapper { max-width: 1200px; width: 100%; z-index: 2; position: relative; }
.stage-header h2 { font-size: 4rem; margin-top: 10px; }
.stage-label { font-family: monospace; border-bottom: 1px solid currentColor; padding-bottom: 5px; }

/* Feature Layout */
.feature-layout, .wayang-feature-layout { width: 100%; max-width: 1000px; margin: 0 auto 60px; position: relative; z-index: 2; }
.feature-intro { text-align: center; margin-bottom: 60px; padding: 0 10%; }
.feature-intro h3 { font-size: 1.2rem; color: var(--color-gold); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px; opacity: 0.8; }
.feature-intro p { font-size: 1.8rem; font-family: var(--font-head); line-height: 1.4; color: var(--color-cream); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 80px; }
.feature-item { display: flex; align-items: flex-start; gap: 20px; }
.icon-line { width: 3px; height: 60px; background: linear-gradient(to bottom, var(--color-gold), transparent); flex-shrink: 0; margin-top: 5px; }
.text-content h4 { font-size: 1.5rem; color: var(--color-gold); margin-bottom: 10px; font-family: var(--font-head); }
.text-content p { font-size: 1rem; line-height: 1.6; color: rgba(245, 232, 208, 0.8); }

/* Potehi Style */
.potehi-style .feature-intro h3 { color: var(--color-maroon); }
.potehi-style .feature-intro p { color: #333; }
.potehi-style .icon-line { background: linear-gradient(to bottom, var(--color-maroon), transparent); }
.potehi-style .text-content h4 { color: var(--color-maroon); }
.potehi-style .text-content p { color: rgba(0,0,0,0.7); }

.video-showcase { display: flex; align-items: center; justify-content: center; color: var(--color-rattan); }

/* Story Scroll */
.story-scroll-container { width: 100%; margin-top: 80px; padding-bottom: 40px; position: relative; }
.timeline-line {
    position: absolute; top: 60%; left: 0; width: 100%; height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--color-gold) 10%, var(--color-gold) 90%, transparent 100%);
    opacity: 0.4; z-index: 0; pointer-events: none;
}
.story-header-small { text-align: left; margin-bottom: 20px; margin-left: 5%; font-family: monospace; color: var(--color-gold); letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.story-track {
    display: flex; gap: 40px; overflow-x: auto; padding: 40px 5%; 
    scrollbar-width: thin; scrollbar-color: var(--color-gold) rgba(255,255,255,0.05);
    scroll-snap-type: x mandatory; scroll-behavior: smooth; align-items: center; z-index: 2; position: relative;
}
.story-track::-webkit-scrollbar { height: 4px; }
.story-track::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.story-track::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 2px; }
.story-card {
    flex: 0 0 auto; width: 300px; aspect-ratio: 3/4; border-radius: 8px;
    overflow: hidden; position: relative; scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(201, 127, 46, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    background: #000;
}
.story-card.cover-card { width: 450px; aspect-ratio: 16/9; border: none; box-shadow: none; background: transparent; }
.story-card.cover-card img { object-fit: contain; }
.story-card:not(.cover-card):hover { transform: translateY(-15px) scale(1.02); box-shadow: 0 20px 60px rgba(201, 127, 46, 0.3); border-color: var(--color-gold); z-index: 10; }
.story-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chapter-num { position: absolute; bottom: 10px; right: 10px; font-family: monospace; font-size: 1.5rem; color: rgba(255,255,255,0.2); font-weight: bold; pointer-events: none; }

/* Potehi Story Theme */
.potehi-theme .timeline-line { background: linear-gradient(to right, transparent 0%, var(--color-maroon) 10%, var(--color-maroon) 90%, transparent 100%); }
.potehi-theme .story-header-small { color: var(--color-maroon); }
.potehi-theme .story-track::-webkit-scrollbar-thumb { background: var(--color-maroon); }
.potehi-theme .story-track::-webkit-scrollbar-color { background: var(--color-maroon); }
.potehi-theme .story-card { border-color: rgba(102, 8, 8, 0.2); }
.potehi-theme .story-card:not(.cover-card):hover { box-shadow: 0 20px 60px rgba(102, 8, 8, 0.3); border-color: var(--color-maroon); }
.potehi-theme .chapter-num { color: rgba(102, 8, 8, 0.5); }

/* Wayang */
.wayang-world { background-color: var(--color-brown); color: var(--color-gold); position: relative; }
.wayang-world h2 { color: var(--color-cream); }
.hidden-puppets {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    background-image: url('../images/hero-wayang.jpg'); background-size: cover; background-position: center; opacity: 0.9;
    -webkit-mask-image: radial-gradient(circle 250px at var(--x, 50%) var(--y, 50%), black 0%, transparent 100%);
    mask-image: radial-gradient(circle 250px at var(--x, 50%) var(--y, 50%), black 0%, transparent 100%);
    will-change: mask-image; pointer-events: none;
}

/* Potehi */
.potehi-world { background-color: var(--color-cream); color: var(--color-maroon); }
.potehi-world .info-card { background: rgba(255,255,255,0.5); border-color: rgba(0,0,0,0.05); }

/* Merch */
.merch-section { padding: 100px 5%; background: #2b1c12; color: var(--color-cream); }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-top: 60px; }
.merch-card {
    background: rgba(255,255,255,0.05); border-radius: 12px; overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(201, 127, 46, 0.1);
}
.merch-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); border-color: var(--color-gold); }
.merch-img-container { width: 100%; aspect-ratio: 1/1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.merch-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.merch-card:hover .merch-img-container img { transform: scale(1.05); }
.merch-info { padding: 20px; text-align: center; }
.merch-info h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--color-gold); font-family: var(--font-head); }
.merch-info .price { display: inline-block; padding: 5px 15px; background: var(--color-gold); color: #2b1c12; border-radius: 20px; font-weight: bold; font-family: monospace; }

/* Jejak Warisan */
.jejak-section { padding: 100px 5%; background: linear-gradient(to bottom, #2b1c12, #382417); text-align: center; }
.jejak-scroll-container { width: 100%; margin-top: 50px; padding-bottom: 40px; }
.jejak-track {
    display: flex; gap: 40px; overflow-x: auto; padding: 20px 5%;
    scrollbar-width: thin; scrollbar-color: var(--color-gold) rgba(255,255,255,0.05);
    scroll-snap-type: x mandatory;
    justify-content: center; /* Center align */
    flex-wrap: wrap; /* Allow wrap for centering */
}
.jejak-track::-webkit-scrollbar { height: 4px; }
.jejak-track::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.jejak-track::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 2px; }

.jejak-card {
    flex: 0 0 auto; width: 280px; display: flex; flex-direction: column; gap: 15px;
    scroll-snap-align: center; transition: transform 0.3s ease;
}
.jejak-card:hover { transform: scale(1.05); z-index: 10; }
.jejak-card .video-wrapper {
    width: 100%; aspect-ratio: 9/16; background: #000; border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(201, 127, 46, 0.3); box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.jejak-card h3 { font-size: 1.1rem; color: var(--color-gold); font-family: var(--font-head); letter-spacing: 1px; }

/* Digital Wayang Styles */
.digital-section {
    position: relative;
    background: #000;
    color: var(--color-cream);
    padding-bottom: 80px;
}
.digital-banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-top: 1px solid rgba(201, 127, 46, 0.2); 
    border-bottom: 1px solid rgba(201, 127, 46, 0.2); 
}
.digital-banner-container img {
    width: 100%;
    height: auto;
    display: block;
}
.digital-text-block {
    text-align: center;
    padding: 80px 10% 40px; 
    background: linear-gradient(to bottom, #111, #000); 
}
.digital-text-block h2 {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}
.digital-text-block p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
}

/* Partners */
.partners-section { position: relative; padding: 120px 10%; background: var(--color-brown); text-align: center; }
.partners-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; margin-bottom: 40px; }
.partner-logo {
    width: 150px; height: 100px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.3s ease;
}
.partner-logo:hover { transform: scale(1.05); }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.partner-logo.hidden-partner { display: none; }

.toggle-partners-btn {
    background: transparent; border: 1px solid var(--color-gold); color: var(--color-gold);
    padding: 10px 25px; border-radius: 30px; font-family: monospace; cursor: pointer;
    font-size: 1rem; transition: 0.3s; display: inline-flex; align-items: center; gap: 10px; z-index: 10; position: relative;
}
.toggle-partners-btn:hover { background: var(--color-gold); color: var(--color-brown); }
.toggle-partners-btn.expanded .arrow-icon { transform: rotate(180deg); }

footer { padding: 60px 20px; text-align: center; background: #1a0f0a; }
.social-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; }
.copyright { font-size: 0.8rem; opacity: 0.5; }

/* Transitions */
.section-transition, .transition-top, .transition-bottom { position: absolute; left: 0; width: 100%; height: 200px; z-index: 5; pointer-events: none; }
.section-transition { bottom: 0; }
.transition-top { top: 0; }
.transition-bottom { bottom: 0; }
.fade-to-brown { background: linear-gradient(to bottom, transparent 0%, var(--color-brown) 100%); }
.fade-to-footer { background: linear-gradient(to bottom, transparent 0%, #1a0f0a 100%); }
.fade-from-gallery { background: linear-gradient(to bottom, #2b1c12 0%, transparent 100%); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .stage-part { padding: 80px 5%; }
    .feature-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav-links { display: none; }
}