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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    height: 100vh;
    color: #f5f5f5;
}

/* Layout: left card + right slides */
.page-layout {
    display: flex;
    height: 100vh;
}

/* Left side card */
.left-card {
    width: 28%;
    padding: 24px;
    background: #111111;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.left-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.left-subtitle {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 12px;
}

.left-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #8fa4f6;
}

.left-section ul {
    list-style: disc;
    padding-left: 20px;
}

.left-section li {
    font-size: 14px;
    margin-bottom: 4px;
    color: #e0e0e0;
}

/* Right side (slides wrapper) */
.right-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Existing presentation styling */
.presentation-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    display: none;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.slide.active {
    display: flex;
    animation: slideIn 0.5s ease-out;
}

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

.slide-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 50px;
    color: white;
}

.slide-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 10px;
}

.slide-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.slide-content {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    background: #1a1a1a;
}

.phase-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border-left: 6px solid #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease;
}

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

.phase-title {
    font-size: 26px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.phase-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.bullet-list {
    list-style: none;
    margin-left: 55px;
}

.bullet-list li {
    padding: 10px 0;
    font-size: 18px;
    color: #e0e0e0;
    position: relative;
    padding-left: 30px;
}

.bullet-list li:before {
    content: "●";
    color: #667eea;
    font-size: 20px;
    position: absolute;
    left: 0;
}

.deliverables {
    background: rgba(102, 126, 234, 0.15);
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 15px;
    margin-left: 55px;
    border-left: 4px solid #667eea;
}

.deliverables-title {
    font-weight: bold;
    color: #8fa4f6;
    font-size: 18px;
    margin-bottom: 8px;
}

.deliverables-text {
    color: #e0e0e0;
    font-size: 16px;
}

.controls {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.control-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
}

.control-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
}

.control-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.slide-number {
    position: absolute;
    bottom: 30px;
    left: 50px;
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
}

.title-slide {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #667eea;
}

.title-slide .main-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.title-slide .main-subtitle {
    font-size: 28px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.title-slide .date {
    font-size: 20px;
    opacity: 0.8;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.kpi-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: scale(1.05);
}

.kpi-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.kpi-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.kpi-desc {
    font-size: 16px;
    opacity: 0.9;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.security-card {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #404040;
    transition: all 0.3s ease;
}

.security-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.security-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.security-title {
    font-size: 20px;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.security-desc {
    font-size: 16px;
    color: #b0b0b0;
    line-height: 1.6;
}

.roadmap-overview {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.roadmap-phase {
    display: flex;
    align-items: center;
    background: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.roadmap-phase-num {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.roadmap-phase-content {
    flex: 1;
}

.roadmap-phase-title {
    font-size: 20px;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.roadmap-phase-desc {
    font-size: 16px;
    color: #b0b0b0;
}

.architecture-image {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    padding: 20px;
    background: #111111;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}
/* Hide the title slide when in fullscreen mode */
body.fullscreen-mode .title-slide {
    display: none !important;
}
/* === Bigger SVG diagrams in fullscreen === */

/* Make the slide a bit taller in fullscreen so content can use full height */
body.fullscreen-mode .presentation-container {
    height: 100vh;
}

body.fullscreen-mode .slide {
    height: 100vh;
}

/* Enlarge architecture SVGs but keep them under the header area */
body.fullscreen-mode .architecture-image {
    /* Use almost the full viewport height, leaving room for header + padding */
    max-height: calc(100vh - 220px);
    width: 100%;
    object-fit: contain;
}
/* =========================================================
   RESPONSIVE DESIGN — MOBILE & TABLET SUPPORT
   ========================================================= */

/* --- Tablet (max-width 1024px) --- */
@media (max-width: 1024px) {

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

    .left-card {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #333;
        padding: 16px 20px;
    }

    .right-box {
        width: 100%;
        height: calc(100vh - 220px);
    }

    .slide {
        width: 95%;
        height: 80vh;
    }

    .slide-header {
        padding: 28px 32px;
    }

    .slide-title {
        font-size: 34px;
    }

    .slide-subtitle {
        font-size: 18px;
    }

    .architecture-image {
        padding: 10px;
        max-height: 60vh;
    }

    .controls {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .control-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* --- Mobile (max-width 768px) --- */
/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {

    .left-card {
        display: none; /* hide sidebar */
    }

    .right-box {
        width: 100%;
        height: 100vh;
    }

    .slide {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .slide-header {
        padding: 14px 16px;
    }

    .slide-title {
        font-size: 22px;
        text-align: center;
        line-height: 1.2;
        word-wrap: break-word;
        word-break: break-word;
    }

    .slide-subtitle {
        font-size: 14px;
        text-align: center;
    }

    .slide-content {
        padding: 16px;
        font-size: 14px;
    }

    .phase-title {
        font-size: 18px;
    }

    .bullet-list li {
        font-size: 14px;
    }

    .architecture-image {
        max-height: 70vh;
        padding: 4px;
    }

    .controls {
        position: fixed;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        gap: 10px;
    }

    .control-btn {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 40px;
    }

    .slide-number {
        bottom: 46px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 13px;
    }
}


/* --- Very Small Mobile (max-width 480px) --- */
@media (max-width: 480px) {

    .slide-title {
        font-size: 22px;
    }

    .slide-subtitle {
        font-size: 14px;
    }

    .architecture-image {
        max-height: 65vh;
    }

    .control-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
/* Smaller logo on tablets */
@media (max-width: 1024px) {
    .slide-logo img {
        height: 40px;
    }
}

/* Smaller logo on phones */
@media (max-width: 768px) {
    .slide-logo img {
        height: 32px;
        top: 12px;
        right: 16px;
    }
}

/* Fullscreen enhancement */
body.fullscreen-mode .slide-logo img {
    height: 56px;
    opacity: 1;
}

/* Persistent logo visible on all slides */
.slide-logo {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 300;
    pointer-events: none;  /* prevents blocking button clicks */
}

.slide-logo img {
    height: 90px;
    width: auto;
    opacity: 0.95;
}
/* Color-shifting effect for logo */
.color-logo {
    filter: none;
    animation: none;
}

body.fullscreen-mode .color-logo {
    animation: logoGlowShift 6s infinite ease-in-out;
}





/* Smooth changing color cycle */
@keyframes logoGlowShift {
    0% {
        filter: grayscale(1) brightness(1.0) contrast(1.05)
                drop-shadow(0 0 4px rgba(255,255,255,0.25));
    }
    25% {
        filter: grayscale(1) brightness(1.15) contrast(1.15)
                drop-shadow(0 0 12px rgba(255,255,255,0.35));
    }
    50% {
        filter: grayscale(1) brightness(1.35) contrast(1.25)
                drop-shadow(0 0 22px rgba(255,255,255,0.55));
    }
    75% {
        filter: grayscale(1) brightness(1.15) contrast(1.15)
                drop-shadow(0 0 12px rgba(255,255,255,0.35));
    }
    100% {
        filter: grayscale(1) brightness(1.0) contrast(1.05)
                drop-shadow(0 0 4px rgba(255,255,255,0.25));
    }
}


/* Force larger logo in fullscreen and override mobile/tablet rules */
body.fullscreen-mode .slide-logo img {
    height: 72px !important;   /* increase size */
    width: auto !important;
    opacity: 1;
    filter: hue-rotate(0deg); /* ensures animation starts smoothly */
}

/* Optional: scale logo slightly based on screen size in fullscreen */
@media (min-width: 1400px) {
    body.fullscreen-mode .slide-logo img {
        height: 86px !important;
    }
}
/* === Layout for fullscreen / pseudo-fullscreen === */
body.fullscreen-mode {
    background: #000;
    overflow: hidden;
}

/* Hide left card and let slides fill screen */
body.fullscreen-mode .left-card {
    display: none;
}

body.fullscreen-mode .page-layout {
    display: block;
    height: 100vh;
}

body.fullscreen-mode .right-box {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.fullscreen-mode .presentation-container {
    width: 100vw;
    height: 100vh;
}

body.fullscreen-mode .slide {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* keep your existing fullscreen SVG rules working together */
body.fullscreen-mode .slide-content {
    padding: 20px;
}
