/* Root Color Variables */
:root {
  --bg-color: #081b29;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
  --disabled-color: #fff3;
} 
/* ABOUT SECTION */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  background: var(--bg-color);
  padding: 4rem 10%;
  flex-wrap: wrap;
}
/* About Image Styling */
.about-img {
  width: 470px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--main-color); 
  border-radius: 10px; 
  overflow: hidden;
  background: var(--bg-color);
}

.about-img img {
  width: 100%; 
  height: auto; 
  display: block; 
  object-fit: cover; /* Ensures the image maintains its aspect ratio while covering the box */
  object-position: center; 
}


/* About Content */
.about-content {
  flex: 1;
  max-width: 600px;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
  font-size: 2.5rem;
}

.about-content h3 {
  font-size: 26px;
  color: var(--main-color);
}

.about-content p {
  font-size: 1.6rem;
  margin: 10px 0 20px;
  line-height: 1.2;
  text-align: justify;
}

.about-content a {
  color: var(--main-color); 
  text-decoration: underline;
}

/* About Info Section */
.about-info {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap; 
  gap: 2rem;
}

.about-info li {
  display: flex;
  align-items: center; 
  font-size: 1.5rem;
  margin: 10px 0; 
}

.about-info strong {
  color: var(--main-color);
  margin-right: 5px;
}

.about-info i {
  font-size: 1.5rem;
  margin-right: 8px; 
  color: var(--main-color);
}

.about img {
  width: 70vw;
  margin-top: 4rem;
}

/* Soft Skills Section */
.header-title {
  text-align: center;
  width: 100%;
  margin-bottom: 10px;
}

.header-title h2 {
  margin-bottom: 2rem;
  font-size: 32px;
  text-align: center;
}

.header-title .line-break {
  width: 30%;
  height: 4px;
  background: var(--main-color);
  margin: 0 auto 15px;
}

.skills-main {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-row-gap: 30px;
  grid-column-gap: 50px;
  
}

.skills-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layout for Image and Progress Bars */
.skills-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.06);
}

.skills-bar .image {
  flex-basis: 35%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-bar img {
  max-width: 450px; 
  height: auto; 
  margin: 0 auto; 
}

.skills .bar {
  width: 100%; /* Full width of container */
  height: 12px; /* Slightly bigger for better visibility */
  border: 2px solid var(--main-color);
  border-radius: 10px;
  background: var(--second-bg-color);
  margin-bottom: 10px;
}

.skills .bar div {
  height: 100%; /* Ensures it fills the bar */
  border-radius: 10px;
}

.skills-bar .image img:hover {
  transform: translateY(-5px);
}

.skills-bar .contents {
  flex-basis: 65%;
  width: 100%;
  padding: 20px 40px 20px 15px;
}

.contents {
  flex: 1; /* Allow progress bars to fill remaining space */
  padding: 0 20px;
}

.contents .skills:not(:last-child) {
  margin-bottom: 30px;
}

.skills .details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  width: 0;
  opacity: 0;
}

.skills .details.communication {
  animation: communication-fill 2s forwards;
}
.skills .details.team {
  animation: team-fill 2s forwards;
}
.skills .details.critical {
  animation: critical-fill 2s forwards;
}
.skills .details.solving {
  animation: solving-fill 2s forwards;
}
.skills .details.adaptability {
  animation: adaptability-fill 2s forwards;
}
.skills .details.attention {
  animation: attention-fill 2s forwards;
}

.skills .bar {
  position: relative;
  border: 2px solid var(--main-color);
  border-radius: 20px;
}

.skills .bar div {
  position: relative;
  width: 0;
  height: 9px;
  border-radius: 10px;
  background-color: var(--main-color);
}


.bar #comms-bar {
  animation: communication-fill 2s forwards;
}
@keyframes communication-fill {
  100% {
    width: 90%;
    opacity: 1;
  }
}
.bar #team-bar {
  animation: team-fill 2s forwards;
}
@keyframes team-fill {
  100% {
    width: 90%;
    opacity: 1;
  }
}
.bar #critical-bar {
  animation: critical-fill 2s forwards;
}
@keyframes critical-fill {
  100% {
    width: 87%;
    opacity: 1;
  }
}
.bar #solving-bar {
  animation: solving-fill 2s forwards;
}
@keyframes solving-fill {
  100% {
    width: 85%;
    opacity: 1;
  }
}
.bar #adaptability-bar {
  animation: adaptability-fill 2s forwards;
}
@keyframes adaptability-fill {
  100% {
    width: 82%;
    opacity: 1;
  }
}
.bar #attention-bar {
  animation: attention-fill 2s forwards;
}
@keyframes attention-fill {
  100% {
    width: 79%;
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-img img {
    width: 350px;  /* Reduce width for smaller screens */
    height: 400px;
  }
}

@media (max-width: 480px) {
  .about-img img {
    width: 380px;  /* Further reduce width for very small screens */
    height: 320px;
  }
}

@media (max-width: 617px) {
  .skills-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .skills-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .skills-bar .image {
    order: -1; /* Moves the image above the content */
    margin-bottom: 20px;
  }
  .skills-bar .contents {
    width: 100%;
    padding: 10px;
  }
  .skills-bar .image img {
    width: 100%;
    max-width: 330px;
  }
}

@media (max-width: 900px) {
  .skills-bar .image img {
    width: 330px;
  }
}

@media (max-width: 650px) {
  .skills-main {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    padding: 40px 6%;
  }

  .skills-main .image,
  .skills-bar .contents {
    flex-basis: 100%;
  }

  .skills-bar .image img {
    width: 300px;
  }

  .skills-bar .contents {
    padding: 0;
  }
}