/* BRUTALIST STYLES */

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

:root {
    --bg-black: #000000;
    --text-white: #FFFFFF;
    --cursor-brown: #5D4037;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-black);
    color: var(--text-white);
    font-family: Helvetica, Arial, sans-serif;
    /* cursor: none; */
}

/* Custom Cursor - Plus Sign - DISABLED */
/*
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    left: 0;
    top: 0;
    display: block;
    visibility: visible;
    opacity: 1;
}

.cursor::before,
.cursor::after {
    content: '';
    position: absolute;
    background: var(--cursor-brown);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cursor::before {
    width: 2px;
    height: 20px;
}

.cursor::after {
    width: 20px;
    height: 2px;
}
*/

/* Cursor Coordinates */
.cursor-coords {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: var(--cursor-brown);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 10001;
    pointer-events: none;
}

/* Decay Canvas */
#decay-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
}

/* Page Container */
.page-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page.active {
    opacity: 1;
    pointer-events: all;
}

/* Home Page - Plus Sign Navigation */
.hexagon-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hex-nav {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-button[data-position="north"] {
    position: absolute;
    top: calc(50% - 100px);
    left: 50%;
    transform: translate(-50%, -50%);
}

.hex-button[data-position="south"] {
    position: absolute;
    bottom: calc(50% - 100px);
    left: 50%;
    transform: translate(-50%, 50%);
}

.hex-button[data-position="east"] {
    position: absolute;
    top: 50%;
    right: calc(50% - 100px);
    transform: translate(50%, -50%);
}

.hex-button[data-position="west"] {
    position: absolute;
    top: 50%;
    left: calc(50% - 100px);
    transform: translate(-50%, -50%);
}

/* Hexagonal Button Layout */
.hex-button {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 15px 40px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* cursor: none; */
    position: relative;
    transition: all 0.2s ease;
    outline: none;
    min-width: 200px;
    z-index: 10;
}

.hex-button.falling {
    transition: none;
    pointer-events: none;
}

.hex-button:hover {
    background: var(--text-white);
    color: var(--bg-black);
    box-shadow: -5px 5px 0 var(--text-white);
    /* Don't override transform - keep the position-specific transforms */
}

.hex-button:active {
    /* Don't override transform on click - it breaks positioning */
    box-shadow: -3px 3px 0 var(--text-white);
}

/* Glitch effect on hover */
.hex-button:hover::before {
    content: attr(data-page);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-white);
    color: var(--bg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

/* Content Pages */
.content-page {
    width: 100%;
    height: 100%;
    padding: 60px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.back-button {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 10px 20px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* cursor: none; */
    margin-bottom: 40px;
    align-self: flex-start;
    transition: all 0.2s ease;
    outline: none;
}

.back-button:hover {
    background: var(--text-white);
    color: var(--bg-black);
    transform: translateX(-3px);
}

.back-button.falling {
    transition: none;
    pointer-events: none;
}

.content-page h1 {
    font-size: 48px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.content-block {
    max-width: 800px;
    line-height: 1.6;
}

.content-block p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* About Page Layout */
.about-content {
    max-width: 1200px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    text-indent: 40px;
    margin-bottom: 24px;
}

.about-image {
    flex: 0 0 350px;
    position: sticky;
    top: 60px;
}

.about-image img {
    width: 100%;
    height: auto;
    border: 2px solid var(--text-white);
    display: block;
}

/* Resume Page PDF Display */
.resume-container {
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 200px);
    min-height: 600px;
    border: 2px solid var(--text-white);
    overflow: hidden;
}

.resume-pdf {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Hide PDF iframe when resume page is not active to prevent rendering issues */
.page:not(.active) .resume-pdf {
    display: none;
}

.content-block h2 {
    font-size: 24px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Writing Page Layout */
.writing-content {
    max-width: 1200px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.writing-posts {
    flex: 1;
}

.writing-in-progress {
    font-size: 18px;
    color: var(--cursor-brown);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* Writing Books Section */
.writing-books {
    flex: 0 0 350px;
    position: sticky;
    top: 60px;
}

.books-section {
    margin-bottom: 40px;
}

.books-section:last-child {
    margin-bottom: 0;
}

.books-section h2 {
    font-size: 18px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.book-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-left: 2px solid var(--text-white);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-white);
    transition: all 0.3s ease;
    cursor: default;
}

.book-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--text-white);
    border: 2px solid var(--bg-black);
    transition: all 0.3s ease;
}

.book-item:hover {
    border-left-color: var(--cursor-brown);
    transform: translateX(5px);
}

.book-item:hover::before {
    background: var(--cursor-brown);
    transform: scale(1.3);
}

.book-item:last-child {
    margin-bottom: 0;
}

/* Music Page */
.music-excerpt {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
}

.music-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.music-link {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 15px 40px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    outline: none;
}

.music-link:hover {
    background: var(--text-white);
    color: var(--bg-black);
    transform: translateX(3px) translateY(-2px);
    box-shadow: 3px 3px 0 var(--text-white);
}

/* Music Timeline */
.music-timeline {
    margin-top: 60px;
    margin-bottom: 60px;
}

.music-timeline h2 {
    font-size: 24px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
    border-left: 2px solid var(--text-white);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: default;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--text-white);
    border: 2px solid var(--bg-black);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-left-color: var(--cursor-brown);
    transform: translateX(5px);
}

.timeline-item:hover::before {
    background: var(--cursor-brown);
    transform: scale(1.3);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cursor-brown);
    margin-bottom: 10px;
    font-weight: normal;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-year {
    color: var(--text-white);
    transform: translateX(3px);
}

.timeline-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(3px);
}

/* Production Gear */
.music-gear {
    margin-top: 60px;
}

.music-gear h2 {
    font-size: 24px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.gear-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gear-item {
    font-size: 16px;
    padding: 15px 20px;
    border: 2px solid var(--text-white);
    background: transparent;
    color: var(--text-white);
    transition: all 0.2s ease;
    cursor: default;
}

.gear-item:hover {
    background: var(--text-white);
    color: var(--bg-black);
    transform: translateX(5px) translateY(-2px);
    box-shadow: -5px 5px 0 var(--text-white);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: var(--text-white);
    border: 2px solid var(--bg-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cursor-brown);
}

/* Decay Animation Classes */
.decaying {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hexagon-main {
        width: 300px;
        height: 300px;
    }
    
    .hex-button {
        min-width: 180px;
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .content-page {
        padding: 40px 20px;
    }
    
    .content-page h1 {
        font-size: 36px;
    }
    
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image {
        flex: 0 0 auto;
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-text p {
        text-indent: 30px;
    }
    
    .resume-container {
        height: calc(100vh - 150px);
        min-height: 500px;
    }
    
    .writing-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .writing-books {
        flex: 0 0 auto;
        position: static;
        width: 100%;
    }
}
