/* =========================================
   Reset & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu Mono', monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    letter-spacing: 0em;
    line-height: 1.2;
    background-color: #fff;
    color: #333;
}

/* =========================================
   Header & Navigation (Shared)
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.logo .tagline {
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 5px;
}

.nav {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: #666;
}

/* =========================================
   Global Player (from global.css)
   ========================================= */
/* Make space for the player in the header */
.header .global-player {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid #eee;
    min-width: 400px;
    /* Ensure player stays to the right */
    margin-left: auto;
}

.global-player {
    opacity: 0; 
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.global-play-btn {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 2px solid #333;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    color: #333;
    flex-shrink: 0;
}

.global-play-btn::before {
    content: '';
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #333;
    margin-left: 2px;
}

.global-play-btn.paused::before {
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #333;
    margin-left: 2px;
}

.global-play-btn.playing::before {
    border-style: solid;
    border-width: 0 3px;
    border-color: #333;
    width: 4px;
    height: 10px;
    background: transparent;
    margin-left: 0;
}

.global-play-btn:hover {
    background: #333;
}

.global-play-btn:hover::before {
    border-color: transparent transparent transparent #fff;
}

.global-play-btn.playing:hover::before {
    border-color: #fff;
    background: transparent;
}

.global-track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    max-width: 350px;
}

.global-track-title {
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.global-progress-container {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.global-progress-bar {
    height: 100%;
    background: #333;
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* =========================================
   Main Content Layouts (Page Specific Scoping)
   ========================================= */
.main-content {
    margin: 0 auto;
}

/* Home Page Layout */
.home-main {
    max-width: 1000px;
    padding: 60px 40px;
    text-align: center;
}

/* Portfolio Page Layout */
.portfolio-main {
    max-width: 1200px;
    padding: 60px 20px;
}

/* Resume Page Layout */
.resume-main {
    max-width: 1400px;
    padding: 20px;
}

/* Contact Page Layout */
.contact-main {
    max-width: 900px;
    padding: 60px 40px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================
   Home Page Components
   ========================================= */
.content-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    text-align: left;
    align-items: start;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
    padding: 15px;
}

.home-play-button {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #333;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    flex-shrink: 0;
}

.home-play-button:hover {
    background-color: #333;
    color: #fff;
}

.home-play-button::before {
    content: '';
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #333;
    margin-left: 4px;
}

.home-play-button:hover::before {
    border-color: transparent transparent transparent #fff;
}

.home-play-button.playing::before {
    border-style: solid;
    border-width: 0 4px;
    border-color: #333;
    width: 6px;
    height: 16px;
    background: transparent;
    margin-left: 0;
}

.home-play-button.playing:hover::before {
    border-color: #fff;
    background: transparent;
}

.audio-timeline {
    flex: 1;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    position: relative;
}

.audio-progress {
    height: 100%;
    background-color: #333;
    border-radius: 2px;
    width: 0%;
}

.audio-time {
    font-size: 0.9rem;
    color: #666;
    min-width: 40px;
}

.intro-column {
    position: sticky;
    top: 40px;
}

.bio {
    font-size: 1.1rem;
    margin-bottom: 60px;
    line-height: 1.4;
}

.testimonials {
    margin-bottom: 0;
    column-count: 2;
    column-gap: 40px;
}

.testimonial {
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.3;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial-quote {
    font-size: 1rem;
    margin-bottom: 8px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.9rem;
    color: #333;
    font-style: normal;
    margin-top: 10px;
    font-weight: bold;
}

.testimonial-author a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: opacity 0.3s ease;
}

.testimonial-author a:hover {
    opacity: 0.7;
}

.navigation-menu {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-item {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-item:hover {
    color: #666;
}

/* =========================================
   Portfolio Page Components
   ========================================= */
.portfolio-section-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

.portfolio-description {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #666;
    text-align: left;
    max-width: 600px;
}

.audio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.audio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    text-align: center;
    aspect-ratio: 1 / 1;
}

.audio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    background-color: #fff;
    border-color: #ddd;
}

/* Set to 'none' to hide portfolio icons */
.track-icon {
    display: none;
    width: auto;
    height: 50px;
    max-width: 100px;
    object-fit: contain;
    margin-top: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.audio-item:hover .track-icon {
    opacity: 1;
}

.portfolio-play-button {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 60px;
    background-color: transparent;
    border: 2px solid #333;
    border-radius: 50%;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 0;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.portfolio-play-button:hover {
    background-color: #333;
    color: #fff;
    transform: scale(1.05);
}

.portfolio-play-button::before {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #333;
    margin-left: 4px;
}

.portfolio-play-button:hover::before {
    border-color: transparent transparent transparent #fff;
}

.portfolio-play-button.playing::before {
    content: '';
    border: none;
    border-left: 5px solid #333;
    border-right: 5px solid #333;
    width: 6px;
    height: 18px;
    background: transparent;
    margin-left: 0;
}

.portfolio-play-button.playing:hover::before {
    border-left-color: #fff;
    border-right-color: #fff;
    background: transparent;
}

.play-title {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    color: #222;
}

.venue-name {
    font-size: 0.9rem;
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.track-title {
    font-size: 1rem;
    font-weight: normal;
    color: #444;
}

/* =========================================
   Resume Page Components
   ========================================= */
iframe {
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info {
    margin-bottom: 30px;
    line-height: 1.4;
}

.contact-info h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
}

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

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

.experience-section h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.experience-section p {
    margin-bottom: 15px;
}

.job-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.job-details {
    font-style: italic;
    margin-bottom: 10px;
    color: #666;
}

.responsibilities {
    list-style: none;
    padding-left: 0;
}

.responsibilities li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.responsibilities li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.credits-section {
    margin-top: 50px;
}

.credits-section h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.credits-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.credits-table th {
    background-color: #f9f9f9;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.credits-table th:first-child {
    text-align: center;
}

.credits-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.credits-table tr:hover {
    background-color: #f9f9f9;
}

.production-title {
    font-weight: bold;
}

.listen-column {
    width: 60px;
    text-align: center;
    vertical-align: middle !important;
}

.resume-play-button {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 1.5px solid #333;
    border-radius: 50%;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resume-play-button:hover {
    background-color: #333;
    color: #fff;
}

.resume-play-button::before {
    content: '';
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #333;
    margin-left: 2px;
}

.resume-play-button:hover::before {
    border-color: transparent transparent transparent #fff;
}

.resume-play-button.playing::before {
    border-style: solid;
    border-width: 0 3px;
    border-color: #333;
    width: 4px;
    height: 10px;
    background: transparent;
    margin-left: 0;
}

.resume-play-button.playing:hover::before {
    border-color: #fff;
    background: transparent;
}

.production-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.credits-note {
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
}

/* =========================================
   Contact Page Components
   ========================================= */
.contact-message {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.email-link {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: #666;
}

/* =========================================
   Responsive Global
   ========================================= */
@media (max-width: 1200px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    .nav {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        margin: 15px 0;
    }
    .header .global-player {
        order: 3;
        width: 100%;
        margin-top: 15px;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 15px;
        justify-content: center;
        min-width: unset;
    }
    .global-track-info {
        flex: 1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo h1 {
        font-size: 2rem;
    }
    
    /* Layout Overrides */
    .home-main, .portfolio-main, .resume-main, .contact-main {
        padding: 40px 20px;
    }
    
    /* Home Page */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .testimonials {
        column-count: 1;
    }
    .intro-column {
        position: static;
    }
    .audio-player {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 40px;
    }
    .audio-timeline {
        width: 100%;
    }

    /* Contact Page */
    .contact-message {
        font-size: 1.1rem;
    }
    .email-link {
        font-size: 1.3rem;
    }

    /* Resume Page - Card Layout */
    .credits-table {
        display: block;
    }
    .credits-table thead {
        display: none;
    }
    .credits-table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .credits-table tr {
        display: block;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        background: #fafafa;
    }
    .credits-table tr:hover {
        background: #f5f5f5;
    }
    .credits-table td {
        display: block;
        padding: 4px 0;
        border: none;
    }
    .credits-table td:empty {
        display: none;
    }
    .credits-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: block;
        margin-bottom: 2px;
    }
    .credits-table td.listen-column {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 0;
    }
    .credits-table td.listen-column::before {
        display: none;
    }
    .credits-table tr {
        position: relative;
        padding-right: 60px;
    }
    .credits-table td.production-title {
        font-size: 1.1rem;
        padding-bottom: 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid #eee;
    }
    .credits-table td.production-title::before {
        display: none;
    }
}
