/* ABOUT SECTION HEADING */

.section .heading {
  margin-bottom: 2rem;
  font-size: calc(var(--medium-Fsize) + 10px);
  color: var(--accent-color);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section .heading span {
  color: var(--accent-color); /* Highlighted text */
}

.section .heading:hover {
  color: var(--accent-color); /* Change to accent color on hover */
  transform: scale(1.05); /* Slight zoom effect */
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* ABOUT CONTENT */
#about-section .more-about-me {
  font-size: 1.18rem;
  color: #f8f8f8;
  background: rgba(34, 34, 34, 0.55);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 820px;
  margin: 2.5rem auto 3.5rem auto;
  transition:
    background 0.3s,
    color 0.3s;
}

#about-section .more-about-me:hover {
  background: rgba(60, 60, 60, 0.85);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transform: scale(1.015);
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s,
    transform 0.2s;
}

/* YEARS OF DOING GRID */
#about-section .years-of-doing.d-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(200px, 1fr)
  ); /* Responsive grid */
  gap: 15px;
  padding: 1rem;
  justify-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

/* YEARS OF DOING ITEMS */
#about-section .years-of-doing > div {
  font-size: var(--XS-small-Fsize);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.1),
    rgba(0, 150, 255, 0.1)
  );
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 1rem;
  transition: 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#about-section .years-of-doing > div:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.3),
    rgba(0, 150, 255, 0.3)
  );
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#about-section .years-of-doing > div:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.3),
    rgba(0, 150, 255, 0.3)
  );
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#about-section .years-of-doing .years {
  font-size: calc(var(--XS-Fsize) + 1px);
  color: var(--primary-color);
  text-align: center;
  font-weight: bold;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  margin-bottom: 0.5rem;
}

#about-section .years-of-doing p {
  font-size: calc(var(--XS-Fsize) + 1px);
  color: var(--primary-color);
  opacity: 0.8;
  margin-top: 0;
  line-height: 1.4;
  text-align: center;
}

/* FLEX ABOUT SECTION */
.about-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 2rem 0 3rem 0;
}

.about-image {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border: 4px solid var(--accent-color, #ff7f50);
  background: #fff;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.about-portrait:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.about-content {
  flex: 1 1 350px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
}

.about-nickname {
  font-size: 1.1rem;
  color: var(--pastel-color);
  font-weight: 500;
}

.about-role {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-description {
  font-size: 1.05rem;
  color: var(--primary-color);
  opacity: 0.95;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin: 1.2rem 0 0.5rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 150, 0.08),
    rgba(0, 150, 255, 0.08)
  );
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stat-label {
  font-size: 1rem;
  color: var(--primary-color);
  text-align: center;
  opacity: 0.85;
}

.about-socials {
  display: flex;
  gap: 1.2rem;
  margin: 1.2rem 0 0.5rem 0;
}

.about-socials a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.about-socials a:hover img {
  transform: scale(1.15) rotate(-6deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  filter: brightness(1.2) drop-shadow(0 0 6px var(--accent-color, #ff7f50));
}

/* RESPONSIVE DESIGN */
@media (min-width: 1000px) {
  #about-section .more-about-me {
    text-align: center;
    margin: 2rem auto 4rem;
    max-width: 800px;
  }

  #about-section .years-of-doing.d-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(200px, 1fr)
    ); /* Adjust grid for larger screens */
    justify-items: center;
    text-align: center;
    gap: 40px;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
  }

  #about-section .years-of-doing .years {
    font-size: calc(var(--medium-Fsize) + 2px);
    line-height: 1.2em;
  }
}

@media (max-width: 999px) {
  #about-section .years-of-doing.d-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 0 1rem;
    max-width: 100%;
    margin: 0 auto;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-content {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  #about-section .years-of-doing.d-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
  }

  #about-section .years-of-doing .experience,
  #about-section .years-of-doing .projects,
  #about-section .years-of-doing .clients {
    background: linear-gradient(
      135deg,
      rgba(255, 0, 150, 0.1),
      rgba(0, 150, 255, 0.1)
    );
    border: 1px solid var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 0 auto;
    border-radius: 10px;
    width: 90%;
    text-align: center;
  }
  #about-section .years-of-doing .years {
    color: var(--primary-color);
    font-weight: bold;
    font-size: calc(var(--XS-Fsize) + 1px);
    margin-bottom: 0.5rem;
  }
  #about-section .years-of-doing p {
    color: var(--primary-color);
    opacity: 0.8;
    font-size: calc(var(--XS-Fsize) + 1px);
    margin-top: 0;
    line-height: 1.4;
    text-align: center;
  }
  .about-portrait {
    width: 140px;
    height: 140px;
  }
  .about-title {
    font-size: 1.3rem;
  }
  .about-description {
    font-size: 0.98rem;
  }
  .about-stats {
    gap: 1.2rem;
  }
  .stat {
    padding: 0.7rem 1rem;
  }
}

html {
  scroll-behavior: smooth;
}
