/*
    File: css/components/hero.css
    Description: Styles for the main hero section at the top of the homepage.
*/

.hero {
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero__image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* To fit the container */
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image covers the container */
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0;
}

.hero__title {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Media queries for small screens */

@media (max-width: 768px) {
    .hero {
        padding: 80px 15px;
    }

    .hero__title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .hero__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }
}