/* css/achievements.css */
.achievements-content {
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
}

.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.badge-item {
    aspect-ratio: 1;
    perspective: 1000px;
}

.badge-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.badge-front,
.badge-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.badge-front {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.badge-hover {
    background: linear-gradient(145deg, #2c3e50, #3498db);
    color: white;
    transform: rotateY(180deg);
    padding: 1.5rem;
    text-align: center;
}

.badge-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.badge-hover h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.year {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Hover Effects */
.badge-item:hover .badge-inner {
    transform: rotateY(180deg);
}

.badge-item:hover .badge-image {
    transform: scale(1.1);
}

/* Add entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Add staggered delay for each item */
.badge-item:nth-child(1) { animation-delay: 0.1s; }
.badge-item:nth-child(2) { animation-delay: 0.2s; }
.badge-item:nth-child(3) { animation-delay: 0.3s; }
/* Add more if needed */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .badges-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .badge-hover h3 {
        font-size: 1rem;
    }

    .year {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .badges-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0.5rem;
    }

    .achievements-content {
        padding: 1rem;
    }
}