/* ProveIT Presentation Styles
   Based on CESMII Brand Book 2021 & PowerPoint Run of Show
   ========================================================= */

/* CSS Variables - Brand Colors */
:root {
    /* Primary Colors */
    --primary-blue: #4084ef;
    --primary-dark: #231f20;

    /* Secondary Colors */
    --cyan: #00aeef;
    --blue: #2b47da;
    --purple: #5438d4;
    --deep-purple: #4d006e;
    --magenta: #c41ead;

    /* Neutral Colors */
    --white: #ffffff;

    /* Typography */
    --font-headline: 'Bitter', Georgia, serif;
    --font-body: 'Open Sans', 'Helvetica Neue', sans-serif;

    /* Transitions */
    --transition-normal: 0.5s ease;
    --transition-slow: 1s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: #000;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Slides Container */
.slides-container {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

/* Slide Background */
.slide-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

/* Video Background */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Subtle overlay to ensure text readability */
.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Darker overlay image for slide 2 */
.darker-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.80;
    z-index: 2;
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
}

/* ==========================================
   SLIDE 1: CESMII Title
   ========================================== */

.cesmii-hero-logo {
    animation: fadeInUp 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cesmii-hero-logo img {
    max-width: 70%;
    width: auto;
    height: auto;
    max-height: 60vh;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .cesmii-hero-logo img {
        max-width: 90%;
    }
}

/* ==========================================
   SLIDE 2: Featuring Speakers
   ========================================== */

/* Speaker Images Row */
.speakers-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.speaker-image {
    width: 420px;
    height: 510px;
    overflow: hidden;
}

.speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Divider Line */
.divider-line {
    width: 100%;
    height: 3px;
    margin: 1.5rem 0;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--cyan) 10%,
        var(--cyan) 90%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.5);
    animation: lineGlow 2s ease-in-out infinite alternate;
}

/* Speaker Info Row */
.speakers-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.speaker-info {
    width: 420px;
    text-align: left;
}

.speaker-name {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.speaker-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    opacity: 0.9;
}

/* ==========================================
   SLIDE 4: Simpsons Video
   ========================================== */

.Simpsons-Video {
    animation: fadeInUp 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.Simpsons-Video img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.simpsons-clip {
    position: absolute;
    width: 50%;
    height: 58%;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    z-index: 1;
}

@media (max-width: 768px) {
    .Simpsons-Video img {
        max-width: 90%;
    }
}

/* ==========================================
   SLIDES 5-6: Smart Manufacturing Imperatives
   ========================================== */

.imperatives-title {
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.imperatives-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.imperatives-grid.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.imperative-box {
    display: flex;
    background: rgba(0, 32, 96, 0.9);
    border-radius: 8px;
    padding: 1.5rem;
    gap: 1rem;
}

.imperative-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    min-width: 50px;
}

.imperative-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.imperative-content p {
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.imperative-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
}

.imperative-icon img {
    max-height: 60px;
    width: auto;
}

/* ==========================================
   SLIDE 7: Panel Speakers
   ========================================== */

.panel-title {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 400;
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.panel-title .emphasis {
    font-weight: 700;
    color: var(--cyan);
}

.panel-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 5rem;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.panel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.panel-section.full-row {
    width: 100%;
    margin-top: 0.5rem;
}

.panel-section-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan);
    text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--cyan);
}

.panel-speakers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.panel-speakers.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.panel-speaker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    clip-path: inset(0 100% 100% 0);
    position: relative;
}

.panel-speaker::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
}

.slide.active .panel-speaker {
    animation: revealFromCorner 0.78s ease-out forwards;
}

.slide.active .panel-speaker::after {
    animation: glisten 1.04s ease-out forwards;
}

@keyframes revealFromCorner {
    from {
        clip-path: inset(0 100% 100% 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes glisten {
    0% {
        left: -100%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Staggered glisten delays */
.slide.active .panel-section:nth-child(1) .panel-speaker:nth-child(1)::after { animation-delay: 0.26s; }
.slide.active .panel-section:nth-child(1) .panel-speaker:nth-child(2)::after { animation-delay: 0.52s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(1)::after { animation-delay: 0.78s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(2)::after { animation-delay: 1.04s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(3)::after { animation-delay: 1.3s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(4)::after { animation-delay: 1.56s; }
.slide.active .panel-section:nth-child(3) .panel-speaker:nth-child(1)::after { animation-delay: 1.82s; }

/* Staggered animation delays for each speaker */
.slide.active .panel-section:nth-child(1) .panel-speaker:nth-child(1) { animation-delay: 0.26s; }
.slide.active .panel-section:nth-child(1) .panel-speaker:nth-child(2) { animation-delay: 0.52s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(1) { animation-delay: 0.78s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(2) { animation-delay: 1.04s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(3) { animation-delay: 1.3s; }
.slide.active .panel-section:nth-child(2) .panel-speaker:nth-child(4) { animation-delay: 1.56s; }
.slide.active .panel-section:nth-child(3) .panel-speaker:nth-child(1) { animation-delay: 1.82s; }

.panel-speaker-image {
    width: 110px;
    height: 135px;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;
    margin-bottom: 0.3rem;
}

.panel-speaker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.panel-speaker-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin-bottom: 0.15rem;
}

.panel-speaker-title {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--white);
    opacity: 0.8;
    text-align: center;
    line-height: 1.2;
}

.panel-speaker-logo {
    max-width: 130px;
    max-height: 40px;
    width: auto;
    height: auto;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.panel-speaker-logo.logo-inductive {
    max-width: 195px;
    max-height: 60px;
}

@media (max-width: 1024px) {
    .panel-grid {
        flex-direction: column;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .panel-speaker {
        width: 100px;
    }

    .panel-speaker-image {
        width: 80px;
        height: 100px;
    }

    .panel-speaker-name {
        font-size: 0.75rem;
    }
}

/* ==========================================
   SLIDE 8: i3X Connect Screenshot
   ========================================== */

.Computer-i3x {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.Computer-i3x img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.monitor-website {
    position: absolute;
    width: 82%;
    height: 72%;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    z-index: 2;
    border-radius: 15px;
    -webkit-mask-image: radial-gradient(ellipse 90% 85% at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 90% 85% at center, black 60%, transparent 100%);
}

.screenshot-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-callout {
    position: absolute;
    top: 0;
    left: 0;
    background: #FFFF00;
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

/* ==========================================
   SLIDE 9: Single Speaker Layout
   ========================================== */

.single-speaker-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease-out;
}

.speaker-image-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 4rem;
}

.single-speaker-layout .speaker-image {
    width: 420px;
    height: 510px;
}

.single-speaker-layout .speaker-info {
    width: auto;
    text-align: left;
    align-self: flex-start;
    white-space: nowrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

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

.partner-logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

@media (max-width: 1024px) {
    .speaker-image-row {
        gap: 2rem;
    }

    .single-speaker-layout .speaker-image {
        width: 330px;
        height: 420px;
    }

    .partner-logo {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .speaker-image-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .single-speaker-layout .speaker-image {
        width: 270px;
        height: 330px;
    }

    .single-speaker-layout .speaker-info {
        text-align: center;
    }

    .partner-logo {
        max-width: 250px;
    }
}

@keyframes lineGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 174, 239, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 174, 239, 0.7);
    }
}


/* Slide Footer - CESMII Logo */
.slide-footer {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 20;
}

.cesmii-logo-small {
    height: 40px;
    width: auto;
    opacity: 0.9;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Slide Navigation Dots */
.slide-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot:hover {
    border-color: var(--white);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--white);
    border-color: var(--white);
}

/* Keyboard Hint */
.keyboard-hint {
    position: fixed;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2s forwards;
}

.keyboard-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.4;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .speakers-images,
    .speakers-info {
        gap: 2rem;
    }

    .speaker-image,
    .speaker-info {
        width: 330px;
    }

    .speaker-image {
        height: 420px;
    }

    .speaker-name {
        font-size: 2.5rem;
    }

    .speaker-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .speakers-images,
    .speakers-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .speaker-info {
        text-align: center;
        width: auto;
    }

    .speaker-image {
        width: 270px;
        height: 330px;
    }

    .speaker-name {
        font-size: 2rem;
    }

    .divider-line {
        margin: 1rem 0;
    }

    .slide-nav {
        right: 1rem;
    }

    .slide-footer {
        right: 1rem;
        top: 1rem;
    }

    .cesmii-logo-small {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .speaker-image {
        width: 210px;
        height: 270px;
    }

    .speaker-name {
        font-size: 1.5rem;
    }

    .speaker-title {
        font-size: 0.875rem;
    }

    .speakers-images,
    .speakers-info {
        gap: 1rem;
    }

    .keyboard-hint {
        display: none;
    }
}

/* Slide Transitions */
.slide {
    transform: scale(1);
}

.slide.prev {
    opacity: 0;
    transform: scale(0.95);
}

.slide.next {
    opacity: 0;
    transform: scale(1.05);
}
