/* ROOT */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Faustina:ital,wght@0,300..800;1,300..800&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --accent-color1: #134074;
    --accent-color2: #13315C;
    --primary-color: #0B2545;
    --secondary-color: #8DA9C4;
    --white-color: #EEF4ED;
}

/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    background-color: var(--white-color);
    font-family: "Faustina", serif;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-family: "DM Serif Text", serif;
}

/* --=== HEADER ===-- */
.main-header {
    background-color: var(--accent-color1);
    height: 120px;
    display: flex;
    justify-content: center;
    position: relative; 
    border-bottom: 4px solid var(--primary-color);
    margin-bottom: 10px;
}

.main-header h1 {
    background-color: white;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    border-radius: 20px; 
    padding: 15px 40px;
    font-size: 32px;
    letter-spacing: 1px;
    position: absolute;
    bottom: -20px; 
    z-index: 10;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
}

/* --=== LAYOUT CONTAINER ===-- */
.portfolio-container {
    display: flex;
    flex: 1;
    padding: 30px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* --=== SIDEBAR & TABS ===-- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 250px;
    flex-shrink: 0;
}

.tab-button {
    font-family: "Tinos", serif;
    font-size: 18px;
    padding: 15px;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.tab-button:hover {
    background-color: var(--secondary-color);
    color: white;
}

.tab-button.active {
    background-color: var(--accent-color1);
    color: white;
    border-color: var(--accent-color2);
    transform: translateX(10px);
}

/* --=== MAIN CONTENT AREA ===-- */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tab-content {
    display: none; 
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.tab-content.active {
    display: flex; 
}

.content-box {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-family: "Tinos", serif;
    font-size: 24px;
}

.top-box {
    flex: 2; 
    min-height: 300px;
}

.bottom-box {
    flex: 1; 
    min-height: 50px;
}

/* --=== ARTIFACT STYLES ===-- */
.artifact-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px; 
    list-style: none;
    padding: 0;
    margin: 0;
}

.artifact-list li {
    margin-bottom: 10px;
    display: flex;
}

.artifact-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

.artifact-list a:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

.artifact-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.thumbnail-link {
    display: inline-flex;
    flex-direction: column;
    width: min-content; /* Shrink-wraps the container to match the image width perfectly */
    transition: transform 0.2s; 
}

.thumbnail-link:hover {
    transform: scale(1.05); 
}

.artifact-tag {
    background-color: var(--accent-color1);
    color: var(--white-color);
    padding: 6px 8px;
    font-size: 14px;
    font-family: "Tinos", serif;
    font-weight: normal;
    text-align: center;
    border-radius: 4px 4px 0 0; /* Rounds top corners only */
    width: 100%;
    box-sizing: border-box;
}

.thumbnail-link img {
    width: 185px;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 4px 4px; /* Rounds bottom corners to attach to tag */
    display: block; /* Prevents tiny whitespace gap beneath images */
}

.thumbnail-link img.phone-image {
    width: 300px;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px; 
}