body {
    margin: 0;

    font-family: "Lato", sans-serif;

    background: #f6f6f6;
}

footer {
    background-color: #262262;

    color: white;

    padding: 1.25rem;

    text-align: center;
}

* {
    box-sizing: border-box;
}

img {
    user-select: none;

    -webkit-user-drag: none;
}

.content-wrapper {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.main {
    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    align-items: center;

    padding: 1.5rem;

    padding-top: 1rem;

    background:
        linear-gradient(
            rgba(246, 246, 246, 0.92),
            rgba(246, 246, 246, 0.92)
        ),
        url('../img/water_mark1.jpg');

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    min-height: 100vh;
}

.hidden {
    display: none !important;
}

#card {
    position: relative;

    background: white;

    padding: 1.5rem;

    border-radius: 0.75rem;

    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);

    border-top: 1px solid black;

    width: 100%;

    max-width: 45rem;

    display: grid;

    grid-template-columns: 1fr; /* Force 1 column by default */

    gap: 1.5rem;

    justify-items: stretch;

    align-items: start;

    z-index: 1;
}

/* Ensure every section inside the card takes up the full width */

#card > section {
    grid-column: 1;

    width: 100%;
}

#logo-container {
    display: flex;

    justify-self: center;

    flex-direction: column;

    justify-content: center;

    align-items: center;
}

#logo-container h1,
#logo-container h2 {
    white-space: nowrap;
    margin: 0;
}

#logo-container h1 {
    font-size: clamp(1rem, 5vw, 2.3rem);

    color: #58595B;

    font-family: 'Raleway', sans-serif;

    font-weight: 300;
}

#logo-container h2 {
    font-size: clamp(0.5rem, 3vw, 1.5rem);

    color: #58595B;

    font-family: 'Raleway', sans-serif;

    font-weight: 300;

    font-style: italic;
}

#logo,
#profile {
    display: block;

    margin: 0 auto;
}

#logo {
    height: auto;

    width: 90%;

    justify-self: center; /* Centers logo at the top */
}

#profile {
    height: auto;

    width: clamp(10rem, 90%, 20rem);

    justify-self: center;

    padding-top: 1rem;
}

#card p {
    font-size: 1.3rem;

    color: #58595B;

    margin-bottom: 0.25rem;

    display: block;
}

#card #profile-text {
    font-size: 1.2rem;

    line-height: 1.6;

    margin-bottom: 0.25rem;

    display: block;
}

#card #welcome-text {
    font-size: 1.2rem;

    text-align: justify;

    text-justify: inter-word;

    hyphens: auto;

    line-height: 1.5;

    margin-bottom: 0.25rem;

    display: block;
}

.contact-item {
    display: flex;

    gap: 0.5rem;

    font-size: 1.2rem;
}

.contact-label {
    font-weight: bold;

    color: #262262;
}

#card .small-text {
    font-size: 1.1rem;
}

#card ul li {
    font-size: 1.3rem;

    color: #58595B;
}

#card h3 {
    font-family: "Montserrat", sans-serif;

    font-size: 2rem;

    font-weight: bold;

    color: #262262;

    padding-top: 1rem;

    margin-bottom: 0.5rem;

    display: block;

    text-transform: uppercase;

    justify-self: start;;
}

#card #connect-content h3 {
    margin-top: 0rem;
}

#card a {
    text-decoration: underline;
}

#card a:active {
    color: #544cc4;
}

#card .linkedin-link {
    display: inline-block;

    margin-top: 1rem;

    color: #0077b5;

    text-decoration: none;

    font-size: 1.2rem;
    font-weight: bold;
}

/* DESKTOP VIEW */

@media (min-width: 768px) {
    html {
        overflow-y: scroll;
    }

    #card {
        grid-template-columns: 1fr 1fr; /* Switch to 2 columns */

        padding: 2.5rem;
    }

    #home-content,
    #connect-content {
        display: contents;
    }

    #home-content > section,
    #home-content > img {
        grid-column: 1 / 3;
    }

    #connect-content > img,
    #connect-content > section {
        grid-column: auto;
    }

    #logo {
        grid-column: 1 / 3; /* Force it to start at line 1 and end at line 3*/

        justify-self: center;

        width: 40rem;
    }

    #profile {
        width: 20rem;
    }
}
