.hidden{
    opacity: 0;
    fill: blur(5px);
    transition:all  0.75s ease-in-out;
    transform: translateX(-10%);
}

.show{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

@media(prefers-reduced-motion){
    .hidden{
        transition: none;
    }
}
.show{
    opacity: 1;
}

#why-attend-grid:nth-child(1){
    transition-delay: 200ms;
}

#why-attend-grid:nth-child(2){
    transition-delay: 400ms;
}

#why-attend-grid:nth-child(3){
    transition-delay: 600ms;
}

#why-attend-grid:nth-child(4){
    transition-delay: 200ms;
}

#why-attend-grid:nth-child(5){
    transition-delay: 400ms;
}

#why-attend-grid:nth-child(6){
    transition-delay: 600ms;
}

#why-attend-grid:nth-child(7){
    transition-delay: 200ms;
}

#why-attend-grid:nth-child(8){
    transition-delay: 400ms;
}

#why-attend-grid:nth-child(9){
    transition-delay: 600ms;
}


/* pop up card css */

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: clamp(15px, 5vw, 30px);
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    width: min(90%, 500px);
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
    transition: 0.5s ease;
}

#popup h3 {
    /* font-size: clamp(1.2rem, 4vw, 1.5rem); */
    margin-bottom: 15px;
    color: #333;
    font-size: 2rem;
}

.achievement {
    margin: clamp(8px, 2vw, 15px) 0;
    /* font-size: clamp(0.9rem, 3vw, 1rem); */
    font-size: 1.5rem;
    padding: 5px 0;
    color: #444;
}

#closeButton {
    background: red;
    color: white;
    border: none;
    padding: clamp(8px, 2vw, 20px) clamp(15px, 3vw, 20px);
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    margin-top: clamp(15px, 3vw, 20px);
    /* font-size: clamp(0.9rem, 3vw, 1rem); */
    font-size: clamp(1.5rem, 3vw, 2rem);
    transition: background-color 0.3s ease;
    font-weight: bold;
}

#closeButton:hover {
    background: darkred;
}

/* Overlay for better visibility */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: 0.5s ease;
}

/* Responsive text */
h1, h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

/* Touch device optimizations */
@media (hover: none) {
    #closeButton {
        padding: clamp(12px, 3vw, 16px);  /* Larger touch target */
    }
}

/* Small screen specific adjustments */
@media screen and (max-width: 480px) {
    #popup {
        padding: 20px;
        width: 85%;
    }
    
    .achievement {
        padding: 8px 0;
    }
}

