/* 
   Sutera KL City Gateway - Premium Light Theme Stylesheet
   Created with custom transitions and animations for a high-end luxury feel.
*/

:root {
    --color-bg-primary: #fcfbf7;
    --color-bg-secondary: #f4f2ea;
    --color-primary: #064e3b; /* Deep Emerald Green */
    --color-primary-light: #0d9488;
    --color-accent: #c5a880; /* Soft Gold/Champagne */
    --color-accent-hover: #b3946a;
    --color-text-main: #1c1917; /* Dark Charcoal */
    --color-text-muted: #6b7280;
    --color-card-border: rgba(197, 168, 128, 0.25); /* Translucent Gold */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Glassmorphism Light Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-card-border);
    box-shadow: 0 10px 30px -10px rgba(6, 78, 59, 0.08);
}

.glass-panel-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px -15px rgba(197, 168, 128, 0.25);
}

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

/* Slide Container System (SPA Deck style) */
.presentation-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
}

.slide {
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    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(6, 78, 59, 0.05); border-radius: 10px; }
.slide::-webkit-scrollbar-thumb { background: rgba(197, 168, 128, 0.2); border-radius: 10px; }

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

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

/* Custom Scrollbar globally */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 78, 59, 0.3);
}

/* Animated Donut Effect Diagram */
.donut-visual-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.donut-ring {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.donut-ring-outer {
    width: 280px;
    height: 280px;
    border: 2px dashed rgba(6, 78, 59, 0.2);
    background: rgba(244, 242, 2ea, 0.5);
    animation: spin-slow 60s linear infinite;
}

.donut-ring-middle {
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(197, 168, 128, 0.4);
    background: rgba(255, 255, 255, 0.7);
    top: 40px;
    left: 40px;
    animation: spin-slow-reverse 40s linear infinite;
}

.donut-center-hole {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #f7f5ef 100%);
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.12);
    border: 2px solid var(--color-accent);
    top: 85px;
    left: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pulse-subtle 3s ease-in-out infinite;
    z-index: 5;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-slow-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse-subtle {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(6, 78, 59, 0.12); }
    50% { transform: scale(1.03); box-shadow: 0 12px 30px rgba(197, 168, 128, 0.25); }
}

/* Ambient glowing light shapes */
.bg-light-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

.blob-emerald {
    background-color: rgba(6, 78, 59, 0.12);
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.blob-gold {
    background-color: rgba(197, 168, 128, 0.15);
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

/* Micro-animations */
.hover-gold-grow {
    transition: all 0.2s ease;
}
.hover-gold-grow:hover {
    transform: scale(1.05);
    color: var(--color-accent);
}

/* Image Viewer / Lightbox styling */
.img-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(28, 25, 22, 0.9);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.img-lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.img-lightbox.open img {
    transform: scale(1);
}

/* Custom indicator steps */
.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--color-primary);
}

/* HDA vs Non HDA comparative grid columns */
.toggle-active-hda .hda-column {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.08);
}
.toggle-active-nonhda .nonhda-column {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.2);
}

/* Intra-slide Fragments */
.fragment {
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}
.fragment.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Slide 1 Custom Animation */
#slide-1 .welcome-section {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#slide-1 .welcome-hint {
    opacity: 1;
}

#slide-1.has-visible-fragment .welcome-hint {
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    #slide-1 .welcome-section {
        transform: translateX(50%);
    }
    #slide-1.has-visible-fragment .welcome-section {
        transform: translateX(0);
    }
}

/* Slide 2 Custom Animation */
#slide-2 .slide2-content-section {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    #slide-2 .slide2-content-section {
        transform: translateX(-50%);
    }
    #slide-2.has-visible-fragment .slide2-content-section {
        transform: translateX(0);
    }
}

/* Slide 3 Custom Animation */
#slide-3 .slide3-content-section {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    #slide-3 .slide3-content-section {
        transform: translateX(-50%);
    }
    #slide-3.has-visible-fragment .slide3-content-section {
        transform: translateX(0);
    }
}

/* Slide 3 Danger Hook Animations */
@keyframes danger-drop {
    0% { transform: translateY(-40px); opacity: 0; }
    10% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(120px); opacity: 0; }
}
.animate-danger-drop {
    animation: danger-drop linear infinite;
}

@keyframes danger-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px) rotate(-3deg); }
    75% { transform: translateX(4px) rotate(3deg); }
}
.animate-danger-shake {
    animation: danger-shake 0.3s infinite;
}

/* Slide 3 Profit Hook Animations */
@keyframes profit-rise {
    0% { transform: translateY(100px); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-60px); opacity: 0; }
}
.animate-profit-rise {
    animation: profit-rise linear infinite;
}

@keyframes profit-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px 10px rgba(255, 215, 0, 0); }
}
.animate-profit-pulse {
    animation: profit-pulse 1.5s infinite;
}
