/* ===========================================
   CSS PREMIUM THEME: "FABLE 5"
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --bg-primary: #050a14;
    --accent-gold: #D4AF37;
    --accent-red: #E63946;
    --accent-cyan: #00F0FF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(10, 25, 47, 0.4);
    --glass-border: rgba(212, 175, 55, 0.2);
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden; /* Prevent scrolling, handled by slides */
    line-height: 1.6;
}

/* ===========================================
   HTML5 CANVAS BACKGROUND (NEURAL NET)
   =========================================== */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none; /* Let clicks pass through */
    opacity: 0.8;
}

/* ===========================================
   PAGINATION
   =========================================== */
.page-counter {
    position: fixed;
    bottom: 2.5rem;
    left: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    z-index: 1000;
    font-weight: 600;
    opacity: 0.8;
}

/* ===========================================
   BRANDING & OVERLAYS
   =========================================== */
.brand-top-right {
    position: fixed;
    top: 2.5rem;
    right: 3rem;
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 700;
    z-index: 1000;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.brand-bottom-right {
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    z-index: 1000;
    opacity: 0.8;
}

.brand-bottom-right img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
    width: 0%;
    z-index: 1001;
    transition: width var(--transition-slow);
    box-shadow: 0 0 15px var(--accent-red);
}

.stage-timer {
    position: fixed;
    bottom: 2rem;
    left: 3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
    z-index: 1000;
    opacity: 0.6;
}

/* ===========================================
   SLIDES CONTAINER & LOGIC
   =========================================== */
#presentation {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    padding: 6rem 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Base Typography Elements */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

h1 { font-size: 5rem; margin-bottom: 1rem; }
h2 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-gold); }
p { font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
ul { list-style: none; margin-bottom: 1.5rem; }
li { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-secondary); padding-left: 2rem; position: relative; }
li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-gold);
}

/* Colors & Highlights */
.highlight-gold { color: var(--accent-gold); text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
.highlight-red { color: var(--accent-red); text-shadow: 0 0 15px rgba(230, 57, 70, 0.4); }
.highlight-cyan { color: var(--accent-cyan); text-shadow: 0 0 15px rgba(0, 240, 255, 0.4); }
.text-white { color: #FFF; }

/* Footers & Technical Notes */
.tech-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 8rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    max-width: 60%;
}

.block-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* ===========================================
   GLASSMORPHISM & LAYOUTS
   =========================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.split-layout-text-left {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

/* Photos & Assets */
.asset-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    object-fit: cover;
}

.profile-img-hero {
    width: 380px;
    height: 480px;
    border-radius: 20px;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    margin: 0 auto;
    display: block;
}

/* ===========================================
   NATIVE CSS CHARTS & TABLES
   =========================================== */
/* Native Table */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 1rem;
}

.data-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.data-table td {
    padding: 1.2rem 1.5rem;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.data-table tr td:first-child { border-radius: 10px 0 0 10px; font-weight: 600; color: #FFF; }
.data-table tr td:last-child { border-radius: 0 10px 10px 0; }

/* Flowchart / Mindmap Nodes */
.flow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 3rem 0;
}

.flow-node {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    z-index: 2;
    min-width: 220px;
}

.flow-node.active-red { border-color: var(--accent-red); box-shadow: 0 0 20px rgba(230,57,70,0.3); }
.flow-node.active-cyan { border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0,240,255,0.3); }

.flow-node h4 { color: #FFF; font-size: 1.2rem; margin-bottom: 0.5rem; }
.flow-node p { font-size: 0.95rem; margin: 0; line-height: 1.4; }

.flow-arrow {
    flex-grow: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    position: relative;
}

.flow-arrow::after {
    content: '➔';
    position: absolute;
    top: -12px;
    right: 20%;
    color: var(--accent-gold);
    font-size: 1.5rem;
}

/* Cortisol Chart (CSS Grid) */
.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 300px;
    gap: 15px;
    padding-bottom: 40px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    position: relative;
    margin-top: 2rem;
}
.chart-bar {
    flex: 1;
    background: var(--glass-bg);
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1.5s ease-out;
}
.chart-bar.red-bar { background: linear-gradient(0deg, rgba(230,57,70,0.4), var(--accent-red)); }
.chart-bar.grey-bar { background: linear-gradient(0deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4)); }
.chart-label {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ===========================================
   ANIMATIONS (REVEAL ENGINE)
   =========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all var(--transition-slow);
    filter: blur(10px);
}

.slide.active .reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.slide.active .reveal:nth-child(1) { transition-delay: 0.1s; }
.slide.active .reveal:nth-child(2) { transition-delay: 0.3s; }
.slide.active .reveal:nth-child(3) { transition-delay: 0.5s; }
.slide.active .reveal:nth-child(4) { transition-delay: 0.7s; }
.slide.active .reveal:nth-child(5) { transition-delay: 0.9s; }
.slide.active .reveal:nth-child(6) { transition-delay: 1.1s; }

/* Center Interstitial Slides */
.interstitial {
    text-align: center;
    align-items: center;
}
.interstitial h1 { font-size: 4.5rem; }

/* Number Badge */
.number-badge {
    position: absolute;
    top: 5rem;
    left: 4rem;
    font-size: 15rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.02);
    z-index: -1;
    line-height: 1;
}

/* End slide formatting */
.end-slide { text-align: center; justify-content: center; align-items: center; }
