
/* Hope Foundation - style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}
html{scroll-behavior:smooth}
body{background:#f5f9f8;color:#333;line-height:1.6}
img{max-width:100%;display:block}
a{text-decoration:none}
ul{list-style:none}
.container{width:min(1200px,90%);margin:auto}

header{position:fixed;top:0;width:100%;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);z-index:999}
.navbar{display:flex;justify-content:space-between;align-items:center;padding:18px 5%;max-width:1200px;margin:auto}
.logo{font-size:1.8rem;font-weight:700;color:#12a05c}
.logo i{margin-right:.4rem}
.nav-links{display:flex;gap:2rem}
.nav-links a{color:#333;font-weight:500}
.nav-links a:hover,.active{color:#12a05c}

.hero{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:3rem;padding:120px 5% 60px;max-width:1200px;margin:auto}
.hero h1{font-size:3.5rem;color:#124b35}
.hero p{margin:1rem 0 2rem;color:#666;font-size:1.1rem}
.hero-image img{border-radius:18px;box-shadow:0 20px 40px rgba(0,0,0,.15)}
.hero-buttons{display:flex;gap:1rem}
.btn{display:inline-block;padding:14px 30px;background:#12a05c;color:#fff;border-radius:40px;font-weight:600;transition:.3s}
.btn:hover{transform:translateY(-3px);background:#0d844b}
.btn-outline{background:transparent;border:2px solid #12a05c;color:#12a05c}
.btn-outline:hover{background:#12a05c;color:#fff}

section{padding:80px 5%}
section h2{text-align:center;font-size:2.2rem;margin-bottom:2.5rem;color:#124b35}




.stats,.project-grid,.news-grid,.footer-content{display:grid;gap:1.5rem}
.stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.stat,.card,.news-card{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 8px 20px rgba(0,0,0,.08);transition:.3s}
.stat:hover,.card:hover,.news-card:hover{transform:translateY(-8px)}
.stat{text-align:center}
.stat h1{color:#12a05c;font-size:2.8rem}


.about-preview .container{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.about-preview img{border-radius:16px}




.project-grid,.news-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.card img,.news-card img{height:220px;object-fit:cover;border-radius:12px;margin-bottom:1rem}
.card h3,.news-card h3{margin-bottom:.7rem;color:#124b35}
.card a{color:#12a05c;font-weight:600}

.volunteer,.donation{background:linear-gradient(135deg,#12a05c,#0d844b);color:#fff;text-align:center}
.volunteer .btn,.donation .btn{background:#fff;color:#12a05c}

.testimonials{background:#eef8f3}
.testimonial{display:none;max-width:800px;margin:auto;text-align:center;font-size:1.2rem}
.testimonial.active{display:block}
.testimonial h4{margin-top:1rem;color:#12a05c}

footer{background:#173d2f;color:#fff;padding:50px 5% 20px}
.footer-content{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-bottom:2rem}
footer a{color:#d8f7e5}
footer i{font-size:1.4rem;margin-right:.7rem}
.copyright{text-align:center;border-top:1px solid rgba(255,255,255,.15);padding-top:1rem}

#topBtn{position:fixed;bottom:20px;right:20px;width:50px;height:50px;border:none;border-radius:50%;background:#12a05c;color:#fff;display:none;cursor:pointer}

@media(max-width:768px){
.nav-links{display:none}
.hero,.about-preview .container{grid-template-columns:1fr}
.hero{text-align:center}
.hero h1{font-size:2.5rem}
.hero-buttons{justify-content:center;flex-wrap:wrap}
}












/* ==========================================
   HERO SLIDER
========================================== */
.hero-slider{
   position:relative;
    width:100%;
    height:700px;
    overflow:hidden;
    border-radius:20px;
}

.slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity 1s ease;
}

.slide.active{
    opacity:1;
    z-index:2;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:contain;   /* shows the whole image */
    background:#fff;
}


/* Mobile */

@media(max-width:768px){

.slide img{
    height:350px;
}

.slider-btn{
    width:40px;
    height:40px;
    font-size:18px;
}

}






.hero-slider:empty {
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}





.hero-slider{
   position:relative;
    width:100%;
    height:700px;
    overflow:hidden;
    border-radius:20px; 
}

.slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .8s ease;
}

.slide.active{
    opacity:1;
    z-index:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.prev,
.next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.5);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    z-index:10;
}

.prev{left:20px;}
.next{right:20px;}



























.hero-text{
    opacity: 0;
    transform: translateY(120px);
    transition: all 1.2s ease;
}

.hero-text.show{
    opacity: 1;
    transform: translateY(0);
	
	
}







/* Container */
.about-preview .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}

/* Base states before reaching the section */
.about-preview .left {
  opacity: 0;
  transform: translateX(-100px); /* Off to the LEFT */
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.about-preview .right {
  opacity: 0;
  transform: translateX(100px); /* Off to the RIGHT */
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

/* Active states when scrolled into view */
.about-preview .left.animate-in,
.about-preview .right.animate-in {
  opacity: 1;
  transform: translateX(0); /* Moves to natural position */
}












/* Base styles for slide image */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1); /* Default starting state */
}

/* Active slide continuous zoom/pan movement */
.slide.active img {
  animation: kenBurnsZoom 6s ease-in-out infinite alternate;
}

/* Keyframe animation for continuous smooth motion */
@keyframes kenBurnsZoom {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-10px, -5px); /* Slowly zooms in and moves slightly */
  }
}






.gallery-section,
.video-section{
    padding:80px 8%;
}

.gallery-section h2,
.video-section h2{
    text-align:center;
    margin-bottom:40px;
    font-size:40px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:15px;
    cursor:pointer;
}

.gallery-item img{
    width:100%;
    height:280px;
    object-fit:cover;
    transition:.5s;
}

.gallery-item:hover img{
    transform:scale(1.1);
}

.overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    opacity:0;
    transition:.4s;
}

.gallery-item:hover .overlay{
    opacity:1;
}

.video-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.video-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.video-card h3{
    padding:20px;
    text-align:center;
}



/* CONTACT PAGE */

.contact-section{

    padding:90px 8%;

}

.contact-container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:50px;

    align-items:flex-start;

}

.contact-info{

    background:#fff;

    padding:40px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.contact-info h2{

    margin-bottom:20px;

    color:#14532d;

}

.contact-info p{

    color:#555;

    line-height:1.8;

}

.contact-info i{

    color:#0fbf72;

    margin-right:10px;

}

.social-links{

    margin-top:30px;

}

.social-links a{

    display:inline-block;

    width:45px;

    height:45px;

    background:#0fbf72;

    color:#fff;

    text-align:center;

    line-height:45px;

    border-radius:50%;

    margin-right:10px;

    transition:.4s;

}

.social-links a:hover{

    background:#14532d;

    transform:translateY(-5px);

}

.contact-form{

    background:#fff;

    padding:40px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.contact-form h2{

    margin-bottom:20px;

    color:#14532d;

}

.contact-form input,

.contact-form textarea{

    width:100%;

    padding:15px;

    margin-bottom:20px;

    border:1px solid #ddd;

    border-radius:8px;

    font-size:16px;

}

.contact-form textarea{

    resize:none;

}

.contact-form button{

    border:none;

    cursor:pointer;

}

.map-section{

    padding:80px 8%;

}

.map-section h2{

    text-align:center;

    margin-bottom:30px;

    font-size:38px;

    color:#14532d;

}

.map{

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

}

@media(max-width:900px){

.contact-container{

grid-template-columns:1fr;

}

}








/* Initial hidden state */
.right,
.stat {
    opacity: 0;
    transition: all 1s ease;
}

/* Who we are: Right → Left */
.right {
    transform: translateX(120px);
}

/* First card: Right → Left */
.stat:first-child {
    transform: translateX(120px);
}

/* Second card: Left → Right */
.stat:last-child {
    transform: translateX(-120px);
}

/* Visible state */
.right.show,
.stat.show {
    opacity: 1;
    transform: translateX(0);
}

















.research-title {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1.5s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.gallery-title {
    display: inline-block;
    animation: zoomText 2s ease-in-out infinite;
}

@keyframes zoomText {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}








.card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    border: 3px solid transparent;
    transition: all .4s ease;
    animation: glowCard 2.5s ease-in-out infinite;
}

.card:nth-child(2) {
    animation-delay: .5s;
}

.card:nth-child(3) {
    animation-delay: 1s;
}

.card:hover {
    animation-play-state: paused;
    box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

.card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: #fff;
    padding: 15px;
}

.card h3 {
    padding: 18px 20px 10px;
    color: #0b7d3b;
}

.card p {
    padding: 0 20px;
    line-height: 1.7;
    color: #555;
}

.card a {
    display: inline-block;
    margin: 20px;
    padding: 10px 22px;
    background: #0fbf72;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: .3s;
}

.card a:hover {
    background: #066634;
}

@keyframes glowCard {
    0% {
        border-color: #0fbf72;
        box-shadow: 0 8px 25px rgba(0,0,0,.12);
    }

    50% {
        border-color: #12d97f;
        box-shadow: 0 0 35px rgba(18,217,127,.8);
    }

    100% {
        border-color: #0b7d3b;
        box-shadow: 0 8px 25px rgba(0,0,0,.12);
    }
}



.video-thumbnail{
    position:relative;
    cursor:pointer;
}

.video-thumbnail img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:10px;
}

.play-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:70px;
    height:70px;
    background:rgba(255,0,0,.8);
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
}