/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
} */
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
.header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
}
.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.header .tagline {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Sections */
.section {
  max-width: 1240px;
  margin: auto;
  padding: 2rem;
  background: white;
  margin-top: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease-out;
}

.section h2 {
  margin-bottom: 1rem;
  color: #357abd;
}

.section p,
.section ul {
  font-size: 1rem;
}

.section ul {
  list-style: none;
}
.section ul li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.section ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4a90e2;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  background: #357abd;
  color: white;
}

/* Fade-in Animation */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  .section {
    padding: 1.5rem;
  }
}
.section ul li {
  padding-left: 1.2rem;
}

/* Hover animation for section cards */
.section {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Hover effect for list items */
.section ul li {
  transition: color 0.3s ease, transform 0.2s ease;
}
.section ul li:hover {
  color: #4a90e2;
  transform: translateX(5px);
}

/* Hover effect for links */
.section a {
  color: #357abd;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}
.section a:hover {
  color: #1e5a9e;
  border-bottom: 2px solid #1e5a9e;
}

/* leaderBoard styles */
.leaderboard {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: 12px;   
}

.leaderboard th,
.leaderboard td {
  padding: 12px 15px;
  text-align: left;
}
.leaderboard thead{ 
  padding: 1rem; 
}
.leaderboard th {
  font-size: 1.5rem;
  border-bottom: 2px solid #444;
}
.leaderboard td {
  border-bottom: 1px solid #333;
}
#leaderboard-body{
  padding: 1rem 1rem; 
}
.rank-icon {
  font-size: 20px;
  text-align: center;
  width: 40px;
  margin-left: 1rem;
}
.contributor-info {
  display: flex;
  align-items: center;
}
.contributor-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.name{
  font-weight: bold;
  font-size: 1.5rem;
}
.contributions {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
  transition: transform 0.25s ease ,box-shadow 0.25s ease;
  box-shadow: 0 4px 12px rgba(30, 33, 63, 0.05);
}
.contributions:hover{
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3);
}
.level {
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: bold;
  text-align: center;
}
.profile-link a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}
/* add responsive ness */
@media (max-width: 900px) {
  .leaderboard{
    max-width: 700px;
  }
  th:nth-child(3),
  td:nth-child(3) {
    display: none; /* hide contributions count column for small screens */
  }
}
@media (max-width : 720px) {
  th:nth-child(5) ,td:nth-child(5){
    display: none;
  }
  .contributor-info img{
    width: 32px;
    height: 32px;
  }
}
@media (max-width : 606px) {
  .leaderboard{
    max-width: 200px;
    text-align: center;
  }
  th:nth-child(4) ,td:nth-child(4){
    display: none;
  }
  .contributor-info img{
    width: 30px;
    height: 30px;
  }
}

@media (max-width : 467px) {
  .leaderboard{
    max-width: 150px;
  }
  .contributor-info .name{
    font-size: 1rem;
  }
}
@media (max-width:369px) {
  th:nth-child(1),td:nth-child(1){
    display: none;
  }
  .leaderboard{
    max-width: 100px;
  }
}