/* === Enhanced Music Gallery Layout === */
.music-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 0 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    min-height: 100vh;
    position: relative;
}

.music-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212,175,55,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212,175,55,0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* === Enhanced Album Sections === */
.music-album-1,
.music-album-2,
.music-album-3 {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 600px;
    padding: 100px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.music-album-1::before,
.music-album-2::before,
.music-album-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(1px);
}

/* First album section needs extra top padding for navigation */
.music-album-1 {
    padding-top: 100px; /* Extra padding for fixed navigation */
}

/* Use more specific selectors and add fallback */
.music-album-1 { 
    background-image: url('../images/album1_full.webp'), url('../images/album1_full.JPG');
    background-color: #2c3e50; /* fallback color if image fails */
}
.music-album-2 { 
    background-image: url('../images/album2_full.webp'), url('../images/album2_full.JPG');
    background-color: #34495e; /* fallback color */
}
.music-album-3 { 
    background-image: url('../images/album3_full.webp'), url('../images/album3_full.JPG');
    background-color: #2c3e50; /* fallback color */
}

/* Mobile optimization for fixed backgrounds */
@media screen and (max-width: 768px) {
    .music-album-1,
    .music-album-2,
    .music-album-3 {
        background-attachment: scroll; /* fixed backgrounds can cause performance issues on mobile */
        min-height: 300px; /* reduce height on mobile */
        padding: 60px 0 40px; /* Reduced padding on mobile */
    }
    
    .music-album-1 {
        padding-top: 80px; /* Less top padding on mobile */
    }
}

/* === Hero Section === */
.music-hero {
    text-align: center;
    padding: 120px 20px 40px;
    background: #111;
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

/* Premium Album Card Design */
.music-album-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.3),
        0 8px 30px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.8);
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.music-album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(212,175,55,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.music-album-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0,0,0,0.4),
        0 12px 40px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 0 0 1px rgba(212,175,55,0.3);
}

.music-album-card:hover::before {
    opacity: 1;
}

/* Enhanced Album Info */
.album-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
}

.album-info h2 {
    font-size: 2rem;
    margin: 0 0 24px 0;
    color: #2d3436;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.album-info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.music-album-card img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.25),
        0 5px 15px rgba(0,0,0,0.15);
    margin-bottom: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255,255,255,0.8);
}

.music-album-card:hover img {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.35),
        0 10px 25px rgba(0,0,0,0.2),
        0 0 0 4px rgba(212,175,55,0.3);
}

.album-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

/* Premium Music Button */
.music-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(135deg, #d4af37 0%, #c1941f 100%);
    color: #1a1a1a;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 24px 0 0 0;
    box-shadow: 
        0 8px 25px rgba(212,175,55,0.4),
        0 3px 10px rgba(212,175,55,0.3);
    width: fit-content;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.music-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.music-btn:hover {
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 
        0 15px 35px rgba(212,175,55,0.5),
        0 8px 20px rgba(212,175,55,0.4);
    border-color: #d4af37;
}

.music-btn:hover::before {
    left: 0;
}

.music-btn:active {
    transform: translateY(-2px);
}

/* Enhanced Track List */
.track-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.track-list li {
    font-size: 0.9rem;
    color: #2d3436;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-weight: 500;
    position: relative;
}

.track-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(212,175,55,0.1), rgba(212,175,55,0.05));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-list li:last-child {
    border-bottom: none;
}

.track-list li:hover {
    background: rgba(212, 175, 55, 0.08);
    padding-left: 24px;
    transform: translateX(4px);
}

.track-list li:hover::before {
    width: 4px;
}

.track-list li:nth-child(even) {
    background: rgba(248, 249, 250, 0.5);
}

.track-list li:nth-child(even):hover {
    background: rgba(212, 175, 55, 0.08);
}

.track-list a {
    color: #d4af37;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.track-list a:hover {
    background: #d4af37;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Enhanced Mobile Adjustments */
@media screen and (max-width: 768px) {
    .music-gallery {
        padding: 60px 0 0 0;
    }
    
    .music-album-1,
    .music-album-2,
    .music-album-3 {
        min-height: 500px;
        padding: 80px 0 60px;
        background-attachment: scroll;
    }
    
    .music-album-card {
        max-width: 90vw;
        margin: 0 16px;
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .album-info h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .music-album-card img {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
    
    .music-btn {
        padding: 12px 24px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .track-list {
        margin-top: 16px;
        border-radius: 12px;
    }
    
    .track-list li {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .track-list li:hover {
        padding-left: 20px;
    }
    
    .track-list a {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* Album Navigation */
.album-navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.album-navigation button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid transparent;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.album-navigation button:hover {
    background: rgba(102, 176, 255, 0.9);
    border-color: #66b0ff;
}

@media (max-width: 768px) {
    .album-navigation {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 0;
    }
}