/* =========================================
   VARIABLES
   ========================================= */
:root
{
    --bg-main: rgb(8, 57, 65);
    --text-main: rgb(209, 217, 197);
    --accent-color: rgb(217, 59, 127);
    --light-color: rgb(227, 155, 167);
    --light-color-raw: 217, 150, 196;
    --box-shadow: rgba(0, 0, 0, 0.5);
    --dimmed-bg: rgba(0, 0, 0, 0.7);
    --black-bg: rgb(0, 0, 0, 1.0);

    --gap-normal: 40px;
    --gap-half: 20px;
    --gap-small: 10px;

    --fontsize-small: 14px;
    --fontsize-normal: 18px;
    --fontsize-big: 28px; 
}

/* =========================================
   GLOBAL STYLES
   ========================================= */
body
{
    background-color: var(--bg-main); 
    color: var(--text-main);
    margin: 0; 
    font-family: 'Figtree';
}

h1, h2, h3, h4, h5, h6
{
    font-family: 'Montserrat';
}

.page
{
    display: none; 
}

.page.active
{
    display: block;
}

.page-container
{
    width: 90%;
    max-width: 950px;
    margin: 0 auto;
}

/* =========================================
   NAVIGATION & UI COMPONENTS
   ========================================= */
.button
{
    color: var(--text-main);
    text-decoration: none;  
    font-weight: bold;
}

.button:hover
{
    color: var(--accent-color);
}

.button.active
{
    color: var(--accent-color);
}

.button-container
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-half);
    margin-bottom: var(--gap-normal);
}

.button-container-top
{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--gap-small);
    font-size: xx-large;
}

.back-button
{
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    font-size: large;
}

.back-button:hover
{
    color: var(--accent-color);
}

.inline-link
{
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
}

.inline-link:hover
{
    color: var(--accent-color);
}

.section-divider
{
    border: 0;
    border-top: 2px solid var(--light-color);
    margin-bottom: var(--gap-normal);
}

.section-divider-top
{
    border: 0;
    border-top: 2px solid var(--light-color);
    padding-top: var(--gap-normal);
    width: 90%;
    max-width: 950px;
    margin: 0 auto;
}

.code-modal-content
{
    background-color: var(--black-bg);
    color: var(--text-main);
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: var(--gap-small);
    padding: var(--gap-half);
    box-shadow: 0 0 30px var(--box-shadow);
    text-align: left;
}
.code-modal-content pre
{
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    -moz-tab-size: 4;
    tab-size: 4;
}

.hidden
{
    display: none;
}

/* =========================================
   LANDING/HOME PAGE
   ========================================= */
.landing-page
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-page p
{
    max-width: 700px;
    width: 90%;
    text-align: center;
}

.social-links
{
    display: flex;
    justify-content: center;
    gap: var(--gap-half);
    margin-top: var(--gap-half);
}

.social-icon
{
    color: var(--text-main);
    width: 32px;  
    height: 32px;
}

.social-icon:hover
{
    color: var(--accent-color);
}

/* =========================================
   PROJECT THUMBNAILS
   ========================================= */
.project-thumbnails
{
    display: flex;
    justify-content: center;
    gap: var(--gap-half);
    flex-wrap: wrap;
    margin-bottom: var(--gap-normal);
}

.project-thumb
{
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--light-color);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.project-thumb.active-project
{
    border-color: var(--accent-color);
}

.project-thumb:hover
{
    transform: scale(1.1);
    border-color: var(--accent-color);
}

/* =========================================
   PROJECT PAGE
   ========================================= */
.project-title 
{
    text-align: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: var(--fontsize-big);
}

@media (max-width: 768px)
{
    .project-header-container
    {
        flex-direction: column;
        gap: var(--gap-half);
    }

    .project-about-block
    {
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .project-right-column
    {
        width: 100%;
    }
}

.project-header-container 
{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--gap-half);
    width: 100%;
}

.project-right-column
{
    display: flex;
    flex-direction: column;
    gap: var(--gap-half);
    min-width: 250px;
}

.project-about-block,
.project-info-block,
.project-extra-block
{
    background-color: var(--box-shadow);
    padding: var(--gap-half);
    border-radius: var(--gap-small);
}

.project-about-block 
{
    flex: 1;
    margin-right: 20px;
}

.project-about-block p:first-child 
{
    margin-top: 0;
}

.project-info-block 
{
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.info-row 
{
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--gap-small);
    margin-bottom: var(--gap-small);
    border-bottom: 1px solid var(--light-color);
}

.info-row:last-child 
{
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.info-key 
{
    font-weight: bold;
    color: var(--text-main);
}

.info-value 
{
    color: var(--text-main);
    text-align: right;
}

.project-extra-block
{
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.project-extra-block h3
{
    margin-top: 0;
    margin-bottom: var(--gap-small);
}

.icon-link-container 
{
    display: flex;
    gap: var(--gap-small);
    align-items: center;
}

.icon-link
{
    display: inline-block;
    line-height: 0;
}

.project-content
{
    display: none;
    text-align: left;
}

.project-content.active-project
{
    display: block;
}

/* =========================================
   IN-TEXT IMAGES
   ========================================= */
.desc-figure
{
    margin: 30px 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desc-figure video,
.desc-figure img
{
    max-width: 90%; 
    border-radius: var(--gap-small)
}

.desc-figure figcaption
{
    margin-top: 4px;
    font-size: var(--fontsize-small);
    color: var(--text-main);
    opacity: 0.7; 
}

/* =========================================
   EXPERIENCE TABS
   ========================================= */
.tab-content
{
    display: none; 
}

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

.experience-list
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-small);
}

.experience-block
{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-block:is(:last-child)
{
    margin-bottom: var(--gap-normal);
}

.experience-title
{
    color: var(--text-main);
    margin: 0;
    margin-bottom: var(--gap-small);
    font-size: var(--fontsize-big);
    font-weight: bold;
}

.experience-date
{
    color: var(--text-main);
    font-size: var(--fontsize-normal);
    font-weight: bold;
    margin-bottom: var(--gap-small);
}

.experience-role
{
    color: var(--text-main);
    font-size: var(--fontsize-normal);
    font-weight: bold;
    margin: 0;
    margin-bottom: var(--gap-half);
}

.experience-desc
{
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

.experience-list-items
{
    padding: 0;
    list-style-position: inside;
    width: fit-content;
    text-align: left;
    margin: 0 auto;
    margin-top: var(--gap-half);
}

.experience-list-items li
{
    color: var(--text-main);
}

/* =========================================
   GALLERY PAGE
   ========================================= */
.gallery-block
{
    margin-bottom: var(--gap-normal);
    width: 100%;
}

.gallery-title
{
    font-size: var(--fontsize-big);
    font-weight: bold;
    color: var(--text-main);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: var(--gap-small);
    margin-bottom: var(--gap-half);
}

.gallery-grid
{
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: var(--gap-half);
}

.gallery-thumbnail
{
width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.gallery-thumbnail:hover
{
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.modal
{
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: var(--dimmed-bg); 
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active
{
    opacity: 1;
    pointer-events: auto;
}

.modal-image
{
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px var(--box-shadow);
    user-select: none;
}

.modal-nav
{
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: var(--text-main);
    font-weight: bold;
    font-size: 40px;
    transition: color 0.3s;
    user-select: none;
    z-index: 3;
}

.modal-nav.prev
{
    left: 20px;
}

.modal-nav.next
{
    right: 20px;
}

.modal-nav:hover
{
    color: var(--accent-color);
}

.modal-close
{
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--text-main);
    font-weight: bold;
    font-size: 40px;
    transition: color 0.2s;
    user-select: none;
    z-index: 3;
}

.modal-close:hover
{
    color: var(--accent-color);
}

/* =========================================
   PROFILE PAGE
   ========================================= */
#profile
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-half);
}

.profile-pic
{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(var(--light-color-raw), 0.4);
    margin-top: var(--gap-half);
}

.skills-chart
{
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
    margin-bottom: var(--gap-half);
}

#skills-chart-title
{
    text-align: center;
    font-weight: bold;
    font-size: var(--fontsize-big);
    color: var(--text-main);
    margin-bottom: var(--gap-half);
}

.metric
{
    border: 1px solid var(--light-color);

    background: linear-gradient(to right, 
        rgba(var(--light-color-raw), 0.15) 0%,
        transparent 50%, 
        rgba(var(--light-color-raw), 0.15) 100%);
    
    box-shadow: inset 0 0 10px var(--light-color);

    color: var(--light-color);
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: var(--fontsize-normal);
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}