/* ============================================
   ACHIEVEMENTS SECTION — Dark & Gold Accent
   ============================================ */

.achieve-section {
    padding: 0;
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    overflow: visible;
}

.achieve-header {
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 24px;
}

.achieve-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.achieve-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    text-align: left;
    margin-top: 0;
}

.achieve-title span {
    background: linear-gradient(135deg, #facc15 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achieve-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 650px;
}

/* Achievements Grid layout */
.achieve-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 2rem;
    padding: 0 24px;
}

.achieve-card.highlight {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, #ffffff 100%);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 20px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.achieve-card-glowing {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.achieve-icon-badge {
    width: 60px;
    height: 60px;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #eab308;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.15);
}

.achieve-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.achieve-rank {
    font-size: 1rem;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 1rem;
}

.achieve-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.achieve-link-btn {
    background: linear-gradient(135deg, #facc15 0%, #ea580c 100%);
    color: #0c0a09 !important;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
    font-size: 0.88rem;
    text-decoration: none;
}

.achieve-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.5);
}

/* LeetCode Showcase Panel */
.leetcode-showcase-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: var(--shadow-card);
}

.leetcode-panel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0;
}

.leetcode-panel-title i {
    color: #ffa116;
    font-size: 1.6rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.badge-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.badge-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-card h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.badge-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.badge-card:hover {
    background: #ffffff;
    border-color: rgba(234, 179, 8, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.badge-card:hover img {
    transform: scale(1.12) rotate(4deg);
}

/* LeetCode View Badge Button styles */
.badge-view-btn {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #facc15;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.badge-view-btn:hover {
    background: #facc15;
    color: #0c0a09;
    border-color: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.2);
}

/* Achievements Section Responsive */
@media (max-width: 992px) {
    .achieve-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .achieve-title {
        font-size: 2.8rem;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .achieve-section {
        margin-bottom: 2rem;
        padding: 0;
    }
    
    .achieve-grid {
        padding: 0;
    }

    .achieve-header,
    .achieve-grid {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 576px) {
    .achieve-title {
        font-size: 2.2rem;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .achieve-card.highlight {
        padding: 1.5rem;
    }

    .achieve-header,
    .achieve-grid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .achieve-desc {
        font-size: 0.85rem;
    }

    .achieve-card h3 {
        font-size: 1.2rem;
    }

    .leetcode-showcase-panel {
        padding: 1.5rem;
    }

    .leetcode-panel-title {
        font-size: 1.1rem;
    }
}
