/* Hero Section */
.hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #fff;
    font-family: "Karla", sans-serif;
}

/* Slide Item */
.slides-container .slide-item {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Slide Content */
.slide-content {
    max-width: 80%;
    text-align: left;
    margin-left: 10%;
    opacity: 0;
    transform: translateY(50px); /* Start below the view */
    animation: fadeIn 1s ease-out forwards, slideUp 1s ease-out forwards;
    animation-delay: 0.5s;
    word-wrap: break-word; /* Allow text to break if necessary */
}

/* H1 Styling */
.slide-content h1 {
    font-family: "Karla", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5em;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideInDown 1s ease-out forwards;
    animation-delay: 0.7s;
    letter-spacing: 1.2px;
    white-space: normal; /* Allow text to break */
}

/* H2 Styling */
.slide-content h2 {
    font-family: "Karla", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 1s;
    letter-spacing: 0.8px;
    margin-bottom: 1em;
    white-space: normal; /* Allow text to break */
}

/* p Styling */
.slide-content p {
    font-family: "Karla", sans-serif;
    font-size: 1.0rem; /* Smaller font size */
    font-weight: 400;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 4s ease-out forwards;
    animation-delay: 1.2s;
    letter-spacing: 0.8px;
    margin-bottom: 1em;
    white-space: normal; /* Allow text to break */
}

/* Button Styling */
.slide-content a.btn {
    font-family: "Karla", sans-serif;
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    color: #fff;
    background-color: #77b122;
    font-weight: 600;
    border-radius: 0; /* Remove roundness, making the button rectangle */
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(50px); /* Start below the view */
    animation: slideInUp 1s ease-out forwards;
    animation-delay: 1.5s; /* Delay for the button animation */
}

/* Button Hover Effect */
.slide-content a.btn:hover {
    background-color: #000;
    color: #fff;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50px); /* Start below */
    }
    100% {
        transform: translateY(0); /* Slide up */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-content {
        margin-left: 5%;
    }

    .slide-content h1 {
        font-size: 1.50rem;  /* Adjusted to smaller font size for mobile */
    }

    .slide-content h2 {
        font-size: 0.7rem;  /* Adjusted for mobile */
    }

    .slide-content p {
        font-size: 0.7rem; /* Adjusted for mobile devices */
    }

    .slide-content a.btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
