/* ===== CSS Variables ===== */
:root {
    --primary: #F7931A;
    --primary-dark: #E8850F;
    --secondary: #006400;
    --secondary-light: #228B22;
    --dark: #1a1a1a;
    --dark-light: #2d2d2d;
    --light: #f8f8f8;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #e5e7eb;

    --font-main: 'Montserrat', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 8px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-photo {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    margin-left: auto;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: auto 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-image {
    width: 350px;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

.about-text .lead {
    color: var(--dark);
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat {
    background-color: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Projects Section ===== */
.projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    gap: 40px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background-color: var(--light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    grid-template-columns: 1.2fr 1fr;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.project-card.featured .project-content {
    color: var(--white);
}

.project-card.featured .project-content p,
.project-card.featured .project-highlights li {
    color: var(--gray-light);
}

.project-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.project-image-placeholder.bitcoin-kampala {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.project-image-placeholder.pan-african {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.project-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.project-content h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.project-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.project-highlights {
    margin-bottom: 24px;
}

.project-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 0.95rem;
}

.project-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== Speaking Section ===== */
.speaking {
    background-color: var(--light);
}

.speaking-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 48px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Impact Section ===== */
.impact {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.9)), url('images/impact-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.impact .section-header h2 {
    color: var(--white);
}

.recognition-badge {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 48px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.recognition-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.badge-year {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 4px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.recognition-badge h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.recognition-badge p {
    opacity: 0.9;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.impact-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.impact-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.impact-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== Blog Section ===== */
.blog {
    background-color: var(--light);
    text-align: center;
}

.blog-intro {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 48px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
}

.blog-category {
    background-color: var(--white);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.4;
}

.blog-card-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* ===== Book Section ===== */
.book {
    background: linear-gradient(rgba(0, 80, 0, 0.6), rgba(0, 80, 0, 0.65)), url('images/book-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.book-content h2 {
    margin-bottom: 16px;
}

.book-content > p {
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    font-size: 1.125rem;
}

.book-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.book-option {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 32px 24px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.book-option h3 {
    margin-bottom: 8px;
}

.book-option p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.book .btn-primary {
    background-color: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

.book .btn-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== Contact Section ===== */
.contact {
    background-color: var(--light);
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--white);
    padding: 16px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary);
    color: var(--white);
}

.social-icon {
    font-size: 1.5rem;
}

.contact-location {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Blog Page ===== */
.blog-header {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 16px;
}

.blog-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.blog-page {
    padding: 80px 0;
    background-color: var(--light);
}

.blog-page .blog-grid {
    margin-bottom: 0;
}

/* ===== Article Page ===== */
.article-header {
    padding: 160px 0 60px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
    text-align: center;
}

.article-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-header h1 {
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.article-content {
    padding: 80px 0;
    background-color: var(--white);
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.article-lead {
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.7;
}

.article-body h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.article-body p {
    margin-bottom: 24px;
    color: var(--gray);
    line-height: 1.8;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--dark);
}

.article-share {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.article-share p {
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 600;
}

.share-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.share-link {
    padding: 10px 24px;
    background-color: var(--light);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.share-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.more-posts {
    padding: 80px 0;
    background-color: var(--light);
    text-align: center;
}

.more-posts h2 {
    margin-bottom: 40px;
}

.more-posts .blog-grid {
    margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}


.footer-content p {
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-tagline {
    font-weight: 600;
    color: var(--primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image-placeholder {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        width: 200px;
        margin: 0 auto;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .project-image-placeholder {
        min-height: 200px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .book-options {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
}
