/* ================= ABOUT SECTION ================= */

#about.content.active {
  width: 100%;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ================= SIDEBAR ================= */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 450px;
  margin: 0 auto;
}

.sidebar h3 {
  font-size: 2rem;
}

.sidebar p {
  font-size: 1.1rem;
  text-align: justify;
}

.sidebar .tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar .tabs span {
  padding: 1rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 5px;
  background: var(--secondary);
  border: 2px solid transparent;
  transition: 0.3s;
}

.sidebar .tabs span:hover,
.tab.active {
  border-color: var(--green);
  color: var(--green);
  cursor: pointer;
}

/* ================= CONTENT ================= */

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

aside h2 {
  font-size: 2rem;
}

aside h2 span {
  color: var(--green);
}

/* ================= LIST SCROLL AREAS ================= */

.experience-list,
.education-list,
.skill-list,
.my-info {
  display: grid;
  gap: 2rem;
  overflow-y: auto;
  max-height: 320px;
  padding: 1rem;
}

.experience-list,
.education-list,
.my-info {
  grid-template-columns: 1fr;
}

/* Scrollbar */
.experience-list::-webkit-scrollbar,
.education-list::-webkit-scrollbar,
.skill-list::-webkit-scrollbar,
.my-info::-webkit-scrollbar {
  width: 5px;
}

.experience-list::-webkit-scrollbar-thumb,
.education-list::-webkit-scrollbar-thumb,
.skill-list::-webkit-scrollbar-thumb,
.my-info::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 10px;
}

/* ================= EXPERIENCE / EDUCATION ================= */

.experience-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--secondary);
  border: 2px solid transparent;
  transition: 0.3s;
  cursor: pointer;
}

.experience-box:hover {
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.experience-box h4 {
  font-size: 1.1rem;
}

.experience-box h3 {
  font-size: 1.3rem;
  color: var(--green);
}

.experience-box p {
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.company-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-name span {
  border: 6px solid var(--green);
  border-radius: 50%;
}

.company-name p {
  font-size: 1rem;
}

/* ================= SKILLS CATEGORY ================= */

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-heading {
  font-size: 1.5rem;
  color: var(--green);
  border-left: 4px solid var(--green);
  padding-left: 10px;
}

/* Grid inside each category */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-box {
  height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: var(--disabled);
  border: 2px solid var(--disabled);
  transition: 0.3s;
  cursor: pointer;
}

.skill-box:hover {
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.skill-box img {
  width: 4rem;
}

.skill-box p {
  margin-top: 8px;
  font-size: 0.95rem;
  text-align: center;
}

/* ================= INFO ================= */

.my-info {
  font-size: 1.3rem;
  font-weight: 800;
}

.info-box span:first-child {
  color: var(--green);
}
body.no-scroll {
  height: 100dvh;
  overflow: hidden; /* This completely disables scrolling when the menu is "active" */
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Add this for iOS smoothness */
}

/* ================= TABLET ================= */

@media (min-width: 768px) {

  #about.content.active {
    grid-template-columns: repeat(7, 1fr);
    gap: 3rem;
  }

  .sidebar { grid-column: span 3; }

  .tab-content.active {
    grid-column: span 4;
    max-width: 100%;
    margin: 0;
  }

  aside h2 { font-size: 3rem; }
  .experience-box h3 { font-size: 1.5rem; }
}

/* ================= DESKTOP ================= */

@media (min-width: 1024px) {

  #about.content.active { gap: 5rem; }

  .experience-box h3 { font-size: 1.8rem; }

  .skill-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .my-info {
    grid-template-columns: repeat(2, 1fr);
    font-size: 1.7rem;
    gap: 2rem 1rem;
  }
}

