/* ═══════════════════════════════════════════════════════════════════
   Pecha Kucha Presentation: The Hidden Footprint
   Styles for 20-slide presentation on Scope 3 Emissions
   ═══════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────────── */
:root {
    --primary: #10B981;
    --primary-light: #34D399;
    --primary-dark: #059669;
    --secondary: #3B82F6;
    --secondary-light: #60A5FA;
    --dark-bg: #0F172A;
    --dark-surface: #1E293B;
    --light-bg: #F8FAFC;
    --light-surface: #FFFFFF;
    --text-dark: #0F172A;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --font-heading: 'Verdana', Geneva, sans-serif;
    --font-body: 'Trebuchet MS', 'Lucida Sans', sans-serif;
}

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

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    background: var(--dark-bg);
}

/* ─── Presentation Container ────────────────────────────────────── */
.presentation {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ─── Slides ────────────────────────────────────────────────────── */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    background-size: cover;
    background-position: center;
}

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

.slide.dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.slide.light {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.slide.gradient-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    color: var(--text-light);
}

/* ─── Typography ────────────────────────────────────────────────── */
.slide h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-align: center;
}

.slide h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
}

.slide h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.slide p {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 900px;
    text-align: center;
}

.slide .subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.slide .big-stat {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.slide .stat-text {
    font-size: 2rem;
    max-width: 800px;
}

/* ─── Accent Colors ─────────────────────────────────────────────── */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Background Images ─────────────────────────────────────────── */
.slide.has-bg-image {
    position: relative;
}

.slide.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide.has-bg-image .content-overlay {
    position: relative;
    z-index: 1;
    background: rgba(15, 23, 42, 0.85);
    padding: 40px 60px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.slide .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide .content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

.slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 0;
}

/* ─── Grid Layouts ──────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
    background: var(--dark-surface);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.card.primary-border {
    border-color: var(--primary);
}

.card.secondary-border {
    border-color: var(--secondary);
}

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

.card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
}

/* ─── Scope Diagram ─────────────────────────────────────────────── */
.scope-diagram {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    max-width: 1100px;
}

.scope-box {
    flex: 1;
    background: var(--dark-surface);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.scope-box.scope-1 {
    border-color: #EF4444;
}

.scope-box.scope-2 {
    border-color: #F59E0B;
}

.scope-box.scope-3 {
    border-color: var(--primary);
    flex: 1.5;
}

.scope-box .scope-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scope-box.scope-1 .scope-label {
    color: #EF4444;
}

.scope-box.scope-2 .scope-label {
    color: #F59E0B;
}

.scope-box.scope-3 .scope-label {
    color: var(--primary);
}

.scope-box .scope-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.scope-box .scope-desc {
    font-size: 1rem;
    color: var(--text-muted);
}

.scope-box .scope-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* ─── Journey/Timeline ──────────────────────────────────────────── */
.journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1000px;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.journey-node {
    background: var(--primary);
    color: var(--dark-bg);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.journey-arrow {
    color: var(--secondary);
    font-size: 1.5rem;
}

/* ─── Split Layout ──────────────────────────────────────────────── */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
    max-width: 1100px;
}

.split-side {
    text-align: center;
}

.split-side h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid;
}

.split-side.risks h3 {
    color: #EF4444;
    border-color: #EF4444;
}

.split-side.opportunities h3 {
    color: var(--primary);
    border-color: var(--primary);
}

.split-side ul {
    list-style: none;
    text-align: left;
}

.split-side li {
    font-size: 1.2rem;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.split-side li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* ─── Timeline ──────────────────────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    width: 100%;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.timeline-date {
    flex-shrink: 0;
    width: 180px;
    text-align: right;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.timeline-content {
    flex: 1;
    font-size: 1.2rem;
}

/* ─── Action List ───────────────────────────────────────────────── */
.action-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--dark-surface);
    padding: 20px 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.action-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    width: 50px;
    text-align: center;
}

.action-text {
    font-size: 1.3rem;
}

/* ─── Header Logo ──────────────────────────────────────────────── */
.header-logo {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 1001;
    opacity: 0.9;
    transition: opacity 0.3s;
    text-decoration: none;
}

.header-logo:hover {
    opacity: 1;
}

.header-logo svg {
    height: 40px;
    width: auto;
}

/* ─── Branding ──────────────────────────────────────────────────── */
.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.brand-section {
    margin-top: 30px;
    text-align: center;
}

.brand-section .brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.brand-section .brand-url {
    font-size: 1.2rem;
    color: var(--secondary);
}

/* ─── QR Code Placeholder ───────────────────────────────────────── */
.qr-placeholder {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 0.8rem;
    color: var(--dark-bg);
}

/* ─── Controls ──────────────────────────────────────────────────── */
.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 41, 59, 0.95);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary);
}

.control-btn.active {
    background: var(--primary);
    color: var(--dark-bg);
}

.slide-counter {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: center;
}

/* ─── Progress Bar ──────────────────────────────────────────────── */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--dark-surface);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

/* ─── Timer ─────────────────────────────────────────────────────── */
.timer-ring {
    width: 40px;
    height: 40px;
    position: relative;
}

.timer-ring svg {
    transform: rotate(-90deg);
}

.timer-ring circle {
    fill: none;
    stroke-width: 3;
}

.timer-ring .bg {
    stroke: var(--dark-surface);
}

.timer-ring .progress {
    stroke: var(--primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ─── Speaker Notes (hidden by default) ─────────────────────────── */
.speaker-notes {
    display: none;
}

.speaker-notes.visible {
    display: block;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(30, 41, 59, 0.98);
    padding: 20px 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 999;
    border: 1px solid var(--primary);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    max-height: 150px;
    overflow-y: auto;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .slide {
        padding: 40px;
    }

    .slide h1 {
        font-size: 3rem;
    }

    .slide h2 {
        font-size: 2.2rem;
    }

    .slide .big-stat {
        font-size: 4rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .scope-diagram {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .slide h1 {
        font-size: 2.2rem;
    }

    .slide h2 {
        font-size: 1.8rem;
    }

    .slide p {
        font-size: 1.1rem;
    }

    .grid-2,
    .grid-3,
    .split-view {
        grid-template-columns: 1fr;
    }

    .controls {
        width: 90%;
        padding: 10px 15px;
    }
}

/* ─── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide.active .animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.slide.active .animate-in:nth-child(1) {
    animation-delay: 0.1s;
}

.slide.active .animate-in:nth-child(2) {
    animation-delay: 0.2s;
}

.slide.active .animate-in:nth-child(3) {
    animation-delay: 0.3s;
}

.slide.active .animate-in:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.pulse {
    animation: pulse 2s infinite;
}