body {
    scroll-behavior: smooth;
}

.section {
    margin-top: 60px;
    padding-top: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

#home {
    margin-top: 56px;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none; /* Initially hidden */
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    transform: scale(1.1);
    background-color: #fb8d00;
}

.section h2 {
    font-size: 28px;
    font-weight: bold;
}

.section hr {
    border: 1px solid #025bd9;
}

footer a {
    text-decoration: none;
}

/* Crop Images Styling */
.crop-image {
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation */
}

.crop-image:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.crop-container {
    margin-bottom: 30px; /* Add spacing between crop cards */
}

.crop-container h4 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #025bd9; /* Use the theme color */
}

.crop-container p {
    font-size: 16px;
    color: #333; /* Neutral text color */
}

.nav-link{
    color: white;
}

/* Slider Image */
.slider-image-wrapper {
    position: relative;
    width: 100%;
    height: 60vh; /* Responsive height */
    min-height: 310px; /* Minimum height for smaller screens */
    max-height: 610px; /* Maximum height for larger screens */
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and fill container */
}

/* Center Text Overlay */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 20px 30px;
    border-radius: 10px;
    width: 80%; /* Adjust text container width */
    max-width: 700px; /* Prevent too wide captions */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Prevent flashing before animation */
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    visibility: visible;
    animation: fadeInUp 1s ease-in-out forwards; /* Fade in and move up smoothly */
}

.carousel-caption h2 {
    font-size: 2rem; /* Responsive font size */
    font-weight: bold;
    color: #fb8d00; /* Accent color */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1.2rem; /* Responsive text */
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
