@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-primary: #080c14;
    --bg-secondary: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.65);
    --border-glow: rgba(0, 240, 255, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --cyan: #00f0ff;
    --pink: #ff007f;
    --purple: #a855f7;
    --green: #10b981;
    --red: #ef4444;
    --amber: #f59e0b;
    
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', Courier, monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    animation: moveBackground 40s infinite linear;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-top: 1rem;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--cyan);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.logo {
    font-size: 2.5rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--cyan) 0%, #fff 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 1.2rem;
    position: relative;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.logo::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    margin: 8px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 12px var(--cyan);
    animation: logoLinePulse 3s ease-in-out infinite;
}

@keyframes logoLinePulse {
    0%, 100% {
        width: 50px;
        opacity: 0.5;
    }
    50% {
        width: 90px;
        opacity: 1;
    }
}

header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Roadmap Grid */
.roadmap-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    height: 480px;
}

/* SVG Connecting Line */
.roadmap-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.roadmap-path-under {
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 6px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.roadmap-path-active-base {
    stroke: #2563eb;
    stroke-width: 6px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}

.roadmap-path-active {
    stroke: var(--cyan);
    stroke-width: 6px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 45, 180;
    animation: pulseFlow 3s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.7));
}

@keyframes pulseFlow {
    0% {
        stroke-dashoffset: 450;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.roadmap-node {
    display: flex;
    justify-content: space-between;
    height: 100%;
}

#node-1, #node-3 {
    flex-direction: column;
}

#node-2, #node-4 {
    flex-direction: column-reverse;
}

.node-marker {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0f172a;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
    z-index: 3;
    position: relative;
    flex-shrink: 0;
}

/* Pulsing Halos */
.roadmap-node.unlocked .node-marker::after,
.roadmap-node.completed .node-marker::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: markerPulse 2.5s cubic-bezier(0.25, 0, 0, 1) infinite;
    pointer-events: none;
    z-index: -1;
}

.roadmap-node.completed .node-marker::after {
    color: var(--green);
}

.roadmap-node.unlocked .node-marker::after {
    color: var(--cyan);
}

@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Node Content Card */
.node-card {
    width: 100%;
    background: var(--card-bg);
    border: var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Blur Wrapper for Content */
.node-card-blur-wrapper {
    transition: filter 0.3s ease, opacity 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Lock and Chain Overlay */
.node-card-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 20, 0.45);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(1.5px);
}

/* Unlocked State */
.roadmap-node.unlocked .node-marker {
    border-color: var(--cyan);
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.12) 0%, #0f172a 100%);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), inset 0 0 10px rgba(0, 240, 255, 0.2);
    color: var(--cyan);
    cursor: pointer;
}

.roadmap-node.unlocked .node-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.65), inset 0 0 15px rgba(0, 240, 255, 0.3);
}

.roadmap-node.unlocked .node-card {
    border-color: rgba(37, 99, 235, 0.25);
    cursor: pointer;
    animation: elegantGlitchBorderUnlocked 3s infinite ease-in-out;
}

.roadmap-node.unlocked .node-card:hover {
    border-color: #2563eb;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-5px);
}

/* Locked State */
.roadmap-node.locked {
    opacity: 1; /* keep opacity 1 because blur wrapper handles content dimming */
}

.roadmap-node.locked .node-card-blur-wrapper {
    filter: blur(4px);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}

.roadmap-node.locked .node-marker {
    background: radial-gradient(circle at center, #0f172a 0%, #080c14 100%);
    border: 2px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), var(--glass-shadow);
    color: var(--text-muted);
}

/* Completed State */
.roadmap-node.completed .node-marker {
    border-color: var(--green);
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12) 0%, #0f172a 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45), inset 0 0 10px rgba(16, 185, 129, 0.2);
    color: var(--green);
    cursor: pointer;
}

.roadmap-node.completed .node-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.65), inset 0 0 15px rgba(16, 185, 129, 0.3);
}

.roadmap-node.completed .node-card {
    border-color: rgba(16, 185, 129, 0.25);
    animation: elegantGlitchBorderCompleted 3.5s infinite ease-in-out;
}

/* Content Details styling */
.node-topic-num {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.roadmap-node.completed .node-topic-num {
    color: var(--green);
}

.node-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.node-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.node-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
}

.node-badge.badge-unlocked {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.2);
}

.node-badge.badge-locked {
    color: var(--text-muted);
}

.node-badge.badge-completed {
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Action button inside card */
.btn-enter {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-sans);
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.btn-enter:hover {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    transform: scale(1.02);
}

/* --- Presentation Mode Panel --- */
.presentation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1000;
    display: none;
    grid-template-rows: 60px 1fr 60px;
    font-family: var(--font-sans);
}

.presentation-overlay.active {
    display: grid;
}

/* Presentation Top Navbar */
.pres-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: var(--glass-border);
}

.pres-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pres-close {
    background: transparent;
    border: var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pres-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-color: var(--pink);
}

/* Slide Workspace */
.slide-workspace {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 100%;
    overflow: hidden;
}

/* Drawer / Slide List Sidebar */
.slide-drawer {
    background: rgba(9, 15, 26, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: var(--glass-border);
    padding: 1rem;
    overflow-y: auto;
}

.drawer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-left: 6px;
}

.slide-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 6px;
    border: 1px solid transparent;
}

.slide-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.slide-list-item.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.2);
    color: var(--cyan);
    font-weight: 600;
}

.slide-item-num {
    background: rgba(255,255,255,0.05);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.slide-list-item.active .slide-item-num {
    background: var(--cyan);
    color: #000;
    font-weight: 700;
}

/* Slide Display Container */
.slide-display {
    position: relative;
    display: flex;
    align-items: flex-start; /* Fix flex center overflow cutoff bug */
    justify-content: center;
    padding: 2.5rem 1.5rem;
    overflow-y: auto;
}

.slide-card-deck {
    width: 100%;
    max-width: 850px;
    background: radial-gradient(circle at 10% 10%, rgba(30, 41, 59, 0.75), rgba(15, 22, 38, 0.9));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    min-height: 540px;
    margin: auto 0; /* Auto margin centers the card vertically when it fits, starts at top when overflowing */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top to prevent pushing headers offscreen */
    overflow: hidden;
    animation: elegantGlitchBorderDeck 4s infinite ease-in-out;
}

.slide-content-wrapper {
    display: none;
    animation: slideFadeIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.slide-content-wrapper.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Cover Styles */
.slide-cover {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.slide-cover .slide-header-group {
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.slide-cover .slide-header-group h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-cover .slide-header-group h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.slide-cover p.cover-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

/* Intro List Styles */
.intro-list {
    list-style: none;
    margin-top: 1.5rem;
    text-align: left;
}

.intro-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 18px;
    border-radius: 8px;
    border: var(--glass-border);
}

.intro-list li span {
    font-size: 1.3rem;
}

/* Category Layout Grid */
.slide-header-group {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.slide-header-group::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(37, 99, 235, 0) 10%, 
        rgba(37, 99, 235, 0.6) 45%, 
        rgba(0, 240, 255, 0.8) 50%, 
        rgba(37, 99, 235, 0.6) 55%, 
        rgba(37, 99, 235, 0) 90%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: headerLineFlow 6s infinite linear;
}

.slide-header-group h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.slide-header-group p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Redesigned Interactive Explorer Styles --- */
.explorer-container {
    display: flex;
    gap: 1.5rem;
    height: 450px; /* Constrain explorer height so layout fits and right panel scrolls internally */
    margin-top: 0.8rem;
    overflow: hidden;
}

.explorer-sidebar {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 5px;
}

.explorer-list-item {
    background: rgba(255, 255, 255, 0.01);
    border: var(--glass-border);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.explorer-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(3px);
}

.explorer-list-item.active {
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.explorer-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.explorer-item-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.explorer-item-rating {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.explorer-item-tagline {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.explorer-detail-panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: var(--glass-border);
    border-radius: 14px;
    padding: 1.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: panelFadeIn 0.35s ease forwards;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-sans);
}

.detail-rating {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.scores-section {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.scores-section h4, 
.features-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.scores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-label {
    width: 110px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.score-bar-bg {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.score-val {
    width: 40px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
}

.features-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.features-list li::before {
    content: "\f105"; /* FontAwesome Angle Right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 0.85rem;
}

.best-case-box {
    background: rgba(0, 240, 255, 0.03);
    border: 1px dashed rgba(0, 240, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.pro-con-box {
    padding: 1.2rem;
    border-radius: 10px;
    border: var(--glass-border);
}

.pro-con-box h5 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.pro-con-box ul {
    list-style: none;
}

.pro-con-box li {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.pro-box {
    background: rgba(16, 185, 129, 0.02);
    border-color: rgba(16, 185, 129, 0.15);
}

.pro-box h5 {
    color: var(--green);
}

.con-box {
    background: rgba(239, 68, 68, 0.02);
    border-color: rgba(239, 68, 68, 0.15);
}

.con-box h5 {
    color: var(--red);
}

/* Practice Area Intro */
.practice-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 1.5rem;
}

.practice-intro-card {
    background: rgba(255,255,255,0.02);
    border: var(--glass-border);
    padding: 1.8rem;
    border-radius: 12px;
}

.practice-intro-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--cyan);
}

.practice-intro-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* AI Quiz Lab UI */
.quiz-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-scenario-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.scenario-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.scenario-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quiz-option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option-btn.correct {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--green) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.quiz-option-btn.incorrect {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--red) !important;
    color: #fff !important;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.quiz-feedback {
    display: none;
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--cyan);
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.quiz-feedback p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Simulated Mockup Container */
.mockup-container {
    margin-top: 1rem;
    border-radius: 8px;
    background: #111b2d;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
    font-family: var(--font-mono);
}

.mockup-container h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mockup-journal {
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--cyan);
    border-top: 1px solid rgba(255,255,255,0.03);
    border-right: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.journal-title {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 6px;
}

.journal-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mockup-ppt {
    background: #111a2e;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ppt-slide {
    background: #090f1d;
    padding: 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ppt-slide h4 {
    color: var(--cyan);
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: var(--font-sans);
}

.ppt-slide ul {
    list-style: square;
    margin-left: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ppt-slide li {
    margin-bottom: 6px;
}

.ppt-footer {
    margin-top: 15px;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: right;
}

.mockup-chat {
    background: rgba(255, 255, 255, 0.01);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Prompt Playground UI */
.playground-wrapper {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1.2rem;
}

.playground-console {
    background: #111b2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-selector {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.console-selector:focus {
    outline: none;
    border-color: var(--cyan);
}

.console-input-row {
    display: flex;
    gap: 10px;
}

.console-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.console-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.console-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0,240,255,0.15);
}

.btn-execute {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-execute:hover {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    transform: scale(1.02);
}

.playground-console .node-badge {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.playground-console .node-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--cyan);
    color: #fff;
}

.playground-console span {
    color: #cbd5e1 !important;
}

.console-output-box {
    background: #090f1d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.2rem;
    min-height: 180px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-y: auto;
    color: #f1f5f9;
}

.typing-cursor::after {
    content: '|';
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Workshop Practice Labs Layout --- */
.lab-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    height: 450px;
    overflow: hidden;
}

.lab-guide-panel {
    background: rgba(255, 255, 255, 0.02);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.lab-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cyan);
    letter-spacing: 0.08em;
}

.lab-task-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.lab-task-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lab-framework-box {
    margin-top: auto;
    background: rgba(0, 240, 255, 0.03);
    border: 1px dashed rgba(0, 240, 255, 0.2);
    padding: 1.2rem;
    border-radius: 8px;
}

.lab-framework-box h5 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-console-panel {
    background: #111b2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow: hidden;
}

.lab-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lab-console-input-row {
    display: flex;
    gap: 10px;
}

.lab-console-panel .node-badge {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lab-console-panel .node-badge:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--cyan);
    color: #fff;
}

.lab-output-screen {
    flex: 1;
    background: #090f1d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-y: auto;
    color: #f1f5f9;
}

@media(max-width: 768px) {
    .lab-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
}

/* Completion Container styles */
.completion-container {
    text-align: center;
    padding: 2rem 0;
}

.trophy-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.completion-container h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.completion-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.summary-bullets {
    max-width: 400px;
    margin: 0 auto 2.5rem;
    text-align: left;
    background: rgba(255,255,255,0.02);
    border: var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
}

.summary-bullets div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.summary-bullets div:last-child {
    margin-bottom: 0;
}

.summary-bullets span {
    color: var(--green);
    font-weight: 700;
}

/* Presentation Footer Navigation */
.pres-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: rgba(15, 23, 42, 0.8);
    border-top: var(--glass-border);
}

.pres-nav-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* --- Professional Styled Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-primary {
    background: #2563eb;
    color: #fff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn-nav {
    background: transparent;
    border: var(--glass-border);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-nav:hover:not(:disabled) {
    background: rgba(255,255,255,0.05);
    border-color: var(--cyan);
}

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

.progress-track {
    width: 250px;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.slide-counter {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive adjust */
@media(max-width: 900px) {
    .slide-workspace {
        grid-template-columns: 1fr;
    }
    .slide-drawer {
        display: none;
    }
    .ai-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .quiz-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .roadmap-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 550px;
        padding: 2rem 1rem;
        height: auto !important;
    }
    
    .roadmap-node {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .node-marker {
        flex-shrink: 0;
    }
    
    .node-card {
        margin-top: 0;
    }
    .ai-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .practice-cards-wrapper {
        grid-template-columns: 1fr;
    }
    .slide-card-deck {
        padding: 1.25rem !important;
        min-height: auto !important;
        border-radius: 12px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .slide-display {
        padding: 1rem 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .slide-cover .slide-header-group h2,
    .slide-header-group h2 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .slide-cover .slide-header-group h3,
    .slide-header-group p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .slide-cover p.cover-desc {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .presentation-overlay {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }
    
    .pres-header {
        flex: 0 0 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.8rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .pres-close-text {
        display: none !important;
    }
    
    .pres-close {
        flex-shrink: 0 !important;
    }
    
    .pres-title {
        font-size: 0.9rem !important;
        max-width: 60% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 !important;
    }
    
    .slide-workspace {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 120px) !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }
    
    .slide-display {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 0.5rem !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        min-width: 0 !important;
    }
    
    .pres-footer {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.8rem 1rem !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .pres-footer .pres-nav-group {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }
    
    .pres-footer .pres-nav-group:last-child {
        justify-content: center !important;
        margin-top: 4px !important;
    }
    
    .progress-track {
        display: none !important;
    }
    
    .btn-nav {
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
    }
    
    .explorer-container {
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .explorer-sidebar {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        max-height: 180px !important;
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: var(--glass-border) !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .explorer-detail-panel {
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }
}

@media(max-width: 480px) {
    .ai-cards-container {
        grid-template-columns: 1fr;
    }
    .quiz-options-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Floating 3D Cube Background Animation --- */
.bg-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Place on top of body background but behind main contents */
    pointer-events: none;
    perspective: 1000px;
}

.cube-wrapper {
    position: absolute;
    bottom: -150px;
    animation: floatUp 25s infinite linear;
    transform-style: preserve-3d;
}

.cube {
    position: relative;
    width: var(--size, 50px);
    height: var(--size, 50px);
    transform-style: preserve-3d;
    animation: rotateCube var(--rot-duration, 15s) infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.1);
    animation: lightGlitch var(--glow-duration, 6s) infinite linear;
    animation-delay: var(--glow-delay, 0s);
}

/* Positioning faces for 3D boxes */
.face.front  { transform: rotateY(0deg) translateZ(calc(var(--size, 50px) / 2)); }
.face.back   { transform: rotateY(180deg) translateZ(calc(var(--size, 50px) / 2)); }
.face.left   { transform: rotateY(-90deg) translateZ(calc(var(--size, 50px) / 2)); }
.face.right  { transform: rotateY(90deg) translateZ(calc(var(--size, 50px) / 2)); }
.face.top    { transform: rotateX(90deg) translateZ(calc(var(--size, 50px) / 2)); }
.face.bottom { transform: rotateX(-90deg) translateZ(calc(var(--size, 50px) / 2)); }

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.7);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-120vh) scale(1.1);
        opacity: 0;
    }
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 64px 64px;
    }
}

@keyframes lightGlitch {
    0%, 28%, 30%, 58%, 60%, 88%, 90%, 100% {
        border-color: rgba(37, 99, 235, 0.2);
        background: rgba(37, 99, 235, 0.02);
        box-shadow: 0 0 4px rgba(37, 99, 235, 0.05);
    }
    29% {
        border-color: #00f0ff;
        background: rgba(0, 240, 255, 0.15);
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    }
    59% {
        border-color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
    89% {
        border-color: #00f0ff;
        background: rgba(0, 240, 255, 0.15);
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    }
}

/* --- Dynamic Spotlight Background Layers --- */
.ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle 600px at 50% 50%, rgba(37, 99, 235, 0.05), transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: floatAmbient 25s infinite ease-in-out alternate;
}

@keyframes floatAmbient {
    0% {
        transform: translate(-15%, -15%) scale(1);
    }
    50% {
        transform: translate(15%, 10%) scale(1.1);
    }
    100% {
        transform: translate(-10%, 15%) scale(0.95);
    }
}

/* Wavy Electric Current SVG Overlay */
.lightning-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.lightning-path {
    fill: none;
    stroke: rgba(37, 99, 235, 0.35);
    stroke-width: 2.0;
    stroke-dasharray: 150 800;
    stroke-linecap: round;
}

.path-1 {
    animation: flowCurrent1 9s infinite linear, electricGlitch 6s infinite;
}

.path-2 {
    animation: flowCurrent2 7s infinite linear, electricGlitch 4.5s infinite;
}

.path-3 {
    animation: flowCurrent3 11s infinite linear, electricGlitch 7.5s infinite;
}

@keyframes flowCurrent1 {
    0% {
        stroke-dashoffset: 950;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes flowCurrent2 {
    0% {
        stroke-dashoffset: 950;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes flowCurrent3 {
    0% {
        stroke-dashoffset: 950;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes electricGlitch {
    0%, 23%, 25%, 53%, 55%, 83%, 85%, 100% {
        stroke-width: 1.5;
        stroke: rgba(37, 99, 235, 0.35);
        filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.3));
        opacity: 0.5;
    }
    24% {
        stroke-width: 3.5;
        stroke: #ffffff;
        filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.95)) drop-shadow(0 0 6px #ffffff);
        opacity: 1;
    }
    54% {
        stroke-width: 3.0;
        stroke: #00f0ff;
        filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.9)) drop-shadow(0 0 5px #ffffff);
        opacity: 0.95;
    }
    84% {
        stroke-width: 2.8;
        stroke: #ffffff;
        filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.9)) drop-shadow(0 0 4px #ffffff);
        opacity: 0.9;
    }
}

/* --- New Professional Animations --- */
@keyframes headerLineFlow {
    0% {
        background-position: 150% 0;
    }
    100% {
        background-position: -50% 0;
    }
}

@keyframes elegantGlitchBorderDeck {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 25px 60px rgba(0,0,0,0.7), inset 0 1px 1px rgba(255, 255, 255, 0.12);
    }
    50% {
        border-color: rgba(0, 240, 255, 0.6);
        box-shadow: 0 25px 60px rgba(0,0,0,0.7), inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 0 18px rgba(0, 240, 255, 0.35);
    }
}

@keyframes elegantGlitchBorderUnlocked {
    0%, 100% {
        border-color: rgba(37, 99, 235, 0.25);
        box-shadow: var(--glass-shadow);
    }
    50% {
        border-color: rgba(0, 240, 255, 0.7);
        box-shadow: var(--glass-shadow), 0 0 15px rgba(0, 240, 255, 0.3);
    }
}

@keyframes elegantGlitchBorderCompleted {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.25);
        box-shadow: var(--glass-shadow);
    }
    50% {
        border-color: rgba(52, 211, 153, 0.7);
        box-shadow: var(--glass-shadow), 0 0 15px rgba(52, 211, 153, 0.3);
    }
}

/* Custom Alert Modal styles */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 6, 11, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert-overlay.active {
    opacity: 1;
}

.custom-alert-card {
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 2.2rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 240, 255, 0.03);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.custom-alert-overlay.active .custom-alert-card {
    transform: scale(1);
}

.custom-alert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.custom-alert-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.custom-alert-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 2rem;
    position: relative;
}

.custom-alert-icon-wrapper.warning-glow {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
    background: rgba(245, 158, 11, 0.03);
}

.custom-alert-icon-wrapper.success-glow {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
    background: rgba(16, 185, 129, 0.03);
}

.custom-alert-icon-wrapper i {
    filter: drop-shadow(0 0 8px currentColor);
}

.custom-alert-body {
    margin-bottom: 1.8rem;
}

#custom-alert-message {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 500;
}

.custom-alert-footer {
    display: flex;
    justify-content: center;
}

.custom-alert-btn {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    border: none;
    border-radius: 8px;
    color: #080c14;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 32px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    background: linear-gradient(135deg, #00f0ff 0%, #bd5eff 100%);
}

.custom-alert-btn:active {
    transform: translateY(0);
}

/* BGM Toggle floating button */
.bgm-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bgm-toggle-btn:hover {
    transform: scale(1.08);
    background: rgba(15, 23, 42, 0.95);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Adjust BGM button position on the slide page to avoid overlapping topbar buttons */
body:has(.presentation-overlay.active) .bgm-toggle-btn {
    top: 10px;
    right: 240px;
    width: 38px;
    height: 38px;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4);
}

/* Shift further left on mobile screens to clear layout */
@media (max-width: 768px) {
    body:has(.presentation-overlay.active) .bgm-toggle-btn {
        top: 12px;
        right: 80px; /* position it left of the responsive close icon */
        width: 36px;
        height: 36px;
    }
}


