:root {
    --primary-color: #002e5d;
    /* TJMG Navy Blue */
    --secondary-color: #c5a059;
    /* Gold */
    --text-color: #333;
    --bg-color: #f4f4f4;
    --white: #ffffff;
    --transition-speed: 0.8s;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    /* Prevent default scroll */
    height: 100vh;
    width: 100vw;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

.presentation-container {
    height: 100vh;
    width: 100%;
    position: relative;
    transition: transform var(--transition-speed) cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 10%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    /* Prevent interaction when not active */
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Background Shapes */
.background-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    border-radius: 50%;
}

/* Typography */
.main-title {
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary-color);
    font-style: italic;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.headline {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Components */
.logo-area {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tjmg-icon {
    font-size: 2rem;
}

.tjmg-text {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #999;
    animation: bounce 2s infinite;
}

.arrow {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-10px);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.text-block {
    flex: 1;
}

.visual-block {
    flex: 1;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mockup-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: rotate(-2deg);
}

.mockup-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: bold;
    text-align: center;
}

.mockup-body {
    padding: 2rem;
    height: 200px;
}

.mockup-line {
    height: 10px;
    background: #eee;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 5px;
}

.mockup-block {
    margin-top: 20px;
    background: #f0f4f8;
    padding: 10px;
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
}

.step {
    text-align: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.arrow-right {
    font-size: 2rem;
    color: var(--secondary-color);
}

.quote {
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    color: #666;
    margin-top: 2rem;
}

/* Pillars */
.pillars {
    display: flex;
    gap: 2rem;
}

.pillar {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), #001f3f);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.pillar-number {
    font-size: 4rem;
    opacity: 0.1;
    position: absolute;
    top: -10px;
    right: 10px;
    font-weight: bold;
}

.pillar h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.timeline-item {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    border: 2px solid #ddd;
    text-align: center;
}

.highlight-item {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.time {
    font-weight: bold;
    display: block;
    margin-bottom: 0.2rem;
}

/* CTA */
.final-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.final-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
}

.cta-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    margin: 0 auto;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
}

/* Controls */
.controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.controls button {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: background 0.2s;
}

.controls button:hover {
    background: #f0f0f0;
}

.controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #ddd;
    z-index: 100;
}

.progress {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.5s;
}

/* Split Visual Layout (New Slides) */
.slide-split-visual {
    padding: 0 5%;
}

.content-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    gap: 4rem;
}

.text-side {
    flex: 1;
    max-width: 50%;
}

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

.slide-illustration {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.slide-illustration:hover {
    transform: scale(1.02);
}

.grid-1-center {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for split layout */
@media (max-width: 1024px) {
    .content-split {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .text-side {
        max-width: 100%;
    }

    .visual-side {
        width: 100%;
    }

    .slide-illustration {
        max-height: 40vh;
    }

    .feature-list {
        text-align: left;
        display: inline-block;
    }
}

/* Secondary CTA Button */
.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    margin-left: 15px;
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Primary Action Button (Demo) */
.cta-button.primary-action {
    background: var(--secondary-color);
    /* Gold */
    color: var(--primary-color);
    /* Navy Blue */
    border: none;
    font-size: 1.2rem;
    padding: 15px 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-left: 0;
    /* Reset margin */
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button.primary-action:hover {
    background: #e5bd3f;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Demo Modal */
.demo-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-modal.active {
    display: flex;
    opacity: 1;
}

.modal-header {
    width: 95%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: white;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.4);
}

.iframe-container {
    width: 95%;
    height: 85%;
    max-width: 1400px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Editorial Funnel Visual */
.funnel-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.funnel-step {
    padding: 20px;
    text-align: center;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.funnel-step:hover {
    transform: scale(1.05);
}

.funnel-step.high {
    background: #c62828;
    /* Red */
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.funnel-step.medium {
    background: #1565c0;
    /* Blue */
    width: 80%;
    margin: 0 auto;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

.funnel-step.low {
    background: #616161;
    /* Grey */
    width: 60%;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
}

/* Role Cards */
.role-card {
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.role-card:nth-child(2) {
    border-top: 5px solid var(--secondary-color);
}

.role-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Milestone Grid (Slide 7) */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.milestone-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.milestone-card:hover {
    transform: translateY(-5px);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.milestone-number {
    font-size: 2rem;
    font-weight: bold;
    color: #eee;
}

.milestone-weeks {
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.milestone-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.milestone-card p {
    color: #666;
    font-size: 1rem;
}

.highlight-card {
    background: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
}

.highlight-card .milestone-number {
    color: rgba(255, 255, 255, 0.1);
}

.highlight-card h4 {
    color: white;
}

.highlight-card p {
    color: #ddd;
}

/* Process List (Merged Slide) */
.process-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-item {
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.process-item .icon {
    font-size: 1.5rem;
}

.sub-list {
    list-style: none;
    margin-left: 35px;
    margin-top: 5px;
    font-size: 0.95rem;
    color: #555;
}

.sub-list li {
    margin-bottom: 5px;
}

/* Detailed Flow Visual (New Slide 4) */
.detailed-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 120px;
}

.step-circle {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    z-index: 2;
}

.step-label {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.2;
}

.step-subtext {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
}

.flow-connector {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0 5px;
    margin-bottom: 30px;
    /* Align with circle center */
}

.highlight-step .step-circle {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.highlight-step .step-label {
    color: var(--secondary-color);
}

/* Split Flow */
.flow-split {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 10px;
}

.flow-branch {
    display: flex;
    align-items: center;
}

.flow-connector-small {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 10px;
}

.small-circle {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-width: 2px;
}

.flow-step.small {
    width: 100px;
}

/* Milestone Grid (Slide 7) */
.milestone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.milestone-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.milestone-card:hover {
    transform: translateY(-5px);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.milestone-number {
    font-size: 2rem;
    font-weight: bold;
    color: #eee;
}

.milestone-weeks {
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.milestone-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.milestone-card p {
    color: #666;
    font-size: 1rem;
}

.highlight-card {
    background: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
}

.highlight-card .milestone-number {
    color: rgba(255, 255, 255, 0.1);
}

.highlight-card h4 {
    color: white;
}

.highlight-card p {
    color: #ddd;
}