:root {

    --primary-green: #1A3C34;

    --terracotta-red: #C14438;

    --creamy-beige: #FDF6F0;

    --olive-green: #D4E4D8;

    --deep-forest: #0F2F2A;

    --saffron-yellow: #FFC107;

    --text-dark: #333;

    --text-light: #F5F5F5;

    --pale-olive: #E8F0E8;

    --soft-terracotta: #F4D9D6;

    --light-saffron: #FFF8E1;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Open Sans', Arial, sans-serif;

}



body {

    line-height: 1.6;

    color: var(--text-dark);

    background-color: var(--creamy-beige);

    overflow-x: hidden;

    animation: changeBackground 8s infinite;

    transition: background-color 0.5s ease;

}



/* Background color animation */

@keyframes changeBackground {

    0%, 25% { background-color: var(--creamy-beige); }

    25.01%, 50% { background-color: var(--pale-olive); }

    50.01%, 75% { background-color: var(--soft-terracotta); }

    75.01%, 100% { background-color: var(--light-saffron); }

}



/* Other animations */

@keyframes fadeInUp {

    from { opacity: 0; transform: translateY(20px); }

    to { opacity: 1; transform: translateY(0); }

}



@keyframes fadeSlide {

    0% { opacity: 1; }

    20% { opacity: 1; }

    25% { opacity: 0; }

    95% { opacity: 0; }

    100% { opacity: 1; }

}



header {

    background: linear-gradient(45deg, var(--primary-green), var(--terracotta-red));

    color: var(--text-light);

    padding: 1rem;

    position: sticky;

    top: 0;

    z-index: 100;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

}



.navbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    max-width: 1200px;

    margin: 0 auto;

}



.logo {

    display: flex;

    align-items: center;

    transition: transform 0.3s;

}



.logo:hover {

    transform: scale(1.05);

}



.logo img {

    max-width: 120px;

    height: auto;

    display: block;

}



.logo h1 {

    font-family: 'Montserrat', sans-serif;

    font-size: 1.5rem;

    margin-left: 0.5rem;

}



.nav-links {

    display: flex;

    list-style: none;

}



.nav-links li {

    margin-left: 1.5rem;

}



.nav-links a {

    color: var(--text-light);

    text-decoration: none;

    font-size: 1rem;

    font-weight: 600;

    transition: color 0.3s;

}



.nav-links a:hover {

    color: var(--saffron-yellow);

}



.hamburger {

    display: none;

    font-size: 1.5rem;

    cursor: pointer;

}



.hero {

    background: linear-gradient(rgba(26, 60, 52, 0.8), rgba(193, 68, 56, 0.8)), url('https://via.placeholder.com/1200x600?text=Kenyan+Farm') no-repeat center/cover;

    background-attachment: fixed;

    text-align: center;

    padding: 6rem 1rem;

    color: var(--text-light);

    position: relative;

    overflow: hidden;

}



.hero::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: url('https://www.transparenttextures.com/patterns/leaf.png') repeat;

    opacity: 0.1;

}



.hero h1 {

    font-family: 'Montserrat', sans-serif;

    font-size: 3rem;

    margin-bottom: 1rem;

    animation: fadeInUp 1s ease-out;

}



.hero p {

    font-size: 1.2rem;

    margin-bottom: 2rem;

    animation: fadeInUp 1.2s ease-out;

}



.btn {

    background: var(--primary-green);

    color: var(--text-light);

    padding: 0.75rem 2rem;

    text-decoration: none;

    border-radius: 50px;

    font-weight: 600;

    display: inline-block;
    border: none;

    transform: skew(-10deg);

    transition: background 0.3s, transform 0.3s;

    animation: fadeInUp 1.4s ease-out;

}



.btn:hover {

    background: var(--terracotta-red);

    transform: skew(-10deg) scale(1.1);

}



section {

    padding: 4rem 1rem;

    max-width: 1200px;

    margin: 0 auto;

    position: relative;

}



section:nth-child(even) {

    background-color: var(--olive-green);

}



section h2 {

    font-family: 'Montserrat', sans-serif;

    text-align: center;

    margin-bottom: 2rem;

    font-size: 2.5rem;

    color: var(--primary-green);

    position: relative;

    animation: fadeInUp 1s ease-out;

}



section h2::after {

    content: '';

    display: block;

    width: 50px;

    height: 3px;

    background: var(--saffron-yellow);

    margin: 0.5rem auto;

}



.services-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}



.service-card {

    background-color: var(--creamy-beige);

    padding: 1.5rem;

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s;

    animation: fadeInUp 1.2s ease-out;

}



.service-card:hover {

    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);

}



.service-card img {

    max-width: 100%;

    height: auto;

    border-radius: 8px;

    margin-bottom: 1rem;

    aspect-ratio: 1/1;

    object-fit: cover;

    display: block;

}



.slider-section, .portfolio-slider {

    position: relative;

    overflow: hidden;

    background-color: var(--creamy-beige);

}



.slider, .portfolio-slides {

    display: flex;

    width: 100%;

    height: 50vh;

    position: relative;

}



.slide, .portfolio-slide {

    position: absolute;

    width: 100%;

    height: 100%;

    opacity: 0;

    animation: fadeSlide 20s infinite;

}



.slide:nth-child(1), .portfolio-slide:nth-child(1) { animation-delay: 0s; }

.slide:nth-child(2), .portfolio-slide:nth-child(2) { animation-delay: 5s; }

.slide:nth-child(3), .portfolio-slide:nth-child(3) { animation-delay: 10s; }

.portfolio-slide:nth-child(4) { animation-delay: 15s; }



.slide img, .portfolio-slide img {

    width: 100%;

    height: 100%;

    aspect-ratio: 3/2;

    object-fit: cover;

    display: block;

    loading: lazy;

}



.slide-overlay, .portfolio-overlay {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    color: var(--text-light);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transition: opacity 0.3s ease;

    padding: 1rem;

    text-align: center;

}



.slide:hover .slide-overlay, .portfolio-slide:hover .portfolio-overlay {

    opacity: 1;

}



.slider-nav, .portfolio-nav {

    position: absolute;

    top: 50%;

    width: 100%;

    display: flex;

    justify-content: space-between;

    transform: translateY(-50%);

}



.slider-nav button, .portfolio-nav button {

    background: rgba(0, 0, 0, 0.5);

    color: var(--text-light);

    border: none;

    padding: 0.5rem 1rem;

    cursor: pointer;

    font-size: 1.2rem;

    transition: background 0.3s;

}



.slider-nav button:hover, .portfolio-nav button:hover {

    background: var(--terracotta-red);

}



.slider-dots, .portfolio-dots {

    text-align: center;

    margin-top: 1rem;

}



.dot {

    display: inline-block;

    width: 12px;

    height: 12px;

    background: #ccc;

    border-radius: 50%;

    margin: 0 6px;

    cursor: pointer;

    transition: background 0.3s, transform 0.3s;

}



.dot.active {

    background: var(--saffron-yellow);

    transform: scale(1.3);

}



.register-form {

    max-width: 500px;

    margin: 0 auto;

    background-color: var(--creamy-beige);

    padding: 2rem;

    border-radius: 12px;

    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);

    border: 2px solid transparent;

    background: linear-gradient(var(--creamy-beige), var(--creamy-beige)) padding-box, linear-gradient(45deg, var(--primary-green), var(--terracotta-red)) border-box;

    animation: fadeInUp 1.2s ease-out;

}



.register-form label {

    display: block;

    margin: 0.5rem 0 0.2rem;

    font-weight: 600;

}



.register-form input,

.register-form select {

    width: 100%;

    padding: 0.75rem;

    margin-bottom: 1rem;

    border: 1px solid #ccc;

    border-radius: 8px;

    transition: border-color 0.3s, box-shadow 0.3s;

}



.register-form input:focus,

.register-form select:focus {

    border-color: var(--primary-green);

    box-shadow: 0 0 8px rgba(26, 60, 52, 0.3);

    outline: none;

}



.social-links {

    text-align: center;

    margin: 2rem 0;

    animation: fadeInUp 1.4s ease-out;

}



.social-links p {

    margin-bottom: 1rem;

}



.social-links a {

    margin: 0 0.5rem;

    display: inline-block;

    width: 40px;

    height: 40px;

    background: var(--olive-green);

    border-radius: 50%;

    position: relative;

    overflow: hidden;

    transition: transform 0.3s;

}



.social-links a::before {

    content: '';

    position: absolute;

    top: 50%;

    left: 50%;

    width: 0;

    height: 0;

    background: rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    transform: translate(-50%, -50%);

    transition: width 0.4s, height 0.4s;

}



.social-links a:hover::before {

    width: 100px;

    height: 100px;

}



.social-links a:hover {

    transform: scale(1.1);

}












/*slide*/


.slideshow-container {
max-width: 1000px;
margin: 20px auto;
margin-top: 10%;
display: flex;
gap: 20px;
z-index: 1;
position: relative;

}
.slideshow img {
width: 350px;
height: 300px;
object-fit: cover;
display: block;
}
.slideshow .pig {
width: 350px;
height: 300px;
object-fit: cover;
display: block;
}

.slideshow {
height: 300px;
width: 350px;
object-fit: cover;
display: block;
overflow: hidden;
border-radius: 20px;
transition: scale 0.3s ease;
cursor: pointer;

}
.slideshow:hover {
scale: 1.03;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.slide {
display: none;
position: relative;
}
.slide img {
width: 100%;
height: auto;
border-radius: 10px;
}
.description {
display: none;
position: absolute;
bottom: 20px;
left: 20px;
right: 20px;
margin-bottom: 30%;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px;
border-radius: 5px;
font-size: 16px;
}
.slide:hover .description {
display: block;
}
.dots {
text-align: center;
padding: 10px 0;
}
.dot {
height: 10px;
width: 10px;
margin: 0 5px;
background-color: #717171;
border-radius: 50%;
display: inline-block;
cursor: pointer;
transition: background-color 0.3s;
}
.dot.active {
background-color: #bbb;
}
.category {
margin-bottom: 40px;
}
.category h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}

.title {
text-align: center;
justify-content: center;
margin-top: 10%;
}
.title h2 {
font-size: 20px;
color: #ffffff;
}
.title p {
font-size: 17px;
}











.social-links img {

    width: 24px;

    height: 24px;

    display: block;

    margin: 8px auto;

}



.whatsapp-contact {

    text-align: center;

    background-color: var(--creamy-beige);

    padding: 3rem 1rem;

    animation: fadeInUp 1.2s ease-out;

}



.whatsapp-contact p {

    font-size: 1.2rem;

    margin-bottom: 1.5rem;

}



footer {

    

    

    text-align: center;
    background-color: rgb(15, 15, 15);
    color: white;

    padding: 2rem 1rem;

    position: relative;

    overflow: hidden;

}



footer::before {

    content: '';

    position: absolute;

    top: -50px;

    left: 0;

    width: 100%;

    height: 50px;

    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23D4E4D8" d="M0,0 C360,100 1080,100 1440,0 L1440,100 L0,100 Z"/></svg>') no-repeat center/cover;

}



/* Responsive Design */

@media (max-width: 768px) {

    .nav-links {

        display: none;

        flex-direction: column;

        position: absolute;

        top: 60px;

        left: 0;

        background: var(--primary-green);

        width: 100%;

        padding: 1rem;

    }



    .nav-links.active {

        display: flex;

    }



    .nav-links li {

        margin: 0.5rem 0;

    }



    .hamburger {

        display: block;

    }



    .hero {

        padding: 4rem 1rem;

        background-attachment: scroll;

    }



    .hero h1 {

        font-size: 2rem;

    }



    .hero p {

        font-size: 1rem;

    }



    .services-grid {

        grid-template-columns: 1fr;

    }



    .slide img, .portfolio-slide img {

        max-height: 30vh;

    }



    .slide-overlay, .portfolio-overlay {

        font-size: 0.9rem;

    }



    .service-card img {

        max-height: 200px;

    }



    .social-links img {

        width: 20px;

        height: 20px;

        margin: 10px auto;

    }



    .social-links a {

        width: 36px;

        height: 36px;

    }



    .whatsapp-contact p {

        font-size: 1rem;

    }

}



@media (max-width: 480px) {

    .logo img {

        max-width: 100px;

    }



    .logo h1 {

        font-size: 1.2rem;

    }



    .slide img, .portfolio-slide img {

        max-height: 25vh;

    }



    .service-card img {

        max-height: 150px;

    }



    .social-links img {

        width: 18px;

        height: 18px;

        margin: 9px auto;

    }



    .social-links a {

        width: 32px;

        height: 32px;

    }



    .whatsapp-contact p {

        font-size: 0.9rem;

    }

}

/*sustainble farming*/








#practices {
padding: 2rem;
text-align: center;

}

#practices h2 {
font-size: 2.5rem;
color: var(--green);
margin-bottom: 1rem;
}

#practices p {
font-size: 1.2rem;
color: var(--text);
margin-bottom: 2rem;
}

.practice-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 2rem;
}

.card {
background-color: rgba(255,255,255,0.1);
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s;
}

.card:hover {
transform: scale(1.05);
}

.card img {
width: 100%;
height: 180px;
object-fit: cover;
transition: opacity 0.3s;
}

.card h3 {
font-size: 1.6rem;
color: var(--green);
margin: 1rem;
}

.card p {
font-size: 1rem;
color: var(--text);
margin: 0 1rem 1rem;
}

.card a {
display: block;
text-align: center;
background-color: var(--accent);
color: white;
padding: 0.7rem;
text-decoration: none;
border-radius: 0 0 8px 8px;
transition: background-color 0.3s;
}

.card a:hover {
background-color: var(--green);
}


/*Articles*/

#articles {
padding: 2rem;
background-color: var(--beige);
cursor: pointer;
}

#articles h2 {
font-size: 2.5rem;
color: var(--green);
margin-bottom: 1rem;
}

#articles p {
font-size: 1.2rem;
color: var(--text);
margin-bottom: 2rem;
}

#articles.article-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 2rem;
}

#articles.card {
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: 0.5s ease;
}

#articles .card:hover {
scale: 1.001;
}

#articles .card img {
width: 100%;
height: 180px;
object-fit: cover;
transition: opacity 0.3s;
}

#articles .card h3 {
font-size: 1.6rem;
color: var(--green);
margin: 1rem;
}

#articles.card p {
font-size: 1rem;
color: var(--text);
margin: 0 1rem 1rem;
}
#articles a {
color: rgb(51, 49, 49);
}

#articles.card a {
display: block;
text-align: center;
background-color: var(--accent);
color: black;
padding: 0.7rem;
text-decoration: none;
border-radius: 0 0 8px 8px;
transition: background-color 0.3s;
}


/*team*/



.team-section {
margin-top: 50px;
margin-bottom: 1em;
}

.team-section h3 {
font-size: 1.8em;
margin-bottom: 30px;
color: aliceblue;
}

.team-wrapper {
display: flex;
justify-content: center;
gap: 30px;
flex-wrap: wrap;
}

.team-card {
background-color: rgba(255,255,255,0.1);
padding: 20px;
border-radius: 15px;
width: 250px;
text-align: center;
box-shadow: 0 6px 15px rgba(0,0,0,0.2);
transition: transform 0.3s ease;
}

.team-card:hover {
transform: scale(1.05);
}

.team-card img {
border-radius: 50%;
margin-top: 50px;
width: 100px;
height: 100px;
object-fit: cover;
}

.team-info h4 {
margin: 10px 0 5px;
color: rgb(22, 23, 24);
}

.about-content p {
max-width: 700px;
margin: 10px auto;
font-size: 1.1em;
line-height: 1.6;
}
.team-info a {
padding: 5px 60px;
color: white;
border-radius: 4px;
background-color: rgba(240, 248, 255, 0.863);
border: none;
transition: 0.4s ease;

}
.team-info a:hover {
box-shadow: 5px 10px 5px rgba(0, 0, 0, 0.2);
background-color: #01eeff;
}
.team-card a {
text-decoration: none;
color: whitesmoke;
background-color: #333;

}





/*social media*/



.social-media {
display: flex;
flex-direction: row;
gap: 20px;
margin-top: 10%;
margin-bottom: 5%;
text-align: center;
justify-content: center;
}

.social-media .soci {
height: 35px;
width: 48px;
margin-left: -2px;
}



.social-media .dot {
height: 50px;
width: 50px;
overflow: hidden;
border-radius: 50%;
border: 2px solid #01eeff;
background-color: #ccc;
display: flex;
place-items: center;
place-content: center;
cursor: pointer;
text-align: center;
align-items: center;
position: relative;
z-index: 2;
transition: all 0.3s ease;
}

.social-media .dot:hover {
animation: rotate 0.8s ease 1;
}

@keyframes rotate {
0%{
border-top-left-radius: 0;
transform: rotate(0deg);
border:solid #0056b3;
box-shadow: 3px 3px 5px black;
}
50%{


border:solid #00c853;
box-shadow: 3px 3px 5px #0056b3;
}
100%{
border-top-left-radius: 0;
transform: rotate(360deg);
border:solid #0056b3;
box-shadow: 3px 3px 5px #00c853;
}

}

.social-media .dot::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
height: 100%;
width: 100%;
background-color: #01eeff;
border-radius: 7px;
transform: translate(-50%, -50%) scale(0); 
opacity: 1; 
transition: all 0.3s ease; 
z-index: 1;
}

.social-media .dot:hover::before {
opacity: 0.2; 
height: 100%;
border-radius: 50%;
width: 100%;
background-color: #00c853;
transform: translate(-50%, -50%) scale(1); /* Scale to full size inside the dot */
}

#contact p {
text-align: center;
}


.team-section h3 {
color: black;
text-align: center;
}

.card a{
color: black;
}