/* ===== VARIABLES ===== */
:root {
  --bg: #080e1a;
  --bg2: #0d1629;
  --bg3: #111e38;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --cyan: #00c9ff;
  --green: #4ade80;
  --purple: #a855f7;
  --orange: #f97316;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --grad: linear-gradient(135deg, var(--cyan), var(--green));
  --grad2: linear-gradient(135deg, var(--purple), var(--cyan));
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --font: 'Inter', sans-serif;
  --font2: 'Space Grotesk', sans-serif;
  --nav-h: 72px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

address {
  font-style: normal;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.navbar.scrolled {
  border-color: var(--border);
  background: rgba(8, 14, 26, 0.95);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font2);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link-cta {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1px solid rgba(0, 201, 255, 0.3);
  padding: 8px 20px;
  border-radius: 8px;
}

.nav-link-cta:hover {
  background: rgba(0, 201, 255, 0.1);
  -webkit-text-fill-color: var(--cyan);
}

.nav-link.active {
  color: var(--text);
  background: var(--surface);
}

.navbar-right {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 14, 26, 0.85) 0%, rgba(8, 14, 26, 0.6) 60%, rgba(8, 14, 26, 0.9) 100%);
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-unb-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 28px;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-unb-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-unb-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 9px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-family: var(--font2);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
}

.hero-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--grad);
  color: #080e1a;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 201, 255, 0.35);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 201, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 201, 255, 0.08);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  z-index: 2;
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-arrow {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  border-radius: 2px;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font2);
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-item {
  position: relative;
}

.stat-number,
.stat-unit {
  display: inline;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 201, 255, 0.1);
  border: 1px solid rgba(0, 201, 255, 0.25);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font2);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== SOBRE ===== */
.sobre {
  background: var(--bg);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.sobre-text p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.sobre-text strong {
  color: var(--text);
}

.sobre-text .btn {
  margin-top: 8px;
}

.sobre-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 201, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 201, 255, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.hpc-icon {
  background: rgba(0, 201, 255, 0.12);
  color: var(--cyan);
}

.ai-icon {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
}

.data-icon {
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
}

.collab-icon {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== ATIVIDADES ===== */
.atividades {
  background: var(--bg2);
}

.atividades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ativ-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.ativ-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s;
}

.ativ-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 201, 255, 0.2);
}

.ativ-card:hover::before {
  opacity: 1;
}

.ativ-number {
  font-family: var(--font2);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
  margin-bottom: 16px;
  line-height: 1;
}

.ativ-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.ativ-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== NOTICIAS ===== */
.noticias {
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.news-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 201, 255, 0.25);
  box-shadow: var(--shadow);
}

.news-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.news-card-featured .news-img-wrap {
  min-height: 100%;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.news-card:hover .news-img {
  transform: scale(1.05);
}

.news-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13, 22, 41, 0.9));
}

.news-img-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-gradient-purple {
  background: linear-gradient(135deg, #1a0a2e, #4a1a6b);
}

.news-gradient-teal {
  background: linear-gradient(135deg, #041a1a, #0a5050);
}

.news-gradient-orange {
  background: linear-gradient(135deg, #1a0d00, #5a2800);
}

.news-icon-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.6;
}

.news-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 201, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 201, 255, 0.2);
  width: fit-content;
}

.news-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.news-title {
  font-family: var(--font2);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: 4px 0;
}

.news-card-featured .news-title {
  font-size: 1.3rem;
}

.news-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  margin-top: auto;
  transition: gap 0.2s;
}

.news-link:hover {
  gap: 10px;
}

.news-link span {
  transition: transform 0.2s;
}

.news-link:hover span {
  transform: translateX(4px);
}

/* ===== PARCEIROS ===== */
.parceiros {
  background: var(--bg2);
}

.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.parceiro-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  font-family: var(--font2);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}

.parceiro-item:hover {
  color: var(--cyan);
  border-color: rgba(0, 201, 255, 0.3);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  font-family: var(--font2);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo .brand-name {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo .brand-sub {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-unb-logo-link {
  display: inline-flex;
  align-items: center;
  margin: 12px 0 20px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-unb-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.footer-unb-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  border-radius: 7px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand-col p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-org {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.6) !important;
}

.footer-col h4 {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--cyan);
}

.footer-col address p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-col address a {
  transition: color 0.2s;
}

.footer-col address a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .atividades-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .parceiros-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8, 14, 26, 0.98);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card-featured {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .sobre-cards {
    grid-template-columns: 1fr;
  }

  .atividades-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .parceiros-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}