/* ===== GLOBAL STYLES ===== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Poppins', sans-serif;
}

body{
  background: radial-gradient(circle at 20% 20%, #1e3a8a, #0f172a 60%);
  color:white;
  overflow-x:hidden;
}

/* ===== ANIMATED BACKGROUND GLOW ===== */

body::before{
  content:"";
  position:fixed;
  width:500px;
  height:500px;
  background:rgba(59,130,246,0.2);
  filter:blur(150px);
  top:-100px;
  left:-100px;
  z-index:-1;
  animation: glowMove 8s infinite alternate ease-in-out;
}

@keyframes glowMove{
  from{ transform:translate(0,0); }
  to{ transform:translate(200px,150px); }
}

/* ===== HEADER ===== */

header{
  padding:25px 40px;
  backdrop-filter: blur(12px);
  background: rgba(15,23,42,0.7);
  border-bottom:1px solid rgba(255,255,255,0.1);
  position:sticky;
  top:0;
  z-index:1000;
}

header h2{
  font-weight:600;
  letter-spacing:1px;
}

/* ===== PROGRESS BAR ===== */

.progress-container{
  height:6px;
  background:rgba(255,255,255,0.1);
  border-radius:10px;
  margin-top:15px;
  overflow:hidden;
}

#progressBar{
  height:6px;
  width:0%;
  background:linear-gradient(90deg,#3b82f6,#22d3ee,#3b82f6);
  background-size:200% 200%;
  animation: progressGlow 3s linear infinite;
  transition: width 0.4s ease;
}

@keyframes progressGlow{
  0%{background-position:0% 50%;}
  100%{background-position:100% 50%;}
}

/* ===== LAYOUT ===== */

.layout{
  display:flex;
  min-height:100vh;
}

/* ===== SIDEBAR ===== */

.sidebar{
  width:300px;
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(15px);
  padding:30px 20px;
  border-right:1px solid rgba(255,255,255,0.1);
}

.sidebar h3{
  margin-bottom:20px;
  font-weight:500;
}

.sidebar ul{
  list-style:none;
}

.sidebar li{
  padding:14px;
  margin-bottom:10px;
  border-radius:12px;
  cursor:pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.03);
  border:1px solid transparent;
}

.sidebar li:hover{
  background: rgba(59,130,246,0.15);
  border:1px solid rgba(59,130,246,0.3);
  transform:translateX(6px);
}

.sidebar li.locked{
  opacity:0.4;
  cursor:not-allowed;
}

.sidebar li.active{
  background: linear-gradient(90deg,#3b82f6,#2563eb);
  box-shadow:0 0 20px rgba(59,130,246,0.4);
}

/* ===== CONTENT AREA ===== */

.content{
  flex:1;
  padding:50px;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn{
  from{ opacity:0; transform:translateY(15px);}
  to{ opacity:1; transform:translateY(0);}
}

.content h3{
  margin-bottom:15px;
  font-weight:600;
}

.content p{
  line-height:1.8;
  margin-bottom:15px;
  color:#cbd5e1;
}

/* ===== CODE BLOCK ===== */

pre{
  background:#020617;
  padding:20px;
  border-radius:12px;
  overflow:auto;
  border:1px solid rgba(255,255,255,0.05);
  box-shadow:0 0 25px rgba(0,0,0,0.4);
  margin:20px 0;
}

/* ===== CODE LAB ===== */

textarea{
  width:100%;
  height:170px;
  padding:15px;
  border-radius:12px;
  background:#020617;
  color:white;
  border:1px solid rgba(255,255,255,0.1);
  resize:none;
  transition:0.3s;
}

textarea:focus{
  outline:none;
  border:1px solid #3b82f6;
  box-shadow:0 0 15px rgba(59,130,246,0.4);
}

/* ===== PREMIUM BUTTON ===== */

button{
  margin-top:15px;
  padding:12px 22px;
  border:none;
  border-radius:12px;
  font-weight:500;
  background: linear-gradient(135deg,#3b82f6,#2563eb);
  color:white;
  cursor:pointer;
  transition: all 0.3s ease;
  box-shadow:0 10px 25px rgba(37,99,235,0.3);
}

button:hover{
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(37,99,235,0.5);
}

/* ===== OUTPUT ===== */

#output{
  margin-top:15px;
  padding:15px;
  border-radius:12px;
  background:rgba(34,197,94,0.1);
  border:1px solid rgba(34,197,94,0.4);
  animation: fadeIn 0.4s ease;
}

/* ===== QUIZ SECTION ===== */

#quizSection{
  margin-top:40px;
  padding:25px;
  border-radius:16px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
}

/* ===== SCROLLBAR PREMIUM ===== */

::-webkit-scrollbar{
  width:8px;
}

::-webkit-scrollbar-track{
  background:#0f172a;
}

::-webkit-scrollbar-thumb{
  background:#3b82f6;
  border-radius:10px;
}
/* ===== HERO SECTION ===== */

.hero{
  height:90vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background: radial-gradient(circle at center, #1e3a8a 0%, #0f172a 70%);
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  width:600px;
  height:600px;
  background:rgba(59,130,246,0.15);
  filter:blur(150px);
  animation:floatGlow 6s infinite alternate ease-in-out;
}

@keyframes floatGlow{
  from{transform:translate(-100px,-50px);}
  to{transform:translate(100px,50px);}
}

.hero-content{
  max-width:900px;
  z-index:2;
}

.hero-title{
  font-size:50px;
  font-weight:700;
}

.hero-title span{
  background:linear-gradient(90deg,#3b82f6,#22d3ee);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-subtitle{
  margin-top:20px;
  font-size:18px;
  color:#cbd5e1;
}

.hero-stats{
  display:flex;
  justify-content:center;
  gap:40px;
  margin-top:40px;
}

.hero-stats h3{
  font-size:28px;
  color:#3b82f6;
}

.hero-btn{
  margin-top:40px;
  padding:14px 30px;
  border:none;
  border-radius:12px;
  font-size:16px;
  background:linear-gradient(135deg,#3b82f6,#2563eb);
  color:white;
  cursor:pointer;
  transition:0.3s;
}

.hero-btn:hover{
  transform:translateY(-4px);
}

/* ===== ROADMAP ===== */

.roadmap{
  padding:80px 40px;
  text-align:center;
}

.roadmap h2{
  margin-bottom:50px;
}

.roadmap-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}

.roadmap-card{
  padding:25px;
  border-radius:16px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  transition:0.3s;
}

.roadmap-card:hover{
  transform:translateY(-10px);
  box-shadow:0 15px 35px rgba(59,130,246,0.3);
}
/* ===== XP SYSTEM ===== */

.xp-system{
  margin-top:20px;
  max-width:400px;
}

.level-info{
  display:flex;
  justify-content:space-between;
  font-size:14px;
  margin-bottom:6px;
}

.xp-bar{
  height:8px;
  background:rgba(255,255,255,0.1);
  border-radius:10px;
  overflow:hidden;
}

#xpProgress{
  height:8px;
  width:0%;
  background:linear-gradient(90deg,#facc15,#f59e0b);
  transition:width 0.6s ease;
}

/* ===== LEVEL UP POPUP ===== */

.level-popup{
  position:fixed;
  top:30%;
  left:50%;
  transform:translate(-50%,-50%);
  background:#1e293b;
  padding:30px 50px;
  border-radius:20px;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,0.5);
  animation:popupAnim 0.5s ease;
  z-index:9999;
}

@keyframes popupAnim{
  from{opacity:0; transform:translate(-50%,-40%);}
  to{opacity:1; transform:translate(-50%,-50%);}
}

/* ===== MOBILE RESPONSIVE ===== */

@media(max-width:1024px){

  .layout{
    flex-direction:column;
  }

  .sidebar{
    width:100%;
    min-height:auto;
    display:flex;
    overflow-x:auto;
  }

  .sidebar ul{
    display:flex;
    gap:10px;
  }

  .sidebar li{
    min-width:200px;
  }

  .content{
    padding:25px;
  }

  .hero-title{
    font-size:32px;
  }

  .hero-stats{
    flex-direction:column;
    gap:20px;
  }

  .roadmap-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){

  .hero{
    height:auto;
    padding:80px 20px;
  }

  .hero-title{
    font-size:26px;
  }

  .hero-subtitle{
    font-size:14px;
  }

  button{
    width:100%;
  }

  textarea{
    height:130px;
  }
}
