:root {
    --bg-primary: #030712;
    --bg-secondary: #0b0f19;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --cyan: #06b6d4;
    --purple: #8b5cf6;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --glass-bg: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 80px 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 18px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--cyan);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 4px 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 140px 20px 80px 20px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 30px;
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }

.hero-description {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

/* Terminal Styling */
.code-terminal {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.terminal-header {
    background: #111827;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #10b981; }

.terminal-title {
    margin-left: auto;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: "Fira Code", monospace, Consolas;
    font-size: 0.92rem;
    line-height: 1.6;
}

.code-keyword { color: #f43f5e; }
.code-var { color: #38bdf8; }
.code-prop { color: #a78bfa; }
.code-string { color: #34d399; }
.code-comment { color: #6b7280; font-style: italic; }

.typing-line { margin-top: 15px; }
.cursor {
    animation: blink 1s infinite;
    color: var(--cyan);
    font-weight: bold;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* General Sections */
.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.about-section { background-color: var(--bg-secondary); }
.about-card { padding: 40px; }
.about-card p { margin-bottom: 15px; color: var(--text-muted); }

.services-section { background-color: var(--bg-primary); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card { padding: 30px; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); }
.service-icon { font-size: 2rem; color: var(--cyan); margin-bottom: 15px; }

.tech-section { background-color: var(--bg-secondary); text-align: center; }
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.tech-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 22px;
    border-radius: 30px;
}

/* Portfolio & Status Badges */
.portfolio-section { background-color: var(--bg-primary); }
.bytehive-bg {
    background-color: #060a14;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.partner-badge-header {
    text-align: center;
    margin-bottom: 10px;
}

.partner-tag {
    font-size: 0.85rem;
    color: var(--purple);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* Portfolio Card: Centered content with padding so text never touches borders */
.portfolio-card {
    flex: 1 1 320px;
    max-width: 380px;
    box-sizing: border-box;
    padding: 28px 22px; /* Inner breathing room */
    text-align: center;
}

.portfolio-card h3 {
    text-align: center;
    margin-top: 10px;
}

.portfolio-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 12px 0 20px 0;
    text-align: center;
    line-height: 1.6;
}

.portfolio-img-placeholder {
    height: 150px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px dashed var(--glass-border);
}

.portfolio-img-placeholder i { font-size: 2.5rem; color: var(--cyan); }

.card-footer-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.badge-online {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.badge-soon {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #eab308;
}

.badge-issues {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.project-btn {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}

.project-btn:hover:not(.disabled-btn) {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   ADVERTISEMENT SECTION
   ========================================== */
.ad-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.ad-tag {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
}

.ad-intro {
    text-align: center;
    color: var(--text-muted);
    margin-top: -25px;
    margin-bottom: 40px;
    font-size: 1rem;
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.ad-card {
    padding: 30px 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.4);
}

.ad-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.ad-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--purple);
    margin-bottom: 20px;
    margin-top: 10px;
}

.ad-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.ad-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.ad-btn {
    width: 100%;
    margin-top: auto;
}

/* Contact Dual Section */
.contact-section { background-color: var(--bg-primary); }

.dual-contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.contact-info { padding: 35px; }

.contact-card-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.contact-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 25px;
}

.info-item { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.info-item i { color: var(--cyan); }

.contact-actions { display: flex; gap: 12px; margin-top: 20px; }

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.email-btn { background-color: #ef4444; color: #fff; }
.whatsapp-btn { background-color: #22c55e; color: #fff; }

.donation-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.donation-box h4 { margin-bottom: 6px; font-size: 1rem; }
.donation-box p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 15px; }

.paystack-btn {
    background: linear-gradient(135deg, #09a5db, #00c3f8);
    color: #fff;
    width: 100%;
    border: none;
    cursor: pointer;
}

.highlight-bytehive {
    border-color: rgba(6, 182, 212, 0.3);
}

.account-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.account-details p {
    margin-bottom: 4px;
    color: var(--text-main);
    font-size: 0.88rem;
}

/* ==========================================
   FUNDING SECTION
   ========================================== */
.funding-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.funding-card {
    padding: 40px 30px;
    max-width: 850px;
    margin: 0 auto;
}

.funding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.funding-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funding-amount {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Progress Bar Container */
.funding-progress-wrapper {
    margin-bottom: 35px;
}

.funding-progress-bar {
    width: 100%;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    padding: 3px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.progress-segment {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
}

.segment-green {
    background: linear-gradient(90deg, #10b981, #22c55e);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.segment-orange {
    background: linear-gradient(90deg, #f97316, #fb923c);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
    margin-left: 3px;
}

.segment-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    padding: 0 4px;
}

/* Donors List */
.donors-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 25px;
}

.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.donor-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.donor-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.green-dot {
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.orange-dot {
    background-color: #f97316;
    box-shadow: 0 0 8px #f97316;
}

.donor-info {
    display: flex;
    flex-direction: column;
}

.donor-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.donor-amount {
    font-size: 0.8rem;
    color: var(--text-muted);
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(3, 7, 18, 0.98);
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: 0.3s;
    }
    .nav-menu.active { right: 0; }
}

/* --- Beautified About & Who We Serve Styles --- */

.about-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--purple);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-main) !important;
    font-weight: 500;
}

.highlight-text {
    color: var(--cyan);
    background: linear-gradient(120deg, rgba(6, 182, 212, 0.2) 0%, transparent 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Stats Highlight Grid */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
}

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Who We Serve Cards Grid */
.subsection-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.4rem;
    color: var(--accent);
}

.serve-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.serve-card {
    padding: 28px 22px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.serve-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.2);
}

.serve-icon-wrapper {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px auto;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cyan);
}

.serve-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.serve-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Scroll Animation Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Box Sizing & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    width: 100%;
}

.contact-info {
    padding: 30px 24px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Phone Screen Fixes */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .hero-section {
        padding: 100px 16px 40px 16px !important;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .hero-description {
        font-size: 0.95rem !important;
        min-height: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .code-terminal {
        width: 100%;
        box-sizing: border-box;
    }

    .terminal-body {
        font-size: 0.75rem !important;
        padding: 12px !important;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .dual-contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100%;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.8rem !important;
        word-wrap: break-word;
    }

    .contact-card-title {
        font-size: 1.2rem !important;
    }

    .contact-info {
        padding: 20px 16px !important;
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
    }

    .info-item {
        word-break: break-all;
    }

    .funding-card {
        padding: 25px 16px;
    }

    .funding-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Image Container */
.portfolio-img-box {
    width: 100%;
    max-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(0, 240, 255, 0.15);
}

.project-img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    filter: brightness(1.35) contrast(1.15) saturate(1.2);
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.portfolio-card:hover .project-img {
    transform: scale(1.04);
    filter: brightness(1.45) contrast(1.2) saturate(1.25);
}

/* Color Variants for Progress Bar Segments */
.bg-green  { background: linear-gradient(90deg, #10b981, #22c55e); box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
.bg-orange { background: linear-gradient(90deg, #f97316, #fb923c); box-shadow: 0 0 10px rgba(249, 115, 22, 0.4); }
.bg-blue   { background: linear-gradient(90deg, #3b82f6, #60a5fa); box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
.bg-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
.bg-cyan   { background: linear-gradient(90deg, #06b6d4, #22d3ee); box-shadow: 0 0 10px rgba(6, 182, 212, 0.4); }
.bg-yellow { background: linear-gradient(90deg, #eab308, #fde047); box-shadow: 0 0 10px rgba(234, 179, 8, 0.4); }

/* Color Dots for Donor Cards */
.green-dot  { background-color: #22c55e; box-shadow: 0 0 8px #22c55e; }
.orange-dot { background-color: #f97316; box-shadow: 0 0 8px #f97316; }
.blue-dot   { background-color: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.purple-dot { background-color: #8b5cf6; box-shadow: 0 0 8px #8b5cf6; }
.cyan-dot   { background-color: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.yellow-dot { background-color: #eab308; box-shadow: 0 0 8px #eab308; }

.no-donors-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0;
}

/* ==========================================
   COMMUNITY FUNDING & DONOR STYLES
   ========================================== */
.funding-section {
    background-color: var(--bg-secondary);
}

.funding-card {
    padding: 35px;
    max-width: 800px;
    margin: 0 auto;
}

.funding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.funding-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.funding-amount {
    font-size: 1.8rem;
    font-weight: 800;
}

.funding-progress-wrapper {
    margin-bottom: 35px;
}

.funding-progress-bar {
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    position: relative;
}

.progress-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
}

.segment-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.donors-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.donor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.donor-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donor-info {
    display: flex;
    flex-direction: column;
}

.donor-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.donor-amount {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.no-donors-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 0;
}

/* --- COLOR VARIANTS FOR PROGRESS BAR SEGMENTS --- */
.bg-red    { background: linear-gradient(90deg, #ef4444, #f87171); box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.bg-green  { background: linear-gradient(90deg, #10b981, #22c55e); box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
.bg-orange { background: linear-gradient(90deg, #f97316, #fb923c); box-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }
.bg-blue   { background: linear-gradient(90deg, #3b82f6, #60a5fa); box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.bg-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
.bg-cyan   { background: linear-gradient(90deg, #06b6d4, #22d3ee); box-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }
.bg-yellow { background: linear-gradient(90deg, #eab308, #fde047); box-shadow: 0 0 10px rgba(234, 179, 8, 0.5); }
.bg-pink   { background: linear-gradient(90deg, #ec4899, #f472b6); box-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }

/* --- COLOR DOTS FOR DONOR LIST CARDS --- */
.red-dot    { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }
.green-dot  { background-color: #22c55e; box-shadow: 0 0 8px #22c55e; }
.orange-dot { background-color: #f97316; box-shadow: 0 0 8px #f97316; }
.blue-dot   { background-color: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.purple-dot { background-color: #8b5cf6; box-shadow: 0 0 8px #8b5cf6; }
.cyan-dot   { background-color: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.yellow-dot { background-color: #eab308; box-shadow: 0 0 8px #eab308; }
.pink-dot   { background-color: #ec4899; box-shadow: 0 0 8px #ec4899; }

/* ADD TO STYLES.CSS */
.portfolio-img-box {
    width: 100%;
    max-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain; /* Use 'cover' if you want it to fill the box entirely */
    display: block;
}

/* --- ADVERTISEMENT ACTION BUTTONS --- */
.ad-actions {
    display: flex;
    flex-direction: column; /* Stacks buttons on top of each other */
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.ad-actions .ad-btn {
    width: 100%;
    text-align: center;
    font-size: 0.88rem;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- PROJECT CARD FOOTER FIX --- */
.card-footer-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.card-footer-box .project-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- AUTOMATIC IMAGE CAROUSEL --- */
.portfolio-img-box.carousel {
    position: relative;
}

/* Hide all slides by default */
.portfolio-img-box.carousel .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Display the active slide */
.portfolio-img-box.carousel .slide.active {
    position: relative; /* Keeps container structure */
    opacity: 1;
}

/* --- TERMINAL & CODE STYLES --- */
.tok-keyword { color: #f472b6; font-weight: 600; } /* Pink (class, return, const, new) */
.tok-class   { color: #fde047; }                   /* Yellow (DevCraftEngine) */
.tok-string  { color: #a7f3d0; }                   /* Mint Green ("Deployment Successful") */
.tok-func    { color: #60a5fa; }                   /* Blue (deploy) */

#typed-code {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Fira Code', 'Courier New', monospace;
}

.code-window {
    height: 230px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.code-window pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

#typewriter-code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- CUSTOM MODAL POPUP --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 90%;
    max-width: 420px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* Update the logo container to properly align the bigger image and text */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px; /* Adds consistent spacing between image and text */
}

/* Much larger, sharper navbar logo */
.logo-img {
    height: 60px;       /* Increased from 40px */
    width: auto;
    display: block;
}

/* Bigger, bolder text next to the logo */
.logo-text {
    font-size: 2rem;     /* Increased from 1.5rem */
    font-weight: 800;    /* Extra bold for visibility */
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Huge, highly visible footer logo */
.footer-logo {
    height: 100px;       /* Increased from 55px */
    width: auto;
    display: block;
    margin: 0 auto 24px auto; /* More bottom spacing */
    
    /* Adds a subtle glow effect to make it pop more against the dark background */
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.3));
    
    /* A smooth scale effect when you hover over it */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo:hover {
    transform: scale(1.08); /* Pops out slightly on hover */
}