#services {
  position: relative;
  background: url("../img/programming.jpg");
}

#contact {
  position: relative;
  background: url("../img/success.jpg");
}

.bg-dark {
  background: #0a1014 !important;
  color: #d5d6d6 !important;
}

.bg-dark p {
  color: rgba(255, 255, 255, .7);
}

.parallax {
  /* Create the parallax scrolling effect */
  background-attachment: fixed !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.layer {
  background-color: rgba(29, 31, 34, .9);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 100%;
  max-width: 250px;
  position: relative;
  z-index: 4;
  display: block;
  margin: 0 auto;
}

.profile {
  display: block;
  position: relative;
  margin-bottom: 20px;
}


.subheading {
  text-transform: uppercase;
}

small {
  font-size: 10px;
}

footer.footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.social-link {
  font-size: 2rem;
  color: #8e95a0;
  transition: all .2s ease-out;
}

.social-link:hover {
  color: #B8382F;
}

#services h6 {
  margin-top: 1.2rem;
}

.portfolio-item .project-desc,
.portfolio-item h2 {
  opacity: 0;
  transition: 0.3s linear;
}

.portfolio-item:hover .project-desc,
.portfolio-item:hover h2 {
  opacity: 1;
}

.circle {
  width: 100%;
  max-width: 250px;
  background: #343a40;
  height: 100%;
  display: block;
  position: absolute;
  border-radius: 50%;
  left: 0;
  right: -24px;
  margin: 0 auto;
  top: 3px;
  opacity: 0.25;
}

.modal-content {
  border-radius: 0;
}

.modal-content .close {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
  background: #343a40;
  border-radius: 50%;
  width: 56px;
  opacity: 1;
  text-shadow: none;
  color: white;
  transition: all .2s ease-out;
}

.modal-content .close:hover {
  opacity: 1 !important;
  background: #434a52;
}

.modal-content .close span {
  font-size: 1.5rem;
}

#modal-contenido small {
  font-size: .85rem;
}

#ProjectModal .modal-header {
  display: block !important;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

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

.modal-dialog iframe {
  margin: 0 auto;
  display: block;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23343a40' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E") !important;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23343a40' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E") !important;
}

.linkMail {
  color: #B8382F;
}

.linkMail:hover {
  color: #fff;
}

.card.bg-dark {
  border-color: #232930;
}

.navbar-brand:hover {
  color: #fff !important;

}

.bg-dark .portfolio-link {
  color: rgba(255, 255, 255, .7);
}

.page-item.active .page-link {
  background-color: #B8382F;
  border-color: #B8382F;
}

.page-link {
  background-color: rgba(52, 58, 64, 0.5);
  border-color: rgba(52, 58, 64, 0.5);
  color: #fff;
}

.page-link:hover {
  background-color: rgba(255, 255, 255, .7);
  color: #fff;
}

.badge-primary {
  background-color: #B8382F;
}

.custom-switch {
  padding-left: 3.25rem;
}

.custom-control-input:checked~.custom-control-label::before {
  color: #fff;
  border-color: #0a1014;
  background-color: #0a1014;
}

.entry-header>h1 {
  font-size: 2rem !important;
}

/*** Light Mode ***/
.bg-light #sidebar-wrapper {
  background: rgba(255, 255, 255, 75%) !important;
}

.bg-light .sidebar-nav li.sidebar-nav-item a {
  color: #0a1014;
}

.bg-light .sidebar-nav>.sidebar-brand a {
  color: #0a1014;
}

.bg-light .btn-primary {
  background-color: #434a52 !important;
  border-color: #434a52 !important;
}

.bg-light .btn-primary:hover {
  border-color: #B8382F !important;
  background-color: #B8382F !important;
}

.bg-light .card.bg-dark {
  background-color: #f8f9fa !important;
  border-color: #8e95a0 !important;
}

.bg-light .card.bg-dark .card-title,
.bg-light .bg-dark p {
  color: #0a1014 !important;
}

.bg-light .navbar-brand:hover {
  color: #B8382F !important;
}

.bg-light .page-link:hover {
  background-color: rgba(52, 58, 64, 0.8) !important;
  border-color: rgba(52, 58, 64, 0.8) !important;
}

.work-detail .work-detail-header-left h1 {
  font-size: 50px;
}

.work-detail .work-detail-header-left p {
  line-height: 34px;
  font-size: 23px;
  font-weight: 500;
}

.work-detail .work-detail-header-right ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(52, 58, 64, 0.8);
  padding-bottom: 20px;
  margin-bottom: 30px;

}

.work-detail-full-img {
  padding: 60px 25px 30px;
}

.work-detail2-content-box {
  padding-top: 20px;
  border-bottom: 1px solid rgba(52, 58, 64, 0.8);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.work-detail2-content-box h4 {
  font-size: 30px;
  line-height: 30px;
  letter-spacing: 0;

}

.work-detail2-content-box p {
  font-size: 22px;
  letter-spacing: .4px;
  margin: 0;
  font-weight: 500;
  line-height: 32px;
}

.work-detail2-content-box p {
  margin-bottom: 1.5rem;
}

.line {
  display: block !important;
  border-top: 1px solid rgba(52, 58, 64, 0.8);
  margin-bottom: 3rem;

}

.gallery__slider-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* Espacio entre imágenes */
  justify-content: center;
  /* Centrar las imágenes */
}

.gallery__slider-mobile img {
  width: calc(33.33% - 10px);
  /* Para que haya 3 en una fila */
  max-width: 144px;
  /* O el tamaño que desees */
  border: 1px solid rgba(52, 58, 64, 0.8);
  cursor: pointer;
  transition: all 0.2sease-out;
}

.modal .modal-dialog .modal-content a.btn-close {
  align-items: center;
  background: #787878 !important;
  color: white;
  display: flex;
  flex-direction: row;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  opacity: 1;
  padding: 0.5rem 1rem;
  position: absolute;
  right: 0px;
  top: -40px;
  width: auto;
  border-radius: 5px;
  border: 0px !important;
  cursor: pointer;
  margin-top: -7px;
}

.modal .modal-dialog .modal-content a.btn-close .bi {
  margin-left: 0.5rem;
}

.modal-gallery .modal-body,
#videoModal .modal-body {
  padding: 0;
}

.modal-gallery .carousel-control-next,
.modal-gallery .carousel-control-prev {
  background: transparent !important;
  border: 0 !important;
}

.modal-gallery .carousel-control-next span,
.modal-gallery .carousel-control-prev span {
  font-size: 2.5rem;
}

.modal-gallery .carousel-control-next span.visually-hidden,
.modal-gallery .carousel-control-prev span.visually-hidden {
  display: none !important;
}

.modal-gallery .carousel-control-next .carousel-control-next-icon,
.modal-gallery .carousel-control-prev .carousel-control-prev-icon {
  width: 50px;
  height: 50px;
}

.youtube-thumbnail-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.youtube-thumbnail {
  opacity: 1;
}

.play-icon {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 5rem;
  opacity: 0.7;
}

.youtube-thumbnail-link:hover .play-icon {
  opacity: 1;
}