:root {
    --bg-base: #03050a;
    --bg-glass: rgba(13, 17, 30, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --cyan: #00f0ff;
    --blue: #0088ff;
    --green: #00ff66;
    --red: #ff003c;
    --text-primary: #e2e8f0;
    --text-secondary: #8b9bb4;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-heading);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 3rem;
}

/* Background Animations */
.bg-animated {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    z-index: 1;
}

.particles {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 20%, var(--bg-base) 80%);
    opacity: 0.8;
}

.blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--blue), transparent 70%);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--cyan), transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Glassmorphism utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.relative { position: relative; overflow: hidden; }
.text-center { text-align: center; }

/* Font Colors */
.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); text-shadow: 0 0 10px rgba(0,255,102,0.4); }
.text-red { color: var(--red); text-shadow: 0 0 10px rgba(255,0,60,0.4); }

.hidden { display: none !important; }

/* Scroll Transparency Animation */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 6rem; /* Spacing out storytelling sections */
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0; z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(3, 5, 10, 0.8);
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; color: var(--cyan); }
.logo-text { font-size: 1.25rem; font-weight: 300; letter-spacing: 2px; }
.logo-text strong { font-weight: 700; color: white; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.nav-link:hover { color: var(--cyan); text-shadow: 0 0 8px rgba(0,240,255,0.5); }
.nav-btn {
    color: var(--cyan); border: 1px solid var(--cyan); padding: 0.5rem 1rem; border-radius: 4px;
    text-decoration: none; font-size: 0.85rem; font-family: var(--font-mono); font-weight: bold;
    transition: all 0.3s;
}
.nav-btn:hover { background: var(--cyan); color: var(--bg-base); box-shadow: 0 0 15px rgba(0,240,255,0.5); }

/* Toggle Button */
.toggle-btn {
    background: transparent; border: 1px dashed var(--text-secondary); color: var(--text-secondary);
    padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.8rem; transition: all 0.3s ease;
}
.toggle-btn:hover { border-color: var(--green); color: white; box-shadow: 0 0 10px rgba(0,255,102,0.2); }
.awareness-active .toggle-btn { background: rgba(0,255,102,0.1); border-color: var(--green); color: var(--green); box-shadow: 0 0 15px rgba(0,255,102,0.3); }

/* Hero Section */
.hero-section {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 2rem;
    border-radius: 20px;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--cyan));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections Headers */
.section-title { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 3rem auto; }

/* Story Section */
.image-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.impact-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    transition: transform 0.4s ease;
}
.impact-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }

/* Image Lazy Loading & Skeletons */
.img-skeleton {
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.img-lazy {
    position: absolute; top: 0; left: 0;
    opacity: 0;
}
.img-lazy.loaded {
    opacity: 0.7;
}

.impact-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.impact-card:hover img.loaded { transform: scale(1.1); opacity: 0.9; }


.interactive-card { cursor: pointer; border: 1px solid var(--border-glass); transition: all 0.4s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.4); }
.interactive-card:hover { border-color: var(--cyan); box-shadow: 0 0 25px rgba(0,240,255,0.4), inset 0 0 10px rgba(0,240,255,0.1); }

.explore-hint {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.6); color: var(--cyan); font-family: var(--font-mono); font-size: 0.8rem;
    padding: 0.5rem 1rem; border-radius: 20px; border: 1px solid var(--cyan);
    opacity: 0; transform: translateY(-10px); transition: all 0.4s ease;
}
.interactive-card:hover .explore-hint { opacity: 1; transform: translateY(0); }

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.card-overlay h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: white; }
.card-overlay p { color: var(--text-secondary); font-size: 0.95rem; }

/* Cinematic Interactive Slider Section */
.cinematic-comparison-section { margin-top: 4rem; position: relative; }
.mb-3 { margin-bottom: 2rem; }

.cinematic-btn { font-size: 1.1rem; padding: 1rem 3rem; }

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    touch-action: pan-y;
}

.slider-side {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.slider-side img {
    width: 100%; height: 100%; object-fit: cover;
    pointer-events: none; transition: filter 0.4s ease;
}

.slider-right {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    z-index: 2;
}

.slider-handle {
    position: absolute; top: 0; bottom: 0; left: 50%;
    width: 40px; transform: translateX(-50%);
    z-index: 10; cursor: ew-resize;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.slider-handle-line {
    position: absolute; top: 0; bottom: 0; width: 4px;
    background: var(--cyan); box-shadow: 0 0 15px var(--cyan);
    z-index: 10;
}

.slider-handle-button {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-base); border: 2px solid var(--cyan);
    box-shadow: 0 0 20px var(--cyan); z-index: 11;
    transition: transform 0.2s;
}

.slider-handle:hover .slider-handle-button { transform: scale(1.1); }

/* Hover Overlays */
.side-overlay {
    position: absolute; top: 0; width: 50%; height: 100%;
    pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
    display: flex; justify-content: center; align-items: center;
}

.left-overlay { left: 0; background: radial-gradient(circle, rgba(255,0,60,0.3) 0%, rgba(255,0,60,0.05) 70%); }
.right-overlay { right: 0; background: radial-gradient(circle, rgba(0,255,102,0.3) 0%, rgba(0,255,102,0.05) 70%); }

.hover-content {
    display: flex; flex-direction: column; gap: 1rem;
    transform: translateY(20px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-alert {
    padding: 0.5rem 1rem; border-radius: 8px; font-weight: bold;
    background: var(--bg-glass); border: 1px solid currentColor;
    font-size: 1.1rem; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}

.click-zone {
    position: absolute; top: 0; height: 100%; z-index: 5;
    cursor: pointer; background: transparent; border: 1px solid transparent; /* Override interactive card */
}
.click-zone-left { left: 0; width: 50%; }
.click-zone-right { right: 0; width: 50%; left: 50%; }

.click-zone-left:hover { border-color: rgba(255,0,60,0.5); box-shadow: inset 0 0 30px rgba(255,0,60,0.2); }
.click-zone-right:hover { border-color: rgba(0,255,102,0.5); box-shadow: inset 0 0 30px rgba(0,255,102,0.2); }

.slider-left.hover-active .left-overlay { opacity: 1; }
.slider-left.hover-active .left-overlay .hover-content { transform: translateY(0); }
.slider-left.hover-active img { filter: grayscale(50%) sepia(30%) hue-rotate(-50deg) saturate(300%) contrast(1.2); }

.slider-right.hover-active .right-overlay { opacity: 1; }
.slider-right.hover-active .right-overlay .hover-content { transform: translateY(0); }
.slider-right.hover-active .ai-scanning-beam { opacity: 1; animation: scanBeam 2s linear infinite; }

/* Scanning Beam */
.ai-scanning-beam {
    position: absolute; top: -20%; left: 0; width: 100%; height: 4px;
    background: var(--green); box-shadow: 0 0 30px 10px rgba(0, 255, 102, 0.5);
    opacity: 0; pointer-events: none;
}
@keyframes scanBeam { 0% { top: 0; } 100% { top: 100%; } }

/* Takeaway Strip */
.takeaway-strip {
    display: flex; align-items: center; justify-content: center; gap: 2rem;
    padding: 1.5rem; text-align: center; border: 1px solid var(--cyan);
}
.takeaway-title { font-size: 1.2rem; color: var(--text-secondary); }
.takeaway-points { display: flex; align-items: center; gap: 1.5rem; font-size: 1.1rem; }
.takeaway-point { display: flex; align-items: center; gap: 0.5rem; }
.point-red { color: var(--red); text-shadow: 0 0 10px rgba(255,0,60,0.3); }
.point-green { color: var(--green); text-shadow: 0 0 10px rgba(0,255,102,0.3); }
.takeaway-icon { font-size: 1.5rem; }
.takeaway-arrow { color: var(--text-secondary); font-size: 1.5rem; }

/* Transform Text Overlay */
.transform-overlay-text {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center; z-index: 20;
    pointer-events: none; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px);
}
.transform-overlay-text h2 {
    font-size: 3rem; color: #fff; text-shadow: 0 0 20px var(--cyan);
    animation: textZoomFade 2s forwards;
}
@keyframes textZoomFade {
    0% { opacity: 0; transform: scale(0.8); }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* Main Tool Engine Panel */
.workspace-centered {
    max-width: 900px;
    margin: 0 auto;
}

.engine-panel {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    border-top: 2px solid var(--cyan);
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.2);
    border-radius: 16px 16px 0 0;
}
.panel-header h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }

/* Upload Zone */
.upload-container { flex: 1; display: flex; flex-direction: column; padding: 2rem; }

.upload-zone {
    flex: 1; border: 2px dashed rgba(0, 240, 255, 0.3); border-radius: 12px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: rgba(0, 240, 255, 0.02); cursor: pointer; transition: all 0.3s ease;
    padding: 3rem;
}
.upload-zone:hover {
    border-color: var(--cyan); background: rgba(0, 240, 255, 0.05); box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.upload-graphics {
    width: 80px; height: 80px; border-radius: 50%; background: rgba(0, 240, 255, 0.1);
    display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}
.glow-icon { width: 40px; color: var(--cyan); }
.upload-zone h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.upload-zone p { color: var(--text-secondary); margin-bottom: 2rem; }

/* Buttons */
.btn-neon {
    background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
    padding: 0.8rem 2rem; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
    letter-spacing: 1px; border-radius: 4px; cursor: pointer; position: relative;
    overflow: hidden; transition: all 0.3s ease; text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.2);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-neon:hover { background: var(--cyan); color: var(--bg-base); box-shadow: 0 0 20px var(--cyan), inset 0 0 10px var(--cyan); }

.btn-ghost {
    background: transparent; border: 1px solid var(--text-secondary); color: var(--text-secondary);
    padding: 0.8rem 2rem; border-radius: 4px; cursor: pointer; font-family: var(--font-mono); transition: all 0.3s;
}
.btn-ghost:hover { border-color: white; color: white; }
.btn-full { width: 100%; margin-top: 1rem; }

/* Preview */
.preview-zone { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.image-wrapper {
    flex: 1; position: relative; border-radius: 8px; overflow: hidden;
    border: 1px solid var(--border-glass); background: #000; min-height: 400px;
    display: flex; justify-content: center; align-items: center;
}
#imagePreview { max-width: 100%; max-height: 500px; object-fit: contain; }

.scanning-laser {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--cyan); box-shadow: 0 0 20px 5px rgba(0, 240, 255, 0.5);
    animation: scan 2s linear infinite;
}
@keyframes scan { 0% { top: 0; } 50% { top: 100%; } 100% { top: 0; } }
.action-bar { display: flex; justify-content: space-between; gap: 1rem; }
.action-run { flex: 1; }

.loader {
    width: 16px; height: 16px; border: 2px solid transparent; border-top-color: currentColor;
    border-right-color: currentColor; border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* Results Interface */
.results-container { height: 100%; }
.results-layout { display: flex; flex-direction: column; }
.results-image-wrapper {
    padding: 1.5rem; background: #050505; display: flex; justify-content: center; align-items: center;
    border-bottom: 1px solid var(--border-glass); min-height: 350px;
}
#annotatedImage { max-width: 100%; max-height: 400px; object-fit: contain; }

.results-data { padding: 1.5rem; }

.status-banner {
    padding: 1rem; border-radius: 8px; text-align: center; margin-bottom: 1.5rem; border: 1px solid transparent;
}
.status-banner.clean {
    background: rgba(0, 255, 102, 0.1); border-color: rgba(0, 255, 102, 0.3); color: var(--green); box-shadow: 0 0 20px rgba(0, 255, 102, 0.1);
}
.status-banner.defective {
    background: rgba(255, 0, 60, 0.1); border-color: rgba(255, 0, 60, 0.3); color: var(--red); box-shadow: 0 0 20px rgba(255, 0, 60, 0.1);
}
.status-banner h2 { font-size: 1.8rem; letter-spacing: 2px; margin-bottom: 0.2rem; }

.summary-panel h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.8rem; text-transform: uppercase; }
.defect-breakdown { display: flex; flex-direction: column; gap: 0.5rem; max-height: 200px; overflow-y: auto; margin-bottom: 1rem; }
.defect-row {
    display: flex; justify-content: space-between; padding: 0.8rem 1rem; background: rgba(0,0,0,0.3);
    border-radius: 4px; border: 1px solid var(--border-glass);
}
.defect-row span { font-family: var(--font-mono); }
.defect-count { color: var(--red); font-weight: 700; }

.overall-status { font-size: 1.1rem; display: flex; justify-content: space-between; padding: 1rem; background: rgba(255,255,255,0.05); border-radius: 8px;}
.status-badge { font-weight: 700; }

/* SDG Full Width Section */
.sdg-section { padding: 4rem 2rem; position: relative; border-top: 4px solid var(--green); }
.sdg-glow {
    position: absolute; top: -100px; right: -100px; width: 300px; height: 300px;
    background: var(--green); filter: blur(100px); opacity: 0.15;
}

.sdg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sdg-target-card {
    display: flex; flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

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

.sdg-12:hover { border-color: #bf8b2e; box-shadow: 0 0 20px rgba(191, 139, 46, 0.2); }
.sdg-13:hover { border-color: #3f7e44; box-shadow: 0 0 20px rgba(63, 126, 68, 0.2); }
.sdg-9:hover  { border-color: #fd6925; box-shadow: 0 0 20px rgba(253, 105, 37, 0.2); }

.sdg-card-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}

.sdg-icon-small {
    width: 60px; height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.sdg-badge {
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: bold;
    padding: 0.4rem 0.8rem; border-radius: 20px;
}
.badge-12 { background: rgba(191, 139, 46, 0.1); color: #bf8b2e; border: 1px solid rgba(191, 139, 46, 0.3); }
.badge-13 { background: rgba(63, 126, 68, 0.1); color: #3f7e44; border: 1px solid rgba(63, 126, 68, 0.3); }
.badge-9  { background: rgba(253, 105, 37, 0.1); color: #fd6925; border: 1px solid rgba(253, 105, 37, 0.3); }

.sdg-card-body h3 {
    font-size: 1.4rem; color: #fff; margin-bottom: 0.8rem;
}
.sdg-card-body p {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5;
}

.impact-metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.metric-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem;
    padding: 2.5rem 1rem; transition: transform 0.3s;
}
.metric-card:hover { transform: translateY(-5px); border-color: var(--cyan); }
.metric-icon { width: 70px; height: 70px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2.5rem; }
.eco-icon { background: rgba(0, 255, 102, 0.1); border: 1px solid rgba(0, 255, 102, 0.3); }
.energy-icon { background: rgba(0, 240, 255, 0.1); border: 1px solid rgba(0, 240, 255, 0.3); }
.co2-icon { background: rgba(0, 136, 255, 0.1); border: 1px solid rgba(0, 136, 255, 0.3); }

.metric-content { display: flex; flex-direction: column; gap: 0.5rem; }
.counter-wrap { font-size: 3rem; font-weight: 700; font-family: var(--font-mono); }
.unit { font-size: 1.2rem; margin-left: 5px; }
.metric-content strong { color: var(--text-secondary); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }


/* Global Loading & Error */
.global-loading {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(3, 5, 10, 0.9);
    backdrop-filter: blur(10px); z-index: 9999; display: flex; flex-direction: column;
    justify-content: center; align-items: center; opacity: 1; transition: opacity 0.5s ease;
}
.cyber-spinner {
    width: 80px; height: 80px; border: 3px solid transparent; border-top-color: var(--cyan);
    border-left-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite;
    margin-bottom: 2rem; box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}
.global-loading h2 { font-family: var(--font-mono); color: var(--cyan); font-size: 1.5rem; letter-spacing: 4px; margin-bottom: 0.5rem; }
.global-loading p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }

.progress-bar-container { width: 300px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.progress-bar { width: 0%; height: 100%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: progress 2s ease-out forwards; }
@keyframes progress { 0% { width: 0%; } 80% { width: 90%; } 100% { width: 100%; } }
@keyframes spin { 100% { transform: rotate(360deg); } }

.error-toast {
    position: fixed; bottom: 2rem; right: 2rem; background: rgba(255,0,60,0.9); color: white;
    padding: 1rem 2rem; border-radius: 8px; font-weight: bold; box-shadow: 0 10px 30px rgba(255,0,60,0.3);
    z-index: 1000; animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Modal & Carousel Styles */
.modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 2000; display: flex; justify-content: center; align-items: center;
}
.modal.hidden { display: none !important; opacity: 0; pointer-events: none; }
.modal-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 5, 10, 0.85); backdrop-filter: blur(8px);
}
.modal-content {
    position: relative; width: 90%; max-width: 900px; height: 600px;
    background: rgba(10, 15, 25, 0.95); border: 1px solid var(--cyan);
    box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2); z-index: 2001;
    display: flex; flex-direction: column; animation: modalFadeIn 0.4s ease-out;
    border-radius: 16px; overflow: hidden;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute; top: 1rem; right: 1.5rem;
    background: transparent; border: none; color: white;
    font-size: 2rem; cursor: pointer; z-index: 2010; transition: color 0.3s;
}
.modal-close:hover { color: var(--red); text-shadow: 0 0 10px var(--red); }

.carousel-container {
    flex: 1; position: relative; display: flex; align-items: center;
    overflow: hidden;
}
.carousel-track-wrapper {
    width: 100%; height: 100%; overflow: hidden; position: relative;
}
.carousel-track {
    display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    flex: 0 0 100%; height: 100%; position: relative; display: flex;
}
.carousel-slide img {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.6;
}
.carousel-caption {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 3rem 2rem 2rem 2rem; background: linear-gradient(to top, rgba(0,0,0,1), transparent);
}
.carousel-caption h2 { font-size: 2rem; color: #fff; margin-bottom: 0.5rem; }
.carousel-caption p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; }
.slide-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: 1px solid var(--border-glass);
    color: white; width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; z-index: 2005; transition: all 0.3s;
    backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--cyan); color: var(--bg-base); border-color: var(--cyan); box-shadow: 0 0 15px var(--cyan); }
.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

.carousel-dots {
    display: flex; justify-content: center; gap: 0.5rem;
    padding: 1rem; background: rgba(0,0,0,0.5); z-index: 2005;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.3); border: none; cursor: pointer; transition: all 0.3s;
}
.dot.active { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transform: scale(1.2); }

/* Awareness Mode Overrides */
body.awareness-mode {
    --cyan: #00ff66; /* Shift cyan to neon green */
    --blue: #00cc52; /* Shift blue to a dark green */
}
body.awareness-mode .particles {
    opacity: 1; /* More visible particles */
    background: radial-gradient(circle, transparent 10%, var(--bg-base) 70%);
}
body.awareness-mode .glitch-text {
    text-shadow: 0 0 40px rgba(0, 255, 102, 0.5);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .image-showcase, .impact-metrics-row, .sdg-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .glitch-text { font-size: 3rem; }
    .modal-content { height: 80vh; }
    .navbar { padding: 1rem 1.5rem; flex-direction: column; gap: 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .app-container { padding: 1rem; gap: 4rem; }
    .hero-section { padding: 2rem 1rem; margin-top: 2rem; }
    .takeaway-strip { flex-direction: column; gap: 1rem; padding: 1rem; }
    .takeaway-points { flex-direction: column; gap: 0.5rem; }
    .takeaway-arrow { transform: rotate(90deg); }
    .upload-zone { padding: 1.5rem; }
    .action-bar { flex-direction: column; }
    .slider-container { height: 350px; }
    .hover-content { gap: 0.5rem; }
    .floating-alert { font-size: 0.9rem; padding: 0.3rem 0.6rem; }
}

@media (max-width: 600px) {
    .glitch-text { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
    .impact-card { height: 250px; }
    .card-overlay h3 { font-size: 1.2rem; }
    .card-overlay p { font-size: 0.85rem; }
    .upload-graphics { width: 60px; height: 60px; margin-bottom: 1rem; }
    .glow-icon { width: 30px; }
    .upload-zone h3 { font-size: 1.1rem; }
    .slider-container { height: 300px; }
    .sdg-card-header { flex-direction: column; align-items: flex-start; }
    .metric-icon { width: 50px; height: 50px; font-size: 1.8rem; }
    .counter-wrap { font-size: 2.2rem; }
    .btn-neon, .btn-ghost { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
    .nav-logo { margin-bottom: 0.5rem; }
    .brand-tagline { font-size: 0.9rem; letter-spacing: 1.5px; }
}
