h1 {
  text-align: center;
  margin: 3%;
  text-decoration: underline;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

h2{
  font-size: clamp(28px, 3vw, 3.5rem);
  margin-top: 3%
}

h3{
  font-size: clamp(10%, 3vw, 2rem);
  text-decoration:double;
  margin: 1%;
}

p{
  font-size: clamp(10px, 1vw, 150%);
}

.textbox{
    width: 50%;
    justify-content: center;
    align-items: center;
    margin-left: 25%;
}

.content{
  color: #c6c4ff;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 3.5%;
}


/* === Skills Section === */
.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 3% auto;
  padding: 2%;
  width: 90%;
  max-width: 800px;
}

.skills h2 {
  text-align: center;
  color: #c6c4ff;
  margin-bottom: 2%;
  font-size: clamp(28px, 3vw, 3.5rem);
  text-decoration: underline;
}

.skills-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background-color: #38349e;
  padding: 5px;
  transition: filter 0.7s ease;
}

.skill-bar {
  flex: 1;
  height: 20px;
  background-color: #96a0d4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.skill-level {
  height: 100%;
  border-radius: 10px;
  background-color: #38349e;
}

/* Individual skill colors + progress */
.skill-level.python { width: 75%;transition: 4s;}
.skill-level.html { width: 60%;}
.skill-level.js { width: 35%;}
.skill-level.linux { width: 30%;}

/* === Darkmode === */
body.darkmode .skills h2 {
  color: #96a0d4;
}

body.darkmode .skill img {
  background-color: #2e2b7e;
  filter: invert(1) hue-rotate(180deg); /* makes icons adapt to darkmode */
}

body.darkmode .skill-bar {
  background-color: #2e2b7e;
}

body.darkmode .skill-level.python { background-color: #96a0d4; }
body.darkmode .skill-level.html { background-color: #96a0d4; }
body.darkmode .skill-level.js { background-color: #96a0d4; }
body.darkmode .skill-level.linux { background-color: #96a0d4; }





/* Style for the gaming image */
.general-img {
  width: 80%;
  max-width: 100%;
  height: auto;        
  border-radius: 30px;  
  display: block;      
  margin: 0 auto;      
}