/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 40px;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text::after {
    content: "PARTNERS OF AFRICA";
    font-size: 0.5rem;
    letter-spacing: 1px;
    font-weight: 300;
    margin-top: 0.125rem;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem;
    display: block;
    -webkit-tap-highlight-color: transparent;
}

.nav-menu a:active {
    color: #D4AF37;
}

.nav-menu a:hover {
    color: #D4AF37;
}

/* Hero Jumbotron Section */
.hero-jumbotron {
    background-color: #1a4d5c;
    background: linear-gradient(135deg, #1a4d5c 0%, #0d2831 100%);
    color: #fff;
    padding: 10rem 0 8rem;
    text-align: center;
    min-height: 85vh;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.globe-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.globe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    mix-blend-mode: screen;
}

.jumbotron-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.jumbotron-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-jumbotron {
    padding: 1rem 3rem;
    font-size: 0.95rem;
    letter-spacing: 2px;
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 400;
    transition: all 0.3s;
}

.btn-jumbotron:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Hero Section (kept for other pages if needed) */
.hero {
    background-color: #fff;
    color: #000;
    padding: 8rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -1px;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    text-decoration: none;
    border: 1px solid #000;
    font-weight: 400;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: transparent;
    color: #000;
    border-color: #000;
}

.btn-primary:hover {
    background-color: #000;
    color: #fff;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #D4AF37;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Page Header */
.page-header {
    background-color: #fff;
    color: #000;
    padding: 5rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4AF37;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.intro-text {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
}

.content-block {
    margin-bottom: 2.5rem;
    padding: 0;
    background-color: transparent;
}

.content-block p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #333;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.content-block strong {
    font-weight: 600;
    color: #000;
}

.investment-section {
    margin-bottom: 4rem;
    padding: 0;
    background-color: transparent;
    border-left: none;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.investment-section h2 {
    color: #D4AF37;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

.investment-section p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #333;
    text-align: center;
}

/* Performance Section */
.performance-section {
    background-color: #fff;
    padding: 5rem 0;
}

.performance-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #D4AF37;
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.impact-measurement-intro {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 3rem;
    box-shadow: none;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.impact-measurement-intro h2 {
    color: #D4AF37;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

.impact-measurement-intro p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #333;
    text-align: center;
}

.performance-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.performance-block {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e5e5e5;
    padding-top: 2rem;
}

.performance-block h2 {
    color: #D4AF37;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.performance-block p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: #333;
    font-size: 1rem;
}

.performance-block ul {
    margin-left: 1.5rem;
    line-height: 2.2;
    color: #333;
}

.performance-block li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Team Section */
.team-section {
    background-color: #fff;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-member {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.team-photo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    width: 320px;
    height: 320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e5e5e5;
    background-color: #fff;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.team-photo-placeholder {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    height: 320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    background-color: #fff;
}

.team-member h2 {
    color: #000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.team-role {
    font-style: normal;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.team-bio p {
    margin-bottom: 1rem;
    line-height: 1.9;
    color: #333;
    font-size: 1rem;
    text-align: left;
}

.team-bio-short {
    display: block;
    margin-bottom: 1rem;
}

.team-bio-full {
    margin-bottom: 1rem;
}

.show-more-btn {
    background-color: transparent;
    color: #D4AF37;
    border: none;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.3s;
    margin-top: 0.75rem;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.show-more-btn:hover {
    color: #B8941F;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e5e5e5;
}

.alert-success {
    background-color: #f9f9f9;
    border-color: #D4AF37;
    color: #000;
}

.alert p {
    margin: 0;
    font-weight: 400;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 400;
    color: #000;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group label[for="attachments"] {
    color: #D4AF37;
    cursor: pointer;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fafafa;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    background-color: #fff;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
    text-transform: none;
    font-weight: 300;
}

.form-group input[type="file"] {
    display: none;
}

.form-group label[for="attachments"]::before {
    content: "📎 ";
    margin-right: 0.5rem;
}

.form-group label[for="attachments"] {
    cursor: pointer;
    color: #D4AF37;
}

.form-group label[for="attachments"]:hover {
    color: #B8941F;
}

.form-note {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    font-weight: 300;
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.contact-info p {
    font-size: 1rem;
    color: #D4AF37;
    font-weight: 400;
}

.contact-info strong {
    color: #000;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #fff;
    color: #999;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #e5e5e5;
    margin-top: 5rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

.footer-contact {
    color: #D4AF37;
    text-transform: none;
    letter-spacing: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .navbar .container {
        padding: 1rem 20px;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-bottom: 1px solid #e5e5e5;
        padding: 1rem 0;
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.875rem;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 1rem 20px;
        width: 100%;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .jumbotron-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
        font-weight: 700;
    }
    
    .hero-jumbotron {
        padding: 6rem 0 5rem;
        min-height: 70vh;
    }
    
    .btn-jumbotron {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title,
    .page-header h1 {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text::after {
        font-size: 0.4rem;
    }
    
    .team-photo,
    .team-photo-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .jumbotron-title {
        font-size: 2rem;
    }
    
    .btn-jumbotron {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
    
    .performance-section h1 {
        font-size: 2rem;
    }
    
    .performance-blocks,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .content-block p,
    .investment-section p,
    .impact-measurement-intro p {
        font-size: 1rem;
    }
}
