
:root {
    --primary-purple: #7C3AED;
    --secondary-purple: #A855F7;
    --light-purple: #E9D5FF;
    --dark-purple: #5B21B6;
    --white: #FFFFFF;
    --light-grey: #F8FAFC;
    --medium-grey: #64748B;
    --dark-grey: #334155;
    --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    --gradient-secondary: linear-gradient(135deg, #E9D5FF 0%, #F8FAFC 100%);
    --shadow-soft: 0 10px 25px -5px rgba(124, 58, 237, 0.1);
    --shadow-medium: 0 20px 25px -5px rgba(124, 58, 237, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-smooth);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-smooth);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Header logos */
.header-logos {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

.logo {
    position: absolute;
    width: 200px; 
    height: 200px; 
    pointer-events: auto;
}

.logo-left {
    left: 3rem;  /* Slightly more spacing from edge */
    top: 0rem;
}

.logo-right {
    right: 3rem; /* Slightly more spacing from edge */
    filter: brightness(0) invert(1);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* filter: brightness(0) invert(1); Makes logos white */
    transition: var(--transition-smooth);
}

.logo-image:hover {
    transform: scale(1.1);
}

/* Header */
.header {
    width: 100%;
    max-width: 100vw;
    position: relative;
    min-height: 100vh;
    /* background: var(--gradient-primary); */
    background: url('./images/ubuntu2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* color: var(--white); */
    color: white;
    overflow: hidden;
}

/* .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: gridMove 20s linear infinite;
} */

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 80px;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    /* background: linear-gradient(135deg, #FFFFFF 0%, #E9D5FF 100%); */
    /* background: linear-gradient(135deg, #E9D5FF 100%); */
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-purple);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Floating elements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main content sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--dark-grey);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--medium-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-grey);
}

.about-text strong {
    color: var(--primary-purple);
    font-weight: 600;
}

.about-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image {
    width: 100%;
    height: 400px;
    background: url('./images/look_here.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--medium-grey);
    transition: var(--transition-smooth);
}

.about-image:hover {
    transform: scale(1.02);
}
.about-image2 {
    width: 100%;
    height: 400px;
    background: url('./images/DSC00418.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--medium-grey);
    transition: var(--transition-smooth);
}

.about-image2:hover {
    transform: scale(1.02);
}

/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.stat-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.stat-description {
    color: var(--medium-grey);
    line-height: 1.6;
}

/* Partnership options */
.partnership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partnership-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.partnership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.partnership-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--light-purple);
}

.partnership-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.partnership-description {
    color: var(--medium-grey);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.partnership-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    justify-content: center;
}

.partnership-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Selection criteria */
.criteria-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.criteria-list {
    list-style: none;
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-grey);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.criteria-item:hover {
    background: var(--light-purple);
    transform: translateX(10px);
}

.criteria-bullet {
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.6rem;
    flex-shrink: 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-purple);
    transition: var(--transition-smooth);
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.timeline-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 2rem;
    flex-shrink: 0;
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--medium-grey);
}

/* FAQ Section Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--light-purple);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-grey) 100%);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.05), transparent);
    transition: left 0.5s;
}

.faq-question:hover::before {
    left: 100%;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--light-grey) 100%);
}

.faq-question.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-grey);
    margin: 0;
    transition: var(--transition-smooth);
    flex: 1;
    padding-right: 1rem;
}

.faq-question.active h3 {
    color: var(--white);
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}

.faq-icon i {
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

/* .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
}

.faq-answer.active {
    max-height: 200px;
    padding: 0 2rem 1.5rem 2rem;
} */

/* .faq-answer {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    height: 0;
    opacity: 0;
}

.faq-answer.active {
    height: auto;
    min-height: 80px;
    padding: 0 2rem 1.5rem 2rem;
    opacity: 1;
}

.faq-answer p {
    color: var(--medium-grey);
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--light-grey);
    transform: translateY(-10px);
    opacity: 0;
    transition: var(--transition-smooth);
} */

.faq-answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 2rem;
    background: var(--white);
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    max-height: 300px; /* Increase this value */
    opacity: 1;
    padding: 1rem 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--medium-grey);
    line-height: 1.6;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--light-grey);
}

.faq-answer.active p {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

/* Footer */
footer {
    /* background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%); */
    background: #1c2533;
    color: white;
    padding: 4rem 3rem 2rem;
}

/* .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
} */

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

.footer-logo h2 span {
    color: #6b46c1;
}

.footer-links h3,
.footer-ministries h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #6b46c1;
}

/* .footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #6b46c1 100%);
    color: #eee;
    padding: 4rem 1rem 2rem;
} */

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #7C3AED;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #6b46c1;
}

.footer-section p,
.footer-section li {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.3rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #6b46c1;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.center-button {
    text-align: center;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animation enhancement for FAQ items */
.faq-item.slide-in-left {
    animation-delay: 0.1s;
}

.faq-item.fade-in {
    animation-delay: 0.2s;
}

.faq-item.slide-in-right {
    animation-delay: 0.3s;
}

.faq-item:nth-child(4).slide-in-left {
    animation-delay: 0.4s;
}

.faq-item:nth-child(5).fade-in {
    animation-delay: 0.5s;
}

.faq-item:nth-child(6).slide-in-right {
    animation-delay: 0.6s;
}



/* Responsive design */
@media (max-width: 768px) {
    
    .header{
        min-height: 800px;
    }

    .hero-badge {
        margin-top: 7rem;
    }

    .logo {
        width: 150px;  
        height: 150px;
    }
    
    .logo-left {
        left: 1.5rem;
    }
    
    .logo-right {
        right: 1.5rem;
    }


    .about-content,
    .criteria-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .partnership-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .faq-container {
        margin-top: 2rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        padding-right: 0.75rem;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
    }
    
    .faq-icon i {
        font-size: 0.8rem;
    }
    
    .faq-answer.active {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    
    /*.header .hero-badge {*/
    /*    margin-top: 2rem !important;*/
    /*}*/


    .logo {
        width: 120px;
        height: 120px;
    }
    
    .logo-left {
        left: 1rem;
    }
    
    .logo-right {
        right: 1rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-icon {
        width: 26px;
        height: 26px;
    }
    
    .faq-answer.active {
        padding: 0 1.25rem 1rem 1.25rem;
        max-height: 250px; /* Allow more height for smaller screens */
    }
}
