/* --- Color Palette Variables --- */
:root {
    --mint-cream: #f1f8f3;
    --vermilion: #dc493a;
    --caf-noir: #4e3822;
    --lapis-lazuli: #235789;
    --night: #051103;
    --lapis-glass: rgba(35, 87, 137, 0.25);
}

body {
    /* display: grid; */
    place-items: center;
    min-height: 80vh;
    background: var(--night);
    color: var(--mint-cream);
    font-family: sans-serif;
}

/* --- Nav Bar Styles --- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: var(--lapis-glass);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    z-index: 1000;
}

/* --- Nav Bar Button Styles --- */
.menu-items {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-items a {
    text-decoration: none;
    color: var(--mint-cream);
    padding: 8px 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.menu-items a:hover {
    background: var(--lapis-glass);
    border-color: rgba(241, 248, 243, 0.1); /* Matches card border */
}

.menu-toggle {
    display: none; /* Hidden on desktop, can be enabled for mobile later */
    background: transparent;
    border: none;
    color: var(--mint-cream);
    font-size: 24px;
    cursor: pointer;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

/* --- Card Styles --- */
.card {
    margin-top: 80px;
    display: flex;
    align-items: center;
    width: 75vw;
    max-width: 650px;
    padding: 24px 38px 24px 20px;
    background: var(--lapis-glass);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(241, 248, 243, 0.1);
}

.card img {
    max-width: 280px;
    width: 36vw;
    height: 340px;
    object-fit: cover;
    margin-left: -60px;
    margin-right: 30px;
    border-radius: inherit;
    box-shadow: 0 20px 40px rgb(0 0 0 / 16%);
    transition: border-radius 0.3s;
}

.card h2 {
    font-size: 24px;
    margin-top: 0;
    margin-right: 30px;
    margin-bottom: 10px;
    color: var(--vermilion);
}

.card h3 {
    font-size:  16px;
    margin: 0 0 10px;
    opacity: 75%;
}

.card p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 50%;
}

.socials {
    display: flex;
    align-items: center;
    gap: 18px;
}

.socials > button {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--mint-cream);
    padding: 0;
    cursor: pointer;
}

.socials > button > i {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: 24px;
    height: 50px;
}

/* --- Media Queries --- */
@media (width <= 600px) {
    .card {
        margin: 0 40px;
        padding-left: 50px;
        padding-right: 50px;
        padding-bottom: 60px;
        width: 100%;
        text-align: center;
        flex-direction: column;
    }

    .card h2 {
        margin-right: 0;
        font-size: 26px;
    }

    .card img {
        margin: -100px 0 30px 0;
        width: 100%;
        max-width: 1000px;
        height: 250px;
    }

    .card p {
        max-width: 360px;
    }

    .socials {
        justify-content: center;
    }
}

@media (width <= 400px) {
    .card img {
        height: 50vw;
        width: 50vw;
        border-radius: 50%;
        margin: -140px 0 30px 0;
    }
}