/* Meyer Reset v2.0 | 20110126 */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* MAIN CSS STARTS HERE */

@font-face {
    font-family: "elloot";
    src: url("/assets/elloot.woff2") format("woff2");
}

:root {
    font-family: Inter, sans-serif;
    font-feature-settings:
        "liga" 1,
        "calt" 1,
        "ss01" 1,
        "ss04" 1;
    color-scheme: light dark;
    /* site color variables */
    --black: #000;
    --white-foreground: #feffff;
    --white-background: #fcfffe;
    --white-body-text: #e0e2e1;
    --dark-teal: #43b695;
    --light-teal: #37d4be;
    --main-teal: #3fc2a6;
    --teal-gradient: linear-gradient(
        76deg,
        hsla(163, 46%, 49%, 1) 0%,
        hsla(172, 65%, 52%, 1) 100%
    );
    --light-gray: #cecece;
    --gray: #555;
    --gray-dark: #999;
    --gray-background: #232323;
    --black-gray-background: #1e1e1e;
    --transition: 0.3s ease;
    --transition-fast: 0.2s ease-out;
    --status-gray: #f1f1f1;
    --status-gray-dark: #3c3c3c;
}

/* Base Styles */

* {
    font-size: 1.1rem;
    line-height: 1.8;
}

::-moz-selection {
    color: light-dark(var(--white-background), var(--black));
    background: var(--main-teal);
}

::selection {
    color: light-dark(var(--white-background), var(--black));
    background: var(--main-teal);
}

body {
    background-color: light-dark(
        var(--white-background),
        var(--black-gray-background)
    );
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: normal;
    margin-bottom: 0.625rem;
    font-family: "elloot", Inter, sans-serif;
    color: light-dark(var(--black), var(--white-background));
}

h1 {
    font-size: 2rem;
    font-weight: 500;
}

h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

p {
    margin-block-start: 1em;
    margin-block-end: 1em;
    color: light-dark(var(--black), var(--white-body-text));
}

strong,
b {
    font-weight: bold;
}

i,
em {
    font-style: italic;
}

blockquote {
    border-left: 3px solid var(--main-teal);
    padding-left: 1.25rem;
}

/* Links and Buttons */
a {
    text-decoration: underline;
    color: light-dark(var(--black), var(--white-body-text));
    transition: color var(--transition);
}

a:hover {
    color: var(--main-teal);
}

.no-underline {
    text-decoration: none;
}

.button {
    background-color: var(--main-teal);
    color: var(--white-background);
    padding: 0.5rem 0.8rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0.8rem;
    width: fit-content;
    transition: all 0.3s ease-out;
    border: 1px var(--main-teal) solid;
}

.button:hover {
    color: var(--main-teal);
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(67, 182, 149, 0.15);
    border: 1px var(--main-teal) solid;
}

.button i {
    font-size: 1rem;
}

/* Images and Media */
img {
    display: flex;
    margin: auto;
    width: 100%;
}

.icon {
    display: inline;
    margin: 0;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    width: 2.5rem;
}

.pfp {
    display: flex;
    margin: auto;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 8%;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.07);
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: light-dark(var(--gray), var(--gray-dark));
}

hr {
    border: none;
    border-top: 1px solid light-dark(var(--gray), var(--gray-dark));
}

/* Navigation */
nav {
    width: 100%;
    height: 3.125rem;
    display: flex;
    margin: auto;
    padding: 0.2rem 0 0.6rem 0;
    font-family: "elloot", Inter, sans-serif;
}

.nav-logo {
    margin-top: 1.875rem;
    width: 55%;
}

.footer-logo {
    width: 10rem;
}

/* list styles in general */
ul {
    list-style-type: disc;
    margin: 0.625rem 0;
    margin-left: 1.875rem;
}

/* nav list style */
.ul-nav {
    display: flex;
    height: 100%;
    gap: 0.3rem;
    margin: auto;
    list-style: none;
}

.ul-nav li {
    padding: 0.5rem;
    display: flex;
}

.ul-nav li a {
    margin: auto;
    text-decoration: none;
    color: light-dark(var(--gray), var(--gray-dark));
    transition: color var(--transition);
    position: relative;
}

.ul-nav li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ul-nav li a:hover {
    color: var(--main-teal);
}

.ul-nav li a:hover::after {
    transform: scaleX(1);
}

.ul-nav li a:not(:hover)::after {
    transform-origin: right;
}

/* Layout */
main {
    margin: auto;
    padding: 1.25rem;
}

.columns {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.columnLeft,
.columnRight {
    padding: 0.3rem 0.625rem;
}

.noMobile {
    display: none;
}

/* Headers */
.headerLarge {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pageTitle {
    font-size: 2rem;
    font-weight: 600;
}

/* Utility Classes */
.highlighted {
    position: relative;
    display: inline;
    padding: 0.1em 0.1em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.highlighted::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 0;
    height: 39%;
    background: var(--teal-gradient);
    border-radius: 0.22em;
}

/* Footer */
footer {
    margin: auto;
    margin-top: 5rem;
    margin-bottom: 6.25rem;
    width: 90%;
    color: light-dark(var(--gray), var(--gray-dark));
}

.footerContainer {
    padding-top: 1.25rem;
    color: light-dark(var(--gray), var(--gray-dark));
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    a {
        color: light-dark(var(--gray), var(--gray-dark));
        text-decoration: none;
    }
    a:hover {
        color: var(--main-teal);
    }
}

.footerLeft {
    text-align: left;
    color: light-dark(var(--gray), var(--gray-dark));
}

.footerRight {
    text-align: right;
    color: light-dark(var(--gray), var(--gray-dark));
    margin-top: 0.5rem;
}

.columnRight img {
    border-radius: 0.75rem;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.07);
}

.header-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 3rem;
    color: light-dark(var(--black), var(--white-foreground));
}

.header-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 0.3rem;
    color: light-dark(var(--gray), var(--gray-dark));
}

.header-type {
    text-decoration: none;
}

/* Dark Mode styles not already made possible through light-dark */
@media (prefers-color-scheme: dark) {
    .nav-logo,
    .icon,
    .footer-logo {
        filter: invert(1);
    }
}

/* Desktop Only Styles */
@media only screen and (min-width: 62rem) {
    img {
        width: 43.75rem;
    }
    .columns {
        flex-direction: row;
    }
    .columnRight {
        margin-left: 0.625rem;
    }
    .headerLarge {
        font-size: 5.63rem;
    }
    .pageTitle {
        font-size: 3.2rem;
    }

    articleSubheading {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    .nav-logo {
        width: 28.13rem;
    }
    .icon {
        width: 4.375rem;
    }
    .pfp {
        width: 18rem;
        display: inline;
        margin: 0;
    }
    .noMobile {
        display: inline;
    }
    .ul-nav li {
        padding: 0.9rem;
    }
    h2 {
        font-size: 1.35rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    main,
    nav,
    footer {
        width: 56.25rem;
    }
    .header-title {
        font-size: 3rem;
    }
    .footer-logo {
        width: 10rem;
    }
}

/* Project Gallery & Pages */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1.25rem;
}

.project-card {
    background-color: light-dark(
        var(--white-background),
        var(--gray-background)
    );
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.project-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.8rem 0.8rem 0 0;
}

.project-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Default position */
    transition: transform var(--transition-fast);
    display: block;
    margin: 0;
    border-radius: 0;
}

/* Object-position overrides */
.project-card-image-wrapper img.top {
    object-position: top;
}

.project-card-image-wrapper img.bottom {
    object-position: bottom;
}

.project-card-image-wrapper img.center {
    object-position: center;
}

.project-card:hover .project-card-image-wrapper img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: light-dark(var(--black), var(--white-foreground));
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: light-dark(var(--gray), var(--gray-dark));
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    flex-grow: 1;
}

/* Individual Project Page Styles */
.project-page-content {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.project-header {
    text-align: center;
    margin-bottom: 2rem;
}

.project-header .pageTitle {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.1rem;
    color: light-dark(var(--gray), var(--gray-dark));
    margin-bottom: 1.5rem;
}

.project-hero-image {
    width: 100%;
    max-width: 45rem;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.07);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.project-page-content h2,
.project-page-content h3 {
    text-align: left;
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.project-page-content p {
    margin-top: 1em;
    margin-bottom: 1em;
}

.project-page-content ul {
    margin-top: 0.625rem;
    margin-bottom: 0.625rem;
    margin-left: 1.875rem;
    list-style-type: disc;
}

.project-page-content img {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.07);
}

.project-page-content figcaption {
    margin-bottom: 1.5rem;
}

.project-details {
    margin-top: 2rem;
    line-height: 1.8;
}

.back-to-gallery {
    margin-top: 3rem;
    text-align: center;
}

/* Adjustments for desktop */
@media only screen and (min-width: 62rem) {
    .project-gallery {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
        width: 56.25rem;
        margin: 2rem auto 0 auto;
        padding: 0;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }
    .project-card p {
        font-size: 1rem;
    }

    .project-page-content {
        max-width: 56.25rem;
    }

    .project-hero-image {
        max-width: 100%;
    }
}

@media only screen and (min-width: 62rem) {
    .project-gallery {
        /* three equal columns */
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;

        /* keep it centered under your main width */
        width: 56.25rem; /* same as main/nav/footer */
        margin: 2rem auto 0 auto;
        padding: 0; /* no extra padding */
    }

    /* you can leave the rest of your desktop rules as-is */
}
/* ------------------------------------- */
/* Project Page: center title + subtitle */
/* ------------------------------------- */
.project-page-content .pageTitle,
.project-page-content .project-subtitle {
    text-align: center;
}

/* ------------------------------------- */
/* Desktop: two equal columns on project pages */
/* ------------------------------------- */
@media only screen and (min-width: 62rem) {
    /* make .columns a row with top-alignment */
    .project-page-content .columns {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem; /* adjust if you want more/less space between columns */
    }

    /* each column fills half the width */
    .project-page-content .columnLeft,
    .project-page-content .columnRight {
        flex: 1 1 50%;
        padding: 0; /* remove extra padding, or tweak as desired */
    }

    /* ensure the hero image fills its column */
    .project-hero-image {
        width: 100%;
        height: auto;
    }
}
@media only screen and (min-width: 62rem) {
    /* … your existing img { width:43.75rem } … */

    /* Make project pages two equal flex columns */
    .project-page-content .columns {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
    }
    .project-page-content .columnLeft,
    .project-page-content .columnRight {
        flex: 1 1 50%;
        padding: 0;
    }

    /* Override the global img width for project‐page images */
    .project-page-content img,
    .project-hero-image {
        width: 100% !important;
        max-width: 100%;
        height: auto;
    }
}
