body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #243642;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('hero-image.jpg') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
   /* padding: 20px;*/ 
    position: relative; /* Allows absolutely positioned elements */
    overflow: hidden; /* Contain rain effect within the hero */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 50px;
    animation: fadeInDown 3s ease-in-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 3s ease-in-out;
}

.hero .btn-primary {
    background-color: #387478;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    animation: fadeInUp 3s ease-in-out;
}

.contact-section {
    position: relative; /* Set position to relative so it appears at the bottom of the content */
    width: 100%;
    padding: 10px 10px; /* Increased padding to make it more prominent */
    background-color: rgba(56, 116, 120, 0.8); /* Transparent background color */
    color: white;
    text-align: center;
    margin-top: 10px; /* Add margin to separate it from the content above */
}

.contact-section p {
    margin: 5px 0;
}

/* Raining Sentences Styles */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    overflow: hidden; /* Ensure no overflow within the hero */
}

.sentence {
    position: absolute;
    top: 0;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.3); /* Make the text more transparent */
    font-size: 20px;
    animation: fall linear forwards;
    opacity: 0;
    max-width: 90%; /* Keep sentences within hero width */
    overflow: hidden; /* Hide overflow text */
}

@keyframes fall {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Fade-in animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .contact-section {
        font-size: 0.9rem; /* Make the contact section text smaller on mobile */
    }
}
