:root {
  --brand: #6ea8fe;
  --bg: #0c1024;
  --fg: #e8ecff;
  --muted: #9aa3c7;
  --card: rgba(255, 255, 255, .04);
  --border: rgba(255, 255, 255, .1);
}

html {
  scroll-behavior: smooth
}

body {
  background: radial-gradient(1200px 600px at 15% -10%, rgba(110, 168, 254, .12), transparent), var(--bg);
  color: var(--fg);
}

.header-slim {
  padding: 56px 0 32px;
  background: radial-gradient(700px 300px at 90% -10%, rgba(174, 109, 255, .12), transparent), linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 60%);
  border-bottom: 1px solid var(--border)
}

.header-slim h1 {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .4rem
}

.header-slim .kicker {
  font-size: .9rem;
  color: var(--muted);
  display: inline-flex;
  gap: .5rem;
  align-items: center
}

.kicker .dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 16px rgba(110, 168, 254, .6)
}

.navbar {
  backdrop-filter: saturate(140%) blur(8px);
  background-color: rgba(7, 10, 24, .6) !important;
  border-bottom: 1px solid var(--border)
}

.navbar .nav-link {
  color: #cfd6ff
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--fg)
}

.card-glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45)
}

.tag {
  font-size: .78rem;
  border: 1px solid var(--border);
  border-radius: 50rem;
  padding: .15rem .55rem;
  color: #cfe0ff
}

.btn-pill {
  border-radius: 999px
}

.btn-outline-brand {
  border-color: var(--brand);
  color: var(--fg)
}

.btn-outline-brand:hover {
  background: var(--brand);
  color: #0b1020
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: all .6s ease
}

.reveal.show {
  opacity: 1;
  transform: translateY(0)
}

.timeline {
  position: relative;
  margin: 10px auto;
  max-width: 920px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--brand), transparent);
  transform: translateX(-50%);
  opacity: .6;
}

.t-item {
  position: relative;
  width: calc(50% - 24px);
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}

.t-item.left {
  left: 0;
  transform-origin: right
}

.t-item.right {
  left: 50%;
  transform-origin: left
}

.t-dot {
  position: absolute;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(110, 168, 254, .18);
}

.t-item.left .t-dot {
  right: -31px
}

.t-item.right .t-dot {
  left: -31px
}

.t-date {
  font-size: .78rem;
  color: var(--muted)
}

.t-title {
  font-weight: 700;
  margin: .15rem 0
}

.t-meta {
  font-size: .85rem;
  color: var(--muted)
}

@media (max-width: 768px) {
  .timeline::before {
    left: 10px;
    transform: none
  }

  .t-item {
    width: 100%;
    left: 0 !important;
    padding-left: 34px
  }

  .t-item .t-dot {
    left: 10px !important;
    right: auto
  }
}

.footer {
  color: var(--muted)
}

/* Team grid/cards */
.team-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 22px;
  gap: 10px;
  height: 100%;
  /* para h-100 do Bootstrap funcionar */
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35)
}

.team-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.team-name {
  font-weight: 700;
  margin: 6px 0 0;
}

.team-role {
  color: #9aa3c7;
  font-size: .95rem;
}

.team-bio {
  color: #d8def8;
  font-size: .95rem;
  margin-top: 6px;
  /* mantém alturas parecidas mesmo com textos diferentes */
  min-height: 3.6em;
  /* ~2 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* corta a 2 linhas */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* espaçamento consistente no grid */
.team-row {
  row-gap: 24px;
}

.ai-landing-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 160px 0 220px;
  background: radial-gradient(1200px 600px at 50% 50%, rgba(110, 168, 254, .12), transparent),
    linear-gradient(135deg, rgba(174, 109, 255, .08), transparent 70%),
    var(--bg);
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
}

.ai-content-overlay {
  position: relative;
  text-align: center;
  z-index: 15;
  pointer-events: auto;
  padding: 20px;
}

.ai-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 1),
    0 0 40px rgba(0, 0, 0, 0.8),
    2px 2px 0px rgba(0, 0, 0, 1),
    -2px -2px 0px rgba(0, 0, 0, 1),
    2px -2px 0px rgba(0, 0, 0, 1),
    -2px 2px 0px rgba(0, 0, 0, 1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 10px 20px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.ai-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: #ffffff;
  margin: 10px 0 0 0;
  max-width: 700px;
  text-shadow:
    0 0 15px rgba(0, 0, 0, 1),
    0 0 30px rgba(0, 0, 0, 0.8),
    1px 1px 0px rgba(0, 0, 0, 1),
    -1px -1px 0px rgba(0, 0, 0, 1),
    1px -1px 0px rgba(0, 0, 0, 1),
    -1px 1px 0px rgba(0, 0, 0, 1);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

#ai-network-viz {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.node {
  cursor: pointer;
  transition: all 0.3s ease;
}

.node:hover {
  stroke-width: 3px;
}

.link {
  stroke: rgba(110, 168, 254, .3);
  stroke-width: 1px;
  transition: all 0.3s ease;
}

.link.active {
  stroke: rgba(0, 255, 255, 1);
  stroke-width: 5px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
}

.expansion-ring {
  pointer-events: none;
}

.main-node {
  cursor: pointer;
  transition: all 0.2s ease;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(110, 168, 254, 0.4));
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(110, 168, 254, 0.8));
  }

  100% {
    opacity: 0.7;
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(110, 168, 254, 0.4));
  }
}

@media (max-width: 992px) {
  .ai-landing-section {
    min-height: auto;
    padding: 120px 0 64px;
    gap: 32px;
  }

  .ai-content-overlay {
    margin: 0 auto;
    max-width: 640px;
  }

  .ai-posts-overlay {
    padding: 0;
    margin-top: 0;
  }

  #ai-network-viz {
    position: static;
    width: 100%;
    height: 360px;
    margin-bottom: 2rem;
  }
}

/* Additional glow effects */
.ai-landing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(110, 168, 254, 0.03), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(174, 109, 255, 0.03), transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(110, 168, 254, 0.02), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.ai-content-overlay {
  z-index: 15;
}

.ai-posts-overlay {
  position: relative;
  z-index: 12;
  padding: 30px 0;
  backdrop-filter: blur(1px);
  width: 100%;
  margin-top: auto;
}

.card-glass-small {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
}

.card-glass-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.card-glass-small h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-glass-small h6 a:hover {
  color: var(--brand) !important;
}

.tag-small {
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50rem;
  padding: 0.1rem 0.4rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

/* Project Tabs */
.project-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.project-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.project-tab.active {
  background: var(--brand);
  color: #0b1020;
  box-shadow: 0 4px 12px rgba(110, 168, 254, 0.3);
}

.project-container {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}