/* Section */
#topper-section {
    padding: 60px 8%;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.03) 100%);
}

/* Container Grid */
.topper-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.topper-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Top accent */
.topper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #db1a1a, #ff6b6b, #db1a1a);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Trophy badge */
.topper-card::after {
    content: '🏆';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.8;
}

/* Image wrapper */
.topper-card .img-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

/* Image */
.topper-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

/* Glow effect ring */
.topper-card .img-wrapper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #3b82f6, #2563eb);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.topper-card:hover .img-wrapper::before {
    opacity: 1;
}

.topper-card:hover img {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

/* Name */
.topper-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #1a1a2e;
}

/* Class */
.topper-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
}

/* Percentage */
.topper-card span {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

/* Hover Effect */
.topper-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.topper-card:hover span {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

/* Mobile */
@media (max-width: 768px) {
    #topper-section {
        padding: 50px 5%;
    }
    
    .topper-container {
        gap: 25px;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 600px) {
    .topper-card {
        padding: 30px 25px;
    }
    
    .topper-card img {
        width: 120px;
        height: 120px;
    }
    
    .topper-card h3 {
        font-size: 20px;
    }
    
    .topper-card span {
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .topper-card img {
        width: 100px;
        height: 100px;
    }
    
    .topper-card {
        padding: 25px 20px;
    }
}