/* ==========================================================
   STYLE.CSS – Documento do Estudante (revisado e moderno)
   ========================================================== */

:root {
  --brand: #0d6efd;
  --light: #ffffff;
  --dark: #0f1724;
  --overlay: rgba(0, 0, 0, 0.35);
  --gradient: linear-gradient(120deg, rgba(13,110,253,0.5), rgba(0,0,0,0.5));
  --transition: 0.3s ease-in-out;
}

/* Animação global para gradientes */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==================== BASE ==================== */
body {
  font-family: "Inter", "Poppins", sans-serif;
  color: #212529;
  background: #fff;
  scroll-behavior: smooth;
}

section {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.35); /* translúcida */
  backdrop-filter: blur(10px);
  transition: all 0.3s ease-in-out;
  padding: 12px 0;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.65); /* um pouco mais escura ao rolar */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-brand img {
  height: 42px;
  
}

.navbar-nav .nav-link {
  color: #fff;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 50%;
}

.navbar-nav .nav-link:hover {
  color: #fff;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler i {
  color: #fff;
  font-size: 1.4rem;
}
/* ==========================================================
   ÍCONES SOCIAIS NA NAVBAR
   ========================================================== */
.nav-social {
  display: flex;
  gap: 10px;
}

.nav-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.nav-social .social-link:hover {
  background: #0d6efd;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(13,110,253,0.4);
}

/* ==========================================================
   HERO COM SLIDES DINÂMICOS (versão corrigida)
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  color: #fff;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 🔹 Define o estilo padrão de imagem (evita repeat) */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13,110,253,0.45), rgba(0,0,0,0.55));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* camadas de transição */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.hero-slide.visible {
  opacity: 1;
}
/* ==========================================================
   SEÇÃO EQUIPE (cards com overlay e redes sociais)
   ========================================================== */
#equipe {
  padding: 90px 0;
  /*background: linear-gradient(120deg, #0d6efd 0%, #0a58ca 100%);*/
  background: url("../img/backgrounds/bg-servicos.jpg") center/cover no-repeat;
  color: #fff;
}

#equipe h2 {
  font-weight: 700;
  margin-bottom: 50px;
}

.team-card {
  position: relative;
  text-align: center;
  color: #fff;
}

.team-card .photo-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 12px;
}

.team-card .photo-wrapper:hover img {
  transform: scale(1.1);
}

/* overlay com ícones */
.team-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
}

.team-card .photo-wrapper:hover .overlay {
  opacity: 1;
}

.team-card .social-links {
  display: flex;
  gap: 12px;
}

.team-card .social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.team-card .social-links a:hover {
  background: #0d6efd;
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(13,110,253,0.4);
}

/* textos abaixo da foto */
.team-card h5 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 15px;
}

.team-card .cargo {
  font-weight: 600;
  color: #dce3f5;
  margin-bottom: 4px;
}

.team-card .formacao {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0;
}

/* tooltip dos ícones (reutiliza o mesmo estilo global) */
.team-card .social-links a::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.team-card .social-links a:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* responsivo */
@media (max-width: 767px) {
  .team-card img {
    height: 250px;
  }
}


/* ==================== LOCALIZAÇÃO ==================== */
#localizacao {
  padding: 90px 0;
  background: var(--gradient), url("../img/backgrounds/bg-localizacao.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
  color: var(--light);
}

#map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 10px;
}

/* ==================== CONTATO ==================== */
#contato {
  padding: 90px 0;
  background: var(--gradient), url("../img/backgrounds/bg-contato.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
  color: var(--light);
}

#contato .form-control {
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  color: #212529;
  transition: box-shadow var(--transition);
}

#contato .form-control:focus {
  box-shadow: 0 0 10px rgba(13,110,253,0.3);
}

#contato button {
  background: var(--brand);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 10px 25px;
  transition: all var(--transition);
}

#contato button:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
}
/* ==========================================================
   FOOTER NOVO – moderno e elegante
   ========================================================== */
footer {
  background: linear-gradient(145deg, #0b1220, #111a2e);
  color: #d9e3f0;
  padding: 60px 0 20px;
  position: relative;
  font-size: 0.95rem;
}

footer .container {
  position: relative;
  z-index: 2;
}

footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #0d6efd;
}

/* redes sociais */
footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: all 0.3s ease;
}

footer .social-icons a:hover {
  background: #0d6efd;
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(13,110,253,0.4);
}

/* divisor e copyright */
footer .divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 40px 0 15px;
}

footer .copyright {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* responsividade */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }
  footer .social-icons {
    margin-top: 15px;
  }
}


/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 991px) {
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 75vh; }
  #servicos, #equipe, #localizacao, #contato {
    background-attachment: scroll;
  }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.8rem; }
  .team .avatar { width: 100px; height: 100px; }
  section { padding: 60px 10px; }
}
/* ==========================================================
   COMO FUNCIONA (nova seção com fundo ilustrado)
   ========================================================== */
#como-funciona {
  position: relative;
  padding: 90px 0;
  color: #fff;
  background: linear-gradient(120deg, rgba(13,110,253,0.6), rgba(0,0,0,0.6)),
              url("../img/backgrounds/bg-como-funciona.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
  overflow: hidden;
  z-index: 0;
}

#como-funciona h2 {
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
}

#como-funciona .card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#como-funciona .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
/* ==========================================================
   SEÇÃO "SERVIÇOS" – Cards com transparência e efeito glass
   ========================================================== */
#servicos {
  position: relative;
  padding: 90px 0;
  background: url("../img/backgrounds/bg-servicos.jpg") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
#servicos::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.5);
  z-index:0;
}
#servicos .container{ position:relative; z-index:2; }
#servicos h2, #servicos p { color:#fff; }


#servicos h2,
#servicos p {
  color: #fff;
}

#servicos .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#servicos .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.15);
}

#servicos .card i {
  color: #0d6efd;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  padding: 12px;
  margin-bottom: 15px;
}

#servicos .card h5 {
  font-weight: 600;
  margin-top: 10px;
}

/* ==========================================================
   BOTÃO VOLTAR AO TOPO (versão funcional e moderna)
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 99999; /* força o botão acima de tudo */
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #0a58ca, #0d6efd);
  transform: translateY(-4px);
}
/* ==========================================================
   ANIMAÇÃO DE BRILHO / PULSAÇÃO DO BOTÃO "VOLTAR AO TOPO"
   ========================================================== */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px rgba(13,110,253,0.3); transform: scale(1); }
  50% { box-shadow: 0 0 20px rgba(13,110,253,0.7); transform: scale(1.06); }
  100% { box-shadow: 0 0 8px rgba(13,110,253,0.3); transform: scale(1); }
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
/* ==========================================================
   SEÇÃO "SOBRE A UCE" – Fundo animado
   ========================================================== */
#sobre-uce .sobre-texto {
  position: relative;
  color: #fff;
  overflow: hidden;
}

/* 🔹 Fundo animado (gradiente dinâmico) */
#sobre-uce .sobre-texto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    #0a58ca,
    #0d6efd,
    #2563eb,
    #1e40af
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  z-index: 0;
}

/* 🔹 Conteúdo sobre o gradiente */
#sobre-uce .sobre-texto .conteudo {
  position: relative;
  z-index: 2;
  max-width: 90%;
  margin: auto;
}

/* 🔹 Animação suave */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 🔹 Transição no texto */
#sobre-uce .sobre-texto h2,
#sobre-uce .sobre-texto h4,
#sobre-uce .sobre-texto p,
#sobre-uce .sobre-texto .presidente {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#sobre-uce .sobre-texto:hover h2,
#sobre-uce .sobre-texto:hover h4 {
  transform: translateX(3px);
}

#sobre-uce .sobre-texto:hover .presidente {
  transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 992px) {
  #sobre-uce .sobre-texto::before {
    animation-duration: 20s;
  }
}

/* Cards translúcidos (glass) */
#servicos .card.glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
#servicos .card.glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  background: rgba(255, 255, 255, 0.15);
}
#servicos .card.glass i {
  color: #0d6efd;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  padding: 12px;
  margin-bottom: 15px;
}
/* ==========================================================
   SEÇÃO DÚVIDAS (FAQ)
   ========================================================== */
#duvidas {
  background: #faf8f8e0;
  color: #212529;
}

#duvidas h2 {
  font-weight: 700;
  color: #0d6efd;
}

.accordion-item {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.accordion-button {
  background: #fff;
  color: #0d6efd;
  font-weight: 600;
  padding: 18px;
  transition: all 0.3s ease;
}

.accordion-button:hover {
  background: rgba(13,110,253,0.08);
}

.accordion-button:not(.collapsed) {
  background: #0d6efd;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.2);
}

.accordion-body {
  background: #fff;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 20px;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body ul {
  margin-top: 10px;
  padding-left: 25px;
}

.accordion-body li {
  margin-bottom: 5px;
}
