/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
    /* Color Palette - Bright Theme */
    --bg-main: #f8fafc;
    --bg-secondary: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    
    /* Vibrant Accents */
    --accent-primary: #9333ea; /* Bright Purple */
    --accent-primary-hover: #7e22ce;
    --accent-secondary: #fbbf24; /* Warm Gold */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    --section-padding: 100px 20px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; margin-bottom: 1rem; }

/* Top Banner Font */
.hero-brand-name {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(4.5rem, 8vw, 7rem);
    color: var(--accent-primary);
    text-shadow: 4px 4px 0px var(--accent-secondary), 0 0 30px rgba(0,0,0,0.9);
    transform: rotate(-3deg);
    display: inline-block;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(147, 51, 234, 0.3);
}
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.text-center { text-align: center; }
.subtitle { max-width: 600px; margin: 0 auto 3rem; }
.accent-text { color: var(--accent-secondary); }

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
    text-align: center;
}

.btn-primary-small {
    padding: 10px 20px;
    font-size: 1rem;
}

.btn-primary, .btn-primary-small {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4);
}

.btn-primary:hover, .btn-primary-small:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

.w-100 { width: 100%; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-medium);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--accent-primary);
}

.adinkra-logo {
    overflow: visible;
}

.anyi-group {
    transform-origin: 50% 50%;
    animation: rotateLogo 25s linear infinite;
}

.anyi-group path {
    transform-origin: 50% 50%;
    animation: pulseSymbol 3s ease-in-out infinite alternate;
}

@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseSymbol {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.05); opacity: 1; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn-primary-small) {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
}

.nav-links a:not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-primary);
    transition: var(--transition-medium);
}

.nav-links a:not(.btn-primary-small):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding-top: var(--nav-height);
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 2.5rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.hero-bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(rgba(10, 14, 23, 0.35), rgba(10, 14, 23, 0.65)), url('images/c35f14fd-de3e-41fc-87cc-e2e21afd9309.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.95;
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.image-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px dashed rgba(0,0,0,0.2);
}

.community-action-card {
    padding: 1rem;
}

.community-action-card .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.action-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.community-action-card:hover .action-photo {
    transform: scale(1.05);
}

#basic-needs-photo {
    transform: scale(1.5);
    transform-origin: 80% 100%;
}

.community-action-card:hover #basic-needs-photo {
    transform: scale(1.55);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    padding: 2.5rem 1.5rem 1.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.overlay-text {
    color: #ffffff;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* ==========================================================================
   Impact Section
   ========================================================================== */
.impact {
    padding: var(--section-padding);
    background-color: var(--bg-main);
    position: relative;
}

/* Add a subtle glow behind impact section */
.impact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.impact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-medium);
}

.impact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(147, 51, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: rgba(147, 51, 234, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
}

.contact-box {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-form {
    margin-top: 2rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(0,0,0,0.4);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

.form-status.success { color: var(--accent-primary); display: block; }
.form-status.error { color: #ef4444; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #f1f5f9;
    padding: 3rem 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Pillars & Partners Layouts
   ========================================================================== */
.alternating-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.alternating-row.reverse .alt-text {
    order: 2;
}

.alternating-row.reverse .alt-image {
    order: 1;
}

.marquee-wrapper {
    position: relative;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem 2rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    color: var(--accent-primary);
    background: rgba(147, 51, 234, 0.1);
    transform: scale(1.05);
}

.partner-logo.bassie-partner {
    background-color: #2F4F4F; /* Dark Slate Green */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(47, 79, 79, 0.3);
}

.partner-logo.bassie-partner:hover {
    background-color: #1e3535;
    color: #fbbf24; /* Gold accent */
    transform: scale(1.05);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 2rem)); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    
    .alternating-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .alternating-row.reverse .alt-text,
    .alternating-row.reverse .alt-image {
        order: unset;
    }
    .alternating-row .alt-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        text-align: center;
        transition: 0.3s;
        padding-top: 2rem;
    }
    
    .nav-links.active { left: 0; }
    .nav-links li { margin: 1.5rem 0; }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
}
