/* Common CSS for InfiniRewards Presentation */

:root {
    /* Updated Color palette with more vibrant colors */
    --primary-color: #3f51b5;     /* More vibrant blue */
    --primary-color-light: #7986cb;
    --primary-color-dark: #303f9f;
    --accent-color: #9c27b0;      /* Vivid purple for accent */
    --accent-light: #ce93d8;
    --accent-dark: #7b1fa2;
    --text-light: #ffffff;
    --text-dark: #212121;
    --background-light: #f5f5f5;
    --background-dark: #121212;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    
    /* Gradient colors */
    --gradient-start: #3949ab;
    --gradient-end: #8e24aa;
    
    /* Typography */
    --heading-font: 'Noto Serif', serif;
    --body-font: 'Noto Sans', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.16);

    /* Standardize font sizes */
    --title-1-size: 5.5rem;
    --title-2-size: 4.2rem;
    --title-3-size: 3.2rem;
    --subtitle-size: 2.2rem;
    --text-large: 2rem;
    --text-medium: 1.6rem;
    --text-normal: 1.4rem;
    --text-small: 1.2rem;

    /* Colors */
    --primary-color-rgb: 63, 81, 181;
    --secondary-color: #00bcd4;
    --secondary-color-rgb: 0, 188, 212;
    --accent-color-rgb: 156, 39, 176;
    --accent-light-rgb: 186, 104, 200;
    --text-color: #ffffff;
    --text-muted: #bdbdbd;
    --background-light: #1e1e1e;
}

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

/* Full screen setup */
html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    color: var(--text-light);
    background-color: var(--background-dark);
}

/* Base Styles */
body {
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2.5rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    line-height: 1.6;
    text-align: left;
}

li {
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

a {
    color: var(--primary-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Responsive Typography */
@media (max-width: 1366px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2.2rem; }
    h4 { font-size: 1.5rem; }
    p { font-size: 1.3rem; }
    li { font-size: 1.2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.3rem; }
    p { font-size: 1.1rem; }
    li { font-size: 1rem; }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.justify-center {
    justify-content: center;
}

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

.space-between {
    justify-content: space-between;
}

.space-around {
    justify-content: space-around;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* RevealJS Custom Theme Overrides */
.reveal {
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--text-light);
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.reveal .slides {
    text-align: left;
    width: 100% !important;
    height: 100% !important;
}

.reveal .slides section {
    height: 100%;
    width: 100%;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
    font-family: var(--heading-font);
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.reveal ul {
    display: inline-block;
    text-align: left;
    margin-left: var(--spacing-lg);
}

.reveal ol {
    display: inline-block;
    text-align: left;
    margin-left: var(--spacing-lg);
}

.reveal ul li,
.reveal ol li {
    margin-bottom: var(--spacing-md);
}

.reveal pre {
    font-family: monospace;
    display: block;
    position: relative;
    width: 90%;
    margin: var(--spacing-lg) auto;
    text-align: left;
    font-size: 0.8rem;
    font-family: monospace;
    word-wrap: break-word;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
}

.reveal code {
    font-family: monospace;
}

.reveal img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
}

/* Two-column layout */
.two-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
}

.two-columns > div {
    flex: 1;
}

/* Three-column layout */
.three-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
}

.three-columns > div {
    flex: 1;
}

/* Card Component */
.card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Fade for backgrounds */
.bg-fade {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

/* Icon styling */
.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Mermaid diagram styling */
.mermaid-diagram {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-md) 0;
}

.mermaid {
    width: 100%;
    max-width: 800px;
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.7s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.7s ease forwards;
}

.animate-slide-left {
    animation: slideLeft 0.7s ease forwards;
}

.animate-slide-right {
    animation: slideRight 0.7s ease forwards;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Background styles */
[data-background-gradient] {
    position: relative;
    background: var(--primary-color-dark) !important;
}

[data-background-gradient]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
    opacity: 1;
    z-index: -1;
}

/* Cover and final slides */
.cover-slide, .final-slide {
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cover-content, .final-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    width: 80%;
    max-width: 1200px;
    backdrop-filter: blur(5px);
    margin: 0 auto;
}

.cover-content h1, .final-content h2 {
    margin-bottom: var(--spacing-md);
}

.cover-content .tagline, .final-content .tagline {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

.cover-content .logo, .final-content .logo {
    font-size: 6rem;
    color: var(--accent-light);
    margin-top: var(--spacing-xl);
}

.final-content .contact-info {
    margin-top: var(--spacing-xl);
}

.final-content .contact-info p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.final-content .contact-info i {
    margin-right: var(--spacing-sm);
    color: var(--accent-light);
}

/* Fix for use case slides */
[data-use-case-slide] {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100vh !important;
    width: 100vw !important;
    padding: 0 !important;
}

[data-use-case-slide] h3 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
}

[data-use-case-slide] .use-case {
    display: flex !important;
    flex: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    width: 80% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    min-height: 65vh !important;
}

/* Animation classes */
.loaded .reveal .slides section {
    transition: all 0.8s ease-out;
}

/* Additional utility classes */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

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

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2.2rem;
    }

    p, ul, ol {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    p, ul, ol {
        font-size: 1.1rem;
    }
}

@media screen and (max-height: 700px) {
    [data-use-case-slide] .use-case {
        min-height: 55vh !important;
    }
}

/* Typography */
.reveal h1 {
    font-size: var(--title-1-size);
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--text-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.reveal h2 {
    font-size: var(--title-2-size);
    font-weight: 600;
    margin-bottom: 0.6em;
    color: var(--text-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    padding-bottom: 0.3em;
}

.reveal h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color-light), var(--accent-light));
    border-radius: 2px;
}

.reveal h3 {
    font-size: var(--title-3-size);
    font-weight: 600;
    margin-bottom: 0.7em;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.reveal h4 {
    font-size: var(--subtitle-size);
    font-weight: 500;
    margin-bottom: 0.5em;
    color: var(--accent-light);
}

.reveal p {
    font-size: var(--text-medium);
    margin-bottom: 1em;
    line-height: 1.4;
}

.reveal ul, .reveal ol {
    font-size: var(--text-medium);
    margin-bottom: 1em;
    line-height: 1.4;
}

.reveal li {
    margin-bottom: 0.5em;
}

/* Standardized backgrounds */
.reveal .slides > section {
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
}

/* Cover and final slides */
.cover-slide, .final-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.cover-content, .final-content {
    text-align: center;
    max-width: 80%;
}

.cover-content h1 {
    font-size: calc(var(--title-1-size) * 1.2);
    margin-bottom: 0.2em;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.cover-content h2, .final-content h2 {
    font-size: calc(var(--title-2-size) * 1.1);
    margin-bottom: 0.5em;
}

.cover-content .tagline, .final-content .tagline {
    font-size: var(--text-large);
    margin-bottom: 2em;
    color: var(--text-dark);
}

.cover-content .logo, .final-content .logo {
    font-size: 6rem;
    margin: 1rem auto;
    color: var(--accent-color);
}

/* Section backgrounds */
[data-background-gradient] {
    background-size: cover !important;
}

/* Content containers */
.intro-content, .mcp-content, .use-case, .two-columns, 
.starknet-advantages, .architecture-layers, .ai-agents, 
.implementation-strategy, .ai-use-cases {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Enhanced typography for special elements */
.tagline {
    font-style: italic;
    font-weight: 300;
}

.feature-title {
    font-weight: bold;
    color: var(--accent-color);
}

/* Responsive text sizing */
@media (max-width: 1366px) {
    :root {
        --title-1-size: 4.8rem;
        --title-2-size: 3.8rem;
        --title-3-size: 2.8rem;
        --subtitle-size: 2.2rem;
        --text-large: 1.8rem;
    }
}

@media (max-width: 1024px) {
    :root {
        --title-1-size: 4.2rem;
        --title-2-size: 3.4rem;
        --title-3-size: 2.6rem;
        --subtitle-size: 2rem;
        --text-large: 1.7rem;
        --text-medium: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --title-1-size: 3.8rem;
        --title-2-size: 3rem;
        --title-3-size: 2.4rem;
        --subtitle-size: 1.8rem;
        --text-large: 1.6rem;
        --text-medium: 1.4rem;
    }
    
    .cover-content, .final-content, .intro-content {
        width: 90%;
    }
}

/* Enhanced visuals for diagrams and charts */
.mermaid-diagram {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 2rem auto;
    width: 85%;
}

/* Icons styling */
.fa-solid, .fa-regular, .fa-brands {
    margin-right: 0.5rem;
}

/* Add styles for the new navigation guide */
.navigation-guide {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(63, 81, 181, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    color: white;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: opacity 0.5s ease;
}

.navigation-guide.fade-out {
    opacity: 0;
}

.nav-hint {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.nav-hint .key {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Help overlay styles */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.help-content {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.help-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.help-content ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.help-content li {
    margin: 1rem 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.help-content strong {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
    min-width: 100px;
    text-align: center;
}

.help-content .hint {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    opacity: 0.8;
}

/* Enhanced progress bar */
.reveal .progress {
    height: 10px !important;
    background: rgba(0, 0, 0, 0.2);
    color: var(--accent-color) !important;
    opacity: 0.8;
}

/* Enhanced slide number */
.reveal .slide-number {
    background-color: rgba(63, 81, 181, 0.7) !important;
    padding: 5px 10px !important;
    border-radius: 15px !important;
    font-size: 14px !important;
    bottom: 15px !important;
    right: 15px !important;
}

/* Enhance headings with subtle accent */
.reveal h1, .reveal h2, .reveal h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.reveal h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Enhance content containers for better readability */
.card, .use-case-item, .advantage, .layer, .mechanism, .benefit, .agent, .timeline-item, .use-case-visual {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .use-case-item:hover, .advantage:hover, .layer:hover, .mechanism:hover, .benefit:hover, .agent:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Enhance lists for better visibility */
.reveal ul li, .reveal ol li {
    margin: 0.8em 0;
    position: relative;
    padding-left: 0.5em;
}

.reveal ul {
    list-style-type: none;
}

.reveal ul li:before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Enhance icons for better visibility */
.fa-solid, .fa-regular, .fa-brands {
    display: inline-block;
    color: var(--accent-light);
} 