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

@font-face {
    font-family: 'GaramondPremrPro';
    src: url('fonts/Garamond/GaramondPremrPro-It.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'GaramondPremrPro';
    src: url('fonts/Garamond/GaramondPremrPro-Bd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

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

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

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TimesNow', serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.1;
    color: #000;
    background-color: #fff;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: 'TimesNow', serif;
    font-size: 15px;
    font-weight: 200;
    text-transform: uppercase;
    cursor: pointer;
    color: #000;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    font-family: 'TimesNow', serif;
    font-size: 15px;
    font-weight: 200;
    color: #000;
    text-decoration: none;
    position: relative;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.3s ease;
}

nav a.active {
    opacity: 0.5;
}

nav a:hover {
    opacity: 0.5;
}

/* Main Content */
main {
    padding: 80px 60px 60px;
    display: flex;
    gap: 100px;
    align-items: flex-start;
}

/* Homepage */
.homepage {
    padding: 0;
    height: calc(100vh - 120px);
    overflow: hidden;
    cursor: none;
    position: relative;
    touch-action: none;
}

.draw-prompt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'TimesNow', serif;
    font-size: 14px;
    font-weight: 200;
    text-transform: uppercase;
    color: #000;
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    display: none;
}

.center-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'TimesNow', serif;
    font-size: 14px;
    font-weight: 200;
    text-transform: uppercase;
    color: #000;
    opacity: 0;
    z-index: 100;
    pointer-events: none;
}

.center-text .bold-text {
    font-weight: 300;
}

/* Contact Page */
.contact-page {
    padding: 0;
    height: calc(100vh - 120px);
    overflow: hidden;
}

#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.cursor-image {
    position: fixed;
    width: 100px;
    height: auto;
    pointer-events: none;
    transition: opacity 1s ease;
    z-index: 50;
}

.about-page {
    padding: 80px 60px 60px;
    display: flex;
    gap: 100px;
    align-items: flex-start;
}

.about-page .intro {
    flex: 0 0 auto;
    max-width: 500px;
    opacity: 0;
}

.intro p {
    margin-bottom: 20px;
}

.about-page .info-columns {
    display: flex;
    gap: 100px;
    flex: 0 0 auto;
    opacity: 0;
}

.services,
.contact {
    flex: 0 0 auto;
}

h2 {
    font-family: 'TimesNow', serif;
    font-size: 14px;
    font-weight: 200;
    text-transform: uppercase;
    margin-bottom: 15px;
}

footer {
    position: fixed;
    bottom: 20px;
    right: 60px;
    font-family: 'TimesNow', serif;
    font-size: 12px;
    font-weight: 200;
    color: #000;
    z-index: 1000;
}

footer p {
    margin: 0;
}

ul {
    list-style: none;
}

li {
    margin-bottom: 5px;
}

.contact a {
    color: #000;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.contact p {
    margin-bottom: 5px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    font-family: 'TimesNow', serif;
    font-weight: 200;
}

/* Projects Page */
.projects-main {
    padding: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: 0;
}

.project-item {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.project-item .project-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.project-item:hover .project-image {
    opacity: 0.8;
}

/* Hover swap for animated projects */
.project-hover-swap:hover .project-image {
    opacity: 1;
}

.project-hover-swap {
    position: relative;
}

.project-hover-swap .project-static,
.project-hover-swap .project-animated {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.project-hover-swap .project-static {
    position: relative;
    opacity: 1;
}

.project-hover-swap .project-animated {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.project-hover-swap:hover .project-static {
    opacity: 0;
}

.project-hover-swap:hover .project-animated {
    opacity: 1;
}

/* Project Detail Page */
.project-detail {
    padding: 0;
}

.project-content {
    display: flex;
    min-height: 100vh;
}

.project-info {
    width: 50%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
}

.project-columns {
    display: flex;
    gap: 60px;
}

.project-column {
    flex: 1;
}

.project-title {
    font-family: 'TimesNow', serif;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 5px;
    color: #000;
    line-height: 1;
}

.project-meta {
    font-family: 'TimesNow', serif;
    font-size: 14px;
    font-weight: 300;
    color: #000;
    line-height: 1;
}

.project-column h2 {
    margin-bottom: 20px;
}

.project-column p {
    margin-bottom: 15px;
}

.project-gallery {
    width: 50%;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    cursor: none;
    z-index: 1;
    padding: 80px 60px;
}

.gallery-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-cursor {
    position: fixed;
    font-family: 'TimesNow', serif;
    font-size: 14px;
    font-weight: 200;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.project-gallery:hover .gallery-cursor {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html, body {
        height: 100vh;
        overflow: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        padding-bottom: 0;
    }

    .draw-prompt {
        display: block;
        opacity: 1;
    }

    header {
        padding: 30px;
        flex-shrink: 0;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 30px;
        right: 30px;
        background: #fff;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding: 0 0 20px;
        overflow: hidden;
    }

    header {
        position: relative;
    }

    main {
        flex-direction: column;
        padding: 40px 30px 20px;
        gap: 20px;
        flex: 1;
        overflow-y: auto;
        margin-bottom: 0;
    }

    .about-page {
        padding: 80px 30px;
        gap: 50px;
    }

    .intro {
        max-width: 100%;
        margin-bottom: 0;
    }

    .intro p {
        margin-bottom: 12px;
    }

    .intro p:last-child {
        margin-bottom: 0;
    }

    .about-page .info-columns {
        flex-direction: column;
        gap: 50px;
        margin-top: 0;
    }

    .projects-main {
        padding: 40px 30px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-detail {
        padding: 0;
    }

    .project-content {
        flex-direction: column;
        min-height: auto;
    }

    .project-info {
        width: 100%;
        padding: 0;
        display: contents;
    }

    .project-header {
        width: 100%;
        padding: 40px 30px;
        text-align: center;
        margin-bottom: 0;
        order: 1;
    }

    .project-gallery {
        width: 100%;
        position: relative;
        height: 60vh;
        order: 2;
        margin: 0 30px;
        width: calc(100% - 60px);
    }

    .project-columns {
        width: 100%;
        padding: 40px 30px;
        flex-direction: column;
        gap: 30px;
        order: 3;
    }

    .gallery-cursor {
        display: block;
    }

    footer {
        font-size: 14px;
        left: 30px;
    }
}
