* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #99acff 0%, #b873ff 100%);
  min-height: 100vh;
  padding: 50px;
  overflow: hidden scroll;
}

.mainTitle {
  color: white;
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roadmapChoices {
  display: flex;
  gap: 20px;
}

.roadmapChoice {
  background: darkslateblue;
  color: white;
  padding: 50px 30px 30px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  flex: 1;
}

.roadmapChoice.selected {
  background: #4f46e5;
}

.roadmapChoice:hover {
  background: #322c9c;
}

.roadmapChoice h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.roadmapChoice .choiceIcon {
  position: absolute;
  font-size: 4rem;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  filter: drop-shadow(5px 10px 2px rgba(0, 0, 0, 0.2));
}

.tip {
  position: relative;
  padding: 40px;
  background: white;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.tip img {
  position: absolute;
  top: -1rem;
  left: 50%;
  translate: -50% -50%;
  height: 6rem;
}

.tip a{
  color: #4f46e5;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.tip a:hover {
  color: #322c9c;
}

.roadmaps {
  width: calc(200% + 10rem);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10rem;
  translate: 0;
  transition: all 0.5s ease-in-out;
}

.roadmap {
  opacity: 0;
  width: 100%;
  padding: 40px;
  background: white;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  transition: all 0.5s ease-in-out;
  margin-bottom: auto;
}

.level {
  position: relative;
  margin-bottom: 20px;
}

.level.locked {
  opacity: 0.6;
}

.level-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 15px;
  border-left: 5px solid #56a4f4;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.level-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 10px #73b8ff77;
}

.level.expanded .level-header {
  background: linear-gradient(135deg, #f8fafc 0%, #dcf3fc 100%);
}

.level.completed .level-header {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left-color: #10b981;
}

.level-icon {
  margin-right: 20px;
  font-size: 3.5rem;
  filter: drop-shadow(1px 5px 2px rgba(0, 0, 0, 0.2));
}

.level.locked .level-icon {
  filter: grayscale();
}

.level-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.level-progress {
  font-size: 0.9rem;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  background: #56a4f4;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: opacity 0.3s ease-in-out;
}

.level.completed .level-progress {
  background: #10b981;
}

.level.locked .level-progress {
  background: gray;
}

.sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  margin-top: 20px;
}

.level.collapsed .sections {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.level.expanded .sections {
  max-height: 2000px;
  opacity: 1;
  margin-top: 20px;
}

.section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 25px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease-in-out;
}

.section:hover {
  border: 2px solid #bac4d1;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.section-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  font-size: 2.9rem;
  rotate: -5deg;
}

.skill-category {
  margin-top: 20px;
}

.category-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #dcf3fc;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.2s ease-in-out;
  border-left: 4px solid #aae2ee;
}

.category-header.completed {
  background: #dcfce7;
  border-left-color: #10b981;
}

.level.locked .level-header {
  border-left-color: grey;
}

.category-icon {
  font-size: 1.3rem;
  margin-right: 12px;
  flex-shrink: 0;
}

.category-title {
  font-weight: 600;
  color: #1e293b;
  flex: 1;
}

.category-progress {
  font-size: 0.85rem;
  color: #64748b;
  margin-left: 10px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-weight: 500;
}

.category-header.completed .category-progress {
  background: rgba(16, 185, 129, 0.2);
  color: #065f46;
}

.skill-items {
  margin-left: 44px;
  padding: 7px 15px;
  border-left: 2px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.level.locked .skill-items {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.level.locked .skill-item {
  pointer-events: none;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 3px;
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.checkbox.checked {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.checkbox.checked::after {
  content: "✓";
  font-weight: bold;
  font-size: 26px;
  color: black;
  translate: 2px -6px;
}

.skill-text {
  flex: 1;
  line-height: 1.5;
  color: #334155;
}

.skill-text strong {
  color: #1e293b;
}

.resetFooter {
  width: fit-content;
  align-self: center;
  padding: 1rem 2rem;
  border: 2px solid white;
  border-radius: 1rem;
  background: none;
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin-top: 5rem;
}

.resetFooter:hover{
  background: #FFFFFF44;
}

.stats {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px;
}

.stats h3 {
  color: #1e293b;
  margin-bottom: 10px;
  font-size: 1.5rem;
  text-align: center;
}

.stat-item {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  color: #64748b;
}

.stat-value {
  font-weight: 900;
  color: darkslateblue;
  padding-left: 0.5rem;
  font-size: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .sections {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .stats {
    position: static;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
  }

  .roadmap {
    padding: 20px;
  }
}
