:root {
    --cream: #EEF3C4;
    --red: #C42329;
    --black: #090909;

}

h1 {
    font-family: "field-gothic-xxxcondensed", sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 96pt;
    text-transform: uppercase;
}

h2 {
    font-family: "counterpress", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32pt;
    text-transform: uppercase;
}

h3 {
    font-family: "open-sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 24pt;
}

h4 {
    font-family: "open-sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20pt;
}

p {
    font-family: "open-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20pt;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;

    background-color: var(--red);
    color: var(--cream);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 8rem;
}

header p {
    margin: 0;
    font-family: "counterpress", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32pt;
    text-transform: uppercase;
}

header nav ul {
    display: flex;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav a {
    color: var(--color-cream);
    text-decoration: none;
    text-transform: uppercase;
    font-family: "open-sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 12pt;
}

header nav a:hover {
    text-decoration: underline;
}

#hero {
  width: 100%;
}
#hero img {
  width: 100%;
  height: auto;
  display: block;
}

#about-me {
    background-color: var(--cream);
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 12rem 8rem;
}

#about-me figure {
    margin: 0;
    flex-shrink: 0;
    width: 30%;
}

#about-me figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.about-me__text {
    flex: 1;
    text-align: right;
}

#about-me h1 {
    color: var(--red);
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

#about-me h2 {
    color: var(--black);
    text-transform: uppercase;
    margin: 0 0 2rem;
}

#about-me p {
    color: var(--black);
    margin: 0 0 0 auto;
    max-width: 500px;
}

#about-me a {
    display: block;
    color: var(--red);
    text-decoration: none;
    margin-top: 0.5rem;
    font-size: 14pt;
}

#my-skills {
    background-color: var(--red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 8rem;
}
#my-skills h1 {
    color: var(--cream);
    text-transform: uppercase;
    margin: 0;
}
#my-skills ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
#my-skills li img {
    height: 4rem;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(94%) sepia(10%) saturate(650%) hue-rotate(22deg) brightness(101%) contrast(90%);
}


#my-work {
    background-color: var(--cream);
    background-image: url("../img/backgrounds/vantage.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 8rem;
}

.my-work__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

#my-work h2 {
    color: var(--black);
    text-transform: uppercase;
    margin: 0;
    font-family: "counterpress", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32pt;
    text-transform: uppercase;
}
    
#my-work h3 {
    font-family: "counterpress", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 32pt;
    text-transform: uppercase;
}


/* Filter dropdown */
.filter-dropdown {
    position: relative;
}

#filter-toggle {
    background-color: var(--red);
    color: var(--cream);
    border: none;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    cursor: pointer;
}

.filter-menu {
    position: absolute;
    top: 100%;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    border: 0.125rem solid var(--black);
    min-width: 12rem;
    z-index: 10;
}

.filter-menu button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
}

.filter-menu button:hover {
    background-color: var(--red);
    color: var(--cream);
}

/* Project grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
}

/* Project card */
.project-card {
    background-color: var(--cream);
    padding: 1rem;
    max-width: 18rem;
    width: 100%;
    justify-self: start;
}

.project-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card__title {
    background-color: var(--red);
    color: var(--cream);
    text-align: center;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    margin: 1rem 0 0;
}

footer {
    background-color: var(--red);
    padding: 4rem 8rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

footer nav ul,
.footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

footer a {
    color: var(--cream);
    text-decoration: none;
}

footer nav a {
    text-transform: uppercase;
    font-weight: bold;
    font-family: "open-sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 14pt;
}

footer a:hover {
    text-decoration: underline;
}

.footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
}

footer address {
    font-style: normal;
}

.footer__social {
    flex-direction: row;
    gap: 1rem;
}

/* Icons + logo */
.footer__right img,
.footer__social img {
    display: block;
    width: auto;
    filter: brightness(0) saturate(100%) invert(94%) sepia(10%) saturate(650%) hue-rotate(22deg) brightness(101%) contrast(90%);
}

.footer__right > img {
    height: 4rem;
}

.footer__social img {
    height: 1.5rem;
}

.footer__credit {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 3rem;
    color: var(--cream);
}














.project-hero {
    display: flex;
    background-color: var(--cream);
    min-height: 28rem;
}
.project-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8rem;
    gap: 1rem;
}
.project-hero__back {
    background-color: var(--red);
    color: var(--cream);
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    width: fit-content;
    margin-bottom: 1rem;
    
    font-family: "open-sans", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 20pt;    
}
.project-hero__back:hover {
    opacity: 0.9;
}
.project-hero h1 {
    color: var(--red);
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}
.project-hero__category {
    color: var(--black);
    text-transform: uppercase;
    margin: 0;
    font-weight: bold;
}
.project-hero__image {
    flex: 1;
    margin: 0;
}
.project-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.project-showcase {
    background-color: var(--cream);
    padding: 8rem;
}

.project-showcase__text {
    max-width: 40rem;
    margin-bottom: 3rem;
}

.project-showcase__text h3 {
    color: var(--black);
    margin: 0 0 1rem;
     font-family: "open-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14pt;
}

.project-showcase__text h4 {
    color: var(--red);
    margin: 0 0 1rem;
     font-family: "open-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14pt;
}

.project-showcase__tools {
    color: var(--red);
    margin: 0;
}

.project-showcase__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.project-showcase__gallery figure {
    flex: 1 1 18rem;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.project-showcase__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}