:root {
    --primary-color: #0288D1;
    --primary-dark: #01579B;
    --accent-color: #00B0FF;
    --bg-dark: #F5F9FC;
    --bg-light: #E1F5FE;
    --text-color: #102A43;
    --text-muted: #486581;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(3, 155, 229, 0.2);
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 1. Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; /* Keep cursor round */
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    opacity: 1;
}

/* 2. Glassmorphism Nav */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0; /* Increased padding */
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 8px; /* Added vertical spacing */
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* 3. Particle Hero & 4. Typing Effect */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.glitch-text {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-color);
    position: relative;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

/* Glitch Effect CSS */
.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(80px, 9999px, 90px, 0); }
    10% { clip: rect(10px, 9999px, 40px, 0); }
    15% { clip: rect(50px, 9999px, 20px, 0); }
    20% { clip: rect(60px, 9999px, 70px, 0); }
    100% { clip: rect(10px, 9999px, 90px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    5% { clip: rect(90px, 9999px, 10px, 0); }
    10% { clip: rect(30px, 9999px, 20px, 0); }
    15% { clip: rect(70px, 9999px, 60px, 0); }
    20% { clip: rect(20px, 9999px, 50px, 0); }
    100% { clip: rect(80px, 9999px, 10px, 0); }
}

.typing-text {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink .75s step-end infinite;
    font-family: monospace;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* 5. Neon Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 0; /* Boxy style */
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-neon {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
}

.btn-neon:hover {
    color: var(--bg-dark);
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 0; /* Boxy style */
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 0; /* Boxy style */
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* 6. Glassmorphism Cards & 7. Tilt Effect */
.stats-section {
    padding: 8rem 0;
    position: relative;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
    gap: 2rem;
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 0; /* Boxy style */
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px -10px rgba(3, 155, 229, 0.2);
}

.stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.stat-card h3 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 8. Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 0; /* Boxy style - maybe squares? */
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-dark);
    top: 10%;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 20%;
    right: -50px;
}

.shape-3 {
    width: 500px;
    height: 500px;
    background: #7928ca;
    bottom: -100px;
    left: 30%;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Preview Section */
.preview-section {
    padding: 8rem 0;
}

/* Impact Map Section */
.impact-map-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.map-container {
    margin: 4rem auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    padding: 2rem;
    position: relative;
    max-width: 1100px;
}

#map {
    border-radius: 0;
    height: 600px;
    width: 100%;
}

.leaflet-popup-content-wrapper {
    border-radius: 0 !important;
}

.leaflet-popup-tip {
    display: none;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--glass-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-color {
    width: 40px;
    height: 25px;
    display: inline-block;
    border: 1px solid var(--glass-border);
}

.legend-color.impact {
    background: var(--primary-color);
}

.legend-text {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.country-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-header {
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 900;
    text-transform: uppercase;
}

.line-accent {
    width: 80px;
    height: 6px;
    background: var(--accent-color);
    margin-top: 1.5rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.preview-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.preview-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.link-arrow {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-arrow .arrow {
    transition: transform 0.3s ease;
}

.link-arrow:hover .arrow {
    transform: translateX(10px);
}

/* Page Headers */
.page-header {
    height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.reports-header {
    background: linear-gradient(135deg, #0288D1 0%, #01579B 50%, #00B0FF 100%);
    height: 70vh;
    text-align: center;
}

.reports-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.reports-header h1 {
    color: #ffffff;
    font-size: 5rem;
}

.reports-header .highlight-text {
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 600px;
}

.header-btn {
    margin-top: 1rem;
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
}

.header-btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.page-header h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
}

.highlight-text {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(3, 155, 229, 0.2);
}

/* Report Selector */
.report-selector {
    padding: 4rem 0;
    background: var(--bg-light);
    text-align: center;
}

.report-selector h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    font-weight: 800;
}

.year-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.year-btn {
    padding: 18px 45px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}

.year-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(3, 155, 229, 0.3);
}

.year-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(3, 155, 229, 0.4);
}

.report-year-section {
    display: none;
}

.report-year-section.active {
    display: block;
}

.year-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
}

/* Report Details */
.report-details {
    padding: 6rem 0;
}

/* Impact Stories Detailed */
.stories-detailed {
    padding: 6rem 0;
}

.story-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 8rem;
}

.story-row.reverse {
    flex-direction: row-reverse;
}

.story-visual {
    flex: 1;
    height: 400px;
    padding: 0;
    position: relative;
    border-radius: 0; /* Boxy style */
}

.story-img-placeholder {
    width: 100%;
    height: 100%;
    opacity: 0.9;
    border-radius: 0; /* Boxy style */
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0%,
        rgba(3, 155, 229, 0.1) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    animation: hologram 10s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes hologram {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.story-text {
    flex: 1;
}

.story-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 800;
}

.story-text p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.story-stat {
    display: inline-block;
    background: rgba(3, 155, 229, 0.1);
    padding: 15px 30px;
    border-radius: 0; /* Boxy style */
    border: 1px solid var(--primary-color);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-right: 15px;
}

.stat-label {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Report Charts */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.chart-container {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    margin: 2.5rem 0;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px;
}

.bar {
    width: 50px;
    background: var(--bg-light);
    height: 0; /* Animated via JS */
    border-radius: 0; /* Boxy style */
    transition: height 1.5s ease-out;
    position: relative;
}

.bar.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(3, 155, 229, 0.3);
}

.circle-chart {
    width: 180px;
    height: 180px;
    margin: 2.5rem auto;
    position: relative;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: var(--bg-light);
    stroke-width: 3;
}

.circle {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 3;
    stroke-linecap: butt; /* Boxy ends */
    animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
    0% { stroke-dasharray: 0, 100; }
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
}

.milestone-list {
    list-style: none;
    margin-top: 1.5rem;
}

.milestone-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.milestone-list li span {
    color: var(--accent-color);
    font-weight: 900;
    margin-right: 20px;
    width: 40px;
    display: inline-block;
}

.download-section {
    text-align: center;
}

.download-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.download-card h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.download-card p {
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #E1F5FE;
    padding: 6rem 0 3rem;
    margin-top: 6rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.footer-brand h3 {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 3rem;
    opacity: 0.7;
}

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s forwards;
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .glitch-text { font-size: 3rem; }
    .typing-text { font-size: 1.2rem; }
    .nav-links { display: none; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--accent-color);
        margin: 6px 0;
    }
    .preview-grid, .story-row, .story-row.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .navbar .container { flex-direction: column; }
    .brand-container { margin-bottom: 1.5rem; align-items: center; }
    .stat-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 1.5rem; }
}