:root {
    --bg-color: #0f0f0f;
    --text-primary: #e0e0e0;
    --text-dark: #0f0f0f;
    --accent-color: #5AA08A; /* Muted Green */
    --grey-header: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    margin: 0;
    display: flex;
    justify-content: center;
}

a{
    color: var(--accent-color);
}

.refInText{
    text-decoration: none;
}


::selection {
    background-color: var(--accent-color);
    color: #ffffff; /* Sets text color when highlighted; adjust as needed */
}

/* Firefox fallback */
::-moz-selection {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

img {
    width: 100%;
}

.invert-image {
  filter: invert(100%);
}

.page-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    transform: translateY(35vh); 
}

.header-container:has(.tab-switch:not(#tab-none):checked) {
    transform: translateY(10vh);
}

h1 {
    font-family: "Geo", monospace;
    font-size: 3rem; 
    letter-spacing: 1px;
}

h2 {
    font-family: "Geo", monospace;
    font-size: 2.1rem; 
    letter-spacing: 1px;
}

h3 {
    font-family: "Geo", monospace;
    font-size: 1.5rem; 
    letter-spacing: 1px;
}

.terminal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}



.prompt {
    color: var(--text-primary);
    margin-right: 10px;
    user-select: none;
}

.header-container:has(.tab-switch:not(#tab-none):checked) .prompt {
    color: var(--accent-color);
}

.nav-item {
    position: relative;
    display: flex;
}

/* Thumbnail image on the left */
.item-thumb {
    height: 100%;
    max-width: 3.5rem;
    object-fit: cover;
    margin-right: 5px;
    flex-shrink: 0;
}


.project-item:hover{
    filter: invert(61%) sepia(11%) saturate(958%) hue-rotate(113deg) brightness(92%) contrast(82%);
    transform: scale(1.01);
}


/* Date styling under the title */
.text-content .item-date {
    font-size: 0.8rem;
    font-family: 'Consolas', monospace;
    color: var(--text-primary);
    opacity: 0.9;
    display: block;
}

.tab-switch { display: none; }

.tab-label {
    cursor: pointer;
    padding: 4px 12px;
    user-select: none;
}

.tab-switch:checked + .tab-label {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.close-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

.tab-switch:checked ~ .close-overlay {
    display: block;
}

.content-wrapper {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.content {
    display: none;
    padding: 20px;
    width: fit-content;
    max-width: 100%;
}


.header-container:has(#tab-projects:checked) #content-projects,
.header-container:has(#tab-contact:checked) #content-contact {
    display: block;
}


#project-list, #contact-list {
    display: flex;
    flex-direction: column;
    margin-top: 0.3rem;
}

#project-list{ gap: 1rem; }
#contact-list { gap: 12px; }



.item-link-wrapper, .item-link-wrapper-contact {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: transform 0.2s ease, color 0.2s ease;
}

.text-content {
    display: flex;
    flex-direction: column;
}

.item-link-wrapper h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: "Space Grotesk", sans-serif;

}

.item-link-wrapper-contact h3 {
    margin: 0;
    font-size: 1rem;
    font-family: "Space Grotesk", sans-serif;
    
}

.item-link-wrapper p, .item-link-wrapper-contact p {
    margin: 4px 0 0 0;
    opacity: 0.8;
}

.item-link-wrapper h3, 
.item-link-wrapper p {
    transition: transform 0.2s ease, color 0.2s ease;
}



#contact-list {
    display: flex;
    flex-direction: row; /* Align icons in a single line */
    align-items: center;
    justify-content: center;
    gap: 1rem; /* 1rem padding/space between icons */
    margin-top: 0.3rem;
}

.contact-icon {
    width: 24px; /* Adjust size as you prefer */
    height: 24px;
    object-fit: contain;
    filter: invert(1); /* Converts black PNG/SVG to white */
    transition: filter 0.2s ease, transform 0.2s ease;
}

.item-link-wrapper-contact:hover .contact-icon {
    filter: invert(61%) sepia(11%) saturate(958%) hue-rotate(113deg) brightness(92%) contrast(82%);
    transform: scale(1.1); /* Optional: slight scale pop on hover */
}


.map-embed-container {
    width: 100%;
    margin: 2rem 0;
}

.map-embed-container iframe {
    width: 100%;
    height: 520px;
    background-color: var(--bg-color);
}

.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

.back-to-top-btn.visible {
    opacity: .75;
    visibility: visible;
}

.back-to-top-btn img {
    width: 2rem;
    height: 2em;
    filter: invert(1); /* Inverts icon color */
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
}

.article-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.DCFText{
    text-decoration: none;
    margin-left: 2rem;
}

.DCFText:hover{
    text-decoration: underline;
}

.refLink{
    text-decoration: none;
}

.refLink:hover{
    text-decoration: underline;
}

.references{
    font-size: .9rem;
}

.references p {
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 1.25;
  }