/* --- CSS RESET & VARIABLES --- */
:root {
    --color-bg: #0f172a;
    --color-surface: rgba(30, 41, 59, 0.6);
    --color-surface-hover: rgba(30, 41, 59, 0.8);
    --color-primary: #fbbf24; /* Amber 400 */
    --color-secondary: #3b82f6; /* Blue 500 */
    --color-blue-light: #60a5fa;
    --color-green-light: #34d399;
    --text-main: #f3f4f6;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- SCROLLYTELLING CONTAINER --- */
.step {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* --- BACKGROUND LAYER --- */
.bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    transition: transform 1s ease-out;
    filter: saturate(1.2);
}

.hero-bg {
    background-image: url('https://images.unsplash.com/photo-1569154941061-e231b4725ef1?q=80&w=2070&auto=format&fit=crop');
}

.sapo-bg {
    background-image: url('https://images.unsplash.com/photo-1478760329108-5c3ed9d495a0?q=80&w=2074&auto=format&fit=crop');
    filter: saturate(0.8) brightness(0.6);
}

/* --- OVERLAY LAYER --- */
.overlay-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.5) 0%, #0f172a 90%);
    z-index: 1;
    backdrop-filter: blur(3px);
}

.darker-overlay {
    background: rgba(15, 23, 42, 0.9);
}

/* --- CONTENT LAYER --- */
.content-layer {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step.active .content-layer {
    opacity: 1;
    transform: translateY(0);
}

/* --- TYPOGRAPHY --- */
h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    margin-top: 0;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.top-tag {
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    font-weight: 600;
}

.main-title {
    font-size: 3rem; 
    color: #fff; 
    font-weight: 900; 
    letter-spacing: 1px;
}

.hero-text {
    font-size: 2.8rem; 
    font-weight: 900;
    line-height: 1.3;
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1.5rem;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    letter-spacing: 1px;
}

.sub-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 5px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-weight: 400;
}

/* --- SAPO SECTION --- */
.sapo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-primary);
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
    position: relative;
    padding: 2rem 0;
}

.sapo-text::before, .sapo-text::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--color-primary);
    margin: 1.5rem auto;
    box-shadow: 0 0 10px var(--color-primary);
}

/* --- COMPONENTS --- */

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.icon-box {
    background: var(--color-surface);
    backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s, border-color 0.3s;
}

.icon-box:hover { 
    transform: translateY(-10px); 
    border-color: var(--color-primary);
    background: var(--color-surface-hover);
}

.icon-box i { 
    font-size: 3.5rem; 
    color: var(--color-primary); 
    margin-bottom: 1.5rem; 
}

.icon-box h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    margin-top: 0;
}

.icon-box p {
    font-size: 0.875rem; /* text-sm */
    color: var(--text-muted);
    margin: 0;
}

/* Utility Colors for Icons */
.text-green { color: #34d399 !important; }
.text-blue { color: #60a5fa !important; }
.text-yellow { color: #fbbf24 !important; }
.text-purple { color: #a855f7 !important; }
.text-red { color: #ef4444 !important; }
.text-white { color: #fff !important; }
.text-dark { color: #0f172a !important; }
.text-yellow-dim { color: rgba(251, 191, 36, 0.7); }

/* Page 3 Numbers */
.big-number {
    font-size: 7rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin: 1rem 0;
    letter-spacing: -3px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.unit-text {
    font-size: 2.5rem; 
    font-weight: 300; 
    letter-spacing: 5px; 
    text-transform: uppercase; 
    color: var(--text-muted);
}

.divider {
    width: 100px; 
    height: 6px; 
    background: var(--color-primary); 
    margin: 2rem auto; 
    border-radius: 3px; 
    box-shadow: 0 0 10px var(--color-primary);
}

/* Roadmap Cards */
.roadmap-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.roadmap-card {
    flex: 1;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.roadmap-card:hover { 
    transform: scale(1.02); 
    border-color: #3b82f6; 
}

.roadmap-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.card-number {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.unit-small {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.highlight-card {
    border-color: var(--color-primary); 
    background: rgba(30, 41, 59, 0.8);
}

/* Charts */
.chart-wrapper {
    display: flex;
    justify-content: center;
    gap: 5rem;
    align-items: flex-end;
    height: 350px;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.bar-group {
    text-align: center;
    width: 100%;
}

.chart-label {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bar-container {
    display: flex; 
    gap: 30px; 
    align-items: flex-end; 
    justify-content: center;
}

.bar {
    width: 70px;
    background: linear-gradient(to top, #2563eb, #60a5fa);
    border-radius: 8px 8px 0 0;
    transition: height 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 0;
    position: relative;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.bar-val {
    position: absolute;
    top: -40px; left: 50%; transform: translateX(-50%);
    font-weight: 800; font-size: 1.5rem; color: #fff;
    width: 100px;
}

.bar-year {
    margin-top: 20px; 
    font-weight: 600; 
    color: #94a3b8;
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
}

.chart-divider {
    width: 2px; height: 80%; background: rgba(255,255,255,0.1);
    display: block;
}

.step.active .h-30 { height: 140px; }
.step.active .h-50 { height: 240px; }
.step.active .h-16 { height: 100px; background: linear-gradient(to top, #059669, #34d399); box-shadow: 0 0 15px rgba(5, 150, 105, 0.4); }
.step.active .h-25 { height: 180px; background: linear-gradient(to top, #059669, #34d399); box-shadow: 0 0 15px rgba(5, 150, 105, 0.4); }

/* Page 6: Standards */
.star-rating {
    font-size: 3.5rem; 
    color: var(--color-primary); 
    margin: 1.5rem 0;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
    margin-top: 2rem;
}

.standard-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    border-left-width: 8px;
    border-left-style: solid;
}

.border-blue { border-left-color: #3b82f6; }
.border-yellow { border-left-color: #eab308; }
.border-purple { border-top-color: #a855f7 !important; }
.border-red { border-top-color: #ef4444 !important; }

.standard-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    margin-top: 0;
}

.standard-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Page 7: Infrastructure */
.infra-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
}

.infra-box {
    text-center;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.infra-number {
    font-size: 3.75rem; /* text-6xl */
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.infra-label {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Page 8: Parking */
.parking-viz {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

.circle-viz {
    width: 180px; height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.5s;
}

.circle-viz.basic {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(75, 85, 99, 1);
}

.circle-viz.advance {
    background: #1e293b;
    border: 2px solid rgba(255,255,255,0.1);
}

.step.active .circle-viz.advance {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
    transform: scale(1.1);
}

.circle-number {
    font-size: 3rem; /* text-5xl */
    font-weight: 700;
    color: var(--text-muted);
}
.advance .circle-number {
    font-size: 3.75rem; /* text-6xl */
    font-weight: 900;
    color: var(--color-primary);
}

.circle-label {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.parking-arrow {
    font-size: 2.25rem;
    color: #6b7280;
}

/* Page 9: Connections */
.connection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    text-align: left;
}

.connection-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 0.75rem;
    border-top-width: 4px;
    border-top-style: solid;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.connection-card:hover {
    transform: translateY(-0.5rem);
}

.connection-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.connection-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Page 10: Community */
.community-number {
    font-size: 4.5rem; /* text-7xl */
    font-weight: 900;
    margin: 1.5rem 0;
}
.community-label {
    font-size: 1.5rem;
    font-weight: 300;
    color: #d1d5db;
}
.community-desc {
    margin-top: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: inline-block;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Page 11: Summary */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    margin-top: 2.5rem;
}

.summary-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 5px solid var(--color-primary);
    border-top: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.summary-val {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin-top: 0.5rem;
}

/* Page 12: Timeline */
.timeline-wrapper {
    margin-top: 2.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}

.timeline-item {
    width: 33.33%;
    position: relative;
    padding-top: 2rem; /* space for icon */
}

.timeline-item:hover .timeline-card {
    transform: translateY(-0.5rem);
}

.timeline-icon {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #0f172a;
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bg-blue { background-color: #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.bg-yellow { background-color: #facc15; box-shadow: 0 0 10px rgba(250, 204, 21, 0.5); }

.timeline-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    transition: transform 0.3s;
}

.timeline-year {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.timeline-card h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
}

/* Page 13: End */
.end-title {
    font-size: 4rem; 
    color: #fff;
}

.quote-container {
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
    padding: 3rem 2rem;
}
.quote-icon {
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.8;
    margin-bottom: 1rem;
    display: block;
}
.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    color: #f3f4f6;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
}
.quote-text span {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.author-block {
    margin-top: 4rem; 
    color: var(--text-muted); 
    font-size: 1rem; 
    border-top: 1px solid #333; 
    padding-top: 2rem; 
    display: inline-block;
}

/* --- RESPONSIVE STYLES (MOBILE) --- */
@media (max-width: 768px) {
    h2 { font-size: 2.2rem; }
    .hero-text { font-size: 1.8rem; }
    .big-number { font-size: 4rem; }
    .quote-text { font-size: 1.6rem; }
    .sapo-text { font-size: 1.4rem; padding: 1rem; }
    .sapo-text::before, .sapo-text::after { margin: 1rem auto; width: 50px; }
    
    .icon-grid, .roadmap-container, .summary-grid, .standards-grid, .connection-grid, .infra-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        display: flex;
        gap: 1.5rem;
    }
    
    .standards-grid, .summary-grid, .connection-grid {
        display: grid; /* Reset for grid types */
        grid-template-columns: 1fr;
    }

    .parking-viz { flex-direction: column; gap: 2rem; }

    /* Mobile Chart Fix */
    .chart-wrapper {
        flex-direction: column; 
        gap: 3rem;
        height: auto;
        padding: 1.5rem;
        align-items: center;
    }
    .chart-divider { display: none; }
    .bar-container { gap: 15px; }
    .bar { width: 40px; }
    .bar-val { font-size: 1rem; top: -25px; }
    .step.active .h-30 { height: 100px; }
    .step.active .h-50 { height: 160px; }
    .step.active .h-16 { height: 80px; }
    .step.active .h-25 { height: 120px; }
    
    /* Mobile Timeline Fix */
    .timeline-wrapper {
        flex-direction: column;
        border-left: 4px solid #3b82f6;
        margin-left: 1rem;
        gap: 2rem;
    }
    .timeline-item {
        width: 100%;
        padding-left: 1.5rem;
        padding-top: 0;
        text-align: left;
    }
    .timeline-icon {
        left: -1rem; /* Align with border */
        top: 0;
        transform: translateX(-50%);
        margin-left: 0;
    }
    .timeline-card p { text-align: left; }
    
    /* Mobile Cover Image Fix */
    #page-1 .bg-layer {
        background-image: url('https://images.unsplash.com/photo-1569154941061-e231b4725ef1?q=80&w=2070&auto=format&fit=crop') !important;
        background-position: 65% center !important;
    }
}