/* Section Containers */
#dsa {
    padding: 100px 20px 40px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

#overview, #leetcode, #codeforces {
    background: #2a2a2a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    transition: transform 0.1 ease;
}

#overview:hover, #leetcode:hover, #codeforces:hover {
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

/* Section Headings */
#dsa h2 {
    font-size: 2.5rem;
    color: cyan;
    text-align: center;
    margin-bottom: 40px;
}

#dsa h3 {
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 2px solid cyan;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#dsa h4 {
    font-size: 1.5rem;
    color: cyan;
    margin-bottom: 15px;
}

/* Links Styling */
#dsa a {
    color: cyan;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.1s ease, transform 0.1s ease;
    position: relative;
}

#dsa a:hover {
    color: #ff6600;
}

/* Overview Section */
#overview p, #overview ul {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
}

#overview ul {
    list-style-type: square;
    padding-left: 20px;
}

#overview ul li {
    margin-bottom: 10px;
}

/* Leetcode Section */
.leetcode-top-row {
    display: flex;
    align-items: center;
    gap: 20px; 
    flex-wrap: nowrap;
}

.leetcode-badges, .solved-wheel {
    flex: 1;
    text-align: center; 
}

.solved-numbers {
    flex: 0.6;
    text-align: left;
}

.solved-numbers p {
    font-size: 1.8rem;
}

.solved-wheel {
    position: relative;
    width: 480px; 
    height: 480px;
    margin: 0 auto;
    bottom: 8px;
}

.solved-wheel canvas {
    width: 100%;
    height: 100%;
}

.leetcode-rating-row {
    text-align: left;
    margin-top: 40px;
}

.leetcode-rating-row p{
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ccc;
}

.leetcode-contest-graph {
    margin-top: 20px;
    margin-bottom: 20px;
}

#leetcode-progress {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

#leetcode-progress img {
    width: 45%;
    border-radius: 5px;
}

/* CodeForces Section */
#codeforces p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 10px;
}

canvas {
    width: 100%;
    margin-top: 15px;
    background: #333;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #dsa { padding: 80px 15px 30px; }
    #dsa h2 { font-size: 1.8rem; }
    #dsa h3 { font-size: 1.5rem; }
    #dsa h4 { font-size: 1.2rem; }
    .badges-image { width: 200px; }
    .solved-wheel { 
        height: 300px;
        bottom: 9px;
    }
    .solved-numbers p { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    #dsa { padding: 60px 10px 20px; }
    #dsa p, #dsa li, #dsa ul { font-size: 0.8rem; }
    .badges-image { width: 100px; }
    .solved-wheel {
        width: 80px;
        height: 160px;
    }
    .solved-numbers p { font-size: 0.7rem !important; }
    #leetcode-progress img { width: 100%; }
}

@media (max-width: 320px) {
    .badges-image { width: 80px; }
    .solved-wheel { 
        width: 60px; 
        height: 120px;
    }
    .solved-numbers p { font-size: 0.6rem !important; }
}
