@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&family=Orbitron:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --purple-primary: #7c3aed;
    --purple-bright: #9333ea;
    --purple-glow: rgba(124, 58, 237, 0.4);
    --purple-light: #c084fc;
    --purple-grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4f46e5 100%);
    --gold-primary: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-light: #fef3c7;
    --gold-grad: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    --green-neon: #10b981;
    --green-grad: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    --cyan-neon: #06b6d4;
    --cyan-grad: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
    --bg-dark: #06040b;
    --bg-card: rgba(18, 14, 33, 0.94);
    --border-purple: rgba(124, 58, 237, 0.35);
    --border-gold: rgba(245, 158, 11, 0.45);
}

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

body {
    background: #06040b;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.45;
}

/* Slide Deck Container */
.presentation-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 14px 60px 14px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Controls Header */
.deck-controls {
    position: sticky;
    top: 10px;
    z-index: 1000;
    background: rgba(12, 9, 24, 0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-purple);
    border-radius: 14px;
    padding: 10px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
}

.deck-controls .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deck-controls .brand-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.12rem;
    background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 40%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.2px;
}

.deck-controls-btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-deck {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.86rem;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
    text-decoration: none;
}

.btn-deck:hover {
    background: linear-gradient(135deg, #9333ea, #a855f7);
    transform: translateY(-1.5px);
    color: #ffffff;
}

.btn-deck.btn-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000000;
}

.btn-deck.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000000;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #e9d5ff;
    border: 1px solid var(--border-purple);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #ffffff;
}

/* Individual Slide */
.slide {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-purple);
    border-radius: 18px;
    padding: 30px 38px;
    min-height: 610px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.slide-glow-top {
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #7c3aed, #fbbf24, #10b981, transparent);
}

/* Slide Header */
.slide-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.slide-main-title {
    font-family: 'Orbitron', 'Cinzel', sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.title-purple {
    background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 40%, #c084fc 80%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-gold {
    background: linear-gradient(135deg, #ffffff 0%, #fef3c7 35%, #fbbf24 75%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-green {
    background: linear-gradient(135deg, #ffffff 0%, #d1fae5 40%, #34d399 75%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-sub-title {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* Badges */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.badge-purple {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.6);
    color: #c084fc;
}

.badge-gold {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fbbf24;
}

.badge-green {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #34d399;
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.6);
    color: #38bdf8;
}

/* Slide Body */
.slide-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Grids */
.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Feature Boxes */
.feature-box {
    background: rgba(15, 11, 28, 0.75);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-box:hover {
    border-color: rgba(124, 58, 237, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.icon-purple {
    background: rgba(124, 58, 237, 0.2);
    color: #c084fc;
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.icon-gold {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.icon-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-desc {
    color: #94a3b8;
    font-size: 0.86rem;
    line-height: 1.5;
}

/* Metric / Stat Cards */
.metric-card {
    background: rgba(15, 11, 28, 0.85);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.metric-card.gold-border {
    border-color: rgba(245, 158, 11, 0.4);
}

.metric-lbl {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.metric-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 4px 0;
}

.metric-val.green {
    color: #34d399;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.4);
}

.metric-val.gold {
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.metric-val.purple {
    color: #c084fc;
    text-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
}

.metric-val.cyan {
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Presentation Table */
.presentation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: 0.84rem;
}

.presentation-table th {
    background: rgba(124, 58, 237, 0.25);
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(124, 58, 237, 0.5);
}

.presentation-table td {
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.presentation-table tbody tr:last-child td {
    border-bottom: none;
}

.presentation-table tbody tr:hover td {
    background: rgba(124, 58, 237, 0.12);
}

.highlight-gold { color: #fbbf24 !important; font-weight: 700; }
.highlight-green { color: #34d399 !important; font-weight: 700; }
.highlight-purple { color: #c084fc !important; font-weight: 700; }
.highlight-cyan { color: #38bdf8 !important; font-weight: 700; }

/* Slide Footer */
.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    color: #64748b;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.8px;
}

.slide-num {
    color: #a855f7;
    font-weight: 700;
}

/* =========================================================================
   STRICT A4 LANDSCAPE PRINT / PDF EXPORT RULES
   ========================================================================= */
@page {
    size: 297mm 210mm;
    margin: 0;
}

@media print {
    html, body {
        background: #06040b !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        width: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .deck-controls {
        display: none !important;
    }

    .presentation-container {
        max-width: 297mm !important;
        width: 297mm !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .slide {
        page-break-before: always !important;
        page-break-after: always !important;
        break-before: page !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        width: 297mm !important;
        height: 210mm !important;
        min-height: 210mm !important;
        max-height: 210mm !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        padding: 9mm 14mm !important;
        background: #080612 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        overflow: hidden !important;
    }

    .slide:first-of-type {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    .feature-box, .metric-card, .presentation-table {
        box-shadow: none !important;
    }

    .presentation-table th, .presentation-table td {
        padding: 5px 8px !important;
        font-size: 0.74rem !important;
    }

    .slide-header {
        margin-bottom: 10px !important;
    }

    .slide-main-title {
        font-size: 1.55rem !important;
    }

    .slide-sub-title {
        font-size: 0.84rem !important;
    }

    .metric-val {
        font-size: 1.9rem !important;
    }
}

@media (max-width: 991px) {
    .slide {
        min-height: auto;
        padding: 22px 16px;
    }
    .cards-grid-2,
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }
    .slide-main-title {
        font-size: 1.35rem;
    }
}
