/* === SCROLLBAR _______________________________________________ === */

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Optional: make scrollbars look nicer */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.158);
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* === BACKGROUND _______________________________________________ === */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f0f0f0;
  color: #333;
}

/* === FOOTER _______________________________________________ === */

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 25px 0;
  color: #666;
  font-size: clamp(12px, 2vw, 15px);
  z-index: -1;
  pointer-events: none;
}

/* === CARD _______________________________________________ === */

.top-card {
  display: flex;
  justify-content: center;
  padding: 30px 2vw;
}

.card {
  display: flex;
  position: relative;
  background-color: #fff;
  border-radius: clamp(30px, 6vw, 80px);
  max-width: 1200px;
  width: 100%;
  padding: 25px;
  align-items: center;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1),
    -2px -2px 5px rgba(255, 255, 255, 0.7);
}

@media (max-width: 730px) {
  .card {
    flex-direction: column;
    align-items: center;
    padding: 30px 5vw;
  }
}

/* === PHOTO _______________________________________________ === */

.card__profile-photo {
  order: 2;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 70px;
}

.card__profile-photo img {
  width: clamp(80px, 15vw, 130px);
  height: clamp(80px, 15vw, 130px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

@media (max-width: 730px) {
  .card__profile-photo {
    margin-left: 0;
    margin-bottom: 15px;
  }
}

/* === PROFILE INFO _______________________________________________ === */

.card__profile-info {
  order: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 20px;
  flex: 1;
}

.card__profile-info h1 {
  color: #444;
  font-size: clamp(1.3rem, 5vw, 3.5rem);
}

.card__profile-info .title {
  color: #666;
  font-size: clamp(0.75rem, 3.5vw, 1.4rem);
  margin-top: 5px;
  letter-spacing: 1px;
}

@media (max-width: 730px) {
  .card__profile-info {
    margin-left: 0;
    text-align: center;
    margin-bottom: 10px;
  }
}

/* === SOCIAL LINKS _______________________________________________ === */

.social-links {
  order: 1;
  position: absolute;
  top: 50%;
  left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  height: 90%;
  transform: translateY(-50%);
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1),
    inset -2px -2px 5px rgba(255, 255, 255, 0.7);
}

.social-links a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (min-width: 731px) {
  .social-links a:nth-child(1) {
    margin-left: 25px;
  }
  .social-links a:nth-child(2) {
    margin-left: 0;
  }
  .social-links a:nth-child(3) {
    margin-left: 25px;
  }
}
.social-links a:hover {
  transform: scale(1.2);
  background-color: #d0d0d0;
}

@media (max-width: 730px) {
  .social-links {
    order: 4;
    position: static;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transform: none;
    margin-top: 0px;
    gap: clamp(2px, 6vw, 40px);
  }

  .social-links a {
    width: 38px;
    height: 38px;
    margin-left: 0 !important;
  }
}

/* === TIMELINE - MAIN _______________________________________________ === */

main {
  max-width: 12000px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 400px) {
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* === TIMELINE - SECTION _______________________________________________ === */

.timeline-section {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  width: 80%;
  margin: 3.75rem auto;
  padding: 0 1.5rem;
}

@media (max-width: 950px) {
  .timeline-section {
    flex-direction: column;
    align-items: center;
    margin-top: 1.875rem;
    width: 100%;
    padding: 0 1.5rem;
    gap: 1.25rem;
  }
}

@media (max-width: 400px) {
  .timeline-section {
    margin-top: 1.25rem;
    padding: 0 2vw;
  }
}

/* === TIMELINE - LABELS _______________________________________________ === */

.timeline-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.7rem;
}

@media (max-width: 950px) {
  .timeline-labels {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .timeline-labels {
    display: none;
  }
}

/* === TIMELINE - LABEL _______________________________________________ === */

.timeline-label {
  font-size: 0.9rem;
  color: #666;
  opacity: 0.7;
  text-align: right;
  transition: color 0.3s, opacity 0.3s;
  min-width: 10ch;
}

.timeline-label.active {
  color: #222;
  font-weight: 600;
  opacity: 1;
}

.timeline-label:hover {
  opacity: 1;
  color: #333;
  cursor: pointer;
}

@media (max-width: 950px) {
  .timeline-label {
    text-align: center;
  }
}

/* === TIMELINE - LINE CONTAINER _______________________________________________ === */

.timeline-line-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6rem;
  width: 2rem;
}

@media (max-width: 950px) {
  .timeline-line-container {
    flex-direction: row;
    width: auto;
    height: 3px;
    align-items: center;
    gap: 4.8rem;
  }
}

@media (max-width: 400px) {
  .timeline-line-container {
    gap: 17vw;
  }
}

/* === TIMELINE - LINE  _______________________________________________ === */

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #ccc;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 950px) {
  .timeline-line {
    width: 100%;
    height: 3px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
}

/* === TIMELINE - DOTS  _______________________________________________ === */

.timeline-dot {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background-color: #e0e0e0;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.15),
    inset -1px -1px 3px rgba(255, 255, 255, 0.8);
  z-index: 2;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.timeline-dot.active {
  background-color: #444;
  transform: scale(1.2);
}

@media (max-width: 950px) {
  .timeline-dot {
    margin: 0;
  }
}

@media (max-width: 400px) {
  .timeline-dot {
    width: 1rem;
    height: 1rem;
  }
}

/* === TIMELINE - CONTENT  _______________________________________________ === */

.timeline-content {
  flex: 1;
}

@media (max-width: 950px) {
  .timeline-content {
    margin-top: 20px;
    width: 100%;
  }
}

/* === CONTENT - SECTION  _______________________________________________ === */

.content-section {
  display: none;
}

.content-section.active {
  display: block;
  background-color: #fff;
  border-radius: 40px;
  padding: clamp(1.25rem, 3vw, 3rem); /* fluid padding */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1),
    -2px -2px 5px rgba(255, 255, 255, 0.7);
}

@media (max-width: 700px) {
  .content-section.active {
    padding: clamp(1rem, 4vw, 2rem); /* smaller screens */
  }
}

@media (max-width: 400px) {
  .content-section.active {
    padding: 1.25rem; /* small mobile screens */
  }
}

.content-section h1 {
  color: #444;
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 5vw, 2.8rem); /* main section title */
}

.content-section h2 {
  color: #444;
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 4vw, 2rem); /* main section title */
}

.content-section h3 {
  color: #555;
  font-size: clamp(1rem, 3vw, 1.5rem); /* sub-section title */
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.content-section h5 {
  color: #777777;
  font-size: clamp(0.875rem, 2vw, 1.125rem); /* minor heading */
  font-weight: 200;
}

.content-section p {
  color: #555;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-section ul {
  margin-left: 1.25rem; /* ~20px */
  margin-bottom: 1.25rem; /* ~20px */
  padding-left: 0;
  list-style: disc;
}

.content-section ul li {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 1.8vw, 1rem); /* matches paragraph scale */
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.625rem; /* 10px */
}

.content-section ul li strong {
  color: #444;
  font-weight: 600; /* optional: emphasize like h5 */
}

.content-section hr {
  border: none;
  height: 1px;
  background-color: rgba(196, 196, 196, 0.37);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* soft shadow */
  margin: 2rem 0;
}

/* === ABOUT - IMAGE  _______________________________________________ === */

.about-img {
  display: flex; /* center the image */
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.about-img img {
  max-width: 20%; /* responsive width */
  height: auto; /* maintain aspect ratio */
  display: block; /* remove inline gap */
  border-radius: 1rem; /* optional: soft rounded edges */
}

/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/
/*__*/

/*
.about-text h2 {
  color: #444;
  margin-bottom: 10px;
  font-size: 2.5rem;
}
 
@media (max-width: 700px) {
  .about-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .about-text h2 {
    font-size: 1.6rem;
  }
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 700px) {
  .about-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .about-text p {
    font-size: 0.95rem;
  }
}

.contact-text h2 {
  color: #444;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

@media (max-width: 700px) {
  .contact-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .contact-text h2 {
    font-size: 1.6rem;
  }
}

.contact-text p {
  font-size: 1.2rem;
  /line-height: 1.6;
  color: #555;
}

@media (max-width: 700px) {
  .contact-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .contact-text p {
    font-size: 0.95rem;
  }
}

.experience-item {
  background-color: #fff;
  border-radius: 30px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.experience-item h5 {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.experience-item h3 {
  color: #444;
  font-size: 1.6rem;
  margin-bottom: 5px;
}

.experience-item .company {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.experience-item p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.experience-item ul {
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
  list-style: disc;
}

.experience-item ul li {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 10px;
}

.experience-item ul li strong {
  color: #444;
}

@media (max-width: 700px) {
  .experience-item h3 {
    font-size: 1.4rem;
  }

  .experience-item .company {
    font-size: 1rem;
  }

  .experience-item p,
  .experience-item ul li {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .experience-item h3 {
    font-size: 1.2rem;
  }

  .experience-item .company {
    font-size: 0.95rem;
  }

  .experience-item p,
  .experience-item ul li {
    font-size: 0.95rem;
  }
}

.projects-text h2 {
  color: #444;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

@media (max-width: 700px) {
  .projects-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .projects-text h2 {
    font-size: 1.6rem;
  }
}

.projects-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 700px) {
  .projects-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .projects-text p {
    font-size: 0.95rem;
  }
} */
