/* --- The Wood In Form Manual --- */
:root {
    --bg-color: #ffffff;
    --text-color: #4d4d4d;
    --marking-red: #b03030;
    --font-main: 'Didact Gothic', sans-serif;
    --divider-weight: 1px;
}

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

html, body {
    height: 100%; /* Changed from min-height to help with vertical centering */
    width: 100%;
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-color);
    overflow-x: hidden;
}

/* --- Global Header & Navigation --- */
.site-header {
    display: flex;
    justify-content: flex-end; 
    padding: 40px 100px 40px 40px;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
}

.title-link {
    position: fixed;
    top: 50%;
    left: 75px;
    transform: translateX(-50%) translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 400%;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s ease;
    z-index: 1001;
}

.title-link:hover {
    color: var(--marking-red);
}

.menu {
    list-style: none;
    display: flex;
    gap: 40px;
}

.menu a {
    display: inline-block;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: 0.05rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu a:hover {
    transform: translateY(-5px);
    color: var(--marking-red);
}

/* --- Layout Containers --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin-left: 125px;
    text-align: center;
    padding: 40px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    justify-content: space-evenly;
}

/* --- Index Page Item Links --- */
.item-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    padding: 0 20px;
    transition: transform 0.3s ease;
}

.item-link:hover {
    transform: translateY(-5px);
}

.title-line {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.item-divider {
    width: 40px;
    border: 0;
    border-top: var(--divider-weight) solid rgba(105, 105, 105, 0.3);
    margin: 0 auto 20px auto;
    transition: border-color 0.3s ease;
}

.item-link:hover .item-divider {
    border-top: var(--divider-weight) solid var(--marking-red);
}

.subtitle-line {
    font-size: 1.1rem;
    opacity: 0.8;
    text-transform: lowercase;
}

.main-divider {
    width: 100px;
    border: 0;
    border-top: var(--divider-weight) solid rgba(105, 105, 105, 0.2);
    margin: 60px auto 40px auto;
}

.tagline {
    font-size: 1.3rem;
    max-width: 60%;
    line-height: 1.4;
    opacity: 0.9;
}

/* --- Sub-Page Column Styling --- */
.columns-row {
    display: flex;
    width: 100%;
    max-width: 1100px;
    gap: 40px;
    justify-content: space-evenly;
    margin-top: 40px;
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
}

.column hr {
    width: 100%;
    border: 0;
    border-top: var(--divider-weight) solid var(--marking-red); 
    margin: 10px 0 25px 0;
    opacity: 0.9;
}

.phase-heading {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    text-transform: lowercase;
    margin-bottom: 5px;
    line-height: 1.1;
    width: 100%;
    text-align: center;
}

/* Bullet Point Logic */
.column ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.column li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.4;
    white-space: nowrap;
}

.column li::before {
    content: "■"; /* Your signature square bullet */
    position: absolute;
    left: 0;
    color: var(--marking-red);
    font-size: 0.7rem;
    top: 4px;
}

/* --- Interactive Back Navigation --- */
.back-nav {
    margin-top: 60px;
}

.back-button {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-button:hover {
    transform: translateY(-5px); /* Matches the lift of the other links */
    color: var(--marking-red);
}

/* --- Split Layouts (Bio & Portfolio) --- */
.split-layout {
    display: flex;
    width: 100%;
    max-width: 1100px;
    gap: 60px;
    align-items: flex-start;
    margin-top: 20px;
}

.left-heavy { flex: 1.2; text-align: left; }
.right-light { flex: 1; text-align: left; }

/* Timeline & Lists */
.timeline {
    flex: 1;
    border-left: 1px solid rgba(176, 48, 48, 0.3);
    padding-left: 25px;
    transition: all 0.3s ease;
}

.date {
    display: block;
    color: var(--marking-red);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

/* Portfolio Collage */
.collage-container {
    width: 100%;
    border: 1px solid rgba(77, 77, 77, 0.1);
    overflow: hidden;
}

.collage-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Download Button Styling */
.download-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--marking-red);
    text-decoration: none;
    color: var(--marking-red);
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 20px;
}

.download-btn:hover {
    background: var(--marking-red);
    color: #ffffff;
}

/* --- Contact Form Styles --- */
.contact-form {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 20px auto;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(105, 105, 105, 0.2);
    font-family: var(--font-main);
    color: var(--text-color);
    font-size: 1.1rem;
    outline: none;
    transition: border-bottom 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-bottom: 1px solid var(--marking-red);
}

.btn-submit {
    display: inline-block;
    align-self: center;
    background: transparent;
    padding: 12px 24px;
    border: 1px solid var(--marking-red);
    color: var(--marking-red);
    padding: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    text-transform: lowercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 10px;
    width: auto;
}

.btn-submit:hover {
    background: var(--marking-red);
    color: #ffffff;
}

.mailto-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 30px;
}

.mailto-link:hover {
    color: var(--marking-red);
    transform: translateY(-3px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
    .site-header {
        position: relative;
        flex-direction: column;
        align-items: center;
        padding: 40px 0 20px 0;
    }

    .title-link {
        position: static;
        transform: none;
        font-size: 3rem;
        margin-bottom: 20px;
        text-align: center;
        display: block;
    }

    .menu {
        gap: 40px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .page-wrapper {
        margin-left: 0;
        padding: 20px;
        height: auto;
        min-height: calc(100vh - 180px);
        justify-content: center;
        padding-top: 20px;
    }

    .container {
        align-items: center;
        width: 100%;
        min-width: 0;
        flex-direction: column;
        gap: 60px;
    }

    .tagline, .main-divider {
        display: none;
    }

    .columns-row {
        flex-direction: column;
        gap: 50px;
    }

    .column li {
        white-space: normal; /* Allow text to wrap on small phone screens */
    }

    .split-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .left-heavy, .right-light {
        width: 100%;
    }

    .timeline {
        border-left: none; /* Remove vertical line */
        border-top: 1px solid rgba(176, 48, 48, 0.3); /* Add horizontal line */
        padding-left: 0;
        padding-top: 25px; /* Add space below the new line */
        margin-top: 10px;
    }

    /* Adjusting the timeline square bullets for horizontal layout */
    .timeline .column li::before {
        left: -20px; /* Tighter spacing for mobile */
    }
}


/* Corrected standalone media query */
@media (max-width: 600px) {
    .subtitle-line {
        display: none;
    }
}