/* Home page specific styles */

.welcome-section {
    position: relative;
    height: 60vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.welcome-section::before {
    content: "";
    position: fixed;
    top: calc(79px / 1rem) rem;
    left: 0;
    right: 0;
    height: 60vh; /* Same as parent */
    background-image: url("../background&CoverImages/WebsiteCover-1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.welcome-container {
    position: static;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 66%;
    margin: 2rem;
}

.welcome-container h1 {
    text-align: left;
    font-size: 5rem;
    margin: 1rem 0rem;
    color: black;
}

.welcome-container p {
    text-align: left;
    font-size: 2rem;
    color: black;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: white;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4rem;
    align-items: center;
}

.hero-item {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-self: stretch;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    align-content: center;
    width: 100%;
}

.text-container h1 {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.text-container h2 {
    font-size: 2rem;
    font-weight: normal;
    color: #666;
}

.text-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.text-container p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18rem;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.image-caption {
    position: absolute;
    bottom: -1em;
    margin: 0;
    background: rgb(255, 255, 255);
    color: black;
    padding: 1rem;
    text-align: center;
    width: fit-content;
    border: 1px solid #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.image-caption h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Mobile responsive styles for home page */
@media (orientation: portrait) {
    .welcome-container {
        padding: 1rem;
    }

    .welcome-container h1 {
        font-size: 3.5rem;
        margin: 1rem 0;
    }

    .welcome-container p {
        font-size: 1.3rem;
        max-width: 55%;
    }

    .welcome-section::before {
        background-position: 74% center;
    }

    /* Hero Section Mobile */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 0rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    /* First text block (Who am I?) */
    .hero-item:nth-child(1) {
        order: 1;
    }

    /* First image */
    .hero-item:nth-child(2) {
        order: 2;
    }

    /* Second image */
    .hero-item:nth-child(4) {
        order: 4;
    }

    /* Second text block (What do I do?) */
    .hero-item:nth-child(3) {
        order: 3;
    }

    .text-container h1 {
        font-size: 2.5rem;
        text-align: center;
        align-self: center;
    }

    .text-container h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        width: 80%;
        height: auto;
        object-fit: contain;
        order: 2;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }
}
