* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #050505; color: white; padding-bottom: 50px; }

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;

    /* 1. Semi-transparent black */
    background: rgba(5, 5, 5, 0.7);

    /* 2. The Liquid Blur Effect */
    /* blur: makes it fuzzy */
    /* saturate: makes colors popping behind it look 'wet' or vibrant */
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    backdrop-filter: blur(15px) saturate(180%);

    /* 3. A subtle glass edge */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.back-link:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

.gallery {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    padding: 80px 20px 20px;
    max-width: 900px; margin: 0 auto;
}

.card {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover { transform: scale(1.02); z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }

.code-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    z-index: 20;
    transition: all 0.2s ease;
}

.code-btn:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

.card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.card-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; transition: transform 0.6s ease;
}

.card:hover .card-bg { transform: scale(1.1); }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%);
    transition: background 0.4s ease;
}
.card:hover .overlay {
    background: linear-gradient(to top, rgba(17, 13, 101, 0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.content {
    position: absolute; bottom: 0; left: 0; padding: 20px; width: 100%; z-index: 2;
    transform: translateY(0); transition: transform 0.4s ease;
}
.card:hover .content { transform: translateY(-5px); }

.content h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.category { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.8; margin-bottom: 8px; display: block; color: #e0e7ff; }

.year-heading {
    position: sticky;
    top: 63px;
    z-index: 50;
    width: 98%;
    padding: 15px 20px;
    margin: 0;
    border-radius: 16px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(5, 5, 5, 0.4);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    backdrop-filter: blur(12px) saturate(200%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.year-heading:first-child {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .card { height: 160px; }
    .content h2 { font-size: 1.3rem; }
    .code-btn { width: 35px; height: 35px; font-size: 1rem; }
}