@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 
 * KEYFRAMES
 */
@-webkit-keyframes scrollText {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes scrollText {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@-webkit-keyframes fadeInPopup {
    from {
        opacity: 0;
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
        -webkit-transform: translateY(-20px);
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes spinLoadingIndicator {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinLoadingIndicator {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* 
 * RESET & BASE
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color variables */
    --primary-color: #0d0d0d;
    --secondary-color: #f7f7f7;
    --accent-color: #d9d9d9;
    --highlight-color: #e0e5ed;
    --error-color: #ea2a2a;
    --popup-color: #efefef;
    --text-muted: #8c8984;
    --text-secondary: #595754;

    /* Font variables */
    --font-primary: 'Inter', sans-serif;

    /* Layout */
    --content-max-width: 1200px;
    --header-height-mobile: 56px;
    --border-radius-lg: 20px;
    --border-radius: 10px;
    --border-radius-sm: 6px;

    /* Font weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

html,
body {
    /* Make the page fill height, and place footer at bottom */
    height: 100%;
    font-family: var(--font-primary);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scrollbar-gutter: stable;
}

body {
    background: radial-gradient(77vw 46vw at 18% 14.6vw, rgba(30, 116, 251, 0.135) 17%, transparent 76%) no-repeat #f6f6f6;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
}

ul {
    list-style: none;
}

input,
select,
textarea,
button {
    font-family: inherit;
}

main {
    /* Main grows to fill space, pushing footer to bottom if content is short */
    flex: 1 0 auto;
}

/* 
 * TYPOGRAPHY
 */
h1 {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    font-size: 96px;
    line-height: 106px;
    letter-spacing: -6.72px;
    text-align: left;
    text-transform: lowercase;
}

h2 {
    color: var(--primary-color);
    font-weight: var(--font-weight-regular);
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 2px;
    text-align: left;
    text-transform: uppercase;
}

h3 {
    color: var(--primary-color);
    font-weight: var(--font-weight-semibold);
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 0;
    text-align: left;
}

p {
    color: var(--primary-color);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    line-height: 28px;
    letter-spacing: 0.2px;
    text-align: left;
    text-wrap: balance;
}

.btn {
    padding: 15px 24px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    font-weight: var(--font-weight-regular);
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    transition: all 0.3s ease;
    will-change: transform, opacity;
}

.submit-btn,
.cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-medium);
    height: 64px;
    padding: 0 80px;
    font-size: 20px;
    border-radius: var(--border-radius-lg);
}

.submit-btn {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    border: none;
}

.submit-btn.disabled,
.submit-btn:disabled {
    cursor: not-allowed;
}

.submit-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
}

.cancel-btn {
    background-color: #fff;
    color: var(--text-muted);
    border: 1px solid var(--accent-color);
}

.cancel-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #fff;
}

/* 
 * HEADER
 */
header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 42px 42px 0;
}

/* 
 * BRANDING
 */
.branding {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    width: 124px;
    height: 40px;
    object-fit: cover;
    object-position: top left;
}


/* 
 * NAVIGATION
 */
.nav-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    letter-spacing: 2px;
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav li a {
    padding: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    border-top: 1px solid transparent;
}

.desktop-nav a.active {
    border-top: 1px solid var(--text-muted);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav li a {
    padding: 10px;
    font-size: 18px;
    border-bottom: 1px solid transparent;
}

.mobile-nav a.active {
    border-bottom: 1px solid var(--text-muted);
}

/* MENU ICON (MOBILE) */
.menu-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    text-align: right;
}

.menu-icon img {
    width: 23px;
    height: 23px;
}

.menu-icon .close-icon {
    display: none;
}

.menu-icon.open .hamburger-icon {
    display: none;
}

.menu-icon.open .close-icon {
    display: block;
}

/* 
 * RESPONSIVE NAVIGATION 
 */
@media (max-width: 890px) {
    h1 {
        font-size: 48px;
        line-height: 120%;
        letter-spacing: -1.92px;
    }

    p {
        letter-spacing: 0px;
    }

    .btn {
        border-radius: var(--border-radius-sm);
    }

    .submit-btn,
    .cancel-btn {
        height: 44px;
        padding: 0 24px;
        font-size: 14px;
        border-radius: var(--border-radius-sm);
    }

    .desktop-nav {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .header-content {
        padding: 15px 20px 9px;
    }

    .logo {
        width: 100px;
        height: 32px;
    }

    .branding {
        gap: 10px;
    }

}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height-mobile));
    background: radial-gradient(77vw 46vw at 18% calc(14.6vw - var(--header-height-mobile)),
            rgba(30, 116, 251, 0.135) 17%, transparent 76%) no-repeat rgb(246, 246, 246, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: visibility, opacity;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 
 * FOOTER
 */
.footer-middle {
    width: 100%;
    overflow: hidden;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.scrolling-text {
    white-space: nowrap;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    font-size: 12px;
    line-height: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    animation: scrollText 20s linear infinite;
    will-change: transform;
    gap: 8px;
}

/* 
 * FOOTER BOTTOM
 */
.footer-bottom {
    background-color: var(--highlight-color);
    padding: 10px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    align-items: center;
}

.footer-social a img {
    width: 24px;
    height: auto;
    margin: 22px 22px;
    display: block;
    transition: transform 0.3s ease;
    will-change: transform;
}

.footer-social a:hover img {
    transform: scale(1.1);
}

/* 
 * RESPONSIVE FOOTER
 */
@media (max-width: 890px) {
    .footer-middle {
        padding: 6px 0;
    }

    .scrolling-text {
        font-size: 10px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 20px 20px;
    }

    .footer-info p {
        font-size: 10px;
    }

    .footer-social {
        gap: 24px;
    }

    .footer-social a img {
        margin: 0;
    }
}

/* 
 * LOADING SPINNER 
 */
.spinner {
    border: 8px solid var(--secondary-color);
    border-top: 8px solid var(--text-muted);
    border-radius: 50%;
    overflow: hidden;
    width: 60px;
    height: 60px;
    animation: spinLoadingIndicator 1s linear infinite;
    margin: 100px auto;
}

/* 
 * MAIN CONTENT - CONTACT PAGE
 */
.contact-content {
    padding: 80px 20px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 122px;
    position: relative;
}

.project-info {
    flex: 0 0 42%;
}

.project-form {
    flex: 1;
    padding: 85px 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TITLE & SUBTITLE */
.contact-title {
    margin-bottom: 40px;
}

.contact-subtitle {
    font-size: 20px;
    line-height: 26px;
    text-wrap: wrap;
}

.contact-subtitle.mobile-only {
    display: none;
}

/* FORM FIELDS */
fieldset {
    border: none;
}

fieldset label {
    display: block;
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.14px;
    margin-bottom: 4px;
    color: var(--primary-color);
}

fieldset input,
fieldset select,
fieldset textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--accent-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: border-color 0.3s ease;
    color: var(--primary-color);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: -0.16px;
    text-align: left;
    outline: none;
}

::placeholder {
    color: var(--text-muted);
    text-wrap: balance;
}

fieldset select {
    appearance: none;
    background-image: url("../assets/images/form-field-chevron.svg");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 24px;
}

fieldset select:invalid {
    color: var(--text-muted);
}

fieldset select option {
    color: var(--primary-color);
}

fieldset textarea {
    resize: vertical;
    min-height: 120px;
}

/* FORM BUTTONS */
.form-buttons {
    display: flex;
    gap: 16px;
}

/* FORM FOCUS */
fieldset.focused input,
fieldset.focused select,
fieldset.focused textarea {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
    transition: all 0.3s ease;
}

fieldset.focused label {
    font-weight: var(--font-weight-semibold);
    transition: color 0.3s ease;
}

/* 
 * RESPONSIVE CONTACT PAGE 
 */
@media (max-width: 890px) {
    .contact-content {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
    }

    .contact-title {
        margin-bottom: 14px;
    }

    .contact-title br {
        display: none;
    }

    .contact-subtitle {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.16px;
    }

    .contact-subtitle.desktop-only {
        display: none;
    }

    .contact-subtitle.mobile-only {
        display: block;
    }

    .project-form {
        padding: 0;
    }

    .form-buttons {
        align-items: flex-start;
    }
}

/* 
 * CONTACT - SUCCESS POPUP
 */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000cc;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-overlay.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.success-popup {
    background-color: #f6f6f6;
    padding: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    width: min(568px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInPopup 0.3s ease-out;
}

.success-popup h1 {
    max-width: 488px;
    margin-bottom: 40px;
    text-align: center;
}

.success-details {
    max-width: 488px;
    margin-bottom: 48px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.16px;
    text-align: center;
}

.success-icon {
    width: 212px;
    height: 167px;
    margin-bottom: 48px;
    animation: fadeInPopup 0.5s ease-out;
}

/* 
 * RESPONSIVE SUCCESS POPUP
 */
@media (max-width: 890px) {
    .success-popup {
        width: min(351px, 100%);
        padding: 32px 20px;
    }

    .success-popup h1 {
        max-width: 351px;
        margin-bottom: 14px;
    }

    .success-details {
        max-width: 351px;
        margin-bottom: 48px;
    }

    .success-icon {
        width: 162px;
        height: 131px;
    }
}

/* CONTACT - FORM ERRORS */
.error-message {
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: var(--error-color);
}

.error-message img {
    width: 16px;
    height: 16px;
}

.error-message p {
    color: var(--error-color);
    font-weight: var(--font-weight-medium);
    font-size: 12px;
    letter-spacing: 0;
}

fieldset.error .error-message {
    display: flex;
}

fieldset.error input,
fieldset.error select,
fieldset.error textarea {
    border-color: var(--error-color);
}

/* 
 * MAIN CONTENT - HOME PAGE 
 */
.home-content {
    padding: 200px 20px 100px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.home-page-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

/* Desktop: title + primary CTA share the first row (Figma) */
.home-page-section>h1 {
    grid-column: 1;
    grid-row: 1;
}

.home-page-section>.submit-btn {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    width: auto;
}

.home-page-section>*:not(h1):not(.submit-btn) {
    grid-column: 1 / -1;
}

/* Sections with no CTA: title spans full width */
.home-page-section:not(:has(> .submit-btn))>h1 {
    grid-column: 1 / -1;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 83px;
}

.hero-section-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 80px;
    max-width: 914px;
}

.hero-section-info h1 {
    font-size: 140px;
    font-weight: var(--font-weight-semibold);
    line-height: 140px;
    letter-spacing: -9.8px;
    text-transform: uppercase;
}

.hero-section-role {
    display: none;
    text-transform: uppercase;
}

.hero-section-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 892px;
}

.hero-section-copy p {
    color: var(--text-secondary);
    font-size: 30px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    letter-spacing: 0.2px;
    text-wrap: initial;
}

.hero-section-headshot {
    flex: none;
    width: 200px;
    aspect-ratio: 1;
}

.hero-section-headshot img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* SERVICES SECTION */
.services-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
    column-gap: 55px;
    align-items: start;
}

.services-section-card {
    background-color: var(--popup-color);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: fadeInPopup 0.3s ease-out;
    transition: transform 0.3s ease;
    will-change: transform, opacity;
}

.services-section-card:hover {
    transform: scale(1.05);
    background-color: var(--highlight-color);
}

.services-section-card img {
    display: block;
    width: 100%;
    aspect-ratio: 323 / 166;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.services-section-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.services-section-card p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    letter-spacing: 0;
    text-wrap: initial;
}

/* SOFTWARE SKILLS SECTION */
.skills-section-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skills-section-item {
    display: grid;
    grid-template-columns: 81px auto;
    align-items: center;
}

.skills-section-item img {
    height: 40px;
    justify-self: start;
}

.skills-section-item p {
    font-size: 20px;
    letter-spacing: 0.4px;
}

/* ABOUT ME SECTION */
.about-me-text {
    font-size: 20px;
    line-height: 26px;
    max-width: 791px;
}

/* 
 * RESPONSIVE HOME PAGE 
 */
@media (max-width: 890px) {

    .home-content {
        padding: 64px 20px;
        gap: 64px;
    }

    .home-page-section {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .home-page-section>.submit-btn {
        order: 1;
        align-self: flex-start;
        width: auto;
    }

    .hero-section {
        flex-direction: column;
        gap: 24px;
    }

    .hero-section-info {
        width: 100%;
        gap: 24px;
    }

    .hero-section-headshot {
        order: -1;
        width: 160px;
    }

    .hero-section-info h1 {
        font-size: 60px;
        line-height: 1.2;
        letter-spacing: -2.4px;
    }

    .hero-section-role {
        display: block;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 1.28px;
    }

    .hero-section-copy {
        gap: 16px;
    }

    .hero-section-copy p {
        font-size: 16px;
        font-weight: var(--font-weight-regular);
        line-height: 1.5;
        letter-spacing: 0.16px;
    }

    .home-page-section h2 {
        font-size: 16px;
        letter-spacing: 8%;
        line-height: 150%;
    }

    .home-page-section p {
        letter-spacing: 1px;
        line-height: 150%;
    }

    .services-section-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-section-card {
        gap: 0;
        padding: 16px 20px;
        animation: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .services-section-card img {
        display: none;
    }

    .services-section-card h3 {
        font-size: 20px;
        line-height: 1.4;
    }

    .services-section-card.appear {
        opacity: 1;
        transform: translateY(0);
    }

    .skills-section-item p {
        font-size: 16px;
        letter-spacing: 0.16px;
        line-height: 150%;
    }

    .about-me-text {
        max-width: none;
        font-size: 16px;
    }
}

/*
 * MAIN CONTENT - WORK PAGE
 */
.work-content {
    padding: 100px 20px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projects-grid .project-row {
    display: grid;
    gap: 20px;
}

.projects-grid .row-1 {
    grid-template-columns: 651fr 529fr;
}

.projects-grid .row-2 {
    grid-template-columns: 312fr 392fr 456fr;
}

.projects-grid .row-3 {
    grid-template-columns: 529fr 651fr;
}

.projects-grid .row-4 {
    grid-template-columns: 456fr 392fr 320fr;
}

.projects-grid .project-item {
    --project-copy-width: 323px;
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
    border: 2px solid #c4cede;
    padding: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 333px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    will-change: transform, opacity, background-position;
}

.projects-grid .project-img-mobile {
    display: none;
    object-fit: cover;
    border-radius: var(--border-radius);
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 166;
}

.projects-grid .project-item-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: var(--project-copy-width);
}

.projects-grid .project-item h3 {
    line-height: 1.4;
}

.projects-grid .project-item p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    letter-spacing: 0;
    text-wrap: initial;
}

.projects-grid .btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background-color: transparent;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
    transition: gap 0.3s ease;
}

.projects-grid .btn-arrow img {
    width: 16px;
    height: 16px;
}

.projects-grid .project1 {
    --project-copy-width: 351px;
    background-color: #f5f8ea;
    background-image: url("../assets/images/project1-desktop.avif");
}

.projects-grid .project2 {
    --project-copy-width: 365px;
    background-color: #f1f7f9;
    background-image: url("../assets/images/project2-desktop.avif");
}

.projects-grid .project3 {
    --project-copy-width: 258px;
    background-color: #f6f2e6;
    background-image: url("../assets/images/project3-desktop.avif");
}

.projects-grid .project4 {
    --project-copy-width: 244px;
    background-color: #eef1f6;
    background-image: url("../assets/images/project4-desktop.avif");
}

.projects-grid .project5 {
    --project-copy-width: 359px;
    background-color: #fafaeb;
    background-image: url("../assets/images/project5-desktop.avif");
}

.projects-grid .project6 {
    --project-copy-width: 323px;
    background-color: #e8f3f3;
    background-image: url("../assets/images/project6-desktop.avif");
}

.projects-grid .project7 {
    --project-copy-width: 360px;
    background-color: #f3f2ee;
    background-image: url("../assets/images/project7-desktop.avif");
}

.projects-grid .project8 {
    --project-copy-width: 345px;
    background-color: #f8f6e2;
    background-image: url("../assets/images/project8-desktop.avif");
}

.projects-grid .project9 {
    --project-copy-width: 296px;
    background-color: #ebf1ea;
    background-image: url("../assets/images/project9-desktop.avif");
}

.projects-grid .project10 {
    --project-copy-width: 260px;
    background-color: #f7eede;
    background-image: url("../assets/images/project10-desktop.avif");
}

/* 
 * RESPONSIVE WORK PAGE 
 */
@media (max-width: 890px) {
    .work-content {
        padding: 64px 20px;
        gap: 24px;
    }

    .projects-grid {
        gap: 24px;
    }

    .projects-grid .project-row {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .projects-grid .project-item {
        min-height: 0;
        background-image: none;
        border-width: 1px;
        padding: 16px 26px;
        gap: 16px;
        animation: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .projects-grid .project-item.appear {
        opacity: 1;
        transform: translateY(0);
    }

    .projects-grid .project-img-mobile {
        display: block;
    }

    .projects-grid .project-item .btn-arrow {
        display: none;
    }

    .projects-grid .project-item-copy {
        max-width: none;
    }

    .projects-grid .project-item h3 {
        font-size: 20px;
    }

    .projects-grid .project-item p {
        line-height: 1.5;
        letter-spacing: 0.14px;
    }
}