/* Global scroll offset for all sections with IDs */
[id] {
    scroll-margin-top: 150px;
}

html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for horizontal scrolling albums */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* =============== 3D Coverflow Carousel =============== */
.coverflow-card {
    position: absolute;
    width: 55%;
    max-width: 520px;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.6s ease,
                filter 0.6s ease,
                box-shadow 0.6s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    box-shadow: 0 8px 30px rgba(0, 45, 81, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.25);
}

.coverflow-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.coverflow-card:hover img {
    transform: scale(1.05);
}

.coverflow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 45, 81, 0.3) 0%, rgba(0, 89, 154, 0.15) 100%);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Active (center) card */
.coverflow-card.active .coverflow-overlay {
    opacity: 0;
}

.coverflow-card.active {
    box-shadow: 0 20px 60px rgba(0, 45, 81, 0.25), 0 0 0 1px rgba(255, 139, 44, 0.15);
}

@media (max-width: 768px) {
    .coverflow-card {
        width: 75%;
    }
}
