/* =========================================================
VICTORIA TRAN PORTFOLIO
Main Stylesheet
========================================================= */

/* =========================================================
RESET
========================================================= */

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
margin: 0;
padding: 0;

scroll-behavior: smooth;

}

body {
margin: 0;
padding: 0;

width: 100%;

background: #ffffff;
color: #111111;

font-family: Arial, Helvetica, sans-serif;

font-size: 14px;
line-height: 1.45;

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

}

/* =========================================================
GENERAL
========================================================= */

img {
display: block;

max-width: 100%;
height: auto;

}

iframe {
max-width: 100%;
}

a {
color: inherit;

text-decoration: none;

}

a:hover {
text-decoration: underline;
}

button {
font: inherit;
}

/* =========================================================
HEADER
========================================================= */

.site-header {
width: 100%;
max-width: 100%;

padding: 24px 30px;

display: grid;

grid-template-columns:
    minmax(0, 1fr)
    auto;

align-items: start;

column-gap: 30px;

position: sticky;
top: 0;

z-index: 1000;

background: rgba(255, 255, 255, 0.96);

}

/* =========================================================
SITE NAME
========================================================= */

.site-name {
display: block;

width: 100%;
max-width: 650px;

min-width: 0;

font-size: 20px;

line-height: 1.05;

font-weight: bold;

color: #F15B2A;

overflow-wrap: anywhere;

}

/* =========================================================
NAVIGATION
========================================================= */

.main-nav {
display: flex;

align-items: flex-start;

gap: 24px;

min-width: 0;

font-size: 19px;

}

.main-nav > a,
.skills-label {
white-space: nowrap;
}

/* =========================================================
SKILLS MENU
========================================================= */

.skills-menu {
position: relative;

min-width: 0;

}

.skills-label {
cursor: default;
}

.skills-dropdown {
position: absolute;

top: 30px;
left: 5px;

min-width: 160px;

padding-top: 5px;
padding-left: 5px;

display: none;

background: #ffffff;

}

.skills-menu:hover .skills-dropdown,
.skills-menu:focus-within .skills-dropdown {
display: flex;

flex-direction: column;

}

.skills-dropdown a {
display: block;

padding: 4px 0;

white-space: nowrap;

}

/* =========================================================
MOBILE MENU BUTTON
========================================================= */

.mobile-menu-button {
display: none;

border: 0;

padding: 0;

background: none;

cursor: pointer;

font: inherit;

}

/* =========================================================
HOME / WORK GRID
========================================================= */

.work-grid {
width: 100%;
max-width: 100%;

padding: 25px 30px 100px;

display: grid;

grid-template-columns:
    repeat(3, minmax(0, 1fr));

column-gap: 25px;
row-gap: 25px;

}

.work-card {
display: block;

width: 100%;
min-width: 0;

}

.work-card-image {
display: block;

width: 100%;
max-width: 100%;

aspect-ratio: 16 / 9;

object-fit: cover;

background: #eeeeee;

transition: opacity 0.25s ease;

}

.work-card:hover .work-card-image {
opacity: 0.72;
}

.work-card-title {
margin-top: 10px;

font-size: 13px;

line-height: 1.3;

overflow-wrap: anywhere;

}

.work-card-meta {
margin-top: 2px;

color: #777777;

font-size: 12px;

overflow-wrap: anywhere;

}

/* =========================================================
PAGE CONTAINER
========================================================= */

.page {
width: 100%;
max-width: 100%;

padding: 70px 30px 120px;

}

/* =========================================================
ABOUT PAGE
========================================================= */

.about-layout {
width: 100%;
max-width: 1100px;

margin: 0 auto;

display: grid;

grid-template-columns:
    minmax(0, 0.8fr)
    minmax(0, 1fr);

gap: 70px;

}

.about-photo {
width: 100%;
max-width: 100%;
}

.about-copy {
width: 100%;

max-width: 560px;

min-width: 0;

}

.about-copy h1 {
margin: 0 0 30px;

font-size: 22px;

font-weight: normal;

}

.about-copy p {
margin: 0 0 20px;

overflow-wrap: anywhere;

}

.about-links {
margin-top: 40px;

display: flex;

flex-direction: column;

gap: 8px;

}

/* =========================================================
CONTACT PAGE
========================================================= */

.contact-page {
width: 100%;
max-width: 800px;

margin: 0 auto;

padding-top: 50px;

}

.contact-page h1 {
margin: 0 0 35px;

font-size: 22px;

font-weight: normal;

}

.contact-email {
display: inline-block;

max-width: 100%;

margin-bottom: 50px;

font-size: 18px;

overflow-wrap: anywhere;

}

.contact-form {
width: 100%;

max-width: 650px;

}

.form-row {
margin-bottom: 25px;
}

.form-row label {
display: block;

margin-bottom: 7px;

font-size: 12px;

}

.form-row input,
.form-row textarea {
display: block;

width: 100%;
max-width: 100%;

border: 1px solid #bbbbbb;

border-radius: 0;

padding: 12px;

background: #ffffff;

color: #111111;

font: inherit;

}

.form-row textarea {
min-height: 180px;

resize: vertical;

}

.form-row input:focus,
.form-row textarea:focus {
outline: 1px solid #111111;

border-color: #111111;

}

.submit-button {
padding: 10px 20px;

border: 1px solid #111111;

background: #111111;

color: #ffffff;

cursor: pointer;

}

.submit-button:hover {
background: #ffffff;

color: #111111;

}

/* =========================================================
SKILLS PAGES
========================================================= */

.skills-page {
width: 100%;
max-width: 100%;

padding: 40px 30px 100px;

}

.skills-heading {
width: 100%;

max-width: 700px;

margin: 0 auto 60px;

}

.skills-heading h1 {
margin: 0 0 15px;

font-size: 22px;

font-weight: normal;

}

.skills-heading p {
margin: 0;

color: #666666;

overflow-wrap: anywhere;

}

.skills-gallery {
width: 100%;
max-width: 1400px;

margin: 0 auto;

display: grid;

grid-template-columns:
    repeat(2, minmax(0, 1fr));

gap: 25px;

}

.skills-gallery figure {
width: 100%;

min-width: 0;

margin: 0;

}

.skills-gallery img {
display: block;

width: 100%;
max-width: 100%;

background: #eeeeee;

}

.skills-gallery figcaption {
margin-top: 8px;

color: #777777;

font-size: 11px;

overflow-wrap: anywhere;

}

/* =========================================================
PROJECT PAGE
========================================================= */

.project-page {
width: 100%;
max-width: 100%;

padding: 50px 30px 100px;

}

/* =========================================================
PROJECT INTRO
========================================================= */

.project-intro {
width: 100%;
max-width: 1100px;

margin: 0 auto 75px;

}

.project-intro-featured {
width: 100%;

display: grid;

grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, 0.7fr);

gap: 50px;

align-items: center;

}

/* =========================================================
YOUTUBE VIDEO
========================================================= */

.project-intro-video {
width: 100%;
max-width: 100%;

min-width: 0;

aspect-ratio: 16 / 9;

background: #eeeeee;

overflow: hidden;

}

.project-intro-video iframe {
display: block;

width: 100%;
height: 100%;

max-width: 100%;

border: 0;

}

/* =========================================================
PROJECT INTRO CONTENT
========================================================= */

.project-intro-content {
width: 100%;
max-width: 360px;

min-width: 0;

}

.project-intro-content h1 {
margin: 0 0 12px;

font-size: clamp(26px, 3vw, 36px);

line-height: 1.05;

font-weight: 400;

letter-spacing: -0.02em;

overflow-wrap: anywhere;

}

.project-intro-content .project-role {
margin-bottom: 25px;

color: #777777;

font-size: 12px;

overflow-wrap: anywhere;

}

.project-intro-content .project-description {
margin: 0;

font-size: 14px;

line-height: 1.55;

overflow-wrap: anywhere;

}

/* =========================================================
PROJECT GALLERY
========================================================= */

.project-gallery {
width: 100%;
max-width: 1300px;

margin: 0 auto;

display: flex;

flex-direction: column;

gap: 30px;

}

.project-gallery img {
display: block;

width: 100%;
max-width: 100%;

height: auto;

}

/* =========================================================
TWO-COLUMN PROJECT GALLERY
========================================================= */

.project-gallery.two-column {
display: grid;

grid-template-columns:
    repeat(2, minmax(0, 1fr));

gap: 25px;

}

/* =========================================================
PROJECT NAVIGATION
========================================================= */

.project-navigation {
width: 100%;
max-width: 1300px;

margin: 70px auto 0;

padding-top: 25px;

border-top: 1px solid #dddddd;

display: flex;

justify-content: space-between;

align-items: flex-start;

gap: 30px;

font-size: 12px;

}

.project-navigation a {
max-width: 45%;

overflow-wrap: anywhere;

}

/* =========================================================
FOOTER
========================================================= */

.site-footer {
width: 100%;
max-width: 100%;

padding: 25px 30px;

border-top: 1px solid #dddddd;

display: flex;

justify-content: space-between;

align-items: flex-start;

gap: 25px;

font-size: 15px;

color: #555555;

}

.footer-links {
display: flex;

gap: 20px;

flex-wrap: wrap;

}

/* =========================================================
SKIP LINK
========================================================= */

.skip-link {
position: absolute;

left: -9999px;

}

.skip-link:focus {
left: 10px;
top: 10px;

padding: 10px;

background: #111111;

color: #ffffff;

z-index: 9999;

}

/* =========================================================
RESPONSIVE — 1000px
========================================================= */

@media (max-width: 1000px) {

/*
 * Header becomes two rows before the browser
 * gets narrow enough to cause overflow.
 */

.site-header {
    grid-template-columns: 1fr;

    row-gap: 16px;
}

.site-name {
    max-width: 650px;
}

.main-nav {
    width: 100%;
}

/*
 * Project intro gets slightly tighter.
 */

.project-intro-featured {
    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(200px, 0.75fr);

    gap: 35px;
}

}

/* =========================================================
RESPONSIVE — 800px
========================================================= */

@media (max-width: 800px) {

/* Header */

.site-header {
    padding: 20px;
}

.site-name {
    font-size: 20px;

    line-height: 1.08;
}

.main-nav {
    gap: 16px;

    font-size: 18px;
}

/* Home */

.work-grid {
    padding: 20px 20px 80px;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 35px 15px;
}

/* About */

.about-layout {
    grid-template-columns: 1fr;

    gap: 45px;
}

.about-copy {
    max-width: 650px;
}

/* Skills */

.skills-page {
    padding-left: 20px;
    padding-right: 20px;
}

.skills-gallery {
    gap: 15px;
}

/* Project */

.project-page {
    padding-left: 20px;
    padding-right: 20px;
}

.project-intro-featured {
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(180px, 0.8fr);

    gap: 25px;
}

.project-intro-content h1 {
    font-size: 28px;
}

.project-gallery {
    gap: 20px;
}

/* Footer */

.site-footer {
    padding-left: 20px;
    padding-right: 20px;
}

}

/* =========================================================
RESPONSIVE — 650px
========================================================= */

@media (max-width: 650px) {

/* Header */

.site-header {
    display: block;

    padding: 18px 20px;
}

.site-name {
    width: 100%;

    max-width: none;

    margin-bottom: 18px;

    font-size: 16px;

    line-height: 1.1;
}

.main-nav {
    width: 100%;

    display: flex;

    flex-wrap: wrap;

    gap: 10px 18px;

    font-size: 16px;
}

/* Skills dropdown */

.skills-dropdown {
    position: static;

    min-width: 0;

    padding-top: 8px;
    padding-left: 0;
}

.skills-menu:hover .skills-dropdown,
.skills-menu:focus-within .skills-dropdown {
    display: flex;
}

/* Home */

.work-grid {
    padding: 5px 20px 70px;

    grid-template-columns: 1fr;

    row-gap: 38px;
}

.work-card-image {
    aspect-ratio: 4 / 3;
}

/* General pages */

.page {
    padding: 40px 20px 80px;
}

/* About */

.about-layout {
    display: block;
}

.about-photo {
    margin-bottom: 40px;
}

.about-copy h1,
.contact-page h1,
.skills-heading h1,
.project-intro h1 {
    font-size: 20px;
}

/* Skills */

.skills-page {
    padding: 30px 20px 70px;
}

.skills-heading {
    margin-bottom: 40px;
}

.skills-gallery {
    grid-template-columns: 1fr;

    gap: 30px;
}

/* Project */

.project-page {
    padding: 35px 20px 75px;
}

.project-intro {
    margin-bottom: 55px;
}

.project-intro-featured {
    display: block;
}

.project-intro-video {
    margin-bottom: 30px;
}

.project-intro-content {
    width: 100%;

    max-width: none;
}

.project-intro-content h1 {
    font-size: 27px;
}

.project-intro-content .project-role {
    margin-bottom: 20px;
}

.project-intro-content .project-description {
    font-size: 13px;
}

.project-gallery {
    gap: 20px;
}

.project-gallery.two-column {
    grid-template-columns: 1fr;
}

.project-navigation {
    margin-top: 50px;

    flex-direction: column;

    gap: 15px;
}

.project-navigation a {
    max-width: 100%;
}

/* Footer */

.site-footer {
    padding: 20px;

    display: block;
}

.footer-links {
    margin-top: 10px;

    gap: 10px 20px;
}

}

/* =========================================================
RESPONSIVE — VERY SMALL PHONES
========================================================= */

@media (max-width: 400px) {

.site-header {
    padding-left: 15px;
    padding-right: 15px;
}

.site-name {
    font-size: 14px;
}

.main-nav {
    font-size: 15px;

    gap: 8px 15px;
}

.work-grid,
.project-page,
.skills-page,
.page {
    padding-left: 15px;
    padding-right: 15px;
}

.project-intro-content h1 {
    font-size: 24px;
}

.site-footer {
    padding-left: 15px;
    padding-right: 15px;
}

}

/* =========================================================
ACCESSIBILITY — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

html {
    scroll-behavior: auto;
}

.work-card-image {
    transition: none;
}

}