/* ================= DESIGN SYSTEM: pesquisador.ai ================= */

/* CSS Variables */
:root {
  --font-title: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --bg: #020202;
  --bg-rgb: 2, 2, 2;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.05);
  
  /* Accent colors */
  --accent: #C0F0FB;
  --accent-rgb: 192, 240, 251;
  --text: #F3F4F6;
  --text-dim: #9CA3AF;
  
  /* Brand Gradient Colors */
  --blue: #378ADD;
  --purple: #9B4DCA;
  --red: #E54040;
  
  /* Transitions */
  --transition-speed: 0.35s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 240, 251, 0.2) transparent;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(192, 240, 251, 0.15);
  border-radius: 99px;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 240, 251, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glowing Blobs */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  mix-blend-mode: screen;
  animation: float 25s infinite alternate ease-in-out;
}

.blob-blue {
  background: var(--blue);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.blob-purple {
  background: var(--purple);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.blob-red {
  background: var(--red);
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(5%, 10%) scale(1.1);
  }
  100% {
    transform: translate(-5%, -5%) scale(0.9);
  }
}

/* Navbar / Header */
.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-speed) var(--ease);
  padding: 1.5rem 2rem;
}

/* Navbar Compact State when Scrolled */
.navbar-container.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(2, 2, 2, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-speed) var(--ease);
}

/* Logo and navigation links side-by-side or stacked transition */
.navbar-container.scrolled .navbar-wrapper {
  flex-direction: row;
  justify-content: space-between;
  gap: 0;
}

.navbar-logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-logo {
  height: 105px;
  width: auto;
  object-fit: contain;
  transition: all var(--transition-speed) var(--ease);
}

.navbar-container.scrolled .main-logo {
  height: 38px;
}

.navbar-links-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-item {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-item:hover, .nav-item.active {
  color: var(--text);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.navbar-spacer {
  height: 180px; /* Spacer matching full navbar height */
  transition: height var(--transition-speed) var(--ease);
}

.navbar-container.scrolled + .navbar-spacer {
  height: 85px;
}

/* Common UI Elements & Buttons */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, var(--blue), var(--purple), var(--red));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--red));
  color: white;
  box-shadow: 0 4px 15px rgba(155, 77, 202, 0.2);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 77, 202, 0.4);
}

.badge-accent {
  background: rgba(192, 240, 251, 0.1);
  border: 1px solid rgba(192, 240, 251, 0.2);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  font-weight: 600;
  display: inline-block;
}

.section-tag {
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
}

/* Layout Views Structure */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem 2rem;
  min-height: calc(100vh - 250px);
}

.app-view {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ================= HOME PAGE VIEWS ================= */

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 900px;
  margin: 3rem auto 6rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 750px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Book Grid Section */
/* ===== STAMP BOOKS ROW ===== */

/* Wrapper: horizontally centered, no gap, tightly packed */
.books-stamps-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;           /* covers sit flush against each other */
  margin: 2.5rem 0 5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem; /* space for scrollbar if any */
}

/* Individual stamp/cover */
.book-stamp {
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  width: clamp(130px, 18vw, 210px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;

  /* Subtle shadow + slight right-overlap illusion */
  box-shadow:
    2px 0 0 rgba(255,255,255,0.04),   /* right edge separator */
    0 10px 30px rgba(0, 0, 0, 0.6);

  /* 3-D perspective origin so lift feels real */
  transform-origin: bottom center;
  transition:
    transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.38s var(--ease),
    z-index 0s;
  z-index: 1;
}

/* Cover image fills the stamp entirely */
.stamp-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
}

/* Ambient glow overlay (hidden by default) */
.stamp-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  z-index: 2;
}

/* Sliding label that peeks in from the bottom on hover */
.book-stamp::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0.55rem 0;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

/* ── Hover state ── */
.book-stamp:hover {
  transform: translateY(-14px) scale(1.04);
  z-index: 10;
}

.book-stamp:hover::after {
  transform: translateY(0);
}

.book-stamp:hover .stamp-img {
  filter: brightness(1.08);
}

.book-stamp:hover .stamp-glow {
  opacity: 1;
}

/* Per-colour glow fills */
.stamp-glow-blue {
  background: radial-gradient(ellipse at top, rgba(55, 138, 221, 0.25) 0%, transparent 65%);
}
.stamp-glow-purple {
  background: radial-gradient(ellipse at top, rgba(155, 77, 202, 0.25) 0%, transparent 65%);
}
.stamp-glow-red {
  background: radial-gradient(ellipse at top, rgba(229, 64, 64, 0.25) 0%, transparent 65%);
}
.stamp-glow-cyan {
  background: radial-gradient(ellipse at top, rgba(192, 240, 251, 0.22) 0%, transparent 65%);
}

/* Per-colour hover shadow */
.card-teses:hover  { box-shadow: 0 20px 40px rgba(55, 138, 221, 0.35); }
.card-notas:hover  { box-shadow: 0 20px 40px rgba(155, 77, 202, 0.35); }
.card-pesquisas:hover { box-shadow: 0 20px 40px rgba(229, 64, 64, 0.35); }
.card-sobre:hover  { box-shadow: 0 20px 40px rgba(192, 240, 251, 0.30); }

/* ── Colour tags & utility (kept for other uses) ── */
.tag-blue { color: var(--blue); }
.tag-purple { color: var(--purple); }
.tag-red { color: var(--red); }

.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-red { color: var(--red); }
.text-cyan { color: var(--accent); }

/* Home split previews */
.home-split-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (max-width: 900px) {
  .home-split-container {
    grid-template-columns: 1fr;
  }
}

.split-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.split-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.split-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-title);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s;
}

.split-link:hover {
  color: var(--text);
}

/* Home Essays list styles */
.essay-preview-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.essay-preview-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.essay-preview-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.essay-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.essay-card-meta {
  display: flex;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.essay-card-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.4;
}

.essay-card-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.essay-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.essay-read-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.essay-read-more {
  font-size: 0.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Home Micro-timeline styles */
.notes-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.timeline-card-preview {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s var(--ease);
}

.timeline-card-preview:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.note-time {
  font-size: 0.7rem;
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 600;
}

.note-text {
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-line;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Quiz CTA Banner */
.quiz-cta-banner {
  background: linear-gradient(135deg, rgba(55, 138, 221, 0.05), rgba(155, 77, 202, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .quiz-cta-banner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }
}

.quiz-cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

@media (max-width: 900px) {
  .quiz-cta-content {
    align-items: center;
  }
}

.quiz-cta-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text);
}

.quiz-cta-text {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 650px;
  font-size: 0.95rem;
}

.quiz-cta-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
}

.glowing-badge-img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(192, 240, 251, 0.15));
  animation: float-badge 6s infinite ease-in-out;
}

@keyframes float-badge {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

/* ================= APP PAGES STYLING ================= */

/* Common View Header */
.view-header {
  margin: 2rem auto 4rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.view-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 2.5rem;
}

.view-desc {
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Filters */
.filters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Essays Grid */
.essays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.essay-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.essay-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.essay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--red));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.essay-card:hover::before {
  opacity: 1;
}

/* Notes Timeline */
.notes-timeline-layout {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(192, 240, 251, 0.2), rgba(155, 77, 202, 0.1) 80%, transparent);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -2.35rem; /* center on the line */
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(192, 240, 251, 0.5);
  z-index: 10;
  transition: all 0.3s;
}

.timeline-node:hover::before {
  background: var(--accent);
  transform: scale(1.2);
}

.timeline-node-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
}

.timeline-node-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timeline-date {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ================= PESQUISAS VIEW & QUIZ ================= */

.pesquisas-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .pesquisas-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.quiz-container-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 480px;
}

@media (max-width: 600px) {
  .quiz-container-card {
    padding: 1.5rem;
  }
}

.quiz-card-badge {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-card-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.quiz-card-desc {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.quiz-meta-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.quiz-meta-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Quiz Active Question State */
.quiz-progress-bar-wrapper {
  margin-bottom: 2rem;
}

.quiz-progress-text {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.quiz-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--accent));
  transition: width 0.4s var(--ease);
}

.quiz-question-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s var(--ease);
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.option-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.quiz-option.selected {
  background: rgba(192, 240, 251, 0.03);
  border-color: var(--accent);
}

.quiz-option.selected .option-radio-dot {
  border-color: var(--accent);
}

.quiz-option.selected .option-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* Quiz Result State */
.quiz-result-state {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.result-celebration {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  animation: pulse-glow 2s infinite alternate var(--ease);
}

.result-trophy-icon {
  width: 60px;
  height: 60px;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(192, 240, 251, 0.3));
  }
  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(192, 240, 251, 0.6));
  }
}

.result-heading {
  font-family: var(--font-title);
  color: var(--text-dim);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-persona {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--accent), #FFFFFF, var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(192, 240, 251, 0.1);
}

.result-desc {
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 500px;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.quiz-email-capture {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.75rem;
  width: 100%;
  max-width: 500px;
  text-align: left;
}

.quiz-email-capture h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.quiz-email-capture p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.email-form {
  display: flex;
  gap: 0.5rem;
}

.input-email {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: white;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s;
}

.input-email:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(192, 240, 251, 0.15);
}

.quiz-success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: rgba(192, 240, 251, 0.02);
  border: 1px solid rgba(192, 240, 251, 0.15);
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
}

.quiz-success-msg p {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* Benchmarks Card styling */
.benchmarks-directory {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
}

.benchmarks-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benchmarks-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.benchmark-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benchmark-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bench-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.bench-label {
  color: var(--text);
  font-weight: 500;
}

.bench-value {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-title);
}

.bench-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  overflow: hidden;
}

.bench-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 99px;
}

/* ================= SOBRE / BIO VIEW ================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-bio-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 2.75rem;
}

.about-title-label {
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.98rem;
}

.bio-content strong {
  color: var(--text);
}

.social-networks-list {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

/* Right Column: Hardware Terminal */
.about-hardware-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.badge-display-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-badge-img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(192, 240, 251, 0.1));
}

.terminal-card {
  width: 100%;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: #0c0c0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  pointer-events: none;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.font-mono {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

.text-dim { color: rgba(255, 255, 255, 0.35); }
.text-green { color: #50fa7b; }
.text-cyan { color: var(--accent); }
.text-purple { color: #bd93f9; }

/* ================= MODAL / READER ================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #060606;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  z-index: 20;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
}

.modal-body-content {
  padding: 4rem 3rem 3rem 3rem;
}

@media (max-width: 600px) {
  .modal-body-content {
    padding: 3rem 1.5rem 1.5rem 1.5rem;
  }
}

.modal-article-tag {
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.modal-article-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.modal-article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.modal-article-body {
  color: #D1D5DB;
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-article-body p {
  margin-bottom: 1.5rem;
}

.modal-article-body h3 {
  font-family: var(--font-title);
  color: var(--text);
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem 0;
  font-weight: 600;
}

.modal-article-body pre {
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.modal-article-body code {
  color: var(--accent);
}

/* ================= FOOTER ================= */

.footer-container {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(2, 2, 2, 0.8);
  padding: 4rem 2rem;
  margin-top: auto;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .footer-brand {
    align-items: center;
  }
}

.footer-logo {
  height: 38px;
  width: auto;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-credits {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .footer-credits {
    text-align: center;
    align-items: center;
  }
}

/* Utilities */
.d-none { display: none !important; }
.mt-4 { margin-top: 1rem !important; }
