* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0A0A0A;
    --purple: #6B46C1;
    --purple-dark: #553C9A;
    --accent: #E9D5FF;
    --accent-bright: #C084FC;
    --white: #FFFFFF;
    --gray-light: #F3F4F6;
    --gray: #6B7280;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
}
.decorated-section {
    position: relative; /* This is essential for positioning the shapes */
    overflow: hidden;   /* This keeps the shapes from spilling outside the section */
}

/* This creates the FIRST shape */
.decorated-section::before {
    content: '';
    position: absolute;
    z-index: -1; /* Puts the shape behind the content */
    
    /* The shape is a custom, URL-encoded SVG */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3e%3cpath fill='%23E9D5FF' d='M63.1,-25.9C73.8,-3.2,70,26.1,53.8,45.2C37.6,64.3,9.1,73.2,-17.9,69.7C-44.9,66.2,-70.5,50.3,-79.1,27.3C-87.8,4.3,-79.5,-25.8,-61.1,-43.3C-42.7,-60.8,-14.2,-65.7,11.2,-61.1C36.6,-56.5,52.4,-48.5,63.1,-25.9Z' transform='translate(100 100)'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    
    /* Position and Size */
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    
    /* Subtle Animation */
    animation: slow-spin 25s linear infinite;
}



/* This creates the SECOND, different shape */
.decorated-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    
    /* A different organic SVG shape */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3e%3cpath fill='%23E9D5FF' d='M44.1,-59.8C58.8,-53.4,73.5,-44.2,77.5,-31.2C81.5,-18.2,74.9,-1.4,68.4,14.7C61.9,30.8,55.5,46.2,44.5,56.5C33.5,66.8,17.9,72,-0.3,72.2C-18.4,72.4,-36.8,67.6,-50.9,56.7C-65,45.8,-74.8,28.8,-76.7,11C-78.6,-6.8,-72.5,-25.4,-61.7,-38C-50.8,-50.5,-35.1,-57,-20.3,-61.2C-5.5,-65.4,8.4,-67.2,22.8,-67.6C37.1,-68,44.1,-66.2,44.1,-59.8Z' transform='translate(100 100)'/%3e%3c/svg%3e");
    background-repeat: no-repeat;

    /* Position and Size */
    width: 300px;
    height: 300px;
    bottom: -120px;
    right: -100px;
    
    /* Subtle Animation (spinning the other way) */
    animation: slow-spin-reverse 30s linear infinite;
}

/* The animation keyframes */
@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slow-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
.pattern-edges {
    position: relative; /* Essential for positioning the edges */
    overflow: hidden;   /* Keeps the pattern contained */
}

/* This creates the VERTICAL pattern on the LEFT edge */
.pattern-edges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20px; /* How thick the vertical border is */
    
    /* !! REPLACE WITH THE PATH TO YOUR IMAGE !! */
    background-image: url('images/african-p.png');
    
    background-size: cover; /* Adjusts the pattern size to fit */
    opacity: 0.5; /* Makes the pattern subtle */
}



h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Main Content Area */
main {
    /* This adds padding to the top to prevent content from hiding under the fixed nav bar */
    padding-top: 80px; 
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--purple);
}

.nav-links .btn-nav {
    background: var(--purple);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-links a.btn-nav.active-link {
    background: var(--purple-dark); /* Use the darker purple */
    color: var(--white); /* Keep the text color white */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); /* Optional: Adds a subtle inner press effect */
}
.nav-links .btn-nav:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Hero Sections */
.hero {
    padding: 120px 0 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--black);
}

.hero-content .accent {
    color: var(--purple);
}

.hero-content p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-image {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder pattern for images */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--purple);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 70, 193, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-secondary:hover {
    background: var(--purple);
    color: var(--white);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    color: var(--purple);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 40px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--accent);
}
.nav-links a:hover {
    color: var(--purple);
}


.nav-links a.active-link {
    color: var(--purple);
    font-weight: 700;
}

.stat-item h3 {
    font-size: 56px;
    color: var(--purple);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--gray);
    font-size: 16px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--purple);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}


.card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--black);
}

.card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two-col-content h2 {
    font-size: 42px;
    margin-bottom: 24px;
}

.two-col-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.two-col-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--accent-bright) 100%);
    position: relative;
    overflow: hidden;
}

.two-col-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.1) 20px, rgba(255,255,255,0.1) 40px);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.value-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--purple);
}

.value-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--purple);
}

.value-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-step {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    border: 2px solid var(--accent);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 40px;
    height: 40px;
    background: var(--purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.process-step h4 {
    font-size: 20px;
    margin-bottom: 12px;
    margin-top: 10px;
}

/* Projects */
.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--accent-bright) 100%);
    position: relative;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: visible;
    opacity: 1;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 3rem; /* 48px */
    font-weight: 700;
    color: var(--purple);
    display: flex;
}

.loading-text span {
    opacity: 0; /* Start invisible */
    animation: pop-in 1.4s ease-in-out infinite;
}

/* This is the key: we delay the animation for each character */
.loading-text span:nth-child(1) {
    animation-delay: 0s;
}
.loading-text span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading-text span:nth-child(3) {
    animation-delay: 0.4s;
}
.loading-text span:nth-child(4) {
    animation-delay: 0.6s;
}
.project-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb; /* A light gray line */
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.project-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: color 0.2s ease-in-out;
}

.project-links a:hover {
    color: var(--purple); /* Highlight on hover */
}

.project-links a i {
    font-size: 20px; /* Makes icons a bit larger than the text */
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    30% {
        /* Appear and rise */
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        /* Hold position and opacity */
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        /* Fade out */
        opacity: 0;
    }
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
}

.project-content {
    padding: 48px;
}

.project-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 16px;
    background: var(--accent);
    color: var(--purple);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.project-content h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.project-section {
    margin-bottom: 32px;
}

.project-section h4 {
    font-size: 18px;
    color: var(--purple);
    margin-bottom: 12px;
    font-weight: 600;
}

.impact-list {
    list-style: none;
    padding: 0;
}

.impact-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--gray);
}

.impact-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--purple);
    font-weight: bold;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--accent-bright) 100%);
}

.blog-content {
    padding: 32px;
}

.blog-date {
    color: var(--purple);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.blog-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-card a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Partner Types */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.partner-card {
    background: var(--white);
    padding: 48px;
    border-radius: 12px;
    border: 2px solid var(--accent);
}

.partner-card h3 {
    font-size: 24px;
    color: var(--purple);
    margin-bottom: 16px;
}

.partner-card p {
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.7;
}

.partner-list {
    list-style: none;
    padding: 0;
}

.partner-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray);
}

.partner-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--purple);
    font-weight: bold;
}

/* Contact Form */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.7;
}

.contact-item {
    margin-bottom: 32px;
}

.contact-item h4 {
    font-size: 16px;
    color: var(--purple);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: var(--gray);
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    background: var(--white);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    padding: 80px;
    border-radius: 16px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-box .btn {
    background: var(--white);
    color: var(--purple);
}

.cta-box .btn:hover {
    background: var(--accent);
}
/* =================================
   MEET THE TEAM SECTION (Updated Hover Animation)
==================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.team-card {
    text-align: center;
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}


.team-image img {
  width: 100%;
  height: 100%;
  display: block;      /* remove inline gap */
  object-fit: cover;   /* crop nicely */
  border-radius: 80%;  /* keep it circular */
}

.team-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image {
    width: 100%;
    height: 100%;
    overflow: hidden; 
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    background-color: var(--gray-light);
}

/* This creates the dot and sets its default, pulsing animation */
.team-image-wrapper::before {
    content: '';
    position: absolute;
    z-index: 1;

    /* Dot styles */
    width: 12px;
    height: 12px;
    background-color: var(--purple);
    border-radius: 80%;
    
    /* Default state: Apply the pulse animation */
    animation: pulse 3s ease-in-out infinite;
}

/* This triggers the new animation state ON HOVER */
.team-card:hover .team-image-wrapper::before {
    /* On hover, switch to the orbit animation */
    animation: orbit 4s linear infinite;
}

/* =================================
   NEWSLETTER SIGNUP SECTION (Improved Style)
==================================== */
.newsletter-section {
    text-align: center;
    padding: 80px;
    border-radius: 16px;
    
    /* Use the same beautiful gradient as your other call-to-action boxes */
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
}

.newsletter-section h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.newsletter-section p {
    color: var(--white);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--white); /* White text */
    transition: all 0.2s;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
}

/* We'll use a white button with purple text here for contrast */
.newsletter-form .btn {
    background: var(--white);
    color: var(--purple);
}

.newsletter-form .btn:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 32px;
    }
    .newsletter-form {
        flex-direction: column;
    }
}
/* Grid for the Founders Section */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 80px;
}/* This new rule pushes any element with this class, and everything after it, to the far right */
.nav-links .nav-cta-start {
    margin-left: auto;
}

/* Rename .btn-donate to .btn-outline for reusability */
.nav-links .btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
    padding: 8px 22px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-links .btn-outline:hover {
    background: var(--purple);
    color: var(--white);
}
/* ---- DROPDOWN FINAL OVERRIDES ---- */

/* Hide by default */
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 280px;
  display: none !important;     /* only JS will show it */
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  z-index: 2000;
  padding: 10px;
}

/* SHOW only when .open (JS adds/removes this) */
.nav-links .dropdown.open > .dropdown-menu {
  display: block !important;
}



/* Remove hover “bridge” if you added it earlier */
.nav-links .dropdown::after { content: none !important; }

/* Make sure parent can overflow panels */
nav, nav .container { overflow: visible !important; }

/* Ensure top-level nav is flex, but nested menus are NOT */
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links ul { list-style: none; margin: 0; padding: 0; }

/* =================================
   MOBILE NAVIGATION & HAMBURGER
==================================== */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000; /* Ensures it's above other content */
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: var(--black) !important;
    border-radius: 10px;
    transition: all 0.3s linear;
}


/* Mobile navigation overlay */
#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Styles for when the mobile menu is open */
body.mobile-nav-open #mobile-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- THIS IS THE CODE THAT CREATES THE 'X' --- */
body.mobile-nav-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
body.mobile-nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
}
body.mobile-nav-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
/* --- END OF 'X' CODE --- */
.team-socials {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
}
/* Dropdown container */
.nav-links .dropdown {
  position: relative;
}

/* Toggle button matches nav links look */
.dropdown-toggle {
  background: transparent;
  border: none;
  font: inherit;
  color: var(--black);
  cursor: pointer;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle:hover {
  color: var(--purple);
}

/* Menu panel */
.dropdown-menu {
  position: absolute;
  top: 120%; /* below the toggle */
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  padding: 8px;
  list-style: none;
  display: none;           /* hidden by default */
  z-index: 1500;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--gray-light);
  color: var(--purple);
}

/* Keep desktop dropdown only; mobile uses simple links */
@media (max-width: 1024px) {
  .nav-links .dropdown { display: none; }
}
#mobile-nav .mobile-group {
  margin: 18px 0 6px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .06em;
}



.team-socials a {
    color: var(--purple);
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.team-socials a:hover {
    color: var(--accent-bright);
    transform: translateY(-3px);
}


.mobile-nav-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 32px 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 24px;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

.mobile-nav-links .btn-nav {
    padding: 12px 32px;
}

/* This is our responsive breakpoint */
@media (max-width: 1024px) {
    .nav-links {
        display: none; /* Hide the desktop links */
    }
    .hamburger-menu {
        display: flex; /* Show the hamburger button */
    }
}

@media (max-width: 1024px) {
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
}

/* Keyframe for the default "breathing" or "pulsing" animation */
@keyframes pulse {
  0%   { transform: scale(1)   translateX(110px); opacity: .7; }  /* was 95px */
  50%  { transform: scale(1.2) translateX(110px); opacity: 1;  }  /* was 95px */
  100% { transform: scale(1)   translateX(110px); opacity: .7; }  /* was 95px */
}

/* Keyframe for the hover "orbit" animation */
@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(110px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(110px) rotate(-360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.team-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.team-card .role {
    color: var(--purple);
    font-weight: 500;
    margin-bottom: 16px;
}

.team-card p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}
/* A11y helper */
.visually-hidden {
  position:absolute !important; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0;
}

/* Nav socials (shown on desktop, hidden on mobile) */
.nav-socials {
  display:flex; gap:14px; align-items:center; margin-left:16px;
}
.nav-socials a {
  display:inline-flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:8px;
  color: var(--black); background: transparent; border:1px solid rgba(0,0,0,0.08);
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.nav-socials a:hover, .nav-socials a:focus-visible {
  color:#fff; background: var(--purple); border-color: var(--purple);
  transform: translateY(-2px);
}
.nav-socials i { font-size:14px; }

/* Hide nav socials on smaller screens (mobile uses footer) */
@media (max-width: 1024px) {
  .nav-socials { display:none; }
}

/* Footer socials */
.footer-socials {
  display:flex; gap:12px; align-items:center; margin-top:12px;
}
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  text-decoration: none;           
  border-bottom: none;             
  line-height: 1;                  
  vertical-align: middle;          
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}


.footer-socials a:hover, .footer-socials a:focus-visible {
  background: var(--accent); color: var(--purple);
  border-color: transparent; transform: translateY(-2px);
}
.footer-socials i { font-size:16px; }

/* ===== FINAL DROPDOWN OVERRIDES ===== */

/* Allow panels to overflow the navbar */
nav, nav .container { overflow: visible !important; }

/* Anchor panel to each top-level <li> */
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links > li { position: relative; }

/* Panel: hidden by default. JS will toggle .open */
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 280px;
  display: none !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.08);
  z-index: 2000;
  padding: 10px;
  pointer-events: auto;
}

/* Show when JS adds .open */
.nav-links .dropdown.open > .dropdown-menu { display: block !important; }

/* Donation helpers */
.card.highlight { border-color: var(--accent); background: #faf5ff; }
.card .btn { margin-top: 10px; }
.card .btn + .btn { margin-left: 8px; }

/* (Optional) make code blocks tidy in donate notes */
code { background: var(--gray-light); padding: 2px 6px; border-radius: 6px; }

/* Desktop-only dropdowns (mobile uses overlay) */
@media (max-width: 1024px) {
  .nav-links .dropdown { display: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .two-col, .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cards-grid, .blog-grid, .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .cards-grid, .blog-grid, .process-grid, .partner-grid, .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Replace all #careers ... versions with these generic ones */
.job-list { display: grid; gap: 16px; }
.job-card {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; padding: 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.job-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.badge {
  display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600;
  background: var(--gray-light); color: var(--black); padding:6px 10px; border-radius: 999px;
}
.empty-state {
  text-align: center; background: var(--gray-light); border: 1px dashed rgba(0,0,0,.15);
  border-radius: 16px; padding: 56px 24px;
}
.empty-icon {
  width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--accent); color: var(--purple); margin-bottom: 16px;
  font-size: 24px;
}
.empty-state p { color: var(--gray); max-width: 640px; margin: 8px auto 0; }
.filters {
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:16px;
}
.filters input[type="search"],
.filters select {
  padding:12px 14px;
  background:var(--gray-light);
  border:2px solid transparent;
  border-radius:8px;
  font: inherit;
}
.filters input[type="search"]:focus,
.filters select:focus {
  outline:none;
  background:#fff;
  border-color:var(--purple);
}
