*{
    margin: 0;
    padding: 0;
}
.achievements {
    min-height: 100vh;
    padding: 80px 8%;
    background: #111;
    color: white;
}

.page-title {
    text-align: center;
    font-size: 45px;
    margin-bottom: 60px;
}

.achievement-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.achievement-card {
    background: #1c1c1c;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s ease;
    transform: translateY(50px);
    opacity: 0;
}

.achievement-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.4s;
}

.achievement-card img:hover {
    transform: scale(1.05);
}

.achievement-content {
    padding: 20px;
}

.achievement-card.active {
    transform: translateY(0);
    opacity: 1;
}

/* Modal */
/* Modal Background */
.modal {
    display: none; /* must stay none by default */
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

/* Image inside modal */
.modal-content {
    max-width: 90%;
    max-height: 90vh;   /* Important */
    object-fit: contain;
    border-radius: 10px;
}

/* Close button */
.close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

