/* Kenyan Flag-inspired color palette */
:root {
    --primary-color: #000000;     /* Kenya Black */
    --secondary-color: #DC143C;    /* Kenya Red */
    --accent-color: #006400;      /* Kenya Green */
    --green-color: #228B22;       /* Forest Green */
    --bg-color: #FFFFFF;          /* Kenya White */
    --dark-color: #000000;        /* Kenya Black */
    --pattern-color: #DC143C;     /* Kenya Red Pattern */
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --card-bg: #F8F9FA;          /* Light Gray for cards */
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Playfair+Display:wght@400,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* African Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7c331' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.5;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar .logo {
    font-family: 'Rye', serif;
    color: var(--bg-color);
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.12);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 100, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%),
        url('/images/final buss.jpg') center/cover;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

/* Floating Elements */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: rgba(0, 100, 0, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: -80px;
}


.hero-subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideInFromLeft 1s ease 0.2s forwards;
}

.hero h1 {
    font-family: 'Times New Roman', Times, serif !important;
    font-size: 1.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-top: 10px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    opacity: 0;
    animation: slideInFromRight 1s ease 0.5s forwards;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--accent-color);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    animation: expandWidth 1s ease 2s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.hero .vision {
    font-size: 1.8rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.8s forwards;
}

.hero-description {
    font-size: 1.rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1.5s ease 1.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 7rem;
    padding-top: 4rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: fadeInUp 1.5s ease 1.1s forwards;
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.cta-button::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 ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    opacity: 0;
    animation: fadeInUp 1.5s ease 1.3s forwards;
}

.cta-secondary:hover {
    background: var(--text-light);
    color: var(--dark-color);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 100, 0, 0.4);
}

/* WhatsApp Join Button */
.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: #fff;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(37,211,102,0.15);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
    margin-top: 1rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-3px) scale(1.05);
}

.join-container i.fab.fa-whatsapp {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 10px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    animation: bounce 2s infinite;
    opacity: 0;
    animation: fadeIn 2s ease 3s forwards;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

#backToTop:hover {
    background: var(--secondary-color);
    transform: scale(1.08);
}

/* Additional Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(220, 20, 60, 0.3);
    border-color: var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
}

/* About Section */
.about {
    padding: 50px 5%;
    background: var(--bg-color);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7c331' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about h2 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-color);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.mission-box {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    padding: 4rem;
    border-radius: 20px;
    margin-bottom: 5rem;
    transform: skew(-3deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mission-box > * {
    transform: skew(3deg);
}

/* Join Section */
.join {
    padding: 120px 5%;
    background: var(--bg-color);
    position: relative;
}

.join-container {
    max-width: 800px;
    margin: 0 auto;
}

.join-form {
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--text-light);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .logo {
        font-size: 1.5rem;
    }
    .hero h1 {
        font-size: 16px;
    }
    
    .hero .vision {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .hero::after {
        display: none;
    }
    
    .mission-box {
        padding: 2rem;
        transform: none;
    }
    
    .mission-box > * {
        transform: none;
    }
    
    .card {
        padding: 2rem;
    }
    
    .join-form {
        padding: 2rem;
    }
    
    .videos h2 {
        font-size: 1.8rem;
    }
    
    .video-item {
        padding: 1rem;
    }
    
    .video-item h3 {
        font-size: 1.2rem;
    }
    .about {
        padding: 30px 5%;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.2rem;
    }
    .hero h1 {
        padding-top: 10px;
        font-size: 16px;
    }
    
    .hero .vision {
        font-size: 1.2rem;
    }
    
    .videos h2 {
        font-size: 1.6rem;
    }

    .about {
        padding: 30px 5%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.videos {
    padding: 4rem 0 2rem 0;
    background: #fff;
    text-align: center;
}
.videos h2 {
    color: #006400;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}
.videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.video-item {
    background: #f7f7f7;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 1.5rem;
    max-width: 480px;
    flex: 1 1 320px;
}
.video-item h3 {
    color: #d32f2f;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.video-desc {
    color: #222;
    font-size: 1rem;
    margin-top: 1rem;
}
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
@media (max-width: 900px) {
    .videos-grid {
        flex-direction: column;
        gap: 2.5rem;
    }
}

.hero:hover {
    background: url('/images/final buss.jpg') center/cover !important;
    transition: background 0.4s ease;
}
.hero:hover::before {
    opacity: 0 !important;
    transition: opacity 0.4s ease;
}

.hero.clear-bg {
    background: url('/images/final buss.jpg') center/cover !important;
}
.hero.clear-bg::before {
    opacity: 0 !important;
}
