/* Professional Mobile-First Design */
:root {
    --primary-color: #1a365d; /* Deep navy blue */
    --secondary-color: #2d3748; /* Dark gray */
    --accent-color: #3182ce; /* Professional blue */
    --success-color: #38a169; /* Green */
    --warning-color: #d69e2e; /* Amber */
    --text-color: #2d3748; /* Dark gray */
    --text-light: #4a5568; /* Medium gray */
    --bg-color: #f7fafc; /* Light gray background */
    --card-bg: #ffffff; /* White */
    --border-color: #e2e8f0; /* Light border */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 1rem;
}

.logo h1 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: none;
    gap: 2rem;
    margin: 0;
    padding: 4rem 2rem 2rem;
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-menu.active {
    display: flex;
    left: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
}

.nav-menu li a:hover {
    color: var(--accent-color);
}

.nav-menu li a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.25rem;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

#hero {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8) 0%, rgba(49, 130, 206, 0.8) 100%), url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: white;
    padding: 8rem 1rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="0.5" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="50" r="0.3" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#hero h1, #hero p {
    position: relative;
    z-index: 2;
    color: white !important;
    animation: fadeInUp 1s ease-out;
}

main {
    padding: 3rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background: var(--card-bg);
    margin-bottom: 2rem;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

section:hover {
    box-shadow: var(--shadow-lg);
}

/* About Page Styling */
#about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 1.5rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.about-content {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Team Page Styling */
#team {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 4rem 1.5rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-color);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

/* Tanui Profile Section */
#tanui-profile {
    background: linear-gradient(135deg, #fef5e7 0%, #fdeaa7 100%);
    padding: 4rem 1.5rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-text {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.profile-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.profile-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.profile-text p strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.profile-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--accent-color);
}

.profile-quote {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.profile-quote blockquote {
    font-style: italic;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.profile-quote cite {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsive Design for Profile Section */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-text {
        padding: 2rem;
    }

    .profile-image img {
        max-width: 250px;
    }

    .profile-quote {
        padding: 1.5rem;
    }
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}


/* About Section */
#about {
    background: var(--card-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-section {
    background: transparent;
    padding: 1.5rem;
    border-radius: 0;
    border: none;
}

.about-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.about-section ul {
    padding-left: 1.5rem;
    margin: 0;
}

.about-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.map-container {
    margin-top: 1.5rem;
    text-align: center;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 350px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

/* Contact Page Styling */
#contact {
    background: linear-gradient(135deg, #fef5e7 0%, #fdeaa7 100%);
    padding: 4rem 1.5rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Donate Page Styling */
#donation {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    padding: 4rem 1.5rem;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    text-align: center;
}

.mpesa-donate {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 2rem auto 0;
}

.donate-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.donate-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.copy-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Outcomes & Impact */
#outcomes-impact ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

#outcomes-impact li {
    background: var(--bg-color);
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

#outcomes-impact li:nth-child(1) {
    border-left: 5px solid #4caf50;
    animation-delay: 0.1s;
}

#outcomes-impact li:nth-child(2) {
    border-left: 5px solid #ff9800;
    animation-delay: 0.2s;
}

#outcomes-impact li:nth-child(3) {
    border-left: 5px solid #2196f3;
    animation-delay: 0.3s;
}

#outcomes-impact li:nth-child(4) {
    border-left: 5px solid #9c27b0;
    animation-delay: 0.4s;
}

#outcomes-impact li:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

#outcomes-impact li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

#outcomes-impact li:hover::before {
    transform: translateX(100%);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#change {
    border-top-color: #ff9800;
    background: var(--bg-color);
}

#change table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#change th {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

#change td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 152, 0, 0.2);
    transition: background-color 0.3s ease;
}

#change tr:nth-child(even) {
    background: rgba(255, 193, 7, 0.1);
}

#change tr:hover td {
    background: rgba(255, 152, 0, 0.1);
}

#stats {
    border-top-color: #9c27b0;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.1) 0%, transparent 70%);
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 1rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: gentleFloat 12s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #ff9800, #2196f3);
}

.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #2196f3, #64b5f6);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4caf50, #ff9800, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPulse 2s ease-in-out infinite;
}

.stat-card:nth-child(1) h3 {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPulse 2s ease-in-out infinite;
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) h3 {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPulse 2s ease-in-out infinite;
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) h3 {
    background: linear-gradient(135deg, #2196f3, #64b5f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: numberPulse 2s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
}

.stat-card p {
    color: #666;
    font-weight: 500;
}

#testimonials {
    border-top-color: #4caf50;
    background: var(--bg-color);
    position: relative;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

#sustainability {
    border-top-color: #795548;
    background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 30%, #efebe9 60%, #d7ccc8 100%);
    background-image:
        radial-gradient(circle at 30% 70%, rgba(121, 85, 72, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(141, 110, 99, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(161, 136, 127, 0.1) 0%, transparent 60%);
    position: relative;
}

#sustainability::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 100 100"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="rgba(121,85,72,0.08)" stroke-width="1"/><circle cx="50" cy="50" r="2" fill="rgba(141,110,99,0.1)"/></svg>');
    pointer-events: none;
}

#donation {
    border-top-color: #e91e63;
    background: var(--bg-color);
    position: relative;
}

#donation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

#sdg {
    border-top-color: #9c27b0;
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 20%, #f3e5f5 40%, #ce93d8 60%, #f3e5f5 80%, #ce93d8 100%);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(156, 39, 176, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(186, 104, 200, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(225, 190, 231, 0.1) 0%, transparent 55%);
    position: relative;
}

#sdg::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 100 100"><circle cx="50" cy="50" r="8" fill="none" stroke="rgba(156,39,176,0.08)" stroke-width="1"/><circle cx="50" cy="50" r="4" fill="rgba(186,104,200,0.1)"/><text x="50" y="55" text-anchor="middle" font-size="3" fill="rgba(156,39,176,0.12)">SDG</text></svg>');
    pointer-events: none;
}

#team {
    border-top-color: #00bcd4;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 25%, #e0f7fa 50%, #b2ebf2 75%, #e0f7fa 100%);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(0, 188, 212, 0.06) 35px, rgba(0, 188, 212, 0.06) 70px),
        radial-gradient(circle at 30% 30%, rgba(77, 208, 225, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 70% 70%, rgba(128, 222, 234, 0.12) 0%, transparent 45%);
    position: relative;
}

#team::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 100 100"><circle cx="25" cy="25" r="3" fill="rgba(0,188,212,0.08)"/><circle cx="75" cy="25" r="3" fill="rgba(0,188,212,0.08)"/><circle cx="50" cy="75" r="3" fill="rgba(0,188,212,0.08)"/><path d="M25,25 L75,25 M50,25 L50,75" stroke="rgba(77,208,225,0.1)" stroke-width="1"/></svg>');
    pointer-events: none;
}

#contact {
    border-top-color: #607d8b;
    background: linear-gradient(135deg, #eceff1 0%, #b0bec5 20%, #eceff1 40%, #b0bec5 60%, #eceff1 80%, #b0bec5 100%);
    background-image:
        radial-gradient(circle at 40% 60%, rgba(96, 125, 139, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 60% 40%, rgba(120, 144, 156, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(144, 164, 174, 0.1) 0%, transparent 65%);
    position: relative;
}

#contact::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 100 100"><rect x="20" y="20" width="60" height="60" rx="5" fill="none" stroke="rgba(96,125,139,0.08)" stroke-width="1"/><circle cx="35" cy="35" r="2" fill="rgba(120,144,156,0.1)"/><circle cx="65" cy="65" r="2" fill="rgba(120,144,156,0.1)"/><path d="M35,35 L65,65 M35,65 L65,35" stroke="rgba(96,125,139,0.06)" stroke-width="1"/></svg>');
    pointer-events: none;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
}

/* Intro Section */
#intro {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    position: relative;
}

#intro h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

#intro p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

#intro p:last-child {
    margin-bottom: 0;
}

#intro strong {
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 1.5rem;
}

#about h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 3rem;
}

#gallery h2 {
    color: #e65100;
    border-bottom: 3px solid #ff7043;
}

#outcomes-impact h2 {
    color: #1565c0;
    border-bottom: 3px solid #42a5f5;
}

#change h2 {
    color: #f57c00;
    border-bottom: 3px solid #ffb74d;
}

#stats h2 {
    color: #7b1fa2;
    border-bottom: 3px solid #ba68c8;
}

#testimonials h2 {
    color: #2e7d32;
    border-bottom: 3px solid #66bb6a;
}

#sustainability h2 {
    color: #5d4037;
    border-bottom: 3px solid #8d6e63;
}

#donation h2 {
    color: #c2185b;
    border-bottom: 3px solid #e91e63;
}

#sdg h2 {
    color: #7b1fa2;
    border-bottom: 3px solid #ab47bc;
}

#team h2 {
    color: #00695c;
    border-bottom: 3px solid #26a69a;
}

#contact h2 {
    color: #37474f;
    border-bottom: 3px solid #607d8b;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Donation */
.donate-btn {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.mpesa-donate {
    text-align: center;
    margin-top: 1rem;
}

#mpesa-number {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.copy-feedback {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

/* SDG */
.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sdg-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sdg-item:hover {
    transform: translateY(-5px);
}

.sdg-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.sdg-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.sdg-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Team */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.team-member {
    text-align: center;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #00bcd4;
}

.team-member h3 {
    margin: 0.5rem 0;
    color: #006064;
}

.team-member p {
    color: #004d40;
    font-style: italic;
}

/* Contact */
.contact-container {
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color);
}

/* About Section */
#about {
    border-top-color: #2e7d32;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

.about-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.about-section ul {
    padding-left: 1.5rem;
}

.about-section li {
    margin-bottom: 0.5rem;
    position: relative;
}

.about-section li::before {
    content: '🌱';
    position: absolute;
    left: -1.5rem;
    top: 0;
}

.map-container {
    margin-top: 1rem;
    text-align: center;
}

/* Programs Section */
#programs .about-section ul {
    list-style: none;
    padding-left: 0;
}

#programs .about-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 400;
}

#programs .about-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

#programs .about-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.map-container iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Flagship Section */
#flagship {
    background: rgba(255, 255, 255, 0.9), url('1.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    text-align: center;
    padding: 4rem 1.5rem;
    position: relative;
}

#flagship h2, #flagship p, #flagship .btn {
    position: relative;
    z-index: 2;
}

#flagship h2 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

#flagship p {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #333333;
}

/* Highlights Section */
#highlights {
    padding: 3rem 1.5rem;
}

#highlights h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.highlight-card h3, .highlight-card p, .highlight-card .btn {
    position: relative;
    z-index: 2;
}

.highlight-card h3 {
    color: #000000;
}

.highlight-card p {
    color: #333333;
}

.highlight-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.highlight-card:nth-child(1) {
    background: rgba(255, 255, 255, 0.99), url('2.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.highlight-card:nth-child(2) {
    background: rgba(255, 255, 255, 0.99), url('3.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.highlight-card:nth-child(3) {
    background: rgba(255, 255, 255, 0.99), url('4.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.highlight-card:nth-child(4) {
    background: rgba(255, 255, 255, 0.99), url('5.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white !important;
    padding: 3rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    color: white !important;
}

/* Contact Section */
#contacts {
    text-align: center;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Statistics Section */
#statistics {
    background: var(--bg-color);
    padding: 3rem 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* Partners Section */
#partners {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(49, 130, 206, 0.05) 100%);
}

#partners form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#partners textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

#partners textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

#partners button {
    align-self: flex-start;
}

/* Programs Section */
#programs {
    background: var(--bg-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.program-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.program-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.program-card li:last-child {
    border-bottom: none;
}

#programs .btn {
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .map-container iframe {
        height: 300px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

/* Tablet and Desktop Adjustments */
@media (min-width: 768px) {
    main {
        padding: 3rem 2rem 4rem;
    }

    .stat-card {
        width: 28%;
    }

    #hero h1 {
        font-size: 3.5rem;
    }

    #hero p {
        font-size: 1.5rem;
    }

    .team-member {
        width: 30%;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .about-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Color Changing Beauty Section */
#color-showcase {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.color-changing-bg {
    height: 300px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dda0dd, #98d8c8);
    background-size: 400% 400%;
    animation: colorShift 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.color-changing-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: sparkle 4s ease-in-out infinite alternate;
}

@keyframes colorShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes sparkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.color-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.color-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.color-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes textGlow {
    0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
    100% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 2px 2px 4px rgba(0,0,0,0.3); }
}

.color-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.color-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    animation: dotBounce 2s ease-in-out infinite;
}

.color-dots span:nth-child(1) { animation-delay: 0s; }
.color-dots span:nth-child(2) { animation-delay: 0.2s; }
.color-dots span:nth-child(3) { animation-delay: 0.4s; }
.color-dots span:nth-child(4) { animation-delay: 0.6s; }
.color-dots span:nth-child(5) { animation-delay: 0.8s; }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.2); }
}

/* Agriculture Gallery Section */
#agri-gallery {
    border-top-color: #2e7d32;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 50%, #f1f8e9 100%);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(76, 175, 80, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(129, 199, 132, 0.08) 0%, transparent 40%);
    padding: 4rem 2rem;
}

#agri-gallery h2 {
    color: #2e7d32;
    border-bottom: 3px solid #4caf50;
    text-align: center;
    margin-bottom: 1rem;
}

#agri-gallery > p {
    text-align: center;
    color: #558b2f;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.agri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.agri-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.agri-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.agri-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.agri-item:hover img {
    transform: scale(1.1);
}

.agri-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.agri-item:hover .agri-overlay {
    transform: translateY(0);
}

.agri-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Beautiful Title Showcase Section */
#title-showcase {
    padding: 6rem 2rem;
    background: linear-gradient(135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%);
    background-size: 400% 400%;
    animation: titleGradientShift 12s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes titleGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.title-container {
    text-align: center;
    color: white;
    position: relative;
    z-index: 3;
    max-width: 1000px;
    margin: 0 auto;
}

.main-title {
    animation: titleFadeInUp 1.5s ease-out;
}

.primary-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #ffd700, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleRainbow 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    line-height: 1.1;
}

@keyframes titleRainbow {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.decoration-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

.decoration-dot {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes lineGlow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.secondary-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleFadeInUp 1.5s ease-out 0.5s both;
    line-height: 1.3;
}

@keyframes titleFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    animation: floatAround 20s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 215, 0, 0.3));
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
    background: linear-gradient(45deg, rgba(255, 105, 180, 0.3), rgba(255, 255, 255, 0.2));
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 10s;
    background: linear-gradient(45deg, rgba(0, 191, 255, 0.3), rgba(255, 255, 255, 0.2));
}

.shape-4 {
    width: 30px;
    height: 30px;
    top: 40%;
    right: 25%;
    animation-delay: 15s;
    background: linear-gradient(45deg, rgba(50, 205, 50, 0.3), rgba(255, 255, 255, 0.2));
}

.shape-5 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 30%;
    animation-delay: 7s;
    background: linear-gradient(45deg, rgba(255, 69, 0, 0.3), rgba(255, 255, 255, 0.2));
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, -60px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(-40px, -20px) rotate(270deg) scale(1.05);
    }
}

.color-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: center bottom;
}

.wave-1 {
    animation: waveFlow 8s ease-in-out infinite;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 215, 0, 0.05));
}

.wave-2 {
    animation: waveFlow 8s ease-in-out infinite 2s;
    background: linear-gradient(45deg, rgba(255, 105, 180, 0.08), rgba(255, 255, 255, 0.05));
}

.wave-3 {
    animation: waveFlow 8s ease-in-out infinite 4s;
    background: linear-gradient(45deg, rgba(0, 191, 255, 0.08), rgba(255, 255, 255, 0.05));
}

@keyframes waveFlow {
    0%, 100% {
        transform: scaleY(1) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1.2) translateX(50px);
        opacity: 0.6;
    }
}

/* Scroll-triggered Fade-in Animations */
.fade-in-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(2px);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: blur(2px);
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* Stagger animation for multiple elements */
.fade-in-left:nth-child(odd) {
    transition-delay: 0.15s;
}

.fade-in-right:nth-child(even) {
    transition-delay: 0.25s;
}

/* Enhanced fade-in for gallery items with bounce effect */
.gallery img {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery img:hover {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Smooth loading animation for images */
img {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
    animation: imageLoad 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes imageLoad {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

    .primary-title {
        font-size: 2.5rem;
    }

    .secondary-title {
        font-size: 1.5rem;
    }

    .decoration-line {
        width: 50px;
    }

    #title-showcase {
        padding: 4rem 1rem;
        min-height: 50vh;
    }

/* Staggered Reveal Animation */
@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.about-section {
    animation: revealUp 400ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 0.1s) both;
}

.about-content .about-section:nth-child(1) { --i: 0; }
.about-content .about-section:nth-child(2) { --i: 1; }
.about-content .about-section:nth-child(3) { --i: 2; }
.about-content .about-section:nth-child(4) { --i: 3; }
.about-content .about-section:nth-child(5) { --i: 4; }

@media (prefers-reduced-motion: reduce) {
    .about-section {
        animation: fadeIn 400ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 0.1s) both;
    }
}

/* Staggered Reveal Animation */
@keyframes staggeredReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (prefers-reduced-motion: reduce) {
    .staggered-reveal {
        animation: fadeIn 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94) calc(var(--i) * 0.1s) both;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }

    .container {
        padding: 0.5rem 3rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 5rem 3rem 5rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    #hero {
        padding: 8rem 3rem 6rem;
        min-height: 70vh;
        background-attachment: fixed;
    }

    #hero h1 {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
        animation: fadeInUp 1s ease-out;
    }

    #hero p {
        font-size: 1.5rem;
        animation: fadeInUp 1.2s ease-out 0.3s both;
    }

    .about-content {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 3rem;
    }

    .highlight-card {
        padding: 2.5rem;
    }

    .about-section h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }

    .gallery img {
        height: 300px;
        border-radius: 16px;
    }

    .team-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .team-member {
        padding: 2rem;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .team-member img {
        width: 120px;
        height: 120px;
        border-radius: 50%;
    }

    .sdg-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .sdg-item {
        padding: 2rem;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .sdg-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem 3rem;
    }
}

/* Projects Page Styles */
#title-page {
    padding: 120px 2rem 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.title-container {
    max-width: 800px;
    margin: 0 auto;
}

.title-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.project-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.project-details h2, .project-details h3 {
    color: white;
    margin-bottom: 1rem;
}

.project-details ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.project-details li {
    margin-bottom: 0.5rem;
}

main section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

main section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

main section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

main section h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:nth-child(even) {
    background: rgba(49, 130, 206, 0.05);
}

tr:hover td {
    background: rgba(49, 130, 206, 0.1);
}

.photo-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.photo-gallery figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.photo-gallery figure:hover {
    transform: scale(1.05);
}

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-gallery figcaption {
    padding: 1rem;
    background: var(--card-bg);
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

@media (min-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    #title-page {
        padding: 120px 2rem 4rem;
    }

    .title-container h1 {
        font-size: 2.5rem;
    }

    main section {
        padding: 4rem 2rem;
    }
}