/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    cursor: none;
    overflow-y: auto;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 500;
    font-size: 4rem;
    letter-spacing: -0.3rem;
    line-height: 4rem;
    margin: 0;
    padding: 0;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 250;
    font-size: 2.0rem;
    letter-spacing: -0.1rem;
    line-height: 2.1rem;
    margin: 0;
    padding: 0;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 600;
    font-size: 1rem;
    letter-spacing: -0.02rem;
    line-height: 1.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

p {
    font-variation-settings: 'wght' 250;
    font-size: 0.9rem;
    letter-spacing: -0.02rem;
    line-height: 1.3rem;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: #000000;
    cursor: none;
}

a:hover {
    color: #0d00ff;
}

/* Index Page Layout */
.main-layout {
    flex: 1 0 auto;  /* Use flex-grow and flex-shrink */
    display: grid;
    grid-template-columns: 30% 70%;
    gap: 2rem;
    padding: 0rem 2rem 7rem 2rem; /* Increased bottom padding to account for footer */
    box-sizing: border-box;
    justify-content: space-between;
    overflow: hidden;
    min-height: 100%; /* Changed from calc to use full container height */
}

.left-column {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding:0rem;
    box-sizing: border-box;
}

.left-column .content {
    padding: 1.8rem 0 0 0;
}

.right-column {
    position: relative;
    height: 100%;
}

.portfolio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    height: 100%;
    overflow-y: scroll;
    position: absolute;
    inset: 0;
    padding: 2rem 2rem 0 0;
}

.portfolio {
    scrollbar-width: none;
    scrollbar-color: #ffffff transparent;
}

@supports (-moz-appearance: none) {
    .portfolio {
        scrollbar-width: none;
    }
}

.portfolio-spacer {
    height: 1rem;
}

.portfolio-item {
    width: 100%;
    box-sizing: border-box;
    border-bottom: 0.06rem solid #000000;
}

.portfolio-item h1 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 4rem;
    letter-spacing: -0.3rem;
    line-height: 4rem;
}

.portfolio-item h1:hover {
    color: #0d00ff;
}


.portfolio-item-text {
    display: flex;
    justify-content: start;
    align-items: center;
    padding-top: 1.5rem;
}

.portfolio-item-text p {
    text-decoration: none;
    border-radius: 0.6rem;
    background-color: #ebe4ea;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 250;
    font-size: 1rem;
    letter-spacing: -0.02rem;
    line-height: 1rem;
    white-space: nowrap;
}

/* Project Pages Shared Styles */
.project-page {
    margin: 0;
    padding: 1rem;
    height: auto;
    min-height: 100vh;
    position: relative;
}

.decal {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    display: flex;
    justify-content: start;
    align-items: center;
    padding-top: 1rem;
    padding-left: 2rem;
    z-index: 10;
}

.header-line {
    width: 100%;
    height: 3rem;
    background-color: #000000;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.header-line:hover {
    background-color: #0d00ff;
    transition: background-color 0.3s ease;
}

.project-header {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    padding-top: 4rem;
    padding-bottom: 5rem;
    padding-right: 1rem;
    padding-left: 1rem;
    background: #FFFFFF;
    position: relative;
    width: auto;
}

.header-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-left .title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left .title-row h1 {
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 2.25rem;
    letter-spacing: -0.15rem;
    line-height: 2.5rem;
    color: #000000;
    margin: 0;
}

.header-left .decal {
    margin-left: 1rem;
}

.header-left .decal h2 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 1.8rem;
    letter-spacing: -0.02rem;
    line-height: 1.8rem;
    margin: 0;
}


.header-right {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: auto;
}

.header-right .details {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    width: auto;
}

.header-right .details p {
    text-decoration: none;
    border-radius: 0.6rem;
    background-color: #ebe4ea;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 250;
    font-size: 1rem;
    letter-spacing: -0.02rem;
    line-height: 1rem;
    white-space: nowrap;
}

.header-right .details p a {
    text-decoration: none;
    color: #000000;
}

.header-right .details p a:hover {
    color: #0d00ff;
}

.metrics-section {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
}

.metrics-section .metric {
    display: flex;
    flex-direction: column;
    width: auto;
}

.metrics-section .metric .metric-text p {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 4rem;
    letter-spacing: -0.02rem;
    line-height: 4rem;
}

.project-approach {
    margin: 0 auto;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
}

.project-approach .line {
    position: relative;
    width: 100%;
    height: 0.06rem;
    background-color: #000000;
    top: 0;
    left: 0;
}

.project-approach h1 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 2.25rem;
    letter-spacing: -0.15rem;
    line-height: 2.5rem;
    position: relative;
    margin-left: 0rem;
    z-index: 2;
    width: 100%;
}

.project-showcase {
    padding-left: 1rem;
    padding-right: 1rem;
    background: #FFFFFF;
    width: 80%;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.project-grid-image {
    width: auto;
    padding: 0;
    margin: 0;
    line-height: 0; /* Remove any line-height spacing */
}

.project-grid-image picture {
    display: block;
    line-height: 0;
    font-size: 0; /* Remove any font-based spacing */
}

.project-grid-image img {
    max-width: 100%;
    height: auto;
    display: block;
    background: transparent;
}

/* Full width items */
.project-grid-image:nth-child(1) {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 6px 6px rgba(0, 0, 0, 0.08),
    0 0 100px rgba(0, 0, 0, 0.05);
    background: transparent;
    overflow: hidden;
    border-radius: 1rem;
}

/* Half width items - already handled by default grid layout */
.project-grid-image:nth-child(2),
.project-grid-image:nth-child(3),
.project-grid-image:nth-child(4),
.project-grid-image:nth-child(5) {
    height: auto;
    width: auto;
    object-fit: cover;
    object-position: center;
    align-self: center;
    margin: 0 auto;
}

/* Clear floats after the grid */
.project-grid::after {
    content: "";
    display: table;
    clear: both;
}

.project-grid-image-fringe {
    width: auto;
    padding: 0;
    margin: 0;
    line-height: 0; /* Remove any line-height spacing */
}

.project-grid-image-fringe picture {
    display: block;
    line-height: 0;
}

.project-grid-image-fringe img {
    width: 100%;
    height: auto;
    display: block;
}

.project-grid-image-fringe:nth-child(1)
.project-grid-image-fringe:nth-child(2){
height: auto;
width: auto;
object-fit: cover;
object-position: center;
align-self: center;
margin: 0 auto;
}   
    
.project-grid-image-fringe:nth-child(3){
    grid-column: 1 / -1;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 6px 6px rgba(0, 0, 0, 0.08),
    0 0 100px rgba(0, 0, 0, 0.05);
    background: transparent;
    overflow: hidden;
}

.overview {
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    padding-top: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
}

.overview .line {
    position: relative;
    width: 100%;
    height: 0.06rem;
    background-color: #000000;
    top: 0;
    left: 0;
}

.overview h1 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 2.25rem;
    letter-spacing: -0.15rem;
    line-height: 2.5rem;
    position: relative;
    margin-left: 0rem;
    z-index: 2;
    width: 100%;
}

.overview-text {
    position: relative;
    justify-content: center;
    align-items: start;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
    columns: 2;
    column-gap: 2rem;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.6rem;
    color: #000000;
    padding-bottom: 1rem;
}

.overview-text-quote {
    position: relative;
    justify-content: center;
    align-items: start;
}

.overview-text-quote p {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.2rem;
    color: #000000;
}

.quote {
    width: auto;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
    text-align: left;
}

.quote p {
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 350;
    font-size: 4rem;
    letter-spacing: -0.07rem;
    line-height: 4rem;
    color: #000000;
}

.technology {
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
}

.technology .line {
    position: relative;
    width: 100%;
    height: 0.06rem;
    background-color: #000000;
    top: 0;
    left: 0;
}

.technology h1 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 2.25rem;
    letter-spacing: -0.15rem;
    line-height: 2.5rem;
    position: relative;
    margin-left: 0rem;
    z-index: 2;
    width: 100%;
}

.summary {
    width: auto;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
    text-align: left;
}

.summary p {
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 400;
    font-size: 2.3rem;
    line-height: 2.6rem;
    text-align: left;
    letter-spacing: -0.06rem;
    color: #000000;
    border-radius: 0rem;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.technology-text {
    position: relative;
    justify-content: start;
    align-items: start;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
    columns: 1;
    text-align: left;
    width: 44%;
}

.technology-text p {
    font-size: 1.1rem;
    line-height: 1.6rem;
    color: #000000;
    line-break: auto;
    border-radius: 0.6rem;
    background-color: #ebe4ea;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 0.8rem;
    margin-bottom: 0.5rem;
}

.credit {
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 3rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
}

.credit .line {
    position: relative;
    width: 100%;
    height: 0.06rem;
    background-color: #000000;
    top: 0;
    left: 0;
}

.credit h1 {
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-variation-settings: 'wght' 300;
    font-size: 2.25rem;
    letter-spacing: -0.15rem;
    line-height: 2.5rem;
    position: relative;
    margin-left: 0rem;
    z-index: 2;
    width: 100%;
}

.credit-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    width: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
    background: #FFFFFF;
    mix-blend-mode: normal;
}

.credit-item {
    flex: 1;
    min-width: 0;
}

.credit-text p {
    font-size: 1.1rem;
    line-height: 1.6rem;
    margin-bottom: 0.4rem;
    line-break: auto;
    color: #000000;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color:#ffffff;
    z-index: 1000;
    height: 5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer .divider {
    position: relative;
    width: 100%;
    height: 0.06rem;
    background-color: #000000;
    margin: 0;
}

.footer .divider h1 {
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    background: #ffffff;
    margin: 0;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 20px;
    height: 20px;
}   

/* Hover effect for interactive elements */
a:hover ~ .cursor,
button:hover ~ .cursor,
[role="button"]:hover ~ .cursor {
    width: 20px;
    height: 20px;
    mix-blend-mode: difference;
    text-decoration: none;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Global Mobile Overrides */
    body {
        margin: 0;
        padding: 0;
    }

    /* Typography Adjustments */
    h1 {
        font-size: 2.5rem;
        letter-spacing: -0.15rem;
        line-height: 2.8rem;
    }

    h2 {
        font-size: 1.6rem;
        letter-spacing: -0.08rem;
        line-height: 1.8rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.4rem;
    }

    .cursor {
        display: none;
    }

    /* Index Page Layout */
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .left-column {
        height: auto;
        max-height: none;
        gap: 1.5rem;
        padding-bottom: 1rem;
    }

    .content {
        margin-bottom: 2rem;
    }

    .content h2 {
        font-size: 2.8rem;
        line-height: 2.8rem;
        color: #000000;
    }

    .description-container--1 {
        margin-bottom: 1rem;
    }

    .right-column {
        height: auto;
        position: relative;
    }

    .portfolio {
        position: relative;
        overflow-y: visible;
        padding: 0;
        gap: 2rem;
        margin-bottom: 0rem;
    }

    .portfolio-item {
        margin-bottom: 0rem;
    }

    .portfolio-item-text {
        font-size: 1rem;
        line-height: 1.4rem;
        margin-top: 0.8rem;
        margin-bottom: 2rem;
    }

    /* Project Page Header */
    .project-header {
        grid-template-columns: 1fr;
        padding-top: 3rem;
        padding-bottom: 3rem;
        padding-left: 0rem;
        gap: 1.5rem;
    }

    .header-left .title-row h1 {
        font-size: 2.5rem;
        line-height: 2.8rem;
        letter-spacing: -0.15rem;
    }

    .header-right .details {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .header-right .details p {
        font-size: 0.9rem;
        padding: 0.25rem 0.6rem;
    }

     /* Metrics Section */
     .metrics-section {
        flex-direction: column;
        gap: 0rem;
        padding-bottom: 0rem;
        margin-bottom: -2rem;
    }

    .metrics-section .metric {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .metrics-section .metric .metric-text {
        display: flex;
        flex-direction: column;
        gap: 0rem;
        margin-bottom: 2rem;
    }

    .metrics-section .metric .metric-text p {
        font-family: 'Inter', sans-serif;
        font-variation-settings: 'wght' 250;
        font-size: 1.6rem !important;
        line-height: 1.6rem !important;
        color:#0d00ff;
        letter-spacing: -0.1rem;
    }

    .project-approach {
        padding: 1.5rem 0;
    }

    .project-approach h1 {
        font-size: 2rem;
        line-height: 2.2rem;
        letter-spacing: -0.1rem;
    }

    /* Project Grid */
    .project-showcase {
        width: 100%;
        padding: 0;
    }

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

    .project-grid-image {
        width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .project-grid-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Apply the same changes to Fringe Festival project images */
    .project-grid-image-fringe {
        width: 100% !important;
        grid-column: 1 / -1 !important;
    }

    .project-grid-image-fringe img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Overview and Text Sections */

    .overview {
        padding: 0rem;
    }

    .project-content-wrapper .quote {
        width: auto;
        text-align: left;
        padding: 0rem;
        margin: 2rem 0;
        word-break: break-word;
        hyphens: auto;
    }
    
    .project-content-wrapper .quote p {
        font-family: 'Inter', sans-serif;
        font-variation-settings: 'wght' 400;
    font-size: 2.3rem;
    line-height: 2.6rem;
    text-align: left;
    letter-spacing: -0.06rem;
        color: #000000;
        padding: 0rem;
        margin: 0;
    }

    .overview-text {
        padding: 0rem;
        columns: 1;
    }

    .overview-text p,
    .project-content p {
        font-size: 1rem;
        line-height: 1.4rem;
        margin-bottom: 1rem;
    }

    /* Technology Section */
    .technology {
        padding: 0;
    }

    .summary {
        padding-top: 2rem;
        padding-bottom: 2rem;
        padding-left: 0rem;
        padding-right: 0rem;
    }

    .technology-text {
        padding: 0rem;
        width: 100%;
    }

    .technology-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .technology-item {
        width: 100%;
        padding: 0.5rem 0;
    }

    /* Credits Section */
    .credit {
        padding: 0;
    }

    .credit-text {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .credit-item {
        width: 100%;
    }

    .credit-item p {
        margin-bottom: 0.5rem;
    }

    /* Footer */
   .footer {
    position: fixed;
    background-color:#0d00ff;
    z-index: 1000;
    height: 5rem;
    display: flex;
    justify-content: center;   
}

.footer .divider {
    width: 100%;
    height: 0.06rem;
    display: flex;
    justify-content: center;
}

.footer .divider h1 {
    font-size: 4rem;
    line-height: 4rem;
    letter-spacing: -0.2rem;
    background-color: transparent;
    color: #ffffff;
}

    /* Decal and Lines */
    .header-line {
        height: 2rem;
    }

    .line {
        margin: 1rem 0;
    }

}
