:root {
    --bg-color: #1a2a42;
    --text-color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 1.5rem;
    /* Space between logo and text */
}

.logo-container {
    width: 60vmin;
    /* Responsive size based on viewport minimum dimension */
    height: 60vmin;
    /* Maintain rough aspect ratio control, though mask defines shape */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-mask {
    width: 100%;
    height: 100%;
    /* The sky background */
    background-image: url('logo/sky_resized.jpg');
    background-size: 150% auto;
    /* Ensure image is wider than container for panning */
    background-position: top center;
    /* The animation */
    animation: panSky 30s linear infinite alternate;

    /* The Mask - Show content only where mask is opaque (the text) */
    -webkit-mask-image: url('logo/Marceta_logo_mask.png');
    mask-image: url('logo/Marceta_logo_mask.png');

    -webkit-mask-size: contain;
    mask-size: contain;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;
}

@keyframes panSky {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 0%;
    }
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    font-family: 'Roboto Mono', monospace;
    opacity: 0.5;
    z-index: 10;
}

.linkedin-link {
    color: white;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: block;
}

.linkedin-link:hover {
    opacity: 1;
}

.contact-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    z-index: 10;
    margin: 0;
}

.contact-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
}