/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-primary: #08090c;
    --bg-secondary: #0f1115;
    --glass-bg: rgba(18, 20, 26, 0.65);
    --glass-bg-hover: rgba(26, 29, 38, 0.8);
    --glass-border: rgba(197, 160, 89, 0.12);
    --glass-border-active: rgba(197, 160, 89, 0.35);
    
    --color-gold: #c5a059;
    --color-gold-bright: #e5c382;
    --color-gold-dark: #8e6d31;
    --color-gold-glow: rgba(197, 160, 89, 0.15);
    
    --color-text-main: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-dim: #64748b;
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-primary);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ambient glow & particles background */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-gold-glow) 0%, rgba(8, 9, 12, 0) 70%);
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
    filter: blur(80px);
    transition: var(--transition-smooth);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.particle {
    position: absolute;
    background-color: var(--color-gold);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: floatParticle 12s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(105vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-5vh) translateX(50px) scale(1);
        opacity: 0;
    }
}

/* ==========================================================================
   MAIN LAYOUT
   ========================================================================== */
.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    z-index: 2;
    padding: 3% 5% 3% 4%;
    gap: 4%;
    max-width: 1600px;
}

/* ==========================================================================
   LEFT PANEL (PORTRAIT & BADGE)
   ========================================================================== */
.left-panel {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.portrait-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.glass-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, var(--glass-border-active), transparent 40%, transparent 60%, var(--glass-border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    transition: var(--transition-smooth);
    filter: grayscale(15%) brightness(95%);
}

.glass-frame:hover img {
    transform: scale(1.03);
    filter: grayscale(0%) brightness(100%);
}

.portrait-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(8, 9, 12, 0.4) 100%);
    pointer-events: none;
}

.era-badge {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   RIGHT PANEL (INFOS, KEY TEACHINGS, INTERACTION)
   ========================================================================== */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 100%;
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3.5vh, 32px);
    width: 100%;
}

/* Header */
.phil-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phil-name {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5.5vh, 4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-text-main);
    background: linear-gradient(180deg, #ffffff 30%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-smooth);
}

.phil-dates {
    font-size: clamp(0.85rem, 2vh, 1.05rem);
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold) 0%, rgba(197, 160, 89, 0.1) 100%);
    border-radius: 2px;
    margin-top: 4px;
}

/* Intro & Quotes */
.phil-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phil-bio {
    font-size: clamp(0.85rem, 1.8vh, 1rem);
    line-height: 1.6;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 650px;
    transition: var(--transition-smooth);
}

.quote-card {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.06) 0%, rgba(15, 17, 21, 0.3) 100%);
    border-left: 3px solid var(--color-gold);
    padding: 16px 24px;
    border-radius: 0 16px 16px 0;
    position: relative;
    max-width: 650px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.quote-icon {
    position: absolute;
    top: 12px;
    right: 20px;
    width: 24px;
    height: 24px;
    fill: rgba(197, 160, 89, 0.08);
    pointer-events: none;
}

.phil-quote {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.2vh, 1.25rem);
    line-height: 1.5;
    font-style: italic;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

/* Split: Teachings vs Interactive */
.interactive-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: stretch;
    height: clamp(220px, 35vh, 320px);
}

.teachings-section, .interactive-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.teachings-section h2, .interactive-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.4vh, 1.35rem);
    font-weight: 600;
    color: var(--color-gold-bright);
    letter-spacing: 0.02em;
}

/* Teachings List */
.teachings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
}

.teachings-list::-webkit-scrollbar {
    width: 4px;
}
.teachings-list::-webkit-scrollbar-track {
    background: transparent;
}
.teachings-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
.teachings-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

.teaching-item {
    background: rgba(18, 20, 26, 0.4);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.teaching-item:hover {
    background: rgba(18, 20, 26, 0.7);
    border-color: rgba(197, 160, 89, 0.25);
    transform: translateX(4px);
}

.teaching-title {
    font-size: clamp(0.8rem, 1.8vh, 0.95rem);
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teaching-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-gold);
}

.teaching-desc {
    font-size: clamp(0.7rem, 1.5vh, 0.8rem);
    line-height: 1.4;
    color: var(--color-text-muted);
}

/* Interactive Card Base */
.interactive-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.interactive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--glass-border-active), transparent 40%, transparent 60%, var(--glass-border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ==========================================================================
   FLOATING DRAGGABLE DOCK (RIGHT SIDE)
   ========================================================================== */
.floating-dock {
    position: fixed;
    right: 28px;
    top: calc(50% - 190px); /* Initial center placement */
    width: 64px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 16px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    z-index: 100;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-dock:hover {
    border-color: rgba(197, 160, 89, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(197, 160, 89, 0.05);
}

.dock-handle {
    width: 100%;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    margin-bottom: 8px;
}

.dock-handle:active {
    cursor: grabbing;
}

.drag-icon {
    width: 18px;
    height: 18px;
    fill: var(--color-text-dim);
    transition: var(--transition-fast);
}

.dock-handle:hover .drag-icon {
    fill: var(--color-gold);
}

.dock-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.dock-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
}

.dock-item .abbr {
    z-index: 2;
    transition: var(--transition-fast);
}

.dock-item::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    opacity: 0;
    transition: var(--transition-smooth);
    transform: scale(0.85);
}

/* Dock Item Hover & Active states */
.dock-item:hover {
    color: var(--color-text-main);
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.4);
}

.dock-item.active {
    color: var(--color-gold-bright);
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
}

.dock-item.active::after {
    border-color: var(--color-gold);
    opacity: 1;
    transform: scale(1);
}

/* Tooltip sliding to the left */
.dock-item .tooltip {
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.dock-item .tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--glass-bg);
    pointer-events: none;
}

.dock-item .tooltip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent transparent var(--glass-border);
    z-index: -1;
    pointer-events: none;
}

.dock-item:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ==========================================================================
   INTERACTIVE SUB-COMPONENTS STYLING (JS INJECTED)
   ========================================================================== */

/* 1. Socrates dialogue style */
.socrates-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
}

.socrates-dialogue-box {
    flex: 1;
    background: rgba(8, 9, 12, 0.3);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.socrates-dialogue-box::-webkit-scrollbar {
    width: 3px;
}
.socrates-dialogue-box::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.4;
}

.chat-bubble.socrates {
    background: rgba(197, 160, 89, 0.1);
    color: var(--color-text-main);
    border-left: 2px solid var(--color-gold);
    align-self: flex-start;
}

.chat-bubble.user {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    align-self: flex-end;
    text-align: right;
}

.socrates-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.socratic-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: left;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition-fast);
}

.socratic-btn:hover {
    background: rgba(197, 160, 89, 0.08);
    color: var(--color-gold-bright);
    border-color: rgba(197, 160, 89, 0.35);
    transform: translateY(-1px);
}

/* 2. Stoic simulator style */
.stoic-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.stoic-intro-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.worry-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.worry-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.worry-btn:hover {
    background: rgba(197, 160, 89, 0.08);
    color: var(--color-gold-bright);
    border-color: rgba(197, 160, 89, 0.3);
}

.stoic-step-box {
    flex: 1;
    background: rgba(8, 9, 12, 0.3);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 12px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.stoic-step-title {
    font-weight: 700;
    color: var(--color-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stoic-step-content {
    line-height: 1.45;
    color: var(--color-text-main);
}

.stoic-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.stoic-nav-btn {
    background: var(--color-gold-glow);
    border: 1px solid var(--color-gold);
    color: var(--color-text-main);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.stoic-nav-btn:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
}

.stoic-reset-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-muted);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.stoic-reset-btn:hover {
    border-color: var(--color-text-main);
    color: var(--color-text-main);
}

/* 3. Nietzsche style */
.nietzsche-test {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.question-box {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-text-main);
    margin-bottom: 10px;
    min-height: 48px;
}

.choices-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.choice-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.choice-btn:hover {
    background: rgba(197, 160, 89, 0.08);
    color: var(--color-gold-bright);
    border-color: rgba(197, 160, 89, 0.3);
}

.nietzsche-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 12px;
}

.result-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-gold);
}

.result-desc {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    max-width: 90%;
}

.meter-container {
    width: 80%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    position: relative;
    margin: 8px 0;
    overflow: hidden;
}

.meter-fill {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-bright));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.meter-labels {
    width: 80%;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--color-text-dim);
}

/* 4. Lao Tzu style */
.laotzu-garden {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(8, 9, 12, 0.5);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
}

.garden-prompt {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    pointer-events: none;
    z-index: 2;
    margin-bottom: 6px;
    transition: opacity 0.5s ease;
}

.garden-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-gold-bright);
    pointer-events: none;
    z-index: 2;
    max-width: 90%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.garden-quote.show {
    opacity: 1;
    transform: translateY(0);
}

.ripple {
    position: absolute;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: rippleEffect 2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
    }
}

/* 5. Descartes style */
.descartes-reality {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.descartes-text {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin-bottom: 10px;
}

.descartes-prompt {
    font-size: 0.8rem;
    color: var(--color-text-main);
    font-weight: 500;
    line-height: 1.45;
    flex: 1;
    background: rgba(8, 9, 12, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    overflow-y: auto;
}

.descartes-btn-row {
    display: flex;
    gap: 10px;
}

.descartes-btn {
    flex: 1;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    padding: 8px 0;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition-fast);
}

.descartes-btn:hover {
    background: rgba(197, 160, 89, 0.08);
    color: var(--color-gold-bright);
    border-color: rgba(197, 160, 89, 0.3);
}

.descartes-btn.primary {
    background: var(--color-gold-glow);
    border-color: var(--color-gold);
    color: var(--color-text-main);
}

.descartes-btn.primary:hover {
    background: var(--color-gold);
    color: var(--bg-primary);
}

/* ==========================================================================
   TRANSITION EFFECTS ON THEME SWAP
   ========================================================================== */
.fade-transition {
    opacity: 0;
    transform: translateY(12px);
}

.img-transition {
    opacity: 0;
    transform: scale(0.97) rotate(-1deg);
}

/* ==========================================================================
   RESPONSIVE SCALING ADAPTATIONS (ONLY FOR FULL SCREEN VERTICAL CLAMPING)
   ========================================================================== */
@media (max-width: 1024px) {
    .app-container {
        padding: 4% 8% 4% 4%;
        gap: 3%;
    }
    .left-panel {
        flex: 0 0 35%;
    }
    .floating-dock {
        right: 16px;
    }
}

@media (max-height: 700px) {
    .interactive-split {
        height: 200px;
    }
    .quote-card {
        padding: 10px 16px;
    }
}/* Styling Tombol Mengambang */
.floating-btn-kinasa {
  position: fixed;
  bottom: 40px; /* Jarak dari bawah layar */
  right: 20px;  /* Jarak dari kanan layar */
  z-index: 9999; /* Memastikan tombol selalu berada di lapisan paling atas */
  
  /* Tampilan & Warna */
  background-color: #0b5345; /* Hijau tua */
  color: #ffffff; /* Tulisan putih */
  border: 2px solid #d4af37; /* Batas garis keemasan (Gold) */
  padding: 12px 20px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none; /* Menghilangkan garis bawah tautan */
  
  /* Sudut Membulat (Rounded Rectangle) */
  border-radius: 8px;
  
  /* Bayangan & Transisi */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  
  /* Menjalankan Animasi Bergerak Sedikit-sedikit */
  animation: floatAnimation 3s ease-in-out infinite;
}

/* Efek saat kursor diarahkan ke tombol (Hover) */
.floating-btn-kinasa:hover {
  background-color: #073c32; /* Hijau agak lebih gelap saat di-hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: scale(1.05); /* Membesar sedikit saat disentuh */
}

/* Definisi Animasi Bergerak Naik Turun Secara Halus */
@keyframes floatAnimation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px); /* Bergerak naik 8px */
  }
  100% {
    transform: translateY(0px);
  }
}
