/* Orchestra Page Styles */

/* Hero Section */
.orchestra-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b2433 0%, #2d3a52 100%);
    overflow: hidden;
}

.orchestra-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/orchestra-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(27, 36, 51, 0.8) 100%);
    z-index: 1;
}

.orchestra-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
}

.orchestra-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.orchestra-hero p {
    font-size: 1.3rem;
    color: #e0e0e0;
    font-weight: 300;
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    padding: 3rem 0 2rem;
    background: #f8f9fa;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: white;
    border: 2px solid #d4af37;
    color: #1b2433;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Members Section */
.members-section {
    padding: 4rem 0;
    position: relative;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3a52 50%, #1a1f2e 100%);
    overflow: hidden;
}

/* Animated Musical Background */
.members-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
    z-index: 0;
    animation: backgroundPulse 20s ease-in-out infinite;
}

/* Musical Note Decorations */
.members-section::after {
    content: '♪ ♫ ♬ ♩ ♪ ♫ ♬ ♩ ♪ ♫ ♬ ♩';
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.06);
    text-align: center;
    letter-spacing: 4rem;
    z-index: 0;
    animation: floatNotes 30s linear infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes floatNotes {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(360deg); }
}

/* Orchestra Section */
.orchestra-section {
    margin-bottom: 5rem;
}

.orchestra-section:last-child {
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.section-header .section-title::before {
    content: '♪';
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.5;
}

.section-header .section-title::after {
    content: '♫';
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.5;
}

.section-divider-line {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
    margin: 0 auto;
    position: relative;
}

.section-divider-line::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #d4af37;
    font-size: 1rem;
    background: #1a1f2e;
    padding: 0 0.5rem;
}

.members-section .container {
    position: relative;
    z-index: 1;
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 2rem 0;
    justify-content: center;
}

/* Member Card */
.member-card {
    flex: 0 0 calc(25% - 2rem);
    max-width: calc(25% - 2rem);
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
    position: relative;
}

/* Golden Frame Effect */
.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 16px;
    background: linear-gradient(135deg, #d4af37, #f4d03f, #d4af37, #c5a028) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.member-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d4af37, #f4d03f, #d4af37, #c5a028);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.member-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.member-card:hover::before {
    opacity: 1;
}

.member-card:hover::after {
    opacity: 0.3;
}

.member-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}


.member-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    background-color: #1b2433;
}

/* Lazy Loading Placeholder */
.member-image.lazy-load {
    background-image: none !important;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3a52 0%, #1b2433 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.member-image.loaded .image-placeholder {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.member-card:hover .member-image {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(27, 36, 51, 0.95) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover .member-overlay {
    opacity: 1;
}

.view-bio-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.view-bio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b2433;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.member-instrument {
    font-size: 1rem;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bio Modal */
.bio-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.bio-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bio-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.bio-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.bio-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    padding: 2rem;
}

.bio-modal-image {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3a52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bio-modal-text {
    padding: 1rem 0;
}

.bio-modal-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1b2433;
    margin-bottom: 0.5rem;
}

.bio-modal-instrument {
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.bio-modal-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 100%);
    margin-bottom: 1.5rem;
}

.bio-modal-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

.bio-modal-bio p {
    margin-bottom: 1rem;
}

/* Scrollbar for modal */
.bio-modal-content::-webkit-scrollbar {
    width: 8px;
}

.bio-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.bio-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 10px;
}

.bio-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .member-card {
        flex: 0 0 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
    }
    
    .members-grid {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .member-card {
        flex: 0 0 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
    
    .members-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .orchestra-hero h1 {
        font-size: 2.5rem;
    }
    
    .orchestra-hero p {
        font-size: 1.1rem;
    }
    
    .filter-controls {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .member-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    .members-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Bio Modal - Bottom Sheet Style */
    .bio-modal {
        align-items: flex-end;
        padding: 0;
    }
    
    .bio-modal-content {
        width: 100%;
        max-height: 90vh;
        height: 90vh;
        border-radius: 20px 20px 0 0;
        display: flex;
        flex-direction: column;
    }
    
    .bio-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .bio-modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bio-modal-image {
        min-height: 200px;
        max-height: 250px;
        flex-shrink: 0;
    }
    
    .bio-modal-info {
        padding-bottom: 1.5rem;
    }
    
    .bio-modal-name {
        font-size: 1.3rem;
    }
    
    .bio-modal-instrument {
        font-size: 0.9rem;
    }
    
    .bio-modal-bio {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .orchestra-hero h1 {
        font-size: 2rem;
    }
    
    .member-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .bio-modal-image {
        min-height: 160px;
        max-height: 200px;
    }
    
    .bio-modal-name {
        font-size: 1.1rem;
    }
    
    .bio-modal-bio {
        font-size: 0.85rem;
    }
}

/* Animation for filtered items */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.member-card {
    animation: fadeIn 0.4s ease;
}
