:root {
    --primary: #22c55e;
    --primary-dark: #15803d;
    --primary-light: #86efac;
    --dark-bg: #0b0b0b;
    --dark-card: #111111;
    --dark-card-hover: #1a1a1a;
    --dark-border: #222222;
    --dark-border-hover: #333333;
    --text-light: #ffffff;
    --text-muted: #999999;
    --text-muted-light: #bbbbbb;
    --text-body: #212529;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

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

.site-logo {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-light);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}
.site-logo .brace { color: var(--primary); font-size: 2.2rem; display: inline-block; vertical-align: middle; line-height: 1; }

.navbar img[alt="CodeLeo Foundation"] {
    vertical-align: middle;
}

.navbar {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--dark-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--text-light); font-weight: 600; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 0 !important;
}
.btn-primary { background: var(--primary); color: var(--dark-bg); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: var(--dark-bg); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--dark-bg); }

.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a1a 100%);
    text-align: center;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.hero h1 mark { color: var(--primary); background: none; }
.hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }

.card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 30px;
    transition: all 0.3s ease;
}
.card:hover { background: var(--dark-card-hover); transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 40px; }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero h1, .hero-image h1 { font-size: 2rem; }
    .hero-image { min-height: 70vh !important; }
    .impact-strip { grid-template-columns: 1fr; }
    .impact-strip img { min-height: 200px; max-height: 250px; }
    .impact-strip .impact-content { padding: 30px 25px; }
    .stat-image-strip { background-attachment: scroll; }
    .img-hero-banner { height: 200px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

.hero-lime { color: var(--primary); }

.price { color: var(--primary); font-size: 2rem; font-weight: 800; }
.price-usd { font-size: 0.9rem; color: var(--text-muted); }
.price-ugx { font-size: 0.8rem; color: var(--text-muted); }

.progress-bar {
    height: 8px;
    background: var(--dark-border);
    margin: 15px 0;
    border-radius: 0;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.5s ease;
}

.badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark-bg);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--dark-bg);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 16px;
    z-index: 2;
}

.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--dark-border);
    padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer h4 { color: var(--text-light); font-size: 1rem; margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: #888; font-size: 0.85rem; }
.footer ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--dark-border); margin-top: 40px; padding-top: 20px; text-align: center; color: #666; font-size: 0.8rem; }

.tag { display: inline-block; padding: 2px 8px; background: rgba(34, 197, 94, 0.15); color: var(--primary); font-size: 0.75rem; font-weight: 600; margin-right: 5px; margin-bottom: 5px; }

.page-header {
    padding: 60px 0;
    border-bottom: 1px solid var(--dark-border);
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin: 0; }
.page-header p { color: var(--text-muted); margin-top: 10px; }

.hero-image {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-image .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}
.hero-image .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 40%, rgba(11,11,11,0.92) 100%);
    z-index: 1;
}
.hero-image h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-image h1 mark { color: var(--primary); background: none; }
.hero-image p { color: var(--text-muted-light); font-size: 1.2rem; max-width: 650px; margin: 0 auto 30px; }
.hero-image .container {
    position: relative;
    z-index: 2;
}
.impact-strip {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}
.impact-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    min-height: 300px;
}
.impact-strip .impact-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.img-card {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    background: var(--dark-card);
}
.img-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.3;
    z-index: 0;
    transition: all 0.4s ease;
}
.img-card > * {
    position: relative;
    z-index: 1;
}
.img-card:hover img {
    opacity: 0.45;
    transform: scale(1.05);
}
.img-card h3 { color: var(--primary); font-size: 1rem; margin: 0 0 8px; }
.img-card p { color: #ccc; font-size: 0.85rem; margin: 0; }
.img-hero-banner {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center 30%;
    border: 1px solid var(--dark-border);
}
.stat-image-strip {
    position: relative;
    background: url('../images/students-computers-lab.jpg') center/cover fixed;
    padding: 80px 0;
}
.stat-image-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.75) 100%);
    z-index: 0;
}
.stat-image-strip .container { position: relative; z-index: 1; }

.cat-filter { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.cat-filter a {
    padding: 8px 20px;
    border: 1px solid var(--dark-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.cat-filter a:hover, .cat-filter a.active { border-color: var(--primary); color: var(--primary); }

.form-input { width: 100%; padding: 12px; background: var(--dark-card); border: 1px solid var(--dark-border); color: var(--text-light); font-size: 0.9rem; margin-bottom: 15px; }
.form-input:focus { outline: none; border-color: var(--primary); }
textarea.form-input { min-height: 120px; resize: vertical; }

.donor-wall { display: flex; flex-wrap: wrap; gap: 20px; }
.donor-card { background: var(--dark-card); border: 1px solid var(--dark-border); padding: 20px; flex: 1; min-width: 250px; }
.donor-card .amount { color: var(--primary); font-size: 1.2rem; font-weight: 700; }
.donor-card .name { color: var(--text-light); font-weight: 600; }
.donor-card .date { color: var(--text-muted); font-size: 0.8rem; }

.float-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.15); }
.float-btn svg { width: 26px; height: 26px; }
.float-btn-chat { background: #25D366; color: white; }
.float-btn-call { background: #F59E0B; color: #0b0b0b; }
