 :root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --accent: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #020617;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.7);
  --surface: rgba(15, 23, 42, 0.82);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] {
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --bg-primary: #f8fafc;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.88);
  --surface: rgba(255, 255, 255, 0.92);
  --border-color: rgba(15, 23, 42, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 22%),
    var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: var(--transition);
}

body.error-page {
  min-height: 100vh;
}

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

section,
.section-pad {
  padding: 110px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.06));
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

#scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 4px;
  width: 0;
  z-index: 10000;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--warning));
}

#mouse-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0) 68%);
  filter: blur(4px);
  z-index: 1;
}

#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #020617 0%, #0f172a 55%, #111827 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  padding: 2rem;
}

.splash-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 28px;
  font-size: 2.2rem;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.45);
  animation: pulseGlow 2.2s ease-in-out infinite;
}

.splash-content h1 {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
}

.splash-content p {
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 1.4rem;
}

.splash-loader {
  width: 230px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.splash-loader span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform-origin: left;
  animation: loadingBar 2s ease forwards;
}

@keyframes loadingBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.welcome-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(15, 118, 110, 0.92));
  color: white;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
}

#navbar {
  padding: 1rem 0;
  background: transparent;
  transition: var(--transition);
  z-index: 9998;
}

.navbar-scrolled {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-tools {
  min-width: min(100%, 440px);
}

.search-wrap {
  position: relative;
  min-width: 220px;
}

.search-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

#search-input {
  padding-left: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  color: var(--text-primary);
}

#search-input::placeholder {
  color: var(--text-secondary);
}

#search-input:focus {
  box-shadow: none;
  border-color: var(--secondary);
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  position: relative;
  padding-inline: 0.9rem !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-time {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.theme-toggle,
.github-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  color: var(--text-primary);
  transition: var(--transition);
}

.theme-toggle:hover,
.github-link:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
  color: var(--secondary);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.34), transparent 24%),
    radial-gradient(circle at 85% 25%, rgba(34, 197, 94, 0.18), transparent 22%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%);
  background-size: 200% 200%;
  animation: heroGradient 10s ease infinite;
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.72) 74%);
}

.hero-shell,
.hero-shell .row {
  position: relative;
  z-index: 3;
}

.hero-kicker,
.section-eyebrow,
.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.26);
  color: #bfdbfe;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  margin: 1rem 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--secondary), var(--accent), var(--warning));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientText 4s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  min-height: 42px;
  color: #93c5fd;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.hero-desc {
  max-width: 640px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn-primary-custom,
.btn-outline-custom {
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary-custom {
  color: white;
  background: linear-gradient(135deg, var(--secondary), #1d4ed8);
  border: 0;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.35);
}

.btn-primary-custom:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.45);
}

.btn-outline-custom {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
}

.btn-outline-custom:hover {
  color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.hero-illustration {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-core-card {
  width: min(100%, 360px);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-core-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 26px;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.hero-core-card h3,
.hero-core-card p {
  margin-bottom: 0;
}

.hero-core-card p {
  color: var(--text-secondary);
}

.floating-icons {
  position: absolute;
  inset: 0;
}

.floating-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(147, 197, 253, 0.18);
  animation: float 6s ease-in-out infinite;
}

.icon-a { top: 8%; left: 16%; }
.icon-b { top: 18%; right: 14%; animation-delay: 1s; }
.icon-c { bottom: 20%; left: 10%; animation-delay: 2s; }
.icon-d { bottom: 12%; right: 18%; animation-delay: 0.4s; }

.cyber-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.2);
  animation: spin 22s linear infinite;
}

.ring-1 { width: 320px; height: 320px; }
.ring-2 { width: 230px; height: 230px; border-color: rgba(34, 197, 94, 0.16); animation-direction: reverse; }
.ring-3 { width: 420px; height: 420px; border-color: rgba(245, 158, 11, 0.12); animation-duration: 30s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 20px 50px rgba(37, 99, 235, 0.45); }
  50% { box-shadow: 0 24px 70px rgba(34, 197, 94, 0.4); }
}

.quote-banner {
  padding-top: 0;
}

.quote-card {
  border-radius: 26px;
  padding: 1.1rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
}

.quote-mark {
  color: var(--secondary);
  font-size: 1.5rem;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 1rem 0 0.8rem;
}

.section-heading p:last-child {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.stat-card,
.info-card,
.module-card,
.step-card,
.timeline-item,
.comparison-wrap,
.faq-accordion,
.developer-card,
.developer-photo,
.error-card,
.search-empty,
.quote-card {
  border-radius: 26px;
}

.stat-card {
  padding: 1.5rem;
  min-height: 100%;
  transition: var(--transition);
}

.stat-card:hover,
.info-card:hover,
.module-card:hover,
.step-card:hover,
.timeline-item:hover,
.developer-card:hover,
.developer-photo:hover {
  transform: translateY(-6px) scale(1.01);
}

.stat-icon,
.info-icon,
.module-icon {
  display: inline-grid;
  place-items: center;
  color: #60a5fa;
  font-size: 1.9rem;
}

.stat-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 2rem;
  font-weight: 800;
}

.stat-card p {
  margin: 0;
  color: var(--text-secondary);
}

.info-card,
.step-card,
.timeline-item,
.module-card,
.developer-card,
.developer-photo,
.error-card,
.search-empty {
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
}

.info-card h3,
.module-card h3,
.step-card h3,
.developer-card h3,
.error-card h1 {
  font-weight: 700;
}

.info-card p,
.module-card p,
.step-card p,
.developer-card p,
.timeline-item p,
.search-empty {
  color: var(--text-secondary);
}

.info-icon {
  margin-bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.14);
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 1.1rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary), var(--accent));
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  margin-left: 2.3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.8rem;
  top: 2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.timeline-item h3 {
  margin: 0.9rem 0 0.65rem;
  font-weight: 700;
}

.timeline-item ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.timeline-item li + li {
  margin-top: 0.35rem;
}

.module-card {
  gap: 1rem;
}

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-online {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.module-card p {
  flex: 1 1 auto;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.step-card {
  position: relative;
  min-height: 100%;
}

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.comparison-wrap {
  padding: 1rem;
}

.comparison-table {
  margin-bottom: 0;
}

.comparison-table thead th {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #bfdbfe;
}

.comparison-table td,
.comparison-table th {
  padding: 1rem;
}

.faq-accordion {
  overflow: hidden;
}

.faq-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.faq-accordion .accordion-button {
  background: transparent;
  color: var(--text-primary);
  box-shadow: none;
  font-weight: 600;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
}

.faq-accordion .accordion-body {
  color: var(--text-secondary);
}

.developer-photo {
  width: min(100%, 320px);
  min-height: 320px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 4rem;
  font-weight: 800;
  color: white;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.38), transparent 40%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
}

.developer-card {
  display: grid;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-primary);
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--secondary);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand,
.site-footer h4 {
  font-weight: 700;
}

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

.footer-links a,
.footer-bottom {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--secondary), #1d4ed8);
  color: white;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 9997;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.search-empty {
  margin-bottom: 1.5rem;
}

.error-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.error-card {
  width: min(100%, 560px);
  position: relative;
  z-index: 1;
}

.error-code {
  display: block;
  margin-bottom: 0.75rem;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-card p {
  color: var(--text-secondary);
  margin: 1rem 0 1.5rem;
}

#particles-js canvas {
  display: block;
}

@media (max-width: 991.98px) {
  section,
  .section-pad {
    padding: 90px 0;
  }

  .navbar-tools {
    min-width: 100%;
  }

  .search-wrap {
    min-width: 100%;
  }

  .timeline-list::before {
    left: 0.6rem;
  }

  .timeline-item {
    margin-left: 1.7rem;
  }

  .timeline-item::before {
    left: -2.25rem;
  }
}

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

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

  .quote-card {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .developer-photo {
    min-height: 260px;
    font-size: 3.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 50px;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 30px;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  z-index: 1;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--secondary);
  transform: translateX(5px);
}

.timeline-content h3 {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.timeline-spec {
  background: var(--bg-secondary);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.timeline-spec strong {
  color: var(--secondary);
}

/* Glassmorphism Module Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  transition: var(--transition);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.glass-card:hover::before {
  top: -30%;
  left: -30%;
}

.module-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary), #3B82F6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
}

.module-badge {
  position: absolute;
  top: 20px;
  right: 20px;
}

.module-badge .badge {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 50px;
}

.module-badge .bi-circle-fill {
  font-size: 0.5rem;
  margin-right: 4px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
}

/* Steps */
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary), #3B82F6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.step-arrow {
  text-align: center;
  color: var(--secondary);
  font-size: 1.5rem;
  padding: 10px 0;
}

/* Comparison Table */
.comparison-table {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-table table {
  margin: 0;
  color: var(--text-primary);
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--secondary), #3B82F6);
  color: white;
}

.comparison-table th {
  padding: 15px;
  font-weight: 600;
  text-align: left;
}

.comparison-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr {
  transition: var(--transition);
}

.comparison-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

/* FAQ Accordion */
.accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  margin-bottom: 10px;
  border-radius: 12px !important;
  overflow: hidden;
}

.accordion-button {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  box-shadow: none !important;
  padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
  background: rgba(37, 99, 235, 0.1) !important;
  color: var(--secondary) !important;
}

html[data-theme='dark'] .accordion-button::after,
.accordion-button::after {
  filter: invert(1);
}

html[data-theme='light'] .accordion-button::after {
  filter: none;
}

.accordion-body {
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 20px;
  background: var(--bg-card);
}

/* Developer Section */
.developer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.developer-photo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
  color: white;
  overflow: hidden;
}

.developer-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.developer-card .role {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.developer-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 1.5rem;
}

.developer-socials a {
  width: 42px;
  height: 42px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.developer-socials a:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: var(--dark);
  padding: 60px 0 20px;
  color: var(--text-secondary);
}

footer h5 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

footer ul a:hover {
  color: var(--secondary);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-right: 10px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-3px);
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--secondary), #3B82F6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Glow Effect */
.glow-effect {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* Ripple Effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .timeline-container {
    padding-left: 30px;
  }
  .timeline-line {
    left: 10px;
  }
  .timeline-item {
    padding-left: 20px;
  }
  .timeline-dot {
    left: -30px;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .stat-card {
    padding: 20px 15px;
  }
  #search-input {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3B82F6;
}

/* Selection */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

/* 404 page styles */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
