/* ============================================
   The Birth of the ElectroDollar - Presentation Styles
   Color Palette: Black #000/#111, White #FFF/#F5F5F5, Green #00C853/#00E676
   ============================================ */

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
    color: #fff;
}

/* Presentation Container */
.presentation {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Slide Base */
.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.6s ease, visibility 0.6s ease;
    background: #000;
    overflow-y: auto;
}

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

.slide-content {
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
}

/* Slide 3 - Light Background */
.slide-3 {
    background: #F5F5F5;
}

/* Typography */
.slide-headline {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.2;
}

.slide-headline-dark {
    color: #111;
}

.slide-subheadline {
    font-size: 1.4rem;
    color: #00E676;
    margin-bottom: 1rem;
    font-weight: 500;
}

.slide-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.slide-body-dark {
    color: #444;
}

.slide-body-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Title Slide */
.title-slide {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title-headline {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.electrodollar-glow {
    color: #00E676;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.5), 0 0 40px rgba(0, 230, 118, 0.3);
}

.title-subtitle {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.title-line {
    width: 80px;
    height: 3px;
    background: #00C853;
    margin: 0 auto 1.5rem;
}

.title-attribution {
    font-size: 0.85rem;
    color: #666;
}

.title-attribution a {
    color: #00E676;
    text-decoration: none;
}

.title-attribution a:hover {
    text-decoration: underline;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Timeline */
.timeline-bar {
    margin-top: 2rem;
}

.timeline-line {
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    margin: 1rem 0;
}

.timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, #00C853, #00E676);
    border-radius: 2px;
    width: 0%;
    transition: width 1.5s ease;
}

.timeline-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.timeline-marker {
    text-align: center;
}

.marker-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #00C853;
    border-radius: 50%;
    margin-bottom: 0.3rem;
}

.marker-label {
    font-size: 0.75rem;
    color: #aaa;
    display: block;
}

.marker-label small {
    color: #00E676;
}

/* Counter */
.counter-block {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 200, 83, 0.05);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: #00E676;
}

.large-counter {
    font-size: 2.5rem;
}

.counter-label {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 0.5rem;
}

.counter-sublabel {
    font-size: 0.8rem;
    color: #00C853;
    margin-top: 0.3rem;
}

/* Nation Badges */
.nations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.nation-badge {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #00E676;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nation-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* Bar Chart */
.bar-chart-container, .line-chart-container, .debt-counter {
    background: rgba(0, 200, 83, 0.03);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
}

.infographic-title {
    font-size: 0.85rem;
    color: #00E676;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.infographic-title-dark {
    color: #00C853;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.bar-label {
    font-size: 0.7rem;
    color: #aaa;
    width: 120px;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 20px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00C853, #00E676);
    border-radius: 10px;
    width: 0%;
    transition: width 1.2s ease;
}

.bar-value {
    font-size: 0.8rem;
    color: #00E676;
    font-weight: 700;
    width: 40px;
}

/* Line Chart */
.line-chart-svg {
    width: 100%;
    height: auto;
}

.chart-axis {
    stroke: #333;
    stroke-width: 1;
}

.chart-line {
    fill: none;
    stroke: #00E676;
    stroke-width: 2.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease;
}

.chart-line.drawn {
    stroke-dashoffset: 0;
}

.chart-area {
    fill: rgba(0, 230, 118, 0.1);
    opacity: 0;
    transition: opacity 1s ease 1s;
}

.chart-area.visible {
    opacity: 1;
}

.chart-dot {
    fill: #00E676;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.chart-dot.visible {
    opacity: 1;
}

.chart-text {
    font-size: 10px;
    fill: #666;
    text-anchor: middle;
}

.chart-text-value {
    font-size: 9px;
    fill: #00E676;
    font-weight: 700;
}

/* Five Points */
.five-points {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.point-card {
    background: rgba(0, 200, 83, 0.05);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
}

.point-card strong {
    display: block;
    color: #00E676;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.point-card span {
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.4;
}

/* Solar Infographics (Slide 3) */
.solar-infographics {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.solar-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.roi-chart, .property-bar, .energy-gauge {
    background: rgba(0, 200, 83, 0.05);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
}

.roi-canvas-container {
    width: 100%;
    overflow: hidden;
}

#roiCanvas {
    width: 100%;
    height: auto;
}

/* Property Bar */
.property-visual {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-base, .property-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-base span {
    font-size: 0.8rem;
    color: #333;
    width: 120px;
}

.property-add span {
    font-size: 0.8rem;
    color: #00C853;
    width: 120px;
    font-weight: 700;
}

.property-base-bar {
    flex: 1;
    height: 24px;
    background: #ddd;
    border-radius: 4px;
}

.property-add-bar {
    width: 0%;
    height: 24px;
    background: linear-gradient(90deg, #00C853, #00E676);
    border-radius: 4px;
    transition: width 1.5s ease;
}

.property-note {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Gauge */
.gauge-container {
    display: flex;
    justify-content: center;
}

.gauge-svg {
    width: 120px;
    height: 120px;
}

.gauge-bg {
    fill: none;
    stroke: #ddd;
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: #00C853;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 2s ease;
}

.gauge-text {
    font-size: 18px;
    fill: #00C853;
    font-weight: 800;
    text-anchor: middle;
}

.gauge-sublabel {
    font-size: 8px;
    fill: #666;
    text-anchor: middle;
}

/* CTA Layout (Slide 4) */
.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

/* Argument Cards */
.argument-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.argument-card {
    background: rgba(0, 200, 83, 0.05);
    border: 1px solid rgba(0, 200, 83, 0.2);
    border-radius: 8px;
    padding: 0.7rem 1rem;
}

.argument-card strong {
    color: #00E676;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
}

.argument-card span {
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.4;
}

/* Comparison Panel */
.comparison-panel {
    background: rgba(0, 200, 83, 0.03);
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.comparison-before, .comparison-after {
    margin-bottom: 1rem;
}

.comparison-before h4 {
    color: #ff5252;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.comparison-after h4 {
    color: #00E676;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.comparison-flow {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.flow-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #ccc;
}

.flow-arrow {
    color: #00E676;
    font-size: 0.9rem;
}

.comparison-stat {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.5rem;
}

.comparison-stat-green {
    color: #00E676;
    font-weight: 700;
}

/* Demand Rings */
.demand-rings {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.ring-svg {
    width: 100px;
    height: 100px;
}

.ring-bg {
    fill: none;
    stroke: #333;
    stroke-width: 6;
}

.ring-fill {
    fill: none;
    stroke: #00C853;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1.5s ease;
}

.ring-value {
    font-size: 14px;
    fill: #00E676;
    font-weight: 800;
    text-anchor: middle;
}

.ring-label {
    font-size: 7px;
    fill: #aaa;
    text-anchor: middle;
}

/* Closing Statement */
.closing-statement {
    text-align: center;
    font-size: 1.1rem;
    color: #fff;
    margin-top: 1.5rem;
    font-weight: 500;
}

.green-highlight {
    color: #00E676;
    font-weight: 700;
}

/* Citations */
.slide-citations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-citations-dark {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.slide-citations a {
    font-size: 0.65rem;
    color: #666;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
    transition: color 0.3s ease;
}

.slide-citations-dark a {
    background: rgba(0, 0, 0, 0.03);
}

.slide-citations a:hover {
    color: #00E676;
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 1000;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #00C853;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot:hover {
    background: rgba(0, 200, 83, 0.3);
}

.nav-dot.active {
    background: #00C853;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
}

/* ============================================
   SLIDE 5: CLOSING SLIDE STYLES
   ============================================ */

.slide-5 {
    background: radial-gradient(ellipse at center, #111 0%, #000 70%);
}

.closing-slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 80vh;
}

/* Headshot Styling */
.headshot-container {
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.headshot-container.animate-in {
    opacity: 1;
    transform: scale(1);
}

.headshot-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #00C853;
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.4), 0 0 60px rgba(0, 200, 83, 0.2);
    display: block;
}

/* CTA Headline */
.closing-headline {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.closing-headline.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.closing-headline .green-text {
    color: #00E676;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

/* Supporting Line */
.closing-supporting {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.closing-supporting.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #00C853;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.4);
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 0.5px;
}

.cta-button.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s, background 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: #00E676;
    box-shadow: 0 6px 30px rgba(0, 230, 118, 0.6);
    transform: translateY(-2px) scale(1.03);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive */
@media (max-width: 1024px) {
    .two-col, .cta-layout, .solar-infographics {
        grid-template-columns: 1fr;
    }
    .three-col {
        grid-template-columns: 1fr 1fr;
    }
    .five-points {
        grid-template-columns: repeat(3, 1fr);
    }
    .title-headline {
        font-size: 2.4rem;
    }
    .slide-headline {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .three-col, .five-points {
        grid-template-columns: 1fr;
    }
    .demand-rings {
        flex-direction: column;
        align-items: center;
    }
    .title-headline {
        font-size: 1.8rem;
    }
    .closing-headline {
        font-size: 1.8rem;
    }
    .headshot-img {
        width: 140px;
        height: 140px;
    }
}
