/* ============================================================
   Projeto PDI — Estilos
   ============================================================ */
:root {
  --primary: #0b3d91;        /* azul institucional */
  --primary-dark: #072a64;
  --accent: #00bfa6;         /* verde/teal de destaque */
  --accent-dark: #00a892;
  --uepa: #c8102e;           /* vermelho UEPA */
  --ufpa: #0a7d34;           /* verde UFPA */
  --dark: #0c1424;
  --light: #f4f7fb;
  --text: #2b3346;
  --muted: #6b7385;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Poppins', sans-serif; }

.text-accent { color: var(--accent) !important; }

/* ---------- Botões ---------- */
.btn { border-radius: 50px; font-weight: 600; transition: all .25s ease; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,191,166,.35); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.btn-outline-light:hover { transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.navbar {
  padding: 1rem 0;
  transition: all .35s ease;
  background: transparent;
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 4px 24px rgba(11,61,145,.08);
  padding: .6rem 0;
}
.navbar-brand { font-weight: 700; font-size: 1.4rem; color: #fff; }
.navbar.scrolled .navbar-brand { color: var(--primary); }
.brand-logo {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 12px; font-size: 1.2rem;
}
.navbar .nav-link {
  color: rgba(255,255,255,.9);
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
}
.navbar.scrolled .nav-link { color: var(--text); }
.navbar .nav-link::after {
  content: ''; position: absolute; left: 1rem; bottom: .3rem;
  width: 0; height: 2px; background: var(--accent); transition: width .25s ease;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: calc(100% - 2rem); }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent); }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }
.navbar:not(.scrolled) .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    margin-top: .75rem;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }
  .navbar .nav-link, .navbar.scrolled .nav-link { color: var(--text); }
  .navbar .nav-link::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #134bb0 100%);
  z-index: -2;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,191,166,.35), transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(0,191,166,.18), transparent 35%);
}
.hero-title { font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 540px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); color: #fff;
  padding: .45rem 1rem; border-radius: 50px; font-size: .85rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .counter { font-size: 2rem; font-weight: 800; font-family: 'Poppins'; color: #fff; }
.hero-stats small { color: rgba(255,255,255,.7); font-size: .85rem; }

/* Ilustração do hero */
.hero-illustration { position: relative; height: 420px; }
.hero-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 180px; height: 180px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #fff;
  box-shadow: 0 20px 60px rgba(0,191,166,.45);
  animation: pulse 3s ease-in-out infinite;
}
.float-icon {
  position: absolute; font-size: 2.4rem; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  width: 80px; height: 80px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  animation: floaty 4s ease-in-out infinite;
}
.icon-1 { top: 10%; left: 12%; animation-delay: 0s; }
.icon-2 { top: 18%; right: 8%; animation-delay: .6s; }
.icon-3 { bottom: 16%; left: 6%; animation-delay: 1.2s; }
.icon-4 { bottom: 8%; right: 14%; animation-delay: 1.8s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.06); } }

.scroll-down {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 1.6rem; opacity: .8; animation: floaty 2s infinite; z-index: 2;
}
.scroll-down:hover { color: var(--accent); }

/* ---------- Seções ---------- */
.section { padding: 6rem 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); }
.section-tag {
  display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem;
}
.section-tag.light { color: var(--accent); }
.section-title { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--primary); margin-bottom: 1rem; }
.section-dark .section-title { color: #fff; }
.section-subtitle { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

/* ---------- Pilares (Sobre) ---------- */
.pillar-card {
  background: #fff; border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
  box-shadow: 0 10px 40px rgba(11,61,145,.06);
  border: 1px solid #eef2f8; transition: all .3s ease;
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(11,61,145,.12); }
.pillar-icon {
  width: 76px; height: 76px; margin: 0 auto 1.25rem;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--primary), #134bb0);
}
.pillar-card:nth-child(1) .pillar-icon {}
.pillar-card h3 { font-weight: 700; color: var(--primary); margin-bottom: .75rem; }
.pillar-card p { color: var(--muted); margin: 0; }

/* ---------- Recursos ---------- */
.feature-card {
  background: #fff; border-radius: 18px; padding: 2rem;
  border: 1px solid #eef2f8; transition: all .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(11,61,145,.1); border-color: transparent; }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--accent); background: rgba(0,191,166,.12);
}
.feature-card h4 { font-weight: 700; font-size: 1.15rem; color: var(--primary); margin-bottom: .6rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Projetos ---------- */
.project-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid #eef2f8; transition: all .3s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(11,61,145,.14); }
.project-thumb {
  height: 170px; position: relative;
  display: flex; align-items: flex-end; padding: 1rem;
}
.thumb-1 { background: linear-gradient(135deg,#0b3d91,#134bb0); }
.thumb-2 { background: linear-gradient(135deg,#00bfa6,#0a7d34); }
.thumb-3 { background: linear-gradient(135deg,#7b2ff7,#5b2bb0); }
.thumb-4 { background: linear-gradient(135deg,#0a7d34,#5fae3a); }
.thumb-5 { background: linear-gradient(135deg,#f7971e,#ffd200); }
.thumb-6 { background: linear-gradient(135deg,#c8102e,#ff5e62); }
.project-tag {
  background: rgba(255,255,255,.9); color: var(--text);
  font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: 50px;
}
.project-body { padding: 1.5rem; }
.project-univ {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  padding: .2rem .6rem; border-radius: 6px; color: #fff; margin-bottom: .6rem;
}
.project-univ.uepa { background: var(--uepa); }
.project-univ.ufpa { background: var(--ufpa); }
.project-body h4 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: .6rem; }
.project-body p { color: var(--muted); font-size: .92rem; }
.project-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: .92rem; }
.project-link i { transition: transform .25s ease; }
.project-link:hover i { transform: translateX(5px); }

/* ---------- Como funciona ---------- */
.step-card { padding: 1.5rem; }
.step-number {
  width: 70px; height: 70px; margin: 0 auto 1.25rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; font-family: 'Poppins'; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 30px rgba(0,191,166,.4);
}
.step-card h4 { color: #fff; font-weight: 700; margin-bottom: .6rem; }
.step-card p { color: rgba(255,255,255,.65); }

/* ---------- Universidades ---------- */
.univ-card {
  background: #fff; border-radius: 22px; padding: 2.5rem;
  border: 1px solid #eef2f8; box-shadow: 0 10px 40px rgba(11,61,145,.06);
  transition: all .3s ease;
}
.univ-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(11,61,145,.12); }
.univ-badge {
  display: inline-block; font-family: 'Poppins'; font-weight: 800; font-size: 1.4rem;
  color: #fff; padding: .5rem 1.25rem; border-radius: 14px; margin-bottom: 1.25rem;
}
.uepa-bg { background: var(--uepa); }
.ufpa-bg { background: var(--ufpa); }
.univ-card h3 { font-weight: 700; color: var(--primary); font-size: 1.3rem; margin-bottom: .75rem; }
.univ-card p { color: var(--muted); }
.univ-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.univ-link:hover { color: var(--accent-dark); }

/* ---------- Contato ---------- */
.contact-card {
  background: #fff; border-radius: 22px; padding: 2.5rem;
  box-shadow: 0 16px 50px rgba(11,61,145,.1); border: 1px solid #eef2f8;
}
.form-control, .form-select { border-radius: 12px; padding: .7rem 1rem; border: 1px solid #dde4ef; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(0,191,166,.2); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--text); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; color: var(--muted); }
.contact-list i { color: var(--accent); font-size: 1.1rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-right: .6rem;
  background: var(--light); color: var(--primary); font-size: 1.1rem; transition: all .25s ease;
}
.social-links a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 4rem 0 1.5rem; }
.footer h6 { font-weight: 700; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer .form-control { border: none; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 1.5rem; }

/* ---------- Voltar ao topo ---------- */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 1000;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0,191,166,.4);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ---------- Seletor de idiomas (menu flutuante de bandeiras) ---------- */
.lang-switcher {
  position: fixed; right: 24px; top: 84px; z-index: 1050;
}
.lang-toggle {
  width: 48px; height: 48px; padding: 0; border: none; border-radius: 50%;
  background: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(11,61,145,.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lang-toggle:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,61,145,.35); }
.lang-toggle::after { display: none; }            /* remove a setinha padrão do Bootstrap */
.lang-toggle:focus-visible { outline: 3px solid rgba(0,191,166,.5); outline-offset: 2px; }
.lang-flag {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.lang-menu {
  min-width: 190px; padding: .4rem; border: none; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(11,61,145,.18);
}
.lang-menu .lang-option {
  display: flex; align-items: center; gap: .6rem;
  border-radius: 10px; font-weight: 600; color: var(--primary);
  padding: .55rem .75rem;
}
.lang-menu .lang-option:hover { background: rgba(0,191,166,.12); color: var(--primary); }
.lang-menu .lang-option.active { background: var(--accent); color: #fff; }
.lang-flag-sm {
  width: 24px; height: 18px; border-radius: 3px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* ---------- Responsivo ---------- */
@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .hero-stats { gap: 1.5rem !important; }
  .hero-stats .counter { font-size: 1.6rem; }
  .contact-card, .univ-card, .pillar-card { padding: 1.75rem; }
  .lang-switcher { right: 16px; top: 76px; }
}
