/* Paleta e medidas globais para manter o visual consistente entre as páginas. */
:root {
  --bg: #0f0f0f;
  --surface: #161616;
  --text: #ffffff;
  --muted: #c6c6c6;
  --accent: #e50914;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --container: 1200px;
  --nav-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(229, 9, 20, 0.18), transparent 26%),
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.04), transparent 24%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  width: min(calc(100% - 40px), var(--container));
  height: var(--nav-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu a {
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 48px) 0 72px;
}

.hero {
  min-height: 86vh;
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.92) 0%, rgba(15, 15, 15, 0.7) 40%, rgba(15, 15, 15, 0.5) 100%),
    url("https://images.unsplash.com/photo-1610366398516-46da9dec5931?q=80&w=1263&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center/cover no-repeat;
}

.page-hero {
  min-height: 52vh;
}

.category-entertainment {
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.62) 50%, rgba(15, 15, 15, 0.45) 100%),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
}

.category-education {
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.62) 50%, rgba(15, 15, 15, 0.45) 100%),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
}

.category-utilities {
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.62) 50%, rgba(15, 15, 15, 0.45) 100%),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
}

.category-technology {
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.62) 50%, rgba(15, 15, 15, 0.45) 100%),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
}

.category-creativity {
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.62) 50%, rgba(15, 15, 15, 0.45) 100%),
    url("https://images.unsplash.com/photo-1513364776144-60967b0f800f?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.35) 0%, rgba(15, 15, 15, 0.82) 75%, var(--bg) 100%),
    radial-gradient(circle at 78% 24%, rgba(229, 9, 20, 0.24), transparent 18%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-kicker,
.section-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5d1d2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
}

.hero p,
.page-hero p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 16px 28px rgba(229, 9, 20, 0.26);
}

.btn-primary:hover {
  background: #ff1a25;
}

.quick-access,
.carousel-section,
.category-section {
  padding: 22px 0 28px;
}

.inner-page .category-section {
  padding-bottom: 80px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.row-heading {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-link {
  color: #ff7d85;
  font-weight: 600;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.quick-card,
.content-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
}

.quick-card::before,
.content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.28), transparent 58%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.quick-card:hover,
.content-card:hover {
  transform: scale(1.08);
  border-color: rgba(229, 9, 20, 0.38);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.48);
  filter: brightness(1.04);
}

.quick-card:hover::before,
.content-card:hover::before {
  opacity: 1;
}

.quick-card {
  min-height: 200px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.quick-card strong,
.quick-label {
  position: relative;
  z-index: 1;
}

.quick-card strong {
  font-size: 1.32rem;
  line-height: 1.35;
}

.quick-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entertainment {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.1), rgba(15, 15, 15, 0.92)),
    url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=900&q=80") center/cover no-repeat;
}

.education {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.08), rgba(15, 15, 15, 0.9)),
    url("https://images.unsplash.com/photo-1513258496099-48168024aec0?auto=format&fit=crop&w=900&q=80") center/cover no-repeat;
}

.utilities {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.08), rgba(15, 15, 15, 0.92)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80") center/cover no-repeat;
}

.technology {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.08), rgba(15, 15, 15, 0.92)),
    url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=900&q=80") center/cover no-repeat;
}

.creativity {
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.08), rgba(15, 15, 15, 0.92)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80") center/cover no-repeat;
}

.carousel-shell {
  position: relative;
}

.card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding: 12px 8px 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.card-row::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(7, 7, 7, 0.72);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.carousel-btn:hover {
  background: rgba(229, 9, 20, 0.82);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: -16px;
}

.carousel-btn.next {
  right: -16px;
}

.carousel-btn span {
  font-size: 2rem;
  line-height: 1;
}

.content-card {
  min-height: 360px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  content-visibility: auto;
  animation: cardReveal 0.6s ease both;
  animation-delay: var(--card-delay, 0ms);
}

.card-art {
  min-height: 220px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.75)),
    var(--card-image, linear-gradient(135deg, rgba(229, 9, 20, 0.65), rgba(15, 15, 15, 0.85)));
  background-size: cover;
  background-position: center;
}

.card-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 15, 0.92));
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 22px;
}

.card-title {
  margin: 0;
  font-size: 1.26rem;
}

.card-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
  flex: 1;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.14);
  color: var(--text);
  border: 1px solid rgba(229, 9, 20, 0.28);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-link:hover {
  background: rgba(229, 9, 20, 0.26);
  border-color: rgba(229, 9, 20, 0.55);
}

.card-url {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.48);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.site-footer {
  padding: 28px 20px 42px;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

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

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    width: min(320px, calc(100vw - 40px));
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(14, 14, 14, 0.97);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    background: rgba(255, 255, 255, 0.04);
  }

  .row-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-inner {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 40px) 0 56px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.6rem;
  }

  .hero p,
  .page-hero p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .quick-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .card-row {
    grid-auto-columns: minmax(230px, 82vw);
  }

  .content-card:hover,
  .quick-card:hover {
    transform: scale(1.03);
  }

  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-url {
    text-align: center;
  }
}
