:root {
    --bg-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --nav-width: 0px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Scaled Up Typography for Web */
html {
    font-size: 18px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
}

/* Navigation Bar */
.nav-bar {
    display: none;
}

.nav-dot:hover::after {
    opacity: 1;
}

/* Slides Container */
.slides-container {
    height: 100vh;
    width: 100vw;
    margin-left: 0;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    scroll-behavior: smooth;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

/* Individual Slide */
.slide {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, #e2e8f0 0%, transparent 40%),
        radial-gradient(circle at bottom left, #e2e8f0 0%, transparent 40%);
}

/* Content Wrapper - Scaled Up */
.content-wrapper {
    max-width: 90vw;
    /* Adjusted to 80% as requested */
    width: 100%;
    z-index: 10;
}

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 3rem;
    text-wrap: balance;
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.slide-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--accent-gradient);
    margin-top: 0.5rem;
    border-radius: 3px;
}

h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p,
li {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-wrap: pretty;
}

/* Content Blocks */
.text-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-block {
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: transparent;
}

.content-block:hover {
    background: white;
    border-color: #d8b4fe;
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.2);
    transform: translateX(10px);
    z-index: 20;
}

/* Hover Effects for Cards */
.metric-card,
.card,
.highlight-box {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.metric-card:hover,
.card:hover,
.highlight-box:hover {
    border-color: #d8b4fe;
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.2);
    transform: translateY(-5px) scale(1.02);
    background: white;
    z-index: 20;
}

/* Slide 1: Key Achievements */
.key-achievements {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
}

.metric-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    flex: 1;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.metric-label {
    font-weight: 500;
    color: var(--text-primary);
}

/* Slide 2 & 3: Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.code-block {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--accent-color);
    color: #334155;
}

.highlight-box {
    background: #eff6ff;
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 6px solid var(--accent-color);
    margin-top: 1rem;
    box-shadow: var(--card-shadow);
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-right: 1rem;
    vertical-align: middle;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Slide 4: Cards */
.cards-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    flex: 1;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--card-shadow);
    border-top: 4px solid #cbd5e1;
}

.card h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.card.arrow {
    flex: 0;
    background: none;
    font-size: 3rem;
    color: var(--accent-color);
    box-shadow: none;
    border: none;
}

.card.arrow:hover {
    background: none;
    box-shadow: none;
    border: none;
    transform: none;
}

.metrics-banner {
    display: flex;
    justify-content: space-around;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    margin-top: 2rem;
}

.metric-item {
    text-align: center;
}

.metric-item .label {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.metric-item .value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Slide 5: Dashboard Mockup */
.dashboard-preview {
    display: flex;
    gap: 1rem;
    height: 300px;
    margin-bottom: 2rem;
}

.chart-mockup {
    background: var(--card-bg);
    border-radius: 0.5rem;
    flex: 1;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
}

.chart-mockup::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: var(--accent-gradient);
    opacity: 0.1;
    clip-path: polygon(0 100%, 100% 100%, 100% 20%, 0 80%);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}



/* Speaker Notes */
.speaker-notes {
    display: none;
    margin-top: 2rem;
    padding: 1rem;
    background: #fef9c3;
    border: 1px dashed #eab308;
    color: #854d0e;
    font-size: 0.9rem;
}

/* Image Zoom Effect (Optimized) */
.slide-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: white;
    padding: 0.5rem;
    position: relative;
    z-index: 1;
    object-fit: contain;
    cursor: zoom-in;
}

.zoom-overlay {
    position: fixed;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-out;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    transform: none;
}

.zoom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.5);
    z-index: 9999;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Laser Pointer Cursor */
.laser-pointer {
    position: fixed;
    width: 16px;
    height: 16px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 15px 4px rgba(255, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    transition: none;
}

.laser-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(255, 0, 0, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Navigation Dots (Removed as per request) */
.nav-bar {
    display: none;
}

/* STAR Layout (Situation, Task, Action, Result) */
.slide-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.slide-title {
    margin: 0;
    font-size: 2.2rem;
    color: #1e293b;
    font-weight: 300;
}

.slide-tag {
    background: #f1f5f9;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.star-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    /* Text (60%) | Image (40%) */
    gap: 4rem;
    /* align-items: start; Removed to allow stretch */
    height: 100%;
}

.star-visual {
    padding: 0;
    /* Remove any padding */
    display: flex;
    align-items: center;
    /* Center Vertically */
    justify-content: center;
    height: 100%;
    order: 2;
    overflow: hidden;
    /* Prevent spillover */
}

.star-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Distribute text evenly */
    gap: 1rem;
    order: 1;
    height: 100%;
    /* Ensure text column takes full height */
}

/* New Card Style for Text Blocks */
.star-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.star-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
    z-index: 5;
}

.star-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.star-card:hover::before {
    opacity: 1;
}

/* Stacked Layout with Indentation */
.star-item {
    display: flex;
    flex-direction: column;
    /* Stack label and text */
    gap: 0.5rem;
    align-items: flex-start;
}

.star-label {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent-color);
    /* Blue color */
    width: auto;
    text-align: left;
    margin-right: 0;
}

.star-text {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
    margin-left: 2rem;
    /* Indented text */
    display: block;
}

.tech-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-family: var(--font-mono);
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #f8fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Slide Image Style - Moved from inline */
.slide-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Print Styles */
@media print {
    @page {
        size: landscape;
        margin: 0;
    }

    /* Reset Typography for Print */
    html {
        font-size: 12pt !important;
    }

    body {
        overflow: visible !important;
        /* background: white !important; REMOVED to allow gradient */
        /* color: black !important; REMOVED per user request */
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .nav-bar,
    .laser-pointer,
    .laser-trail,
    .floating-btn,
    .zoom-backdrop,
    .zoom-overlay,
    .speaker-notes {
        /* Explicitly hide speaker notes in print */
        display: none !important;
    }

    .slides-container {
        width: 100vw !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
        position: static !important;
        /* Ensure it flows */
    }

    .slide {
        height: 100vh !important;
        width: 100vw !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        page-break-inside: avoid !important;
        background: white !important;
        /* Force white background for PDF */
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        /* Stack header and content */
        align-items: center !important;
        justify-content: center !important;
        /* Center content vertically */
        padding: 2rem !important;
        /* Slightly reduce padding */
        box-sizing: border-box !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
    }

    .content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        /* Reset width for print */
        margin: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Adjust STAR layout for print */
    .star-grid {
        gap: 2rem !important;
    }

    .slide-header-row {
        margin-bottom: 1.5rem !important;
        border-bottom: 2px solid #ccc !important;
    }

    /* Preserve Colors - High Fidelity */
    .metric-value,
    .highlight-number,
    .star-label {
        -webkit-text-fill-color: var(--accent-color) !important;
        color: var(--accent-color) !important;
        opacity: 1 !important;
    }

    /* Ensure body text is dark grey/black */
    body {
        color: var(--text-color) !important;
    }

    /* Exceptions if needed (e.g. white text on dark background - but we forced white bg so likely not needed) */

    .slide-image {
        max-height: 100% !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
        /* Keep shadow */
    }

    .star-label {
        min-width: 60px !important;
        /* Smaller label for print */
    }
}