/* Project Pages Styles */
@font-face {
    font-family: 'bianzhidai-Base';
    src: url('/fonts/bianzhidai-Base.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'bianzhidai-back';
    src: url('/fonts/bianzhidai_COLR-back.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'helvetica-neue-medium';
    src: url('/fonts/helvetica-neue-5/HelveticaNeueMedium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'helvetica-neue-bold';
    src: url('/fonts/helvetica-neue-5/HelveticaNeueBold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'helvetica-neue-italic';
    src: url('/fonts/helvetica-neue-5/HelveticaNeueItalic.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'helvetica-neue-light-italic';
    src: url('/fonts/helvetica-neue-5/HelveticaNeueLightItalic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'helvetica-neue-light';
    src: url('/fonts/helvetica-neue-5/HelveticaNeueLight.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'hikarumono';
    src: url('/fonts/HIKARUMONO-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'futura-med';
    src: url('/fonts/Futura\ Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'spartan-bold';
    src: url('/fonts/LeagueSpartan-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'robotomono-med';
    src: url('/fonts/RobotoMono-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'schoolbell-reg';
    src: url('/fonts/Schoolbell-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'jetbrainsmono';
    src: url('/fonts/JetBrainsMono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pinyonscript';
    src: url('/fonts/PinyonScript-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'flor';
    src: url('/fonts/FlorDeRuina-Flor.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'germen';
    src: url('/fonts/FlorDeRuina-Germen.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}



body {
    margin: 0;
    padding: 0;
    background-color: #101010;
    position: relative;
}

/* Repeating background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/tume-taust.jpg');
    /* Your pattern image */
    background-repeat: repeat;
    background-size: 1000px 1000px;
    /* Adjust size as needed */
    opacity: 0.8;
    /* Subtle pattern */
    pointer-events: none;
    mix-blend-mode: difference;
    /* Allows clicking through */
    z-index: -1;
}

/* Sticky Back Button */
.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    font-family: 'bianzhidai-back', sans-serif;
    font-size: 12px;
    color: #C7C7C7;
    text-decoration: none;
    border: 1px solid #C7C7C7;
    backdrop-filter: blur(10px);
    background: rgba(16, 16, 16, 0.7);
    z-index: 1000;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.back-home:hover {
    color: #fff;
    border-color: #fff;
}

/* Floating Project Navigation */
.project-nav {
    position: fixed;
    backdrop-filter: blur(10px);
    top: 24px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.project-nav-item {
    font-family: 'helvetica-neue-light', sans-serif;
    font-size: 14px;
    color: #C7C7C7;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-align: right;
    background: transparent;
}

.project-nav-item:hover {
    border-color: #C7C7C7;
}

.project-nav-item.active {
    background: rgba(199, 199, 199, 0.2);
    border: 1px solid #C7C7C7;
}

/* Project Content Area */
.project-content {
    max-width: 1200px;
    margin: 80 auto;
    padding: 80px 40px 80px 40px;
    border: 1px white solid;
}

/* Project Header */
.project-header {
    margin-bottom: 80px;
}

.project-meta {
    margin-bottom: 20px;
}

.project-tag-single {
    font-family: 'helvetica-neue-light', sans-serif;
    font-size: 14px;
    color: #C7C7C7;
    letter-spacing: 1px;
}

.project-title-large {
    font-size: 120px;
    font-weight: normal;
    letter-spacing: 8px;
    margin-bottom: 40px;
    line-height: 1;
    color: #C7C7C7;
}

/* Use existing title styles from main CSS */
.vator-title-page {
    font-family: 'hikarumono', sans-serif;
}

.lapimaa-title-page {
    font-family: 'futura-med', sans-serif;
}

.adamsoneric-title-page {
    font-family: 'schoolbell-reg', sans-serif;
}

.asciilm-title-page {
    font-family: 'jetbrainsmono', sans-serif;
}

.pulla-title-page {
    font-family: 'poppins-extrabold', sans-serif;
    font-weight: bold;
}

.piste-title-page1 {
    font-family: 'pinyonscript', cursive;
    font-size: 300px;
    line-height: .5px;
    -webkit-text-stroke: #fff 1px;
    color: transparent;
    letter-spacing: -24px;
}

.piste-title-page2 {
    font-family: 'helvetica-neue-bold', sans-serif;
    font-size: 90px;
    -webkit-text-stroke: #fff 1px;
    color: transparent;
    letter-spacing: 0px;
}

.voodi-title-page {
    font-family: 'germen', sans-serif;
    font-size: 60px;
    letter-spacing: 2px;
    line-height: 1;
    color: #C7C7C7;
    margin-bottom: 10px;
}

.voodi-title-page-small {
    font-family: 'germen', sans-serif;
    font-size: 30px;
    letter-spacing: 2px;
    ;
    color: #939393;
}

.bottom-text {
    margin-top: 8px;
    font-family: helvetica-neue-light, sans-serif;
    font-size: 12px;
    color: #C7C7C7;
}

.project-intro {
    font-family: 'helvetica-neue-light', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #C7C7C7;
    max-width: 800px;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-item {
    overflow: hidden;
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border: 1px solid #C7C7C7;
    box-sizing: border-box;
}

/* Grid Layouts */
.grid-large {
    grid-column: span 2;
}

.grid-full {
    grid-column: span 2;
}

.grid-half {
    grid-column: span 1;
}

.grid-text {
    grid-column: span 2;
    padding: px;
    background: transparent;
}

.grid-text p {
    font-family: 'helvetica-neue-light', sans-serif;
    font-size: 16px;
    line-height: 2;
    color: #C7C7C7;
    margin: 0;
    border: 1px solid #C7C7C7;
    padding: 20px;

}



b {
    font-family: 'helvetica-neue-medium', sans-serif;
}

/* Base styling for title */
.varia-title-page {
    font-size: clamp(4rem, 10vw, 10rem);
    display: flex;
    gap: 0.05em;
    line-height: 1;
    color: #C7C7C7;
    font-size: 80px;
    ;
}

/* Individual letters */
.varia-title-page span {
    display: inline-block;
    transition: font-family 0.3s ease, transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.varia-text {
    margin-top: 8px;
    font-family: helvetica-neue-light, sans-serif;
    font-size: 14px;
    color: #C7C7C7;
    line-height: 1.2;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-family: 'helvetica-neue-light', sans-serif;
    font-size: 12px;
    color: #C7C7C7;
    border-top: 1px solid #C7C7C7;
    margin-top: 40px;
}

/* Responsive - Tablet */
@media (max-width: 968px) {
    .project-content {
        padding: 60px 20px;
        margin: 40px auto;
        /* Reduced top margin */
    }

    .project-title-large {
        font-size: 80px;
        letter-spacing: 4px;
    }

    .project-nav {
        top: 80px;
        /* Moved down to avoid overlapping back button */
        right: 20px;
        gap: 8px;
    }

    .project-nav-item {
        font-size: 12px;
        padding: 5px 10px;
    }

    .piste-title-page1 {
        font-size: 90px;
        margin-left: 30px;
    }

    .piste-title-page2 {
        font-size: 45px;
        margin-left: 15px;
    }

    .asciilm-title-page {
        font-size: 40px;
    }
}

/* Responsive - Phone */
@media (max-width: 600px) {

    /* Back Button: Slightly smaller for mobile */
    .back-home {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 11px;
    }

    .grid-text p {
        font-family: 'helvetica-neue-light', sans-serif;
        font-size: 12px;
        line-height: 1.8;
        color: #C7C7C7;
        margin: 0;
    }

    /* Project Navigation: 
       We change this from fixed to relative so it doesn't cover your text on tiny screens */
    .project-nav {
        position: relative;
        top: 0;
        right: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: left;
        margin-top: 76px;
        margin-bottom: 20px;
        margin-left: 36px;
        /* Space below back button and above title */
        gap: 8px;
        backdrop-filter: none;
    }

    .project-intro {
        font-family: 'helvetica-neue-light', sans-serif;
        font-size: 14px;
        line-height: 1.6;
        color: #C7C7C7;
        max-width: 600px;
        padding-top: 20px;
    }

    .project-tag-single {
        font-family: 'helvetica-neue-light', sans-serif;
        font-size: 12px;
        color: #C7C7C7;
        letter-spacing: 1px;
    }

    .project-nav-item {
        font-size: 11px;
        padding: 4px 8px;
        text-align: left;
    }

    .project-content {
        padding: 20px;
        /* Less padding to give images more room */
        margin: 10px auto;
        border: 1px white solid;
    }

    .project-title-large {
        font-size: 52px;
        /* Scaled down for mobile readability */
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

    .asciilm-title-page {
        font-size: 40px;
    }

    /* Grid: Single column for phone */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        /* Tighter gap for mobile */
    }

    /* Reset all spans for single column */
    .grid-large,
    .grid-full,
    .grid-half,
    .grid-text {
        grid-column: span 1;
    }

    /* Ensure images still hug the border on mobile */
    .grid-item img,
    .grid-item video {
        width: 100%;
        height: auto;
        border: 1px solid #C7C7C7;
    }

    .grid-text {
        padding: 15px 0;
        /* Remove side padding so text aligns with images */
    }
}