/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 120px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Layout helpers */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header / Navigation */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-text a {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #000;
}

.nav-links li:nth-child(3) a::after {
    width: 100%;
    opacity: 0.3;
}

/* Language Toggle Button */
.language-toggle {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    border-radius: 2px;
}

.language-toggle:hover {
    background: #000;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-left: 40px;
    align-items: center;
    justify-content: flex-end;
    margin-right: -40px;
}

.social-links a {
    color: #000;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 2px;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 80%;
}

.social-links a:hover {
    color: #666;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Repertoire Section */
.repertoire-section {
    padding: 60px 0 80px;
    flex: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.page-intro {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Repertoire Grid - Buttons */
.repertoire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 auto 60px;
    max-width: 1400px;
    padding: 0 40px;
}

.repertoire-button {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.repertoire-button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.repertoire-button h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.repertoire-button p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.repertoire-button.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Repertoire Content */
.repertoire-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.back-to-buttons {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-buttons:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.back-to-buttons i {
    font-size: 0.9rem;
}

.repertoire-category {
    margin-bottom: 80px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
    text-align: center;
}

/* Instrumentation Headers */
.instrumentation-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.instrumentation-header:first-of-type {
    margin-top: 0;
}

/* Work Cards */
.works-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.work-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    box-sizing: border-box;
}

.work-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Collapsed Header */
.work-header {
    padding: 25px 40px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.work-header:hover {
    background: rgba(240, 240, 240, 0.5);
}

.work-header-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.work-header-info p {
    font-size: 0.95rem;
    color: #666;
}

.expand-icon {
    font-size: 1.5rem;
    color: #666;
    transition: transform 0.3s ease;
}

.work-card.active .expand-icon {
    transform: rotate(180deg);
}

/* Expanded Content */
.work-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card.active .work-content {
    max-height: 2000px;
}

.work-content-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 0 40px 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Left Column - Work Info */
.work-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.work-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.work-instrumentation {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.work-duration {
    font-size: 0.95rem;
    color: #888;
    font-style: italic;
}

/* Additional work info fields */
.work-premiere,
.work-ensemble,
.work-commissioner,
.work-dedication,
.work-awards {
    margin: 12px 0;
}

.work-premiere p,
.work-ensemble p,
.work-commissioner p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.work-dedication p {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.work-awards p {
    font-size: 0.9rem;
    color: #d4af37;
    font-weight: 500;
}

.work-notes {
    margin: 15px 0;
    line-height: 1.7;
}

.work-notes p {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.program-notes-content {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.work-notes strong {
    font-weight: 600;
    color: #000;
}

.audio-player {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}

.audio-player audio {
    width: 100%;
    max-width: 500px;
}

.video-player {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.soundcloud-player {
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}

.soundcloud-player iframe {
    border-radius: 8px;
}

/* Right Column - Preview & Store */
.work-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    min-width: 0;
}

.pdf-preview {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 8.5 / 11;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pdf-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: #ccc;
    padding: 10px 20px;
    font-size: 1.1rem;
}

.store-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-align: center;
}

.store-link:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    position: relative;
}

footer p {
    margin: 5px 0;
}

.back-to-welcome {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: absolute;
    right: 40px;
    bottom: 40px;
}

.back-to-welcome:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        padding-top: 80px;
    }

    #header {
        padding: 15px 20px;
    }

    .nav-content {
        padding: 0 20px;
    }

    .logo-text a {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
        margin-right: 0;
    }

    .nav-right.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
        padding: 10px 0;
    }

    .social-links {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        gap: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .social-links a {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    #header {
        padding: 15px 20px;
    }

    .nav-content {
        padding: 0 20px;
    }

    .logo-text a {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
        margin-right: 0;
    }

    .nav-right.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
        padding: 10px 0;
    }

    .social-links {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        gap: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-intro {
        font-size: 1rem;
        padding: 0 10px;
    }

    .back-to-welcome {
        position: static;
        margin-top: 20px;
    }

    .repertoire-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .repertoire-button {
        padding: 40px 30px;
        min-height: 220px;
    }

    .repertoire-button h2 {
        font-size: 1.6rem;
    }

    .repertoire-button p {
        font-size: 0.95rem;
    }

    .repertoire-content {
        padding: 0 20px;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .work-card {
        padding: 15px;
    }

    .work-header {
        padding: 15px;
    }

    .work-card {
        padding: 0;
    }

    .work-header {
        padding: 20px;
    }

    .work-header-info h3 {
        font-size: 1.1rem;
    }

    .work-header-info p {
        font-size: 0.85rem;
    }

    .work-content-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 30px;
    }

    .work-title {
        font-size: 1.4rem;
    }

    .work-instrumentation {
        font-size: 1rem;
    }

    .work-notes p {
        font-size: 0.9rem;
    }

    .work-preview {
        order: -1;
    }

    .pdf-preview {
        max-width: 100%;
    }

    .store-link {
        width: 100%;
    }

    .repertoire-content {
        padding: 0 20px;
    }

    .category-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .works-container {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .logo-text a {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }
}
