/* 
  Keenheart Foundation - Premium CSS Foundation
  Design: Modern, Clean, NGO-focused
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
    --primary: #059669;
    /* Emerald 600 */
    --primary-dark: #047857;
    --primary-light: #34d399;
    --secondary: #10b981;
    /* Teal 500 */
    --accent: #d97706;
    /* Amber 600 */
    --dark: #0f172a;
    /* Slate 900 */
    --gray-dark: #334155;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.bg-light {
    background-color: var(--gray-light);
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #b45309;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeIn 0.8s ease forwards;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

header.header-hide {
    transform: translateY(-100%);
}

.navbar {
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -1px;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    margin-left: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: 80px;
    /* Offset for fixed header */
    position: relative;
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--dark);
    /* Prevents white flashes */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 2s ease-in-out;
}

.slide:nth-child(1) {
    animation: kenBurns 30s infinite alternate, crossfade 24s infinite;
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation: kenBurns 30s infinite alternate-reverse, crossfade 24s infinite;
    animation-delay: 8s;
}

.slide:nth-child(3) {
    animation: kenBurns 30s infinite alternate, crossfade 24s infinite;
    animation-delay: 16s;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.4);
    }

    /* Highly visible zoom effect */
}

@keyframes crossfade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    38% {
        opacity: 1;
    }

    43% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        filter: blur(10px);
    }

    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    33% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    40% {
        opacity: 0;
        transform: translateY(-40px) scale(1.1);
        filter: blur(5px);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.1);
        filter: blur(5px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 1.5rem;
    opacity: 0;
    margin: 0 auto;
    animation: textFadeIn 24s infinite;
}

.slide:nth-child(1) .hero-content {
    animation-delay: 0s;
}

.slide:nth-child(2) .hero-content {
    animation-delay: 8s;
}

.slide:nth-child(3) .hero-content {
    animation-delay: 16s;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns .btn {
    margin: 0 0.5rem;
}



/* Programs Section */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 3rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mt-2 {
    margin-top: 1.5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

/* Video Section */
.video-section {
    padding: 6rem 0;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background: var(--dark);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 6rem 0;
}

.cta h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

footer h3,
footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

footer p {
    opacity: 0.7;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 5px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1.2rem;
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-btns .btn {
        margin: 0.5rem;
        width: auto;
        display: inline-block;
    }

}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero-btns .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}