/* =========================================
   Tech Glossary Hub
   Global Styles
========================================= */

/* =========================================
   CSS Variables & Theme
========================================= */

:root {
  /* Spider-Man Dark Theme (Primary) */
  --bg-primary: #080b10;
  --bg-secondary: #0d1117;
  --bg-tertiary: #111722;
  --bg-code: #05070a;

  --border-color: #202938;
  --border-hover: #334155;

  --text-primary: #ffffff;
  --text-secondary: #a4afbf;
  --text-muted: #8491a5;

  --primary-color: #e10600;
  --primary-hover: #ff1711;
  --accent-color: #3399ff;
  --accent-dark: #0066cc;

  --shadow-color: rgba(0, 0, 0, 0.25);
  --primary-shadow: rgba(225, 6, 0, 0.2);

  --shadow-sm: 0 4px 12px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 12px 30px rgba(16, 24, 40, 0.08);

  --transition: all 0.3s ease;
  --transition-speed: 0.3s;
}

/* =========================================
   Light Theme
========================================= */

body[data-theme="light"] {
  --bg-primary: #f4f7fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eef2f7;
  --bg-code: #f1f5f9;
  --border-color: #dbe2ea;
  --border-hover: #b8c4d1;
  --text-primary: #111827;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary-color: #d90400;
  --primary-hover: #b80300;
  --accent-color: #0066cc;
  --accent-dark: #0052a3;
  --shadow-color: rgba(15, 23, 42, 0.1);
  --primary-shadow: rgba(217, 4, 0, 0.15);
}

/* =========================================
   Global
========================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* =========================================
   Navbar
========================================= */

.site-navbar {
  background: var(--bg-secondary);
  padding: 0.9rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary) !important;
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary-color);
  font-size: 1.1rem;
}

.brand:hover {
  color: var(--text-primary) !important;
}

.brand-text {
  color: var(--text-primary);
}

/* Navigation */
.navbar-nav {
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  padding: 0.55rem 0.85rem !important;
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* =========================================
   Theme Toggle
========================================= */

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.theme-toggle:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: rotate(15deg);
}

/* =========================================
   Hero
========================================= */

.hero-section {
  padding: 6rem 0;

  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 55%, #eef5ff 100%);
}

.hero-badge {
  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  padding: 0.5rem 0.9rem;

  border-radius: 50px;

  background: rgba(13, 110, 253, 0.1);

  color: var(--primary-color);

  font-size: 0.85rem;

  font-weight: 600;
}

.hero-title {
  margin-top: 1.5rem;

  color: var(--text-primary);

  font-size: clamp(2.5rem, 5vw, 4.2rem);

  line-height: 1.08;

  font-weight: 800;

  letter-spacing: -0.04em;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-description {
  max-width: 650px;

  margin-top: 1.5rem;

  color: var(--text-muted);

  font-size: 1.1rem;

  line-height: 1.8;
}

.hero-search {
  max-width: 700px;

  margin-top: 2rem;
}

.hero-search .input-group {
  padding: 0.35rem;

  border-radius: 14px;

  background: #ffffff;

  box-shadow: var(--shadow-md);
}

.hero-search .input-group-text {
  border: none;

  background: transparent;

  color: var(--text-muted);
}

.hero-search .form-control {
  border: none;

  box-shadow: none;

  padding: 0.8rem;
}

.hero-search .btn {
  border-radius: 10px !important;

  padding: 0.75rem 1.5rem;
}

/* =========================================
   Hero Card
========================================= */

.hero-card {
  margin-top: 2rem;

  padding: 2.5rem;

  border: 1px solid var(--border-color);

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.85);

  box-shadow: var(--shadow-md);
}

.hero-card-icon {
  width: 70px;
  height: 70px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 1.5rem;

  border-radius: 18px;

  background: rgba(13, 110, 253, 0.1);

  color: var(--primary-color);

  font-size: 2rem;
}

.hero-card h3 {
  color: var(--text-primary);

  font-size: 1.5rem;

  font-weight: 700;
}

.hero-card p {
  margin-top: 1rem;

  color: var(--text-muted);

  line-height: 1.7;
}

/* =========================================
   Hero Statistics
========================================= */

.hero-stats {
  display: flex;

  gap: 1rem;

  margin-top: 2rem;

  padding-top: 1.5rem;

  border-top: 1px solid var(--border-color);
}

.hero-stats div {
  flex: 1;

  text-align: center;
}

.hero-stats strong {
  display: block;

  color: var(--text-primary);

  font-size: 1.35rem;
}

.hero-stats span {
  display: block;

  margin-top: 0.25rem;

  color: var(--text-muted);

  font-size: 0.8rem;
}

/* =========================================
   Sections
========================================= */

.section-padding {
  padding: 6rem 0;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading > span {
  color: var(--primary-color);

  font-size: 0.8rem;

  font-weight: 700;

  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin-top: 0.6rem;

  color: var(--text-primary);

  font-size: 2.2rem;

  font-weight: 750;
}

.section-heading p {
  max-width: 600px;

  margin: 0.75rem auto 0;

  color: var(--text-muted);
}

/* =========================================
   Category Cards
========================================= */

.category-card {
  height: 100%;

  padding: 2rem;

  border: 1px solid var(--border-color);

  border-radius: 18px;

  background: var(--bg-secondary);

  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);

  border-color: rgba(13, 110, 253, 0.3);

  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 55px;
  height: 55px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 1.25rem;

  border-radius: 14px;

  background: rgba(13, 110, 253, 0.1);

  color: var(--primary-color);

  font-size: 1.5rem;
}

.category-card h3 {
  color: var(--text-primary);

  font-size: 1.2rem;

  font-weight: 700;
}

.category-card p {
  margin-top: 0.8rem;

  color: var(--text-muted);

  line-height: 1.7;
}

.category-card > span {
  display: inline-block;

  margin-top: 0.5rem;

  color: var(--primary-color);

  font-size: 0.85rem;

  font-weight: 700;
}

/* =========================================
   Glossary Preview
========================================= */

.glossary-preview {
  background: var(--section-bg);
}

/* =========================================
   Footer
========================================= */

.site-footer {
  position: relative;
  padding: 5rem 0 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);
}

.footer-project-header {
  max-width: 700px;
  padding-bottom: 2.5rem;
  text-align: center;
  margin: 0 auto;
}

.footer-project-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0;
}

.footer-project-header h2 span {
  color: var(--primary-color);
}

.footer-project-tagline {
  max-width: 520px;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-main {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-column {
  height: 100%;
}

.footer-column h5 {
  margin-bottom: 1.1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-copyright,
.footer-about-text,
.footer-built-with {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-built-with {
  margin-top: 1rem;
}

.footer-built-with strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-weight: 650;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-social-link,
.footer-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.footer-links a i,
.footer-social-link i,
.footer-project-link i {
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease;
}

.footer-links a:hover,
.footer-social-link:hover,
.footer-project-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-links a:hover i,
.footer-social-link:hover i,
.footer-project-link:hover i {
  transform: translateX(2px);
}

.footer-social-links,
.footer-portfolio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.footer-social-link,
.footer-portfolio a {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  transition: var(--transition);
}

.footer-social-link:hover,
.footer-portfolio a:hover {
  border-color: var(--primary-color);
  background: rgba(225, 6, 0, 0.08);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-portfolio a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-divider {
  margin: 0 0 1.5rem;
  border-color: var(--border-color);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-made-with {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-made-with strong {
  color: var(--text-secondary);
  font-weight: 650;
}

.heart {
  display: inline-block;
  margin: 0 0.15rem;
  color: var(--primary-color);
  animation: footerHeartBeat 1.8s ease-in-out infinite;
}

@keyframes footerHeartBeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 3.5rem;
  }

  .footer-project-header {
    padding-bottom: 2rem;
  }

  .footer-main {
    padding: 2rem 0;
  }

  .footer-column {
    height: auto;
  }
}

/* =========================================
   Dark Mode Foundation
========================================= */

body[data-theme="dark"] {
  --section-bg: var(--bg-primary);
  --card-bg: var(--bg-secondary);
  --text-color: var(--text-primary);
  --heading-color: var(--text-primary);
  --muted-color: var(--text-muted);
}

body[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #0b1120 0%, #111827 55%, #0f1d35 100%);
}

body[data-theme="dark"] .hero-card {
  background: rgba(17, 24, 39, 0.9);
}

body[data-theme="dark"] .hero-search .input-group {
  background: #111827;
}

body[data-theme="dark"] .hero-search .form-control {
  background: #111827;

  color: #e5e7eb;
}

body[data-theme="dark"] .hero-search .form-control::placeholder {
  color: #64748b;
}

body[data-theme="light"] .hero-section {
  background:
    radial-gradient(circle at 85% 35%, rgba(0, 102, 204, 0.1), transparent 30%),
    radial-gradient(circle at 15% 80%, rgba(225, 6, 0, 0.08), transparent 30%),
    var(--bg-primary);
}

body[data-theme="light"] .hero-card,
body[data-theme="light"] .hero-search .input-group,
body[data-theme="light"] .floating-card,
body[data-theme="light"] .hero-stat,
body[data-theme="light"] .category-card,
body[data-theme="light"] .term-preview-card,
body[data-theme="light"] .cta-card {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

body[data-theme="light"] .hero-search .form-control {
  color: var(--text-primary);
}

body[data-theme="light"] .hero-search .form-control::placeholder,
body[data-theme="light"] .hero-stat span,
body[data-theme="light"] .floating-card,
body[data-theme="light"] .category-card p,
body[data-theme="light"] .term-preview-card p,
body[data-theme="light"] .cta-card p {
  color: var(--text-muted);
}

body[data-theme="light"] .categories-section,
body[data-theme="light"] .cta-section {
  background: var(--bg-primary);
}

body[data-theme="light"] .featured-section {
  background: var(--bg-tertiary);
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 991px) {
  .navbar-nav {
    margin-top: 1rem;
  }

  .theme-toggle {
    margin-top: 0.75rem;

    margin-left: 0;
  }

  .hero-section {
    padding: 4.5rem 0;
  }

  .hero-card {
    margin-top: 3rem;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 4.5rem 0;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .footer-bottom {
    flex-direction: column;

    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 3.5rem 0;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-search .input-group {
    flex-direction: column;

    padding: 0.5rem;
  }

  .hero-search .input-group-text {
    display: none;
  }

  .hero-search .form-control {
    min-height: 48px;
  }

  .hero-search .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 0.5rem;
  }

  .hero-stats strong {
    font-size: 1.1rem;
  }

  .hero-stats span {
    font-size: 0.7rem;
  }
}

/* =========================================
   Phase 3
   Spider-Man Inspired Home Page
========================================= */

/* =========================================
   Hero Enhancement
========================================= */

.hero-section {
  position: relative;

  min-height: 720px;

  display: flex;

  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 35%,
      rgba(0, 102, 204, 0.18),
      transparent 30%
    ),
    radial-gradient(circle at 15% 80%, rgba(225, 6, 0, 0.12), transparent 30%),
    #05070a;
}

.hero-section::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

  background-size: 45px 45px;

  mask-image: linear-gradient(to bottom, black, transparent);
}

/* Web Decorative Lines */

.hero-web {
  position: absolute;

  width: 350px;

  height: 350px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 50%;
}

.web-one {
  top: -150px;

  right: -80px;
}

.web-two {
  top: -40px;

  right: 80px;

  transform: scale(0.7);
}

.web-three {
  bottom: -200px;

  left: -100px;

  transform: scale(0.8);
}

/* Hero Content */

.hero-section .hero-title {
  color: #ffffff;
}

.hero-section .hero-description {
  color: #a7b0be;
}

/* Hero Badge */

.hero-badge {
  border: 1px solid rgba(225, 6, 0, 0.35);

  background: rgba(225, 6, 0, 0.1);

  color: #ff4b45;
}

/* Hero Buttons */

.hero-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  margin-top: 2rem;
}

.hero-actions .btn-outline-secondary {
  border-color: #334155;

  color: #cbd5e1;
}

.hero-actions .btn-outline-secondary:hover {
  background: #ffffff;

  color: #05070a;
}

/* =========================================
   Hero Search
========================================= */

.hero-search .input-group {
  border: 1px solid #263244;

  background: #0d1117;
}

.hero-search .input-group-text {
  color: #64748b;
}

.hero-search .form-control {
  color: #ffffff;

  background: transparent;
}

.hero-search .form-control::placeholder {
  color: #64748b;
}

/* =========================================
   Hero Visual
========================================= */

.hero-visual {
  position: relative;

  width: 420px;

  height: 420px;

  max-width: 100%;

  margin: 2rem auto 0;

  display: flex;

  align-items: center;

  justify-content: center;
}

.spider-emblem {
  width: 170px;

  height: 170px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: radial-gradient(circle, #e10600 0%, #a30000 70%, #680000 100%);

  border: 2px solid rgba(255, 255, 255, 0.2);

  box-shadow:
    0 0 40px rgba(225, 6, 0, 0.35),
    0 0 100px rgba(0, 102, 204, 0.15);

  color: #ffffff;

  font-size: 4rem;

  z-index: 3;
}

/* Orbit */

.orbit {
  position: absolute;

  border: 1px solid rgba(0, 102, 204, 0.35);

  border-radius: 50%;
}

.orbit-one {
  width: 280px;
  height: 280px;
}

.orbit-two {
  width: 380px;
  height: 380px;

  border-color: rgba(225, 6, 0, 0.2);
}

/* Floating Cards */

.floating-card {
  position: absolute;

  display: flex;

  align-items: center;

  gap: 0.5rem;

  padding: 0.7rem 1rem;

  border: 1px solid #263244;

  border-radius: 10px;

  background: rgba(13, 17, 23, 0.95);

  color: #ffffff;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  font-size: 0.85rem;

  font-weight: 600;

  z-index: 4;
}

.floating-card i {
  color: #e10600;

  font-size: 1rem;
}

.card-top {
  top: 10px;

  left: 50%;

  transform: translateX(-50%);
}

.card-right {
  top: 42%;

  right: -10px;
}

.card-bottom {
  bottom: 10px;

  left: 50%;

  transform: translateX(-50%);
}

.card-left {
  top: 42%;

  left: -10px;
}

/* =========================================
   Hero Statistics
========================================= */

.hero-stats-row {
  position: relative;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 1px;

  margin-top: 5rem;

  border: 1px solid #263244;

  border-radius: 14px;

  overflow: hidden;

  background: #263244;
}

.hero-stat {
  padding: 1.3rem;

  text-align: center;

  background: #0b1017;
}

.hero-stat strong {
  display: block;

  color: #ffffff;

  font-size: 1.5rem;
}

.hero-stat span {
  display: block;

  margin-top: 0.3rem;

  color: #64748b;

  font-size: 0.8rem;
}

/* =========================================
   Categories
========================================= */

.categories-section {
  background: #080b10;
}

.categories-section .section-heading span,
.featured-section .section-heading span {
  color: #e10600;
}

.categories-section .section-heading h2,
.featured-section .section-heading h2 {
  color: #ffffff;
}

.categories-section .section-heading p,
.featured-section .section-heading p {
  color: #8491a5;
}

/* Category Card */

.category-card {
  position: relative;

  overflow: hidden;

  border: 1px solid #202938;

  background: #0d1117;
}

.category-card::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 3px;

  background: linear-gradient(90deg, #e10600, #0066cc);

  transform: scaleX(0);

  transform-origin: left;

  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  border-color: #334155;

  background: #101722;
}

.category-number {
  position: absolute;

  top: 1.25rem;

  right: 1.5rem;

  color: #263244;

  font-size: 2rem;

  font-weight: 800;
}

.category-icon {
  background: rgba(225, 6, 0, 0.1);

  color: #ff332d;
}

.category-card h3 {
  color: #f8fafc;
}

.category-card p {
  color: #8491a5;
}

.category-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-top: 1.5rem;
}

.category-footer span {
  color: #0066cc;

  font-size: 0.85rem;

  font-weight: 700;
}

.category-footer i {
  color: #e10600;

  transition: transform 0.3s ease;
}

.category-card:hover .category-footer i {
  transform: translateX(5px);
}

/* =========================================
   Featured Terms
========================================= */

.featured-section {
  background: #05070a;
}

.term-preview-card {
  height: 100%;

  padding: 2rem;

  border: 1px solid #202938;

  border-radius: 18px;

  background: #0d1117;

  transition: all 0.3s ease;
}

.term-preview-card:hover {
  transform: translateY(-5px);

  border-color: rgba(225, 6, 0, 0.45);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.term-icon {
  width: 55px;
  height: 55px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 1.25rem;

  border-radius: 14px;

  background: rgba(0, 102, 204, 0.12);

  color: #3399ff;

  font-size: 1.5rem;
}

.term-category {
  color: #e10600;

  font-size: 0.75rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.06em;
}

.term-preview-card h3 {
  margin-top: 0.5rem;

  color: #ffffff;

  font-size: 1.25rem;
}

.term-preview-card p {
  margin-top: 0.8rem;

  color: #8491a5;

  line-height: 1.7;
}

.term-preview-card a {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  margin-top: 1rem;

  color: #3399ff;

  font-size: 0.9rem;

  font-weight: 600;
}

.term-preview-card a:hover {
  color: #ffffff;
}

/* =========================================
   CTA
========================================= */

.cta-section {
  padding: 5rem 0;

  background: #080b10;
}

.cta-card {
  position: relative;

  overflow: hidden;

  padding: 4rem 2rem;

  text-align: center;

  border: 1px solid rgba(225, 6, 0, 0.3);

  border-radius: 24px;

  background:
    radial-gradient(circle at center, rgba(225, 6, 0, 0.12), transparent 55%),
    #0d1117;
}

.cta-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(225, 6, 0, 0.06),
    transparent 50%,
    rgba(0, 102, 204, 0.06)
  );
}

.cta-badge {
  display: inline-flex;

  align-items: center;

  gap: 0.4rem;

  padding: 0.45rem 0.8rem;

  border-radius: 50px;

  background: rgba(225, 6, 0, 0.1);

  color: #ff4b45;

  font-size: 0.75rem;

  font-weight: 700;
}

.cta-card h2 {
  margin-top: 1rem;

  color: #ffffff;

  font-size: clamp(2rem, 4vw, 3rem);

  font-weight: 800;
}

.cta-card p {
  max-width: 600px;

  margin: 1rem auto 2rem;

  color: #8491a5;

  line-height: 1.7;
}

.cta-card .btn-light {
  font-weight: 600;
}

/* =========================================
   Responsive Hero
========================================= */

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;

    padding: 5rem 0;
  }

  .hero-visual {
    margin-top: 4rem;
  }
}

@media (max-width: 767px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);

    margin-top: 3rem;
  }
}

@media (max-width: 500px) {
  .hero-visual {
    width: 300px;

    height: 300px;
  }

  .spider-emblem {
    width: 120px;
    height: 120px;

    font-size: 3rem;
  }

  .orbit-one {
    width: 200px;
    height: 200px;
  }

  .orbit-two {
    width: 280px;
    height: 280px;
  }

  .floating-card {
    padding: 0.55rem 0.7rem;

    font-size: 0.7rem;
  }

  .card-right {
    right: -20px;
  }

  .card-left {
    left: -20px;
  }

}

.glossary-header {

  position: relative;

  padding: 5rem 0;

  overflow: hidden;

  background:
    radial-gradient(circle at 50% 0%, rgba(225, 6, 0, 0.15), transparent 45%),
    #05070a;

  border-bottom: 1px solid #202938;
}

.glossary-header::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);

  background-size: 40px 40px;
}

.glossary-badge {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  padding: 0.45rem 0.9rem;

  border-radius: 50px;

  background: rgba(225, 6, 0, 0.1);

  border: 1px solid rgba(225, 6, 0, 0.25);

  color: #ff4b45;

  font-size: 0.8rem;

  font-weight: 700;

  letter-spacing: 0.08em;
}

.glossary-header h1 {
  position: relative;

  margin-top: 1.25rem;

  color: #ffffff;

  font-size: clamp(2.4rem, 5vw, 3.8rem);

  font-weight: 800;
}

.glossary-header p {
  position: relative;

  max-width: 650px;

  margin: 1rem auto 0;

  color: #8491a5;

  line-height: 1.7;
}

.glossary-page {
  min-height: 70vh;

  padding: 4rem 0;

  background: #080b10;
}

/* =========================================
   Toolbar
========================================= */

.glossary-toolbar {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 2rem;

  margin-bottom: 1.5rem;
}

.glossary-search {
  flex: 1;

  max-width: 650px;
}

.glossary-search .input-group {
  padding: 0.3rem;

  border: 1px solid #263244;

  border-radius: 12px;

  background: #0d1117;
}

.glossary-search .input-group-text {
  border: none;

  background: transparent;

  color: #64748b;
}

.glossary-search .form-control {
  border: none;

  box-shadow: none;

  background: transparent;

  color: #ffffff;
}

.glossary-search .form-control::placeholder {
  color: #64748b;
}

.glossary-count {
  min-width: 100px;

  text-align: right;
}

.glossary-count strong {
  color: #ffffff;

  font-size: 1.5rem;
}

.glossary-count span {
  display: block;

  color: #64748b;

  font-size: 0.8rem;
}

/* =========================================
   Glossary Cards
========================================= */

.glossary-card {
  position: relative;

  height: 100%;

  padding: 1.75rem;

  border: 1px solid #202938;

  border-radius: 18px;

  background: #0d1117;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.glossary-card::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 3px;

  background: linear-gradient(90deg, #e10600, #0066cc);
}

.glossary-card:hover {
  transform: translateY(-5px);

  border-color: #344154;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.glossary-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;
}

.glossary-card .term-category {
  color: #3399ff;

  font-size: 0.7rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;
}

.term-number {
  color: #334155;

  font-size: 0.75rem;

  font-weight: 700;
}

.glossary-card h2 {
  margin-top: 1rem;

  color: #ffffff;

  font-size: 1.4rem;

  font-weight: 750;
}

.glossary-card > p {
  margin-top: 0.75rem;

  color: #8491a5;

  line-height: 1.7;
}

/* =========================================
   Syntax
========================================= */

.term-syntax {
  margin-top: 1.25rem;

  padding: 0.9rem;

  border: 1px solid #202938;

  border-radius: 10px;

  background: #080b10;
}

.term-syntax span {
  display: block;

  margin-bottom: 0.4rem;

  color: #e10600;

  font-size: 0.7rem;

  font-weight: 700;

  text-transform: uppercase;
}

.term-syntax code {
  display: block;

  overflow-x: auto;

  color: #cbd5e1;

  font-size: 0.78rem;

  white-space: nowrap;
}

/* =========================================
   Card Footer
========================================= */

.glossary-card-footer {
  margin-top: 1.5rem;

  padding-top: 1rem;

  border-top: 1px solid #202938;
}

.view-term {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  color: #3399ff;

  font-size: 0.85rem;

  font-weight: 700;
}

.view-term i {
  transition: transform 0.3s ease;
}

.view-term:hover {
  color: #ffffff;
}

.view-term:hover i {
  transform: translateX(5px);
}

/* =========================================
   Empty State
========================================= */

.glossary-empty {
  padding: 6rem 1rem;

  text-align: center;
}

.empty-icon {
  width: 70px;
  height: 70px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0 auto 1.25rem;

  border-radius: 50%;

  background: rgba(225, 6, 0, 0.1);

  color: #e10600;

  font-size: 1.7rem;
}

.glossary-empty h3 {
  color: #ffffff;
}

.glossary-empty p {
  color: #64748b;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 767px) {
  .glossary-header {
    padding: 4rem 0;
  }

  .glossary-toolbar {
    align-items: stretch;

    flex-direction: column;

    gap: 1rem;
  }

  .glossary-search {
    max-width: none;
  }

  .glossary-count {
    text-align: left;
  }
}

@media (max-width: 576px) {
  .glossary-filter {
    gap: 0.45rem;
  }

  .filter-btn {
    font-size: 0.75rem;

    padding: 0.45rem 0.75rem;
  }

  .glossary-card {
    padding: 1.5rem;
  }
}

/* =========================================
   Search Focus
========================================= */

.glossary-search .input-group {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.glossary-search .input-group:focus-within {
  border-color: #e10600;

  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

.glossary-search .form-control:focus {
  outline: none;

  box-shadow: none;
}

/* =========================================
   Category Filter Buttons
========================================= */

.glossary-filter {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 0.65rem;

  margin-bottom: 2.5rem;
}

.filter-btn {
  position: relative;

  padding: 0.6rem 1rem;

  border: 1px solid #263244;

  border-radius: 50px;

  background: #0d1117;

  color: #8491a5;

  font-size: 0.8rem;

  font-weight: 650;

  cursor: pointer;

  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.filter-btn:hover {
  border-color: #e10600;

  color: #ffffff;

  transform: translateY(-2px);
}

.filter-btn.active {
  border-color: #e10600;

  background: #e10600;

  color: #ffffff;

  box-shadow: 0 5px 20px rgba(225, 6, 0, 0.2);
}

.filter-btn.active::after {
  content: "";

  position: absolute;

  left: 50%;

  bottom: -5px;

  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: #3399ff;

  transform: translateX(-50%);
}

/* =========================================
   Glossary Card Animation
========================================= */

.glossary-card {
  animation: glossaryCardEnter 0.35s ease both;
}

@keyframes glossaryCardEnter {
  from {
    opacity: 0;

    transform: translateY(12px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* =========================================
   Term Details Page
========================================= */

.term-details-page {
  min-height: 75vh;

  padding: 3rem 0 5rem;

  background: #080b10;
}

/* =========================================
   Breadcrumb
========================================= */

.term-breadcrumb {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 0.6rem;

  margin-bottom: 2rem;

  color: #64748b;

  font-size: 0.8rem;
}

.term-breadcrumb a {
  color: #8491a5;

  text-decoration: none;

  transition: color 0.3s ease;
}

.term-breadcrumb a:hover {
  color: #3399ff;
}

.term-breadcrumb i {
  color: #334155;

  font-size: 0.65rem;
}

.term-breadcrumb span {
  color: #ffffff;
}

/* =========================================
   Main Card
========================================= */

.term-details-card {
  position: relative;

  max-width: 950px;

  margin: 0 auto;

  padding: 2.5rem;

  border: 1px solid #202938;

  border-radius: 22px;

  background: #0d1117;

  overflow: hidden;
}

.term-details-card::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 4px;

  background: linear-gradient(90deg, #e10600, #0066cc, #e10600);
}

/* =========================================
   Header
========================================= */

.term-details-header {
  display: flex;

  align-items: center;

  gap: 1.5rem;

  padding-bottom: 2rem;

  border-bottom: 1px solid #202938;
}

.term-details-icon {
  width: 80px;

  height: 80px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(225, 6, 0, 0.3);

  border-radius: 18px;

  background: rgba(225, 6, 0, 0.1);

  color: #e10600;

  font-size: 2rem;
}

.term-details-category {
  display: inline-block;

  margin-bottom: 0.5rem;

  color: #3399ff;

  font-size: 0.75rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.06em;
}

.term-details-heading h1 {
  margin: 0;

  color: #ffffff;

  font-size: clamp(2rem, 5vw, 3.2rem);

  font-weight: 800;
}

/* =========================================
   Content Sections
========================================= */

.term-content-section {
  padding: 2rem 0;

  border-bottom: 1px solid #202938;
}

.content-section-title {
  display: flex;

  align-items: center;

  gap: 0.8rem;

  margin-bottom: 1rem;
}

.content-icon {
  width: 38px;

  height: 38px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 10px;

  background: rgba(225, 6, 0, 0.1);

  color: #e10600;
}

.content-section-title h2 {
  margin: 0;

  color: #ffffff;

  font-size: 1.15rem;

  font-weight: 700;
}

.term-definition {
  margin: 0;

  color: #a4afbf;

  font-size: 1rem;

  line-height: 1.9;
}

/* =========================================
   Code Blocks
========================================= */

.term-code-block {
  border: 1px solid #202938;

  border-radius: 12px;

  background: #05070a;

  overflow: hidden;
}

.code-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0.7rem 1rem;

  border-bottom: 1px solid #202938;

  background: #0a0e14;
}

.code-header span {
  color: #64748b;

  font-size: 0.7rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.06em;
}

.copy-button {
  display: inline-flex;

  align-items: center;

  gap: 0.4rem;

  border: 0;

  background: transparent;

  color: #8491a5;

  font-size: 0.75rem;

  font-weight: 600;

  cursor: pointer;

  transition: color 0.3s ease;
}

.copy-button:hover {
  color: #ffffff;
}

.term-code-block pre {
  margin: 0;

  padding: 1.25rem;

  overflow-x: auto;
}

.term-code-block code {
  color: #cbd5e1;

  font-family: "Courier New", monospace;

  font-size: 0.9rem;

  line-height: 1.7;

  white-space: pre-wrap;

  word-break: break-word;
}

/* =========================================
   Example
========================================= */

.example-block {
  border-color: rgba(0, 102, 204, 0.25);
}

.example-block .code-header {
  background: rgba(0, 102, 204, 0.06);
}

/* =========================================
   Navigation
========================================= */

.term-navigation {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  padding-top: 2rem;
}

.term-prev-next {
  display: flex;

  gap: 0.7rem;
}

.term-nav-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 0.5rem;

  padding: 0.65rem 1rem;

  border: 1px solid #263244;

  border-radius: 10px;

  background: #111722;

  color: #cbd5e1;

  font-size: 0.8rem;

  font-weight: 650;

  text-decoration: none;

  cursor: pointer;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.term-nav-button:hover {
  border-color: #e10600;

  background: #161d28;

  color: #ffffff;
}

.term-nav-button:disabled {
  opacity: 0.35;

  cursor: not-allowed;
}

.term-nav-button:disabled:hover {
  border-color: #263244;

  background: #111722;

  color: #cbd5e1;
}

/* =========================================
   Not Found
========================================= */

.term-not-found {
  max-width: 650px;

  margin: 4rem auto;

  padding: 4rem 2rem;

  border: 1px solid #202938;

  border-radius: 20px;

  background: #0d1117;

  text-align: center;
}

.not-found-icon {
  width: 75px;

  height: 75px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto 1.5rem;

  border-radius: 50%;

  background: rgba(225, 6, 0, 0.1);

  color: #e10600;

  font-size: 2rem;
}

.term-not-found h1 {
  color: #ffffff;

  font-size: 1.8rem;
}

.term-not-found p {
  margin: 0.8rem 0 1.5rem;

  color: #8491a5;

  line-height: 1.7;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 767px) {
  .term-details-page {
    padding-top: 2rem;
  }

  .term-details-card {
    padding: 1.5rem;

    border-radius: 16px;
  }

  .term-details-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .term-details-icon {
    width: 65px;

    height: 65px;

    font-size: 1.6rem;
  }

  .term-navigation {
    align-items: stretch;

    flex-direction: column;
  }

  .term-prev-next {
    width: 100%;
  }

  .term-prev-next .term-nav-button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .term-code-block code {
    font-size: 0.78rem;
  }

  .term-breadcrumb {
    font-size: 0.72rem;
  }
}

/* =========================================
   Categories Page
========================================= */

.categories-page-header {
  padding: 5rem 0 4rem;

  background: var(--bg-primary);

  border-bottom: 1px solid var(--border-color);
}

.categories-badge {
  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  margin-bottom: 1rem;

  padding: 0.45rem 0.9rem;

  border: 1px solid var(--primary-color);

  border-radius: 50px;

  background: rgba(225, 6, 0, 0.08);

  color: var(--primary-color);

  font-size: 0.7rem;

  font-weight: 750;

  letter-spacing: 0.08em;
}

.categories-page-header h1 {
  margin: 0 0 1rem;

  color: var(--text-primary);

  font-size: clamp(2rem, 5vw, 3.5rem);

  font-weight: 850;
}

.categories-page-header p {
  max-width: 650px;

  margin: 0 auto;

  color: var(--text-secondary);

  line-height: 1.8;
}

/* =========================================
   Categories Main
========================================= */

.categories-page {
  min-height: 70vh;

  padding: 4rem 0 6rem;

  background: var(--bg-primary);
}

/* =========================================
   Category Statistics
========================================= */

.category-page-stats {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1rem;

  max-width: 850px;

  margin: 0 auto 3rem;
}

.category-stat {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0.8rem;

  padding: 1.2rem;

  border: 1px solid var(--border-color);

  border-radius: 14px;

  background: var(--bg-secondary);
}

.category-stat-icon {
  width: 42px;

  height: 42px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 10px;

  background: rgba(225, 6, 0, 0.08);

  color: var(--primary-color);
}

.category-stat div {
  display: flex;

  flex-direction: column;
}

.category-stat strong {
  color: var(--text-primary);

  font-size: 1.2rem;

  line-height: 1.2;
}

.category-stat span {
  color: var(--text-muted);

  font-size: 0.7rem;
}

/* =========================================
   Category Page Card
========================================= */

.category-page-card {
  position: relative;

  display: flex;

  gap: 1.5rem;

  min-height: 390px;

  padding: 2rem;

  border: 1px solid var(--border-color);

  border-radius: 20px;

  background: var(--bg-secondary);

  overflow: hidden;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.category-page-card:hover {
  transform: translateY(-6px);

  border-color: var(--primary-color);

  box-shadow: 0 18px 45px var(--shadow-color);
}

/* Spider-Man Web Accent */

.category-page-card::before {
  content: "";

  position: absolute;

  width: 180px;

  height: 180px;

  top: -90px;

  right: -90px;

  border: 1px solid rgba(225, 6, 0, 0.15);

  border-radius: 50%;
}

.category-page-card::after {
  content: "";

  position: absolute;

  width: 120px;

  height: 120px;

  bottom: -60px;

  left: -60px;

  border: 1px solid rgba(51, 153, 255, 0.12);

  border-radius: 50%;
}

/* =========================================
   Category Number
========================================= */

.category-page-number {
  position: absolute;

  top: 1rem;

  right: 1.5rem;

  color: var(--border-hover);

  font-size: 3.5rem;

  font-weight: 900;

  line-height: 1;
}

/* =========================================
   Category Icon
========================================= */

.category-page-icon {
  position: relative;

  z-index: 1;

  width: 64px;

  height: 64px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-top: 0.2rem;

  border: 1px solid rgba(225, 6, 0, 0.25);

  border-radius: 16px;

  background: rgba(225, 6, 0, 0.08);

  color: var(--primary-color);

  font-size: 1.7rem;
}

/* =========================================
   Category Content
========================================= */

.category-page-content {
  position: relative;

  z-index: 2;

  flex: 1;

  padding-top: 0.2rem;
}

.category-page-label {
  color: var(--accent-color);

  font-size: 0.65rem;

  font-weight: 750;

  letter-spacing: 0.1em;
}

.category-page-content h2 {
  margin: 0.4rem 0 0.8rem;

  padding-right: 4rem;

  color: var(--text-primary);

  font-size: 1.5rem;

  font-weight: 800;
}

.category-page-content > p {
  margin-bottom: 1.5rem;

  color: var(--text-secondary);

  font-size: 0.88rem;

  line-height: 1.7;
}

/* =========================================
   Term Preview
========================================= */

.category-term-preview {
  margin-bottom: 1.5rem;
}

.category-term-preview > span {
  display: block;

  margin-bottom: 0.6rem;

  color: var(--text-muted);

  font-size: 0.65rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.06em;
}

.category-term-list {
  display: flex;

  flex-wrap: wrap;

  gap: 0.45rem;
}

.category-term-list span {
  padding: 0.35rem 0.6rem;

  border: 1px solid var(--border-color);

  border-radius: 6px;

  background: var(--bg-tertiary);

  color: var(--text-secondary);

  font-size: 0.68rem;
}

/* =========================================
   Category Footer
========================================= */

.category-page-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  margin-top: auto;

  padding-top: 1rem;

  border-top: 1px solid var(--border-color);
}

.category-term-count {
  display: inline-flex;

  align-items: center;

  gap: 0.4rem;

  color: var(--text-muted);

  font-size: 0.75rem;

  font-weight: 650;
}

.category-term-count i {
  color: var(--primary-color);
}

.category-explore-btn {
  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

  color: var(--primary-color);

  font-size: 0.75rem;

  font-weight: 750;

  text-decoration: none;

  transition:
    gap 0.3s ease,
    color 0.3s ease;
}

.category-explore-btn:hover {
  gap: 0.7rem;

  color: var(--primary-hover);
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 991px) {
  .category-page-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .categories-page-header {
    padding: 3.5rem 0 3rem;
  }

  .categories-page {
    padding: 3rem 0 4rem;
  }

  .category-page-stats {
    grid-template-columns: 1fr;
  }

  .category-page-card {
    min-height: auto;

    flex-direction: column;

    padding: 1.5rem;
  }

  .category-page-icon {
    width: 58px;

    height: 58px;
  }

  .category-page-content h2 {
    padding-right: 3rem;

    font-size: 1.3rem;
  }

  .category-page-footer {
    align-items: flex-start;

    flex-direction: column;
  }
}
