

:root {
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-color: #212529;
  --text-secondary: #4a4a4a;
  --text-muted: #6c757d;
  --border-color: #e9ecef;
  --border-dark: #eee;
  --primary-color: #69b3a2;
  --nav-bg: #ffffff;
  --card-bg: #ffffff;
  --timeline-line: #dee2e6;
  --timeline-node: #69b3a2;
}

[data-theme="dark"] {
  --bg-color: #121212;
  --bg-secondary: #1e1e1e;
  --text-color: #e9ecef;
  --text-secondary: #adb5bd;
  --text-muted: #868e96;
  --border-color: #343a40;
  --border-dark: #495057;
  --primary-color: #69b3a2;
  --nav-bg: #1a1a1a;
  --card-bg: #1e1e1e;
  --timeline-line: #495057;
  --timeline-node: #4a9e8e;
}

  h2 {
    border-bottom: 2px solid rgb(35, 160, 121);
    color: var(--text-color);
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 35px;
    font-weight: 700;
  }

  p {
    font-family: 'Roboto Slab', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-secondary);
    /* Softer black */
    line-height: 1.75;
  }

  h2::before,
  h2::after {
    content: "";
    position: absolute;
    top: 50%;
    /* Ajuste de la posición vertical */
    font-size: 1em;
    /* Tamaño de la fuente */
    opacity: 0;
    animation: moveEffect 2s infinite;
  }

  h2::before {
    content: "<";
    /* Carácter "<" antes del texto */
    left: -20px;
    /* Ajuste de la posición horizontal */
    transform: translateY(-50%);
  }

  h2::after {
    content: ">";
    /* Carácter ">" después del texto */
    right: -20px;
    /* Ajuste de la posición horizontal */
    transform: translateY(-10%);
  }

  li {
    font-family: 'Roboto Slab', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.75;
  }

  @keyframes moveEffect {
    0% {
      transform: translateY(-50%);
      opacity: 0;
    }

    50% {
      opacity: 1;
    }

    100% {
      transform: translateY(-50%);
      opacity: 0;
    }
  }

  body {
    background-color: var(--bg-color);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  .container {
    margin-top: 50px;
  }

  #about-me .container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #about-me {
    margin-top: 15vh;
    height: auto;
    min-height: 80vh;
    padding-bottom: 50px;
  }

  /* Media query para pantallas más pequeñas (responsive) */
  @media only screen and (max-width: 768px) {
    #about-me {
      min-height: auto;
      height: auto;
      padding-top: 100px;
      padding-bottom: 50px;
    }
  }

  #mainNav.navbar-hidden {
    display: none;
  }

  .navbar.fixed-top {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 8%;
    transition: top 0.3s;
    /* Add a smooth transition effect */
  }

  .navbar-brand:hover {
    color: #69b3a2;
    border-bottom: 3px solid #69b3a2;
    padding-bottom: 16px;
    transition: 0s;
  }

  .navbar-nav .nav-link {
    color: rgb(37, 31, 31);
    font-family: 'Montserrat', 'sans-serif';
    letter-spacing: 1px;
    display: inline;
  }

  hr {
    opacity: .45;
  }

  /* Ajusta el margen superior de los elementos de la lista cuando la barra de navegación está reducida */
  #mainNav.navbar-shrink .nav-item-adjust {
    margin-top: -50px;
    /* Ajusta el valor según tus necesidades */
  }


  /* Additional styles for when the navbar is not hidden */
  .navbar:not(.hidden) .navbar-nav .nav-link:hover {
    color: #69b3a2;
    border-bottom: 3px solid #69b3a2;
    padding-bottom: 16px;
    transition: 0s;
  }

  .navbar-nav .nav-link.active,
  .nav-link.active:hover {
    color: #69b3a2;
    border-bottom: 3px solid #69b3a2;
    padding-bottom: 16px;
  }

  @keyframes slideDown {
    0% {
      transform: translateY(-100%);
    }

    100% {
      transform: translateY(0);
    }
  }

  @keyframes slideUp {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(-100%);
    }
  }

  .navbar {
    animation-duration: 0.5s;
    animation-timing-function: ease;
  }

  .navbar.slide-down {
    animation-name: slideDown;
  }

  .navbar.slide-up {
    animation-name: slideUp;
  }

  .navbar-brand img {
    max-height: 30px;
    margin-right: 10px;
  }

  #mainNav.navbar-shrink {
    padding-top: 0;
    /* Ajusta el valor según tus necesidades */
    padding-bottom: 0;
    /* Ajusta el valor según tus necesidades */
    background-color: var(--bg-color);
    display: inline;
  }

  .card p {
    font-size: 15px;
  }

  .card a {
    color: var(--text-color);
    /* Cambia el color de texto de los enlaces */
  }

  .welcome-section {
    height: 90vh;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: white;
    display: flex;
    /* Agrega flexbox */
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    z-index: 1;
  }

  .welcome-section h1 {
    font-size: 66px;
    /* Slightly smaller than 65px */
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: 'Markazi Text', sans-serif;
  }

  .welcome-section p {
    font-size: 23px;
    margin-bottom: 30px;
    color: #555;
    font-family: 'Markazi Text', sans-serif;
  }

  .welcome-section img {
    max-width: 100px;
    margin-top: 10px;
  }

  .welcome-section .col-md-6 {
    margin: 0 auto;
  }

  .logo-container {
    margin: 0 auto;
    max-width: 100px;
  }

  .logo-container img {
    max-width: 100px;
    margin-top: 10px;
    animation: rotate 8s infinite linear;
  }

  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  #particles-js {
    position: absolute;
    width: 100%;
    height: 140vh;
    background-color: rgb(255, 255, 255);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    overflow: hidden;
    z-index: 0;
    max-height: 1100px;
  }

  .backg {
    background-color: var(--bg-secondary);
  }

  section {
    padding: 100px;
    display: block;
    box-sizing: border-box;
  }

  .back {
    background-color: var(--bg-color);
  }

  h4 {
    font-family: 'Playball', sans-serif;
  }

  h6 {
    font-family: 'Playball', sans-serif;
  }

  .btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
  }

  .btn-check:active+.btn,
  .btn-check:checked+.btn,
  .btn.active,
  .btn.show,
  .btn:active {
    background-color: transparent;
    border-color: #69b3a2;
    color: #69b3a2;
  }

  .btn:not(:disabled):not(.disabled) {
    cursor: pointer;
  }

  a {
    text-decoration: none;
  }

  .btn-primary {
    background-color: transparent;
    border-color: #69b3a2;
    color: #69b3a2;
    border-width: medium;
  }

  .btn-xl {
    font-size: 18px;
    padding: 20px 40px;
    margin: 3px;
  }

  .btn.btn-primary:hover {
    background-color: #69b3a2;
    /* Turquesa */
    border-color: #69b3a2;
    color: white;
  }

  .img-fluid {
    height: auto;
  }

  .profile-pic-wrapper {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    /* mantiene la proporción 1:1 */
    margin: 0 auto 30px auto;
    /* centra la imagen y agrega espacio abajo */
  }

  .profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  }

  a {
    color: #69b3a2
  }

  a:hover {
    color: #10496b
  }

  footer i.bigsize {
    font-size: 22px;
  }

  ul strong {
    color: #69b3a2
  }

  ul.social-buttons li a {
    font-size: 20px;
    line-height: 40px;
    display: block;
    width: 40px;
    height: 40px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    color: white;
    border-radius: 100%;
    outline: none;
    background-color: #69b3a2;
  }

  ul.social-buttons li a:hover {
    background-color: var(--bg-color);
    color: #69b3a2;
  }

  .services-logo {
    margin: 15px;
    background-color: var(--bg-color);
    color: #69b3a2;
    padding: 0;
    /* Remove padding to let flex center it perfectly */
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* font-size removed, let fa-4x handle content size */
  }

  .services-logo:hover {
    background-color: #69b3a2;
    color: #ffffff !important;
    /* Force white on hover */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(105, 179, 162, 0.4);
  }

  /* Ensure the icon inherits color and is centered */
  .services-logo i {
    margin: 0;
    /* Remove any margins on the icon itself */
    line-height: 1;
    /* Reset line-height */
  }

  .service-box {
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
  }

  .service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }

  .service-box h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
  }

  .explanation_portfolio {
    font-size: 15px;
    margin: 20px;
    color: #ffffff
  }

  .portfolio-item {
    position: relative;
    overflow: hidden;
  }

  .portfolio-item .portfolio-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-transition: all ease .7s;
    -moz-transition: all ease .7s;
    transition: all ease .7s;
    opacity: 0;
    background: #69b3a2;
    border-radius: 1%;
    background-color: #69b3a2 !important;
  }

  .portfolio-item:hover .portfolio-hover {
    opacity: 0.9;
  }

  .portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    opacity: 0.5;
    background-color: #69b3a2;
    text-align: center;
    display: none;
    /* Hide the caption by default */
  }

  .portfolio-hover-content {
    font-size: 22px;
    position: absolute;
    top: 20%;
    width: 100%;
    height: 20px;
    margin-top: -12px;
    text-align: center;
    color: white;
  }

  .portfolio-hover-content h5 {
    font-family: 'Roboto Slab', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  }

  .portfolio-item:hover .portfolio-caption {
    display: block;
    /* Show the caption on hover */
  }

  .portfolio-item img {
    max-width: 100%;
    max-height: 200%;
    /* Establecer la altura máxima deseada */
    object-fit: cover;
    /* Para ajustar la imagen al tamaño manteniendo la proporción */
  }

  *,
  ::after,
  ::before {
    box-sizing: border-box;
  }

  img {
    vertical-align: middle;
    border-style: none;
  }

  .show {
    display: block;
  }

  .portfolio-item {
    margin: 15px auto;
    /* Center it on mobile */
    position: relative;
    overflow: hidden;
    height: 280px;
    max-width: 100%;
    /* Keep it within its container */
    border-radius: 10px;
    /* Rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    transition: all 0.3s ease;
  }

  .portfolio-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
  }

  .portfolio-image {
    object-fit: cover;
    border-radius: 3px;
    height: 100%;
    width: 100%;
  }

  .portfolio-caption .btn {
    background-color: var(--text-color);
    /* Transparent black background */
    border-color: var(--text-color);
    /* Transparent black border */
    color: #fff;
    /* White font color */
    padding: 12px 23px;
    margin-top: 5px;
    text-decoration: none;
    font-size: 12px;
  }

  .portfolio-caption .btn:hover {
    background-color: rgba(255, 255, 255, 0.7);
    /* Darken the background on hover */
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.7);
    /* Darken the border on hover */
  }

  .portfolio-filter {
    text-align: center;
    margin-bottom: 20px;
  }

  .filter-button {
    padding: 10px 20px;
    margin: 5px;
    background-color: transparent;
    border-color: #69b3a2;
    color: #69b3a2;
    cursor: pointer;
    border: 2px solid;
    border-radius: 0.25rem;
    font-family: 'Montserrat', sans-serif;
  }

  .filter-button.active {
    background-color: #69b3a2;
    border-color: #69b3a2;
    color: white;
  }

  .filter-button:hover {
    background-color: #69b3a2;
    /* Turquesa */
    color: white;
    border-color: #69b3a2;
  }

  .icon-container {
    font-size: 20px;
    line-height: 40px;
    display: inline-block;
    width: 40px;
    height: 40px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    color: white;
    border-radius: 100%;
    outline: none;
    background-color: #69b3a2;
  }

  .icon-container:hover {
    background-color: transparent;
  }

  .icon-container img {
    max-width: 76%;
    /* Asegura que la imagen se ajuste al contenedor */
    max-height: 76%;
    /* Asegura que la imagen se ajuste al contenedor */
    margin-bottom: 3px;
  }

  .img-tableau {
    filter: brightness(0) invert(1);
  }

  .img-tableau:hover {
    filter: brightness(1) hue-rotate(0);
    background-color: transparent;
  }

  #arrow-upa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: #69b3a2;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 34px;
    display: none;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    border-color: #69b3a2;
  }

  #arrow-upa:hover {
    background-color: transparent;
    color: #69b3a2;
  }

  /* Estilos para la línea de tiempo */
  .timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 150px 0;
    position: relative;
    margin-bottom: 50px;
  }

  /* Estilos para la línea trazada */
  .timeline::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #69b3a2;
    top: 50%;
    left: 0;
    z-index: 0;
  }

  /* Estilos para los puntos interactivos */
  .timeline-point {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #69b3a2;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
    transform: translateX(-50%);
  }

  .timeline-point .timeline-year {
    font-size: 14px;
    text-align: center;
    color: #000;
    margin-top: 5px;
  }

  .timeline-point.active {
    background-color: #23a079;
  }

  /* Estilos para el título debajo de cada punto */
  .point-title {
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 5px;
    color: #000;
    position: absolute;
    bottom: 25px;
    /* Alinea el título por arriba del punto */
    left: 50%;
    /* Centra el título horizontalmente */
    transform: translateX(-50%);
    font-weight: 600;
  }

  /* Estilos para el punto interactivo sin descripción */
  .timeline-point .point-content {
    position: relative;
    background-color: #69b3a2;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    /* Para ajustar la posición en la línea */
    z-index: 1;
    /* Coloca los puntos sobre la línea */
    transform: translateX(-50%);
    /* Centra los puntos en la línea */
  }

  @keyframes fadeInImage {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  .timeline-point .certificate-image {
    display: none;
    max-width: 220px;
    /* Ajusta el tamaño de la imagen */
    height: 180px;
    position: absolute;
    top: 50px;
    /* Alinea la imagen por debajo del punto */
    left: 50%;
    /* Centra la imagen horizontalmente */
    transform: translateX(-50%);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    /* Agrega una sombra para la profundidad */
    transition: all 0.3s ease;
    /* Agregamos transición para suavizar el cambio de tamaño */
  }

  /* Estilos para la imagen al final de la línea vertical */
  .timeline-point.active .certificate-image {
    display: block;
    max-width: 210px;
    /* Tamaño más grande al hacer hover */
    height: 180px;
    top: 100px;
    /* Alinea la imagen al final de la línea vertical */
    left: 80%;
    /* Centra la imagen horizontalmente */
    transform: translateX(-50%);
    opacity: 1;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);
    /* Cambia la sombra al hacer hover */
    animation: fadeInImage 0.5s ease;
    /* Duración y efecto de la animación */
  }

  .timeline-point.active .point-title {
    color: #69b3a2
  }

  @keyframes expandLine {
    0% {
      height: 0;
    }

    100% {
      height: 70px;
      /* Ajusta la altura deseada */
    }
  }

  /* Estilos para la línea vertical descendente */
  .timeline-point.active::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 70px;
    background-color: #69b3a2;
    top: 100%;
    /* Coloca la línea debajo del punto */
    left: 50%;
    /* Centra la línea horizontalmente */
    transform: translateX(-50%);
    opacity: 0;
    animation: expandLine 0.5s ease;
    /* Duración y efecto de la animación */
  }

  .timeline-point.active::before {
    display: block;
    opacity: 1;
  }

  .arrowlanding {
    color: var(--text-color);
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translate(50%, -50%);
    max-width: 600px;
    padding: 2em 3em;
    min-height: 30%;
  }

  /* Estilos para pantallas grandes */
  .hide-if-small-screen {
    display: block;
  }

  /* Media query para pantallas pequeñas (móviles) */
  @media screen and (max-width: 767px) {
    .hide-if-small-screen {
      display: none;
    }
  }

  /* CSS for centering modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    /* Aplicamos el efecto de desenfoque */
  }

  .modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    /* Adjust width as needed */
  }

  .modal.show {
    display: block;
    opacity: 1;
    /* Cambiamos opacidad al 100% */
  }

  .modal-content.show {
    opacity: 1;
    /* Cambiamos opacidad al 100% */
    transform: translate(-50%, -50%) scale(1);
    /* Cambiamos escala a 1 */
  }

  .close {
    color: #69b3a2;
    float: right;
    font-size: 42px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: #3d655c;
    text-decoration: none;
    cursor: pointer;
  }

  /* Responsive video container */
  .video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    padding-top: 30px;
    height: 0;
    overflow: hidden;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .modal-education {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    /* Aplicamos el efecto de desenfoque */
  }

  .modal-education-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    justify-content: center;
    align-items: center;
    position: absolute;
    /* Needed for top: 50% and left: 50% to work */
    top: 50%;
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Center both vertically and horizontally */
  }

  /* Close Button */
  .close-education {
    color: #69b3a2;
    float: right;
    font-size: 42px;
    font-weight: bold;
  }

  .close-education:hover,
  .close-education:focus {
    color: #3d655c;
    text-decoration: none;
    cursor: pointer;
  }

  /* Certificate Modal Image */
  .certificate-modal-image {
    width: 100%;
    height: 100%;
  }

  .highlight-tag {
    display: inline-block;
    background-color: #3d655c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 10px;
    /* Espacio entre los tags horizontales */
    margin-bottom: 10px;
    /* Espacio entre las filas de tags */
  }

  /* Gantt Chart Styles */
  #gantt-chart {
    padding: 15px 0 5px;
    margin: 15px 0;
    width: 100%;
  }

  .gantt-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .gantt-rows-area {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0;
  }

  /* Vertical grid lines for years */
  .gantt-grid-lines {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 175px;
    right: 0;
    pointer-events: none;
    z-index: 0;
  }

  .gantt-grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(105, 179, 162, 0.15) 20%, rgba(105, 179, 162, 0.15) 80%, transparent 100%);
  }

  .gantt-row {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 52px;
    position: relative;
    z-index: 1;
    animation: ganttRowIn 0.5s ease both;
  }

  @keyframes ganttRowIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  .gantt-label {
    min-width: 160px;
    max-width: 160px;
    text-align: right;
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-right: 2px solid rgba(105, 179, 162, 0.3);
  }

  .gantt-company {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.3;
    transition: all 0.3s ease;
  }

  .gantt-role {
    font-family: 'Roboto Slab', serif;
    font-size: 10px;
    color: #8e9aaf;
    line-height: 1.2;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
  }

  /* Row Hover Interactions */
  .gantt-row:hover .gantt-label {
    border-right-color: var(--bar-color, #4a9e8e);
  }
  
  .gantt-row:hover .gantt-company {
    color: var(--bar-color, #4a9e8e);
    transform: translateX(-3px);
  }

  .gantt-row:hover .gantt-role {
    color: #495057;
    transform: translateX(-3px);
  }

  .gantt-track {
    flex: 1;
    position: relative;
    height: 42px;
    background: transparent;
    border-radius: 8px;
    overflow: visible;
  }

  .gantt-bar {
    position: absolute;
    top: 4px;
    height: 34px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: ganttBarGrow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    --bar-glow: rgba(105, 179, 162, 0.35);
    min-width: 50px; /* Ensure tiny bars fit standard text safely */
  }

  @keyframes ganttBarGrow {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
  }

  .gantt-row:hover .gantt-bar {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--bar-glow);
    z-index: 3;
  }

  .gantt-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: all 0s ease;
    z-index: 0;
  }

  .gantt-bar:hover::after {
    animation: shineSweep 0.8s ease forwards;
  }

  @keyframes shineSweep {
    100% {
      left: 200%;
    }
  }

  .gantt-bar:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px var(--bar-glow);
    filter: brightness(1.1);
    z-index: 4 !important;
  }
  
  .gantt-bar:hover .gantt-bar-text {
    transform: scale(1.05);
  }

  .gantt-bar-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
  }

  /* Axis */
  .gantt-axis {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 2px solid rgba(105, 179, 162, 0.25);
  }

  .gantt-axis-spacer {
    visibility: hidden;
  }

  .gantt-axis-track {
    flex: 1;
    position: relative;
    height: 28px;
    overflow: visible;
  }

  .gantt-year-marker {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #69b3a2;
    white-space: nowrap;
    letter-spacing: 0.5px;
  }

  .gantt-year-marker::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #69b3a2;
    border-radius: 50%;
  }

  /* Timeline Modal Styles (kept) */
  .timeline-modal-content {
    width: 60%;
    max-width: 700px;
    padding: 40px;
    border-top: 5px solid #69b3a2;
    border-radius: 8px;
    text-align: left;
  }

  .timeline-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #69b3a2;
    cursor: pointer;
    transition: color 0.3s;
  }

  .timeline-close:hover {
    color: #10496b;
  }

  .detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-dark);
  }

  .detail-header h3 {
    margin: 0 0 5px;
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
  }

  .detail-date,
  .detail-location {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 20px;
    display: inline-block;
  }

  .detail-date i,
  .detail-location i {
    margin-right: 5px;
    color: #69b3a2;
  }

  .detail-body {
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    color: #495057;
    line-height: 1.6;
  }

  .detail-client {
    margin-bottom: 10px;
    font-style: italic;
    color: #69b3a2;
  }

  .detail-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .skill-badge {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: #495057;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s;
  }

  .skill-badge:hover {
    background-color: #69b3a2;
    color: #fff;
    border-color: #69b3a2;
  }

  .text-primary {
    color: #69b3a2 !important;
  }

  /* Responsive Gantt */
  @media (max-width: 768px) {
    .gantt-wrapper {
      overflow-x: auto;
      padding-bottom: 15px; /* Space for scrollbar */
      -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .gantt-rows-area, .gantt-axis {
      min-width: 550px; /* Prevent over-squishing */
      padding: 15px;
    }

    .gantt-label {
      min-width: 110px;
      max-width: 110px;
      padding-right: 8px;
    }

    .gantt-grid-lines {
      left: 140px; /* Align grid with label + padding/gap */
    }

    .gantt-company {
      font-size: 12px;
    }

    .gantt-role {
      font-size: 10px;
    }

    .gantt-bar-text {
      font-size: 10px;
      padding: 0 8px;
    }

    .gantt-track {
      height: 38px;
    }

    .gantt-bar {
      height: 32px;
      top: 3px;
    }

    .gantt-year-marker {
      font-size: 11px;
    }

    .timeline-modal-content {
      width: 95%;
      padding: 20px;
    }
  }

  /* --- DARK MODE FIXES & OVERRIDES --- */

  /* Navbar text visibility over hero section */
  #mainNav .navbar-nav .nav-item .nav-link {
    color: var(--text-color) !important;
  }
  /* Theme toggle icon: ensure it's visible in dark mode */
  [data-theme="dark"] #theme-toggle svg {
    stroke: #f0f0f0 !important;
  }
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link {
    color: var(--text-color) !important;
  }

  /* Welcome section & Particles background */
  body, html {
    background-color: var(--bg-color);
  }
  .welcome-section {
    background-color: transparent !important;
  }
  #particles-js {
    background-color: var(--bg-color) !important;
  }
  
  /* HR lines that had inline black styles */
  hr {
    background-color: var(--text-color) !important;
    color: var(--text-color) !important;
  }

  /* Expertise service boxes */
  .service-box, .card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color);
  }
  .service-box p {
    color: var(--text-secondary) !important;
  }

  /* Education Timeline */
  #education, #education-timeline * {
    color: var(--text-secondary);
  }
  #education-timeline .timeline-point:hover *,
  #education-timeline .timeline-point.active * {
    color: #69b3a2 !important;
  }
  .timeline-year-label, .timeline-company-label {
    color: var(--text-color) !important;
  }
  
  /* Modal text */
  .modal-content {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
  }

  /* Force buttons to remain dark grey even if the framework tries to invert them to white in Dark Mode */
  [data-theme="dark"] .portfolio-caption .btn-outline-dark {
    color: #343a40 !important;
    border-color: #343a40 !important;
  }
  [data-theme="dark"] .portfolio-caption .btn-outline-dark:hover {
    color: #fff !important;
    background-color: #343a40 !important;
  }