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

/* Network Nodes Background Pattern - ADDED */
.achievements-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.04) 3px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(52, 152, 219, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(52, 152, 219, 0.04) 3px, transparent 3px),
        radial-gradient(circle at 10% 50%, rgba(52, 152, 219, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 90% 70%, rgba(52, 152, 219, 0.03) 2px, transparent 2px);
    background-size: 200px 200px, 180px 180px, 220px 220px, 190px 190px, 160px 160px, 210px 210px;
    pointer-events: none;
    z-index: 0;
}

/* Network Connection Lines - ADDED */
.achievements-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(52, 152, 219, 0.015) 49%, rgba(52, 152, 219, 0.015) 51%, transparent 52%),
        linear-gradient(150deg, transparent 48%, rgba(52, 152, 219, 0.015) 49%, rgba(52, 152, 219, 0.015) 51%, transparent 52%),
        linear-gradient(75deg, transparent 48%, rgba(52, 152, 219, 0.01) 49%, rgba(52, 152, 219, 0.01) 51%, transparent 52%);
    background-size: 200px 200px, 180px 180px, 220px 220px;
    pointer-events: none;
    z-index: 0;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    /* Added to ensure title appears above network */
    z-index: 1;
    /* Added to ensure title appears above network */
}

.badges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    /* Added to ensure badges appear above network */
    z-index: 1;
    /* Added to ensure badges appear above network */
}

.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;
    }

    /* Adjust network pattern for mobile - ADDED */
    .achievements-content::before {
        background-size: 150px 150px, 130px 130px, 170px 170px, 140px 140px, 120px 120px, 160px 160px;
    }

    .achievements-content::after {
        background-size: 150px 150px, 130px 130px, 170px 170px;
    }
}

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

    .achievements-content {
        padding: 1rem;
    }

    /* Further adjust network pattern for small screens - ADDED */
    .achievements-content::before {
        background-size: 100px 100px, 90px 90px, 120px 120px, 100px 100px, 80px 80px, 110px 110px;
    }

    .achievements-content::after {
        background-size: 100px 100px, 90px 90px, 120px 120px;
    }
}