/*
Main CSS - Portfolio
By: Luc Bassaler-Merpillat
On: December 21, 2025
*/

/* - SETUP ACROSS PAGES - */
/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Balsamiq+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap'); /* Use as "Balsamiq Sans" */
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap'); /* Use as "Bree Serif" */
@import url('https://fonts.googleapis.com/css2?family=Outfit&display=swap'); /* Use as "Outfit" */



/* All */
:root {
    /* Brand Colors */
    --orange: #FB9402;
    --brown: #990301;
    --pink: #F3A6C9;
    --blue: #99D9EA;

    /* Blue Shades */
    --blue_dark: #081D22;
    --blue_black: #020A0C;
    --blue_mid: #37B5D6;
    --blue_light: #CAEBF4;
    --blue_glaze: #D4D4DE;

    /* Main Colors */
    --main-black: #161616;
    --main-gray: #474645;
    --main-white: #E8E8E8;

    /* OLD Accent Colors */
    /* --accent-bg: var(--blue_black);
    --accent-card: var(--main-gray);
    --accent-border: #2F2F31;
    --accent-text: var(--main-white);
    --accent-text_flip: var(--main-black);
    --accent-link: #2D2D2D;
    --accent-tooltip: #8B8B8B;
    --accent-highlight: var(--blue);
    --accent-active: var(--pink);
    --accent-gradient: var(--blue_dark);
    --accent-special: #220808; */

    /* NEW Accent Colors */
    --accent-bg: var(--main-white);
    --accent-card: #C6C6C6;
    --accent-border: #A8A8A8;
    --accent-text: var(--main-black);
    --accent-text_flip: var(--main-white);
    --accent-link: #8B8B8B;
    --accent-tooltip: #4D4D4D;
    --accent-highlight: var(--pink);
    --accent-active: var(--brown);
    --accent-gradient: var(--blue_glaze);
    --accent-special: #E8BFBF;
}

* {
    box-sizing: border-box;
    transition-property: all;
    transition-duration: 0.2s;
    z-index: 1; /* Unless otherwise changed */
}



/* Defaults */
html {
    scroll-behavior: smooth !important;
    background: var(--accent-bg);
}

body {
    margin: 0;
    padding: 0;
}

#icon {
    color: var(--black)
}

img {
    cursor: zoom-in;
}



/* Text Emphasis */
.normal {
    font-style: normal;
    font-weight: 400;
}

.bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.sans {
    font-family: "Balsamiq Sans", sans-serif;
}

.serif {
    font-family: "Bree Serif", serif;
}

mark { /* 1 of 2 */
    border-radius: 0.35rem;
    padding: 0 0.75rem;
    background-color: var(--pink);
    color: var(--main-black);
}



/* Text Elements */
p, ul, ol, li, a {
    font-size: 1.2rem;
    color: var(--accent-text);
    font-family: "Outfit", Arial, Verdana, sans-serif;
}

figcaption {
    color: var(--accent-text);
    font-family: "Outfit", Arial, Verdana, sans-serif;
}

ol,
ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    margin-bottom: 0.25rem;
}

a {
    text-decoration: none;
    cursor: pointer;
}

h1, h2, h3 {
    font-family: "Balsamiq Sans", Helvetica, Verdana, sans-serif;
    color: var(--accent-text);
    margin: 0.5rem 0;

    mark { /* 2 of 2 */
        color: var(--brown);
    }
}

h4, h5, h6 {
    font-family: "Balsamiq Sans", Helvetica, Verdana, sans-serif;
    color: var(--accent-tooltip);
    margin: 0.15rem 0;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 1.5rem;
}

h3, h4, h5, h6 {
    font-size: 1.25rem;
}

img{
    border-radius: 0.5rem;
}



/* Major Grid Elements */
.grid {
    display: grid;
    gap: 0 1rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    grid-auto-rows: 16.5rem;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}



/* Navigation Elements */
.picker {
    display: inline-block;
    text-decoration: none;
    margin: 0 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 1.5rem;
    color: var(--accent-text);
    border-bottom: 2px solid var(--accent-border);
}

.picker:hover {
    color: var(--accent-highlight);
    border-bottom: 2px solid var(--accent-highlight);
}

.picker:focus {
    /* color: var(--accent-highlight); */
    border-bottom: 4px solid var(--accent-highlight);
    background-color: var(--main-gray);
    color: var(--main-white);
}

.picker.active, 
.picker.active:hover {
    color: var(--accent-active);
    border-bottom: 2px solid var(--accent-active);
}

.picker.active:focus {
    border-bottom: 4px solid var(--accent-active);
    background-color: var(--main-gray);
    color: var(--main-white);
}

.tablinks {
    background-color: var(--blue_light);
    border: 2px solid var(--pink);
    border-radius: 0.25rem;
    color: var(--accent-text);
    outline: none;
    cursor: pointer;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.tablinks.active,
.tablinks:hover {
    color: var(--accent-active);
    border: 2px solid var(--accent-active);
}

.tablinks:focus,
.tablinks.active:focus {
    background-color: var(--main-gray);
    color: var(--main-white);
}



/* Button Elements */
.button {
    text-decoration: none;
    margin: 1rem 0;
    border-radius: 0.9rem;
    padding: 0.4rem 1rem;
    font-size: 1.1rem;
    background-color: var(--accent-highlight);
    color: var(--main-black);
}

.button:hover {
    background-color: var(--main-white);
    color: var(--brown);
}

.button:focus {
    background-color: var(--main-gray);
    color: var(--main-white);
}

.contact-buttons {
    display: inline-block;
    margin: 0.2rem 0;
}

#return {
    margin-right: 1rem;
}

#article {
    overflow: auto;
}



/* Section Elements*/
#top {
    margin: 0.1rem;
    z-index: 100;
}

footer {
    height: auto;
    width: 100%;
    margin: 0;
    padding: 1rem;
    background-color: var(--accent-card);
    border-top: 2px solid var(--accent-border);
}

.main, .article {
    margin: 1rem;
    margin-top: 5rem;
    border-radius: 0.9rem;
    background-color: var(--blue);
    padding: 5rem 1rem;
}

.section, .article {
    border-radius: 0.9rem;
    padding: 0.4rem 1rem;
}

.section {
    margin-bottom: 0.5rem;
}

.nav {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.75rem 0;
    background-color: var(--accent-bg);
    width: 100%;
    position: fixed; 
    top: 0;
    z-index: 2;
}

.location {
    margin-top: 0.25rem;
    grid-template-columns: 1fr;
}

.filterlist-filters {
    font-family: "Outfit", Arial, Verdana, sans-serif !important; /* Does not work :c */
    margin-bottom: 1rem;
}



/* Card Elements */
.card {
    border-radius: 0.9rem;
    padding: 1rem 0.5rem;
    background: linear-gradient(to bottom right, var(--accent-card) 0%, var(--accent-gradient) 70%);
    border: 2px solid var(--accent-border);
    box-shadow: 0 0.1rem 0 rgba(0,0,0,0.01) inset, 0 0.5rem 0.5rem rgba(255,255,255,0.05);
}

.card:hover {
    border: 2px solid var(--accent-text);
}

.card:focus {
    border: 2px solid var(--accent-text);
}

.card.no_link:focus,
.card.no_link:hover {
    background: linear-gradient(to bottom right, var(--accent-card) 0%, var(--accent-special) 70%);
    border: 2px solid var(--accent-text_flip);
}



/* Images */
.img-title {
    width: 100%;
}

.img-project {
    cursor: pointer;
    height: 7.5rem;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

.figure-article {
    float: right;
    width: 50%;
    margin: 0 0 1rem 1rem;
}

.img-article {
    display: block;
    max-width: 100%;
    height: auto;
}



/* Content */
.content_intro {
    text-align: center;
    margin-bottom: 5rem;
}

.content_about { /* Contains grid elements */
    gap: 1rem;
    grid-template-columns: 0.65fr 1fr;
    display: grid;
}

#carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 20rem;
}

#carousel img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    object-position: center center;
}

.marking {
    border-radius: 0.35rem;
    margin: 0.25rem 0;
    padding: 0.25rem 0.75rem;
    background-color: var(--main-white);
    color: var(--main-black);
}

/* Experience (Things In This Section Are Shamefully Helped By AI) */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.image-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-out;
    border-radius: 0.5rem;
    z-index: 6;
}

#copypastePopup {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-text);
    color: var(--accent-card);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: "Balsamiq Sans", sans-serif;
    font-size: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 7;
}

#filterlist .card {
    transition: all 0.3s ease;
}



/* Any other @media */
@media (width < 68rem) {
    .content_about {
        display: inline-block;
    }
}

@media (width < 45rem) {
    .figure-article {
        float: none;
        width: 100%;
        margin: 1rem 0;
    }
}

@media (width > 35rem) {
    .img-title {
        width: 30rem;
    }
}

@media (width < 35rem) { /* Should I change this to make smaller earlier? */
    p, ul, ol, li, a {
        font-size: 1rem;
    }

    #nav a {
        font-size: 1.125rem;
    }

    figcaption {
        font-size: 0.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3, h4, h5, h6 {
        font-size: 1.125rem;
    }
}
