body,
html {
    height: 100%;
    scroll-behavior: smooth;
    background-color: rgb(236, 219, 197);
}

/* Modern font */
body {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

h1 {
    margin-left: 50px;
    margin-bottom: 50px;
    font-family: bodoni;
    border-bottom: 3px solid purple;
    display: inline-block;
    padding-bottom: 10px;
}

h2 {
    margin-left: 100px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.navbar {
    transition: background-color 0.4s ease;
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}

.navbar img {
    height: 75px;
    width: auto;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.navbar-nav .nav-link {
    color: white;
    transition: color 0.4s ease;
    font-weight: bold;

}

.navbar.scrolled .nav-link {
    color: black;
}

.navbar.scrolled .navbar-brand {
    color: black;
}

.navbar-brand {
    color: white;
}

.navbar-nav .nav-link.active {
    border-bottom: 3px solid purple;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


section {
    padding: 50px 0;
}

#home {
    height: 100vh;
    background: url('agriculture.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.carousel-inner {
    max-width: 1200px;
    max-height: 600px;
    margin: auto;
}

.carousel-item {
    height: 600px;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image scales properly */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black;
}

#services,
#gallery {
    background-color: rgb(255, 255, 255);
}


#founders {
    text-align: center;
    padding: 40px;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.founder-profile {
    padding: 30px;
    background-color: rgb(235, 217, 188);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-profile img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.founder-details {
    text-align: left;
    flex: 1;
}

.founder-details h3 {
    margin: 0 0 10px 0;
}

.founder-details p {
    color: #666;
    margin: 0;
}

.reverse {
    flex-direction: row-reverse;
}

.reverse img {
    margin-left: 20px;
    margin-right: 0;
}

.founder-profile:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 0 3px #8BC34A,   /* green ring */
        0 8px 16px rgba(0, 0, 0, 0.2);  /* shadow */
    /* background: rgb(248, 229, 157); */
    background: rgb(211, 236, 171);
}

.founder-profile:hover img {
    transform: scale(1.1);
    box-shadow:0 0 0 3px #8BC34A,   /* green ring */
        0 8px 16px rgba(0, 0, 0, 0.2);  /* shadow */
}

.carousel-caption.centered-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-color: rgba(44, 5, 55, 0.332);
    color: rgb(48, 1, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-sizing: border-box;
}

footer {
    background-color: rgba(52, 10, 83, 0.5);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.company-services {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

.card {
    /* background: rgb(1,50,32);
background: linear-gradient(90deg, rgba(1,50,32,0.7232142857142857) 0%, rgba(53,94,59,0.829656862745098) 14%, rgba(188,184,138,1) 100%); */
    /* background: rgb(43,73,3);
background: linear-gradient(90deg, rgba(43,73,3,0.9136904761904762) 0%, rgba(245,175,145,1) 26%, rgba(218,247,124,0.9164915966386554) 100%); */
    /* background: rgb(43,73,3);
background: linear-gradient(90deg, rgba(43,73,3,1) 0%, rgba(235,222,204,1) 35%, rgba(253,238,66,0.6083683473389356) 100%); */
    background: rgb(209, 248, 157);
    background: linear-gradient(90deg, rgba(209, 248, 157, 1) 0%, rgba(235, 222, 204, 1) 73%, rgba(237, 187, 243, 1) 100%);
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-header {
    background-color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.card-content {
    padding: 10px;
    text-align: center;
}

.card-content h4 {
    margin-top: 0;
}

.card-content p {
    color: #333;
}


.company-lists {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.company-list {
    width: 45%;
}

.company {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.company a {
    text-decoration: underline;
    font-size: 1.2em;
    color: #4CAF50;
    font-weight: bold;
    transition: font-size 0.5s ease, color 0.5s ease;
}

.company p {
    margin: 5px 0 15px 0;
    font-size: 1em;
    color: #666;
}

.company a:hover {
    color: #8bc34a;
    font-size: 1.4em;
}

.logo-band {
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    object-fit: contain;
}


.company-logo img {
    width: 15%;
    aspect-ratio: 3/2;
    object-fit: contain;
}

.gallery-images img {
	height: auto;
	width: 100%;
	margin: 0;
}

/* Responsive gallery grid */
.gallery-images {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	padding: 0 30px 30px 30px;
}

@media (max-width: 1200px) {
	.gallery-images { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.gallery-images { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.gallery-images { grid-template-columns: 1fr; }
}

#contact {
    margin: 50px;
}

#contact h1 {
    text-align: left;
    color: #4CAF50;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    margin-bottom: 10px;
}

.contact-item svg {
    margin-right: 15px;
    fill: #4CAF50;
}

.contact-item p,
.contact-item a {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.contact-item a {
    color: #4CAF50;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.text-container {
    background-color: rgba(0, 0, 0, 0.5);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.25);
}


.animate-text {
    font-size: 2.5rem;
    opacity: 0;
    color: white;
    transform: translateY(100%);
    animation: slideUp 1s ease-out forwards;
}

/* CTA buttons */
.btn-cta {
    background: linear-gradient(90deg, #5e2b97, #8bc34a);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 300ms cubic-bezier(.2,.6,.2,1), box-shadow 300ms cubic-bezier(.2,.6,.2,1), filter 300ms;
}
.btn-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.btn-cta.secondary {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.35);
}

/* Animation */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateText {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 0;
        transform: translateY(-20px);
    }

    30% {
        opacity: 0;
        transform: translateY(20px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateText {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 0;
        transform: translateY(-20px);
    }

    30% {
        opacity: 0;
        transform: translateY(20px);
    }

    50% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateText {

    0%,
    20% {
        opacity: 1;
        transform: translateY(0);
    }

    25%,
    45% {
        opacity: 0;
        transform: translateY(-100%);
    }

    50%,
    70% {
        opacity: 1;
        transform: translateY(0);
    }

    75%,
    95% {
        opacity: 0;
        transform: translateY(100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.subheadings .subheading {
    font-family: Trattatello, fantasy;
    font-size: 48px;
    color: white;
    display: inline-block;
}

.changeable {
    display: inline-block;
    animation: rotateText 3s linear infinite;
}

@keyframes rotateText {
    0% {
        content: "OF";
    }

    33% {
        content: "BY";
    }

    66% {
        content: "FOR";
    }

    100% {
        content: "OF";
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .founder-profile {
        flex-direction: column;
    }

    .reverse {
        flex-direction: column;
    }

    .company-services {
        grid-template-columns: 1fr;
    }

    .gallery-images img {
        width: calc(100% - 60px);
        /* Adjust width for margins */
        margin: 10px auto;
        /* Center and add spacing */
        height: auto;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
        margin: 20px;
    }

    h2 {
        font-size: 1.2rem;
        margin: 10px;
    }

    .navbar img {
        height: 50px;
    }

    .card {
        padding: 20px;
    }

    .gallery-images img {
        width: 100%;
        /* Full width for small screens */
        margin: 5px 0;
    }
}

/* Decorative divider after hero */
.section-divider {
	height: 80px;
	background: url('rb_737.png') center/contain no-repeat;
	opacity: .75;
}