/* ═══════════════════════════════════════════════════════════════════════════
   TERA KLCC — Light Luxury Presentation Theme
   Warm cream/white base  ·  Gold / Amber accents  ·  Premium glassmorphism
   ═══════════════════════════════════════════════════════════════════════════ */

/* Responsive base font — scales all rem units proportionally */
html { font-size: 14px; }
@media (min-width: 768px)  { html { font-size: 16px; } }
@media (min-width: 1024px) { html { font-size: 17px; } }
@media (min-width: 1280px) { html { font-size: 19px; } }
@media (min-width: 1536px) { html { font-size: 21px; } }

body {
    background: linear-gradient(145deg, #fdf9f3 0%, #f5efe4 40%, #faf6ee 70%, #fdf9f3 100%);
    color: #2d2418;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

/* ── Slide Container ─────────────────────────────────────────────────────── */
.slide {
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0.5rem;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.95) translateY(30px);
    transform-origin: center bottom;
}

.slide::-webkit-scrollbar { width: 6px; }
.slide::-webkit-scrollbar-track { background: rgba(180, 150, 90, 0.06); border-radius: 10px; }
.slide::-webkit-scrollbar-thumb { background: rgba(180, 150, 90, 0.2); border-radius: 10px; }

@media (min-width: 768px) {
    .slide {
        top: 1rem;
        bottom: 5.5rem;
        left: 4rem;
        right: 4rem;
        padding: 2rem 4rem;
    }
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    z-index: 10;
}

/* ── Glassmorphism Panel — Light Luxury ──────────────────────────────────── */
.glass-panel {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(201, 169, 110, 0.18);
    border-radius: 2rem;
    box-shadow:
        0 20px 60px -15px rgba(180, 150, 90, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ── Gold Gradient Text ──────────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #9a7b2e 0%, #c9a96e 40%, #b8963f 70%, #9a7b2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-shimmer {
    background: linear-gradient(90deg, #9a7b2e 0%, #d4af37 25%, #c9a96e 50%, #d4af37 75%, #9a7b2e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

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

/* ── Navigation Buttons ──────────────────────────────────────────────────── */
.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: #9a7b2e;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.nav-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c9a96e, #d4af37);
    color: #fff;
    transform: scale(1.15) translateY(-50%);
    box-shadow: 0 10px 30px -3px rgba(201, 169, 110, 0.35);
    border-color: #c9a96e;
}

.nav-btn:active:not(:disabled) {
    transform: scale(0.95) translateY(-50%);
}

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

.side-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    body:hover .side-nav:not(:disabled) { opacity: 0.5; }
    .side-nav:hover:not(:disabled) { opacity: 1 !important; }
}

@media (max-width: 1023px) {
    .side-nav { display: none !important; }
}

/* ── Background Grid ─────────────────────────────────────────────────────── */
.grid-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(180, 150, 90, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(180, 150, 90, 0.04) 1px, transparent 1px);
    z-index: -1;
}

/* ── Ambient Glow Blobs ──────────────────────────────────────────────────── */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    animation: float 12s infinite alternate ease-in-out;
}

@keyframes float {
    0%   { transform: translateY(0) scale(1); }
    100% { transform: translateY(-25px) scale(1.06); }
}

/* ── Reusable Info Card — Light ──────────────────────────────────────────── */
.info-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    border: 1px solid rgba(201, 169, 110, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 1.25rem;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.12);
    transform: translateY(-2px);
    border-color: rgba(201, 169, 110, 0.3);
}

/* ── Topic Tag / Pill ────────────────────────────────────────────────────── */
.topic-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background: rgba(201, 169, 110, 0.08);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: #7d6424;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ── Section Label ───────────────────────────────────────────────────────── */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #b8963f;
    margin-bottom: 0.4rem;
}

/* ── Numbered Step Circle ────────────────────────────────────────────────── */
.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a96e, #d4af37);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ── External Link ───────────────────────────────────────────────────────── */
.ext-link {
    color: #9a7b2e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(201, 169, 110, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: color 0.15s, text-decoration-color 0.15s;
}
.ext-link:hover {
    color: #7d6424;
    text-decoration-color: #c9a96e;
}

/* ── Language Switcher ───────────────────────────────────────────────────── */
.lang-btn.active {
    background: linear-gradient(135deg, #c9a96e, #d4af37);
    color: #fff;
    box-shadow: 0 2px 12px rgba(201, 169, 110, 0.35);
}

/* ── Language Content Visibility ─────────────────────────────────────────── */
body[data-lang="zh"] .en-only { display: none !important; }
body[data-lang="en"] .zh-only { display: none !important; }

/* ── Per-Slide Animation Builds ──────────────────────────────────────────── */
[data-anim] {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.45s;
}
[data-anim].revealed {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
}

/* ── Animation Hint Button ───────────────────────────────────────────────── */
.anim-hint {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.3rem;
    background: linear-gradient(135deg, #c9a96e, #d4af37);
    color: #fff;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px rgba(201, 169, 110, 0.4);
    animation: anim-hint-pulse 2s ease-in-out infinite;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: 'Outfit', sans-serif;
}
.anim-hint.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
}
@keyframes anim-hint-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(201, 169, 110, 0.4); }
    50%       { box-shadow: 0 4px 28px rgba(201, 169, 110, 0.7); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TERA-SPECIFIC UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero slide with full-bleed background image */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    border-radius: 2rem;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(253, 249, 243, 0.15) 0%,
        rgba(253, 249, 243, 0.3) 20%,
        rgba(253, 249, 243, 0.65) 55%,
        rgba(253, 249, 243, 0.92) 80%,
        rgba(253, 249, 243, 0.98) 100%
    );
    border-radius: 2rem;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* Facility icon badge */
.facility-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.12), rgba(201, 169, 110, 0.04));
    border: 1px solid rgba(201, 169, 110, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8963f;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.facility-icon:hover {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.2), rgba(201, 169, 110, 0.08));
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.12);
}

/* Image container */
.img-showcase {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 110, 0.18);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.img-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.img-showcase:hover img {
    transform: scale(1.03);
}

/* Gold divider line */
.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.5), transparent);
    margin: 1rem 0;
}

/* CTA button — gold premium */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #c9a96e, #d4af37);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.cta-btn:hover::after {
    left: 125%;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.45);
}

/* Fact table rows */
.fact-row {
    display: flex;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    gap: 1rem;
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b8963f;
    min-width: 120px;
    flex-shrink: 0;
}

.fact-value {
    font-size: 0.95rem;
    color: #3d3425;
    font-weight: 400;
}

/* Green feature badge */
.green-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WOW INTERACTIVE EFFECTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Wow button — floating interactive trigger */
.wow-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #f0932b);
    background-size: 200% 200%;
    animation: wow-gradient 3s ease infinite;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(238, 90, 36, 0.35);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    z-index: 5;
}

.wow-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 28px rgba(238, 90, 36, 0.5);
}

.wow-btn:active {
    transform: scale(0.95);
}

@keyframes wow-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sparkle effect on stat numbers */
.sparkle-stat {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}
.sparkle-stat:hover {
    transform: scale(1.05);
}
.sparkle-stat::after {
    content: '✨';
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.sparkle-stat:hover::after {
    opacity: 1;
    animation: sparkle-float 0.6s ease forwards;
}
@keyframes sparkle-float {
    0%   { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-16px) scale(1.3); opacity: 0; }
}

/* Floating particles canvas */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Pulse ring on interactive elements */
.pulse-ring {
    position: relative;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    border-radius: inherit;
    border: 2px solid rgba(201, 169, 110, 0.4);
    transform: translate(-50%, -50%) scale(1);
    animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Celebrate toast popup */
.celebrate-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border: 2px solid rgba(201, 169, 110, 0.3);
    border-radius: 1.5rem;
    padding: 2rem 3rem;
    text-align: center;
    z-index: 200;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    opacity: 0;
}
.celebrate-toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.celebrate-toast .emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce-emoji 0.6s ease infinite alternate;
}
@keyframes bounce-emoji {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}
