/* FONTE CARREGADA */

@font-face {
  font-family: Nexa;
  src: url(../font/Nexa-ExtraLight.ttf);
}

@font-face {
  font-family: Nexa;
  src: url(../font/Nexa-Heavy.ttf);
  font-weight: bold;
}

* {
  font-family: Nexa;
}

/* PÁGINA GERAL */

html,
body {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: opacity 1s ease-in-out;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff; /* Fundo branco */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#loader img {
  width: 80px;
  height: 80px;
  animation: rotacaoZ 1s linear infinite;
}

.bg-fixed::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../assets/icons/background_gauss.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  transform: translateZ(0);
}

@supports (-webkit-touch-callout: none) {
  .bg-fixed::before {
    background-attachment: scroll !important;
  }
}

main {
  flex: 1;
  padding: 20px;
}

#title {
  font-family: Nexa;
  font-weight: bold;
}

/* NAVBAR */
.bg-dark {
  background-color: rgba(33, 37, 41, 0.6) !important;
}

.bg-dark2 {
  background-color: black !important;
}

#navbarNav {
  justify-content: right;
  text-align: right;
}

.nav-link {
  transition: text-shadow 0.5s ease;
  color: rgba(248, 178, 83, 255) !important;
  font-size: 17px;
  font-weight: bold;
}

.nav-link:hover {
  text-shadow: 0 0 5px peachpuff;
}

.navbar-brand {
  font-weight: bold;
}

.toggler {
  margin-right: 0px;
  justify-content: right !important;
  padding-right: 20px !important;
}

.navbar-collapse {
  transition: all 0.4s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

.navbar-collapse.show {
  max-height: 500px;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    max-height: none;
  }
}


.hover-underline-animation {
  display: inline-block;
  position: relative;
}

.hover-underline-animation::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 88, 136, 255);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* INICIO */

#inicio {
  margin: 0 auto;
  place-content: center;
}

@keyframes rotacaoY {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

@keyframes rotacaoZ {
  from {
    transform: rotateZ(0deg);
  }

  to {
    transform: rotateZ(360deg);
  }
}

.logo-jornadas {
  padding-left: 5%;
}

.logo-jornadas:hover {
  display: block;
  perspective: 1000px;
}

#video-jornadas {
  border: 1px solid;
  border-color: rgba(248, 178, 83, 255);
}

/* PROGRAMA */

#programa {
  margin: 0 auto;
  place-content: center;
}

.programa-center {
  text-align: center;
}

.programa-center img, .biblioteca {
  max-width: 60%;
  height: auto;
}

#title-programa {
  font-weight: bold;
  color: white;
  text-align: center;
}

.biblioteca {
  position: relative;
  top: -4.6%;
}

/* CURSOS */

#informacao {
  margin: 0 auto;
  place-content: center;
}

#ecgm,
#dwm,
#ncgm {
  transition: transform 0.5s ease;
}

#info {
  font-weight: bold;
  color: white;
  text-align: center;
}

.titleECGM,
.titleDWM,
.titleNCGM {
  font-weight: bold;
}

.textoECGM,
.textoDWM,
.textoNCGM {
  font-size: 16px;
  font-family: Nexa;
}

.container3 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.container3 .card3 {
  position: relative;
  max-width: 300px;
  height: 255px;
  margin: 30px 10px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: 0.3s ease-in-out;
  border-radius: 15px;
}

.container3 .card3 .image3 {
  position: relative;
  top: 30%;
  z-index: 1;
  display: flex;
  justify-content: center;
  transition: top 0.3s ease-in-out;
}

.container3 .card3:hover .image3 {
  top: 0;
  transition: top 0.3s ease-in-out;
}

.container3 .card3 .content3 {
  position: relative;
  padding: 10px 15px;
  color: white;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.container3 .card3:hover {
  height: 350px;
}

@media (max-width: 320px) {
  .container3 .card3:hover {
    height: 400px;
  }
}

@media (min-width: 768px) and (max-width: 954px) {
  .container3 .card3:hover {
    height: 430px !important;
  }
  .container4 .card4:hover {
    height: 330px !important;
  }
  .container5 .card5:hover {
    height: 350px !important;
  }
}

.container3 .card3:hover .content3 {
  margin-top: 10px;
  visibility: visible;
  opacity: 1;
  transition-delay: 0.2s;
}

.container4 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.container4 .card4 {
  position: relative;
  max-width: 300px;
  height: 255px;
  margin: 30px 10px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: 0.3s ease-in-out;
  border-radius: 15px;
}

.container4 .card4 .image4 {
  position: relative;
  top: 30%;
  z-index: 1;
  display: flex;
  justify-content: center;
  transition: top 0.3s ease-in-out;
}

.container4 .card4:hover .image4 {
  top: 0;
  transition: top 0.3s ease-in-out;
}

.container4 .card4 .content4 {
  position: relative;
  top: -10%;
  padding: 10px 15px;
  color: white;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.container4 .card4:hover {
  height: 300px;
}

.container4 .card4:hover .content4 {
  margin-top: 30px;
  visibility: visible;
  opacity: 1;
  transition-delay: 0.2s;
}

.container5 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.container5 .card5 {
  position: relative;
  max-width: 300px;
  height: 255px;
  margin: 30px 10px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: 0.3s ease-in-out;
  border-radius: 15px;
}

.container5 .card5 .image5 {
  position: relative;
  top: 30%;
  z-index: 1;
  display: flex;
  justify-content: center;
  transition: top 0.3s ease-in-out;
}

.container5 .card5:hover .image5 {
  top: 0;
  transition: top 0.3s ease-in-out;
}

.container5 .card5 .content5 {
  position: relative;
  top: -20px;
  padding: 10px 15px;
  color: white;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.container5 .card5:hover {
  height: 300px;
}

.container5 .card5:hover .content5 {
  margin-top: 30px;
  visibility: visible;
  opacity: 1;
  transition-delay: 0.2s;
}

.col-12.col-md-4 svg {
  margin: 0 auto;
  display: block;
}

.svg-shadow {
  animation: svg-glow 1.5s ease-in-out infinite alternate;
}

.clickable-svg {
  cursor: pointer;
}

@keyframes svg-glow {
  from {
    filter: drop-shadow(0 0 3px rgb(0, 88, 116))
      drop-shadow(0 0 5px rgb(0, 88, 116))
      drop-shadow(0 0 7px rgb(248, 178, 83));
  }

  to {
    filter: drop-shadow(0 0 3px rgb(248, 178, 83))
      drop-shadow(0 0 5px rgb(0, 88, 116)) drop-shadow(0 0 7px rgb(0, 88, 116));
  }
}

/* Workshops */

#workshops {
  margin: 0 auto;
  place-content: center;
}

@keyframes rotateZ {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}

#blender:hover {
  animation: rotacaoY 2s linear infinite;
}

#unity {
  transition: transform 0.5s ease;
}

#unity:hover {
  animation: rotateZ 2s linear infinite;
}

.p-workshops {
  font-size: 24px;
  text-align: center;
}

#title-workshops {
  font-weight: bold;
  color: white;
  text-align: center;
}

.titleWorkshopsUnity {
  font-weight: bold;
}

.titleWorkshopsBlender {
  font-weight: bold;
}

.textoUnity {
  font-size: 16px;
  font-family: Nexa;
}

.textoBlender {
  font-size: 16px;
  font-family: Nexa;
}

.container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.container .card {
  position: relative;
  max-width: 400px;
  height: 255px;
  background-color: transparent;
  margin: 30px 10px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: 0.3s ease-in-out;
  border-radius: 15px;
}

.container .card .image {
  position: relative;
  top: 20%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: top 0.3s ease-in-out;
}

.container .card .image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.container .card:hover .image {
  top: 0;
}

.container .card .content {
  position: relative;
  top: -20px;
  padding: 10px 15px;
  color: white;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.container .card:hover {
  height: 470px;
}

.container .card:hover .content {
  margin-top: 30px;
  visibility: visible;
  opacity: 1;
  transition-delay: 0.2s;
}

.container2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.container2 .card2 {
  position: relative;
  max-width: 400px;
  height: 255px;
  background-color: transparent;
  margin: 30px 10px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  transition: 0.3s ease-in-out;
  border-radius: 15px;
}

.container2 .card2 .image2 {
  position: relative;
  top: 30%;
  right: 7px;
  align-self: center;
  transition: top 0.3s ease-in-out;
}

.container2 .card2 .image2 img {
  max-width: 100%;
}

.container2 .card2 .content2 {
  position: relative;
  top: -20px;
  padding: 10px 15px;
  color: white;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.container2 .card2:hover {
  height: 470px;
}

.container2 .card2:hover .image2 {
  top: 0;
}

.container2 .card2:hover .content2 {
  margin-top: 30px;
  visibility: visible;
  opacity: 1;
  transition-delay: 0.2s;
}

.icon-workshop {
  animation: rotacaoZ 5s linear infinite;
  transform-style: preserve-3d;
  display: block;
  perspective: 1000px;
}

/* Projetos */

#projetos {
  margin: 0 auto;
  place-content: center;
}

#title-projetos {
  font-weight: bold;
  color: white;
  text-align: center;
}

.p-projetos {
  font-size: 24px;
  text-align: center;
  color: white;
}

.topicos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  color: rgb(248, 178, 83);
  font-family: Nexa;
  font-weight: bold;
}

.topico {
  background-color: rgb(248, 178, 83);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  text-align: center;
  white-space: nowrap;
}

.topico:hover {
  background-color: rgb(248, 178, 83);
}
.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.image-container img {
  display: block;
  width: 100%;
  transition: opacity 0.3s ease;
}

.view-more {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.image-container:hover img {
  opacity: 0.5;
}

.image-container:hover .view-more {
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 50%;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

.header-projetos {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.author-projetos {
  color: white;
}

.video-preview {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.media-container video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-container video,
.media-container img {
  transition: opacity 0.5s ease-in-out;
}

.nav-link.filter-active {
  background-color: rgba(248, 178, 83, 1);
  color: white !important;
  border-radius: 8px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 15px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
  padding: 2px 15px;
  color: white;
}

.portfolio-item {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.portfolio-item img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 15px 8px 15px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  color: white;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}
.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #106eea;
}
.portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}
.portfolio .portfolio-item {
  margin-bottom: 30px;
}
.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
}
.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
  color: #222222;
}
.portfolio .portfolio-item .portfolio-info p {
  color: #555555;
  font-size: 14px;
  margin-bottom: 0;
}
.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 40px;
  font-size: 24px;
  top: calc(50% - 18px);
  color: #3c3c3c;
}
.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: #fabe4f;
}
.portfolio .portfolio-item .portfolio-info .details-link {
  right: 10px;
}
.portfolio .portfolio-item .portfolio-links {
  opacity: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
  position: absolute;
  transition: all ease-in-out 0.3s;
}
.portfolio .portfolio-item .portfolio-links a {
  color: #fff;
  margin: 0 2px;
  font-size: 28px;
  display: inline-block;
  transition: 0.3s;
}
.portfolio .portfolio-item .portfolio-links a:hover {
  color: #fabe4f;
}
.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 20px;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}
.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}
.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #fabe4f;
}
.portfolio-details
  .portfolio-details-slider
  .swiper-pagination
  .swiper-pagination-bullet-active {
  background-color: #fabe4f;
}
.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(34, 34, 34, 0.08);
}
.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}
.portfolio-details .portfolio-info ul li + li {
  margin-top: 10px;
}
.portfolio-details .portfolio-description {
  padding-top: 30px;
}
.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}
.portfolio-details .portfolio-description p {
  padding: 0;
}

/* FOOTER */
.footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  background-image: linear-gradient(rgba(32, 36, 36, 0.6), black);
  color: rgb(248, 178, 83);
  padding: 5px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0;
}

.footer-text,
#curso-ecgm {
  font-weight: bold;
  margin: 0;
}

.footer-text-container {
  flex: 1;
  text-align: left;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.social-media,
.apoios {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-redes,
.icon-apoios {
  max-width: 28px;
  max-height: 24px;
  transition: transform 0.2s ease-in-out;
}

.icon-redes:hover,
.icon-apoios:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-text-container {
    text-align: center;
    margin-bottom: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

/* MODAL */

.modal-content {
  background: rgb(0, 62, 75);
  background-image: linear-gradient(to bottom, rgb(0, 62, 75), rgb(1, 14, 19));
  border-radius: 16px;
  border: 3px solid rgba(248, 178, 83, 1);
  position: relative;
  padding: 15px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0px 10px 0px rgba(248, 178, 83, 0.6),
    8px 8px 20px rgba(0, 0, 0, 0.7), inset -3px -3px 10px rgba(0, 0, 0, 0.4);
  width: auto;
}

.modal-content:hover {
  box-shadow: 0px 8px 0px rgba(248, 178, 83, 0.5),
    5px 5px 15px rgba(0, 0, 0, 0.6), inset -3px -3px 8px rgba(0, 0, 0, 0.3);
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: transparent;
  border: 3px solid rgba(248, 178, 83, 0.4);
  border-radius: 18px;
  z-index: -1;
  clip-path: inset(0px 0px -6px 0px);
}

#cursoModalLabel,
#portfolioModalLabel {
  font-weight: bold;
  color: rgba(248, 178, 83, 1);
  text-shadow: 2px 2px 5px rgba(248, 178, 83, 0.5);
}

#cursoModalBody,
#portfolioModalBody {
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.2);
}

#cursoIconModal {
  display: flex;
  justify-self: center;
}

.btn-close {
  filter: invert(1);
}

#cursoModalSvgContainer {
  padding-bottom: 20px;
}

/* Contactos */

#contactos {
  margin: 0 auto;
  place-content: center;
  height: auto;
}

#title-contacto {
  font-weight: bold;
  color: white;
  text-align: center;
}

.title-contacto {
  font-weight: bold;
  color: white;
  text-align: center;
  font-size: 22px;
}

.svg-contactos {
  text-align: center;
  align-content: center;
}

.p-contactos,
.p-workshops {
  color: white;
}

.iframe {
  padding: 0px;
  text-align: center;
}

.no-pad {
  height: 38px;
  padding-top: 0px !important;
}
