/* Estilo da página de apresentação S.Inc */

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 100px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #08335A;
    background-image: url(https://jboliveira-pt.github.io/sinc/src/main/resources/static/images/new-backgroud-demo.sinc.PNG);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0px;    
    width: 100%;
}

/*Header*/

.logo-container {
    background-image: url(https://github.com/JBOliveira-pt/sinc/blob/main/src/main/resources/static/images/logoSincTransp.png?raw=true);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 130px;
    height: 130px;
    padding-left: 120px;
    position: absolute;
    top:5px;
}

.active-nav {
    border-bottom: 2px solid rgba(10, 96, 221, 0.89) !important;
    font-weight: bold;
}

h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
}

section {
    margin: auto;
    width: 70%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 10px;
    margin-top: 30px;
    animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

p {
    text-align: justify;
}

iframe {
    display: block;
    margin: 20px auto;
    border: 3px solid #AFDEF2;
    border-radius: 8px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #398dc3;
    color: white;
    margin-top: 40px;
    font-size: 14px;
    
}

@media (max-width: 767px) {
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        text-align: center;
        font-size: 14px;
    }

    .logo-container {
        margin-bottom: 0;
        margin-left: 0px;
        width: 70px;
        height: 70px;
        padding-left: 15px;  
    }

    .title-container {
        text-align: center;
    }

    .navbar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/*Estilos para a Seção da Equipe*/

.team{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(0,0,0,0);
    box-shadow: 0px 0px 0px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease both;
    flex-direction: column;
    margin-bottom: 0px;
}

.team-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(0,0,0,0);
    box-shadow: 0px 0px 0px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease both;
    width: 100%;
}

.creators {
    text-align: left;
    margin-bottom: 0px;
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: #285e8e;
  text-shadow: 0 2px 8px #c5e2f5a0;
  font-weight: 700;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 270px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.3);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.team-member-img { 
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #0077B5;
}

.member-name {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    margin: 0;
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
}

.member-name .name { 
    font-weight: bold;
    color: #333;
    display: block; 
    margin-bottom: 2px;
}

.member-name .title { 
    font-size: 0.9em; 
    color: #666;
    font-weight: normal;
    display: block; 
    margin-bottom: 10px;
}

.member-name a {
    text-decoration: none;
    color: inherit; 
    display: flex; 
    align-items: center;
}

.linkedin-link {
  display: inline-block;
  position: relative;
  margin-left: 12px;
}

.linkedin-logo { 
  width: 45px; 
  height: 45px; 
  transition: transform 0.2s ease;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.075);
}

.linkedin-link:hover .linkedin-logo {
  transform: scale(1.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.19);
}

.linkedin-label {
  opacity: 0;
  background: rgba(30, 30, 30, 0.253);
  color: #fff;
  border-radius: 8px;
  padding: 6px 18px;
  font-size: 1rem;
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight:400;
}

.linkedin-link:hover .linkedin-label {
  opacity: 1;
}

@media (max-width: 767px) {
    .team-section {
        flex-direction: column;
        align-items: center;
    }

    .team-member {
        margin-bottom: 30px;
    }
}


/*Estilos para a Seção das Funcionalidades*/

.mainfunctions {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(0,0,0,0);
    box-shadow: 0px 0px 0px;
    flex-wrap: wrap;
    animation: fadeInUp 2s ease both;
}

.funcionalidades{
     margin-bottom: 24px;
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: #285e8e;
  text-shadow: 0 2px 8px #c5e2f5a0;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-top: 15px;
}

.func-card {
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(8, 51, 90, 0.07);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
  background-color: rgba(255, 255, 255, 0.3);
}

.func-card:hover {
  box-shadow: 0 4px 16px rgba(8, 51, 90, 0.13); 
  transform: scale(1.08);
  transition: 0.8s;
}

.func-card strong {
  font-size: 1.17em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 1.13em;
  font-weight: 600;
  color: #2560a7;
  margin-bottom: 8px;
  gap: 9px;
}

.func-card img {
  width: 100%;
  max-width: 360px;
  border-radius: 6px;
  margin-bottom: 10px;
  object-fit: cover;
  background: #e6f0fa;
  box-shadow: 0 1px 2px rgba(8, 51, 90, 0.06);
}

.func-card p {
  font-size: 14px;
  color: #1d3557;
  text-align: justify;
  margin: 0;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  section {
    width: 95%;
    padding: 8px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .func-card img {
    width: 100%;
    max-width: 220px;
  }
}

/*Plataforma*/
/* --- PLATAFORMA SECTION MODERNIZADA E RESPONSIVA --- */
.plataforma {
  margin-top: 80px;
  display: flex;
  align-items: stretch;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  gap: 48px;
  padding: 40px 0 32px 0;
  position: relative;
  overflow: visible;
}

.plataforma-title {
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: #285e8e;
  text-shadow: 0 2px 8px #c5e2f5a0;
  font-weight: 700;
}

.plataforma-col-esq {
  flex: 1 1 360px;
  min-width: 270px;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 2;
}

.plataforma-block {
  background: rgba(255, 255, 255, 0.3);
  padding: 18px 18px 10px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(56,141,195,0.07);
  transition: box-shadow 0.2s;
}

.plataforma-block h4 {
  display: flex;
  align-items: center;
  font-size: 1.13em;
  font-weight: 600;
  color: #2560a7;
  margin-bottom: 8px;
  gap: 9px;
}

.plataforma-block .icon {
  display: inline-flex;
  align-items: center;
  margin-right: 7px;
}

.plataforma-block p {
  font-size: 1em;
  color: #0d3551;
  margin-bottom: 0;
}

.plataforma-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.plataforma-tools li {
  font-size: 1em;
  color: #09436a;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.tool-label {
  background: #398dc3;
  color: #fff;
  border-radius: 3px;
  padding: 1px 8px;
  font-weight: 600;
  font-size: 0.98em;
  margin-right: 7px;
}

.tool-value {
  font-weight: 500;
  color: #2560a7;
}

.plataforma-col-dir {
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}


/* Responsividade */
@media (max-width: 900px) {
  .plataforma {
    flex-direction: column-reverse;
    padding: 24px 0 20px 0;
    gap: 28px;
    margin-top: 35px;
  }
  .plataforma-col-esq {
    max-width: 100%;
    min-width: 0;
    gap: 20px;
  }
  .plataforma-col-dir {
    min-width: 0;
    justify-content: center;
    margin-bottom: 18px;
  }
  .plataforma-img {
    max-width: 230px;
    min-width: 50px;
    min-height: 50px;
  }
  .plataforma-tools {
    grid-template-columns: 1fr;
  }
  .plataforma-title {
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: #285e8e;
  text-shadow: 0 2px 8px #c5e2f5a0;
  font-weight: 700;
  }
}

@media (max-width: 600px) {
  .plataforma {
    width: 98%;
    padding: 6vw 0 6vw 0;
    margin-top: 15vw;
    border-radius: 0;
    box-shadow: none;
    gap: 19px;
  }
  .plataforma-title {
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: #285e8e;
  text-shadow: 0 2px 8px #c5e2f5a0;
  font-weight: 700;
  padding-left: 10px;
  margin-bottom: 45px;
  margin-top: 25px;
  }
  .plataforma-col-esq {
    padding: 0;
    gap: 9px;
  }
  .plataforma-block {
    padding: 18px 18px 10px 18px;
    font-size: 0.98em;
    margin-bottom: 3px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .plataforma-block h4 {
    font-size: 1em;
    gap: 6px;
  }
  .plataforma-img {
    max-width: 58vw;
    min-width: 0;
    min-height: 80px;
    border-radius: 5px;
  }
  .plataforma-col-dir{
    margin-bottom: 0px;
  }
  .plataforma-tools {
    grid-template-columns: 1fr;
    gap: 5px 0;
  }
}

/*Demonstracao*/
.demonstracao{
  margin-top: 20px;
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: #285e8e;
  text-shadow: 0 2px 8px #c5e2f5a0;
  font-weight: 700;
  margin-bottom: 50px;  
}

.demonstracao:hover iframe {
  box-shadow: 0 4px 16px rgba(8, 51, 90, 0.13); 
  transform: scale(1.08);
  transition: 0.8s;
}

/*Links*/
.links-section {
  background-color: rgba(0,0,0,0);
  box-shadow: 0 0 0 0;
  margin-top: 80px;
  margin-bottom: 80px;
  padding: 20px 0;
}

.links-title {
  text-align: center;
  font-size: 20px;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.links-grid {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s;
}

.link-icon img {
  width: 64px;
  height: 64px;
  transition: transform 0.3s;
}

.link-label {
  opacity: 0;
  background: rgba(30, 30, 30, 0.253);
  color: #fff;
  border-radius: 8px;
  padding: 6px 18px;
  font-size: 1rem;
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.link-card:hover .link-icon img {
  transform: scale(1.18);
}

.link-card:hover .link-label {
  opacity: 1;
}

@media (max-width: 600px) {
  .links-grid {
    flex-direction:row;
    gap: 45px;
  }
  .link-label {
    font-size: 0.95rem;
    bottom: -32px;
  }
}

/* Personalização opcional do botão hamburger */
.navbar-toggler {
  border: none;
  outline: none;
  padding-right: 15px;
}

.navbar-toggler-icon {
  background-size: contain;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute !important;
    top: 100%;
    right: 15px; /* igual ao padding do navbar, ajuste conforme necessário */
    left: auto;
    width: fit-content;
    min-width: 180px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 6px 32px rgba(8, 51, 90, 0.08);
    border-radius: 0 0 12px 12px;
    padding: 14px 18px 10px 18px;
    z-index: 1100;
    transition: all 0.25s;
  }

  /* Centraliza os itens do menu verticalmente */
  .navbar-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .navbar-nav .nav-link {
    text-align: right;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}

.demonstracao iframe {
  width: 660px;
  height: 415px;
  max-width: 100%;
  display: block;
  margin: 20px auto;
}

/* Container para aspecto 16:9 responsivo */
.demonstracao .video-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 67.7%; /* (515/760)*100 para 16:9 */
}

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

@media (max-width: 600px) {
  .demonstracao .video-container {
    padding-top: 56.25%; /* 16:9 */
    max-width: 100%;
  }
}
