@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;600&display=swap");

body {
    /* Changed to Roboto Mono */
    font-family: "Roboto Mono", sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    /* Smooth transition for theme change */
    transition:
        background-color 0.3s,
        color 0.3s;
    /* Flexbox setup to vertically and horizontally center the main content */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

summary {
    cursor: pointer;
}

div,
img {
    -webkit-tap-highlight-color: transparent;
}

.header {
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Wrapper to help center the nav links */
.nav-center-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    margin: 0 1.5rem;
    transition: color 0.1s;
}

.nav-link:hover {
    color: var(--highlight-color);
}

.nav-link.selected {
    text-decoration: underline;
    color: var(--highlight-color-socials);
    font-weight: 600;
}

.header-side-btn {
    width: 50px;
}

.header-btn {
    text-align: center;
    cursor: pointer;
    font-size: larger;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem 4rem 1rem;
}

.text-container {
    width: 100%;
    max-width: var(--max-content-width);
    text-align: left;
    line-height: 1.6rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
}

.text-container .profile-img {
    width: 100px;
    height: 100px;
    object-fit: fill;
    border-radius: 50%;
    margin-bottom: 1.2rem;
}

.text-container .greeting {
    font-weight: 600;
    color: var(--text-color-bold);
    transition: color 0.3s;
}

.greeting .ipa {
    font-weight: normal;
    color: var(--text-color);
}

.text-container .tagline {
    margin-bottom: 1.2rem;
}

.link-text {
    color: var(--highlight-color-text) !important;
    background-color: var(--highlight-color);
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;

    transition: opacity 0.2s;
    display: inline;
}

::selection {
    background-color: var(--highlight-color);
    color: var(--highlight-color-text);
}

.link-text:hover {
    opacity: 0.8;
}

.link-text-text {
    color: var(--highlight-color-socials) !important;
    background-color: transparent;
    font-weight: 600;
}

.paragraph {
    margin-bottom: 1.5rem;
}

.socials {
    font-size: 1.2rem;
}

.socials a {
    text-decoration: none;
    color: var(--highlight-color-socials);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .text-container {
        font-size: 1rem;
    }
    .greeting {
        font-size: 1.125rem;
    }
    .nav-link {
        margin: 0 0.8rem;
    }
    .paragraph {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem;
    }
    .nav-link {
        margin: 0 0.5rem; /* Tighter spacing for mobile nav */
    }
    .main-content {
        padding-bottom: 2rem;
    }
}

footer {
    padding: 10px;
    line-height: 1rem;
    font-size: 0.7rem;
    font-weight: 100;
    color: var(--text-color-footer);
}

.footer-a {
    color: unset;
}

.d-none {
    display: none;
}

/*Projects page specifics*/

hr {
    border: 0.5px solid var(--hr-divider-color);
    transition: border-color 0.3s;
}

.item-card {
    display: flex;
    font-weight: 400;
    margin-top: 2rem;
}

.item-card .item-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 0.8rem;
}

.item-card .item-img img {
    width: 90px;
    /*aspect-ratio: 1;*/
}

.item-card .item-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color-bold);
}

/*Blogs page specifics*/
.item-card a {
    text-decoration: none;
    color: unset;
}

.item-data .item-date {
    margin-top: 0.5rem;
}

/*Blog page specifics*/
.blog-content {
    color: var(--text-color-blog);
}

.blog-content .blog-date-badge {
    font-size: 0.8rem;
    line-height: 1rem;
}

.blog-content a {
    text-decoration: none;
    color: var(--highlight-color-socials);
}

footer .bottom-clause {
    line-height: 1rem;
    margin-bottom: 0.6rem;
}
