/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #dc2626;
    --accent-color: #059669;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Kenya Flag Colors */
    --kenya-black: rgba(0, 0, 0, 0.03);
    --kenya-red: rgba(206, 17, 38, 0.03);
    --kenya-green: rgba(0, 122, 61, 0.03);
    --kenya-white: rgba(255, 255, 255, 0.03);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: 
        /* Shield and Spears Symbol */
        radial-gradient(circle at center, var(--kenya-white) 0%, transparent 70%),
        /* Geometric Pattern */
        linear-gradient(45deg, var(--kenya-black) 25%, transparent 25%),
        linear-gradient(-45deg, var(--kenya-black) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--kenya-black) 75%),
        linear-gradient(-45deg, transparent 75%, var(--kenya-black) 75%),
        linear-gradient(45deg, var(--kenya-red) 25%, transparent 25%),
        linear-gradient(-45deg, var(--kenya-red) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--kenya-red) 75%),
        linear-gradient(-45deg, transparent 75%, var(--kenya-red) 75%),
        linear-gradient(45deg, var(--kenya-green) 25%, transparent 25%),
        linear-gradient(-45deg, var(--kenya-green) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--kenya-green) 75%),
        linear-gradient(-45deg, transparent 75%, var(--kenya-green) 75%);
    background-size: 100% 100%, 200px 200px, 200px 200px, 200px 200px, 200px 200px,
                    200px 200px, 200px 200px, 200px 200px, 200px 200px,
                    200px 200px, 200px 200px, 200px 200px, 200px 200px;
    background-position: center center, 0 0, 0 100px, 100px -100px, -100px 0px,
                        100px 0, 0 100px, 200px 0, 0 200px,
                        200px 0, 0 200px, 300px 0, 0 300px;
    background-color: var(--light-bg);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L90 50 L50 95 L10 50 Z' fill='none' stroke='rgba(206, 17, 38, 0.03)' stroke-width='2'/%3E%3Cpath d='M50 20 L75 50 L50 80 L25 50 Z' fill='none' stroke='rgba(0, 122, 61, 0.03)' stroke-width='2'/%3E%3Cpath d='M50 35 L60 50 L50 65 L40 50 Z' fill='none' stroke='rgba(0, 0, 0, 0.03)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1548013146-72479768bada?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1476&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn i {
    transition: var(--transition);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(220, 38, 38, 0.3);
}

.btn:hover i {
    transform: translateX(5px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.vm-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vm-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vm-card i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Departments Section */
.dept-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: var(--light-bg);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.dept-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.dept-card {
    padding: 2rem;
    border-radius: 10px;
    color: var(--white);
}

.black-bg { background: #000; }
.red-bg { background: #d32f2f; }
.white-bg { background: #757575; }
.green-bg { background: #4caf50; }

/* Initiatives Section */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.initiative-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.initiative-card:hover {
    transform: translateY(-10px);
}

.initiative-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.initiative-card:hover .overlay {
    background: rgba(0, 0, 0, 0.3);
}

.initiative-content {
    padding: 1.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 300px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-img img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info ul {
    list-style: none;
    margin: 2rem 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter button {
    width: 100%;
    padding: 12px 25px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #0056b3, #004494);
}

.footer-newsletter button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.footer-newsletter button:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter button {
        width: 100%;
        justify-content: center;
    }
}

.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(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .dept-tabs {
        flex-wrap: wrap;
    }

    .nav-links .subscribe-btn {
        margin: 10px 0;
        justify-content: center;
    }
}

.nav-links .subscribe-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links .subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0056b3, #004494);
}

.nav-links .subscribe-btn i {
    font-size: 0.9rem;
    animation: bellRing 2s infinite;
}

@keyframes bellRing {
    0% { transform: rotate(0); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    25% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.contact-form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.contact-form .btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.contact-form .btn:hover i {
    transform: translateX(3px);
} 