/* =========================
   General Styles & Typography
========================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}


body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f8f9fa;
  color: #333;
  overflow-x: hidden;
}

h1, h2, h3 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p {font-size: 16px;}
/* =========================
   Navbar
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  background: #eeeeee;
  position: relative;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  color: #191919;
}


body.dark-mode .navbar .logo {
  color: #f8fafc;
}


/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  width: 30px;
  height: 25px;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #191919;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Links (Desktop) */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center; /* THIS is the key */
  gap: 1rem;
  padding: 0;
}

.nav-links a {
  color: #191919;
  line-height: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 8px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f39c12;
}

/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  /* Sidebar menu */
.nav-links {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  z-index: 1001;
}

/* When menu is active (hamburger clicked) */
.nav-links.active {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
}

  .nav-links a {
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s ease;
  }

  .nav-links a:hover {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: white;
    transform: scale(1.05)
  }

  /* Hero text (example adjustment) */
  .hero h1 {
    font-size: 1.8rem;
    white-space: normal;
  }
}

/* X - Hamburger Animation */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}



/* =========================
   Hero Section
========================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90vh;
  width: 100%;
  background: url("/static/images/Background.png") center/cover no-repeat;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: 2.5rem;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero h1 span.typing {
  display: flex;
  overflow: hidden;
  border-right: 3px solid #fff;
  white-space: nowrap;
  animation: typing 3s steps(20, end), blink 0.7s step-end infinite;
}

.accent {
  color: #222;
  background: white;
  padding: 0 5px;
  border-radius: 5px;
}
.cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Typing Effect */
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { from, to { border-color: transparent; } 50% { border-color: #fff; } }

/* =========================
   Buttons
========================= */
.btn {
  background: linear-gradient(135deg, #222, #444);
  color: #fff;
  padding: 12px 28px;
  margin: 8px;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
}
.btn:hover {
  background: linear-gradient(135deg, #f39c12, #ff914d);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
}
.btn.ghost {
  background: linear-gradient(135deg, #f39c12, #ff914d);
  border: none;
  color: #fff;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn.ghost:hover {
  background: linear-gradient(135deg, #ff914d, #f39c12);
  color: #0e4051;
}

/* == About Section == */
.about {
  padding: 60px 20px;
  background: #f6f6ff;
}
.about-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
}
.about-content {
  flex: 1;
  text-align: left;
}

/* == Timeline Base == */
.timeline {
  position: relative;
  max-width: 800px;
  margin: auto;
  padding: 40px 0;
}

/* Center Line */
.timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  background: #803ccf;
}

/* Progress Line (dynamic) */
.progress-line {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 0;
  border-radius: 3px;
  z-index: 0;
}

/* == Timeline Items == */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  text-align: right;
  padding-right: 60px;
}

.timeline-item.right {
  text-align: left;
  padding-left: 60px;
  left: 50%;
}

/* Timeline Content */
.timeline-content {
  background: #fff;
  padding: 20px;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.active .timeline-content {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(1).active .timeline-content { transition-delay: 0.1s; }
.timeline-item:nth-child(2).active .timeline-content { transition-delay: 0.2s; }
.timeline-item:nth-child(3).active .timeline-content { transition-delay: 0.3s; }
.timeline-item:nth-child(4).active .timeline-content { transition-delay: 0.4s; }
.timeline-item:nth-child(5).active .timeline-content { transition-delay: 0.5s; }

/* Dots */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #bbb;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px #e5dbf6;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item.left::before { right: -12px; }
.timeline-item.right::before { left: -12px; }

.timeline-item:first-child::before {
  top: 0;
  transform: translateY(0);
}
.timeline-item:last-child::before {
  top: auto;
  bottom: 0;
  transform: translateY(0);
}

.timeline-item.active::before {
  background: #803ccf;
  box-shadow: 0 0 10px #a86dff, 0 0 20px #cbb5f8;
}

/* == Responsive (Tablet) == */
@media (max-width: 1024px) {
  .timeline-item {
    width: 280px;
    height: 320px;
    padding: 14px;
  }

  .timeline-item.left {
    left: calc(50% - 290px);
    text-align: center;
  }

  .timeline-item.right {
    left: 50%;
    text-align: center;
  }

  .timeline-content {
    font-size: 12px;        /* slightly smaller for better fit */
    padding: 10px;
    border-radius: 12px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .timeline-content h3 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .timeline-content p {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 768px) {
  .timeline-item {
    width: 190px;
    height: auto;
    padding: 10px;
  }

  .timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  background: #803ccf;
}

  .timeline-item.left {
    left: calc(50% - 190px);
    text-align: center;
  }

  .timeline-item.right {
    left: 50%;
    text-align: center;
  }

  .timeline-content {
    font-size: 11px;
    padding: 4px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .timeline-content h3 {
    font-size: 11px;
  }

  .timeline-content p {
    font-size: 9px;
    line-height: 1.2;
  }
}

/* ============ Docs Section ============= */
.docs {
  padding: 3rem 2rem;
  background: #f8f9fa;
  text-align: center;
}
.docs h2 { font-size: 2rem; margin-bottom: 1rem; color: #222; }
.docs p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #666;
  font-size: 1rem;
}
.docs .doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.doc-card {
  background: #fff;
  border-radius: 16px;
  color: #333;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.doc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(226, 146, 25, 0.08), rgba(0,123,255,0.08));
  opacity: 0;
  transition: opacity 0.4s;
  border-radius: 16px;
  pointer-events: none;
}
.doc-card:hover::before { opacity: 1; }
.doc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(252, 243, 243, 0.15);
}
.doc-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #222;
}
.doc-card p { color: #555; margin-bottom: 15px; font-size: 0.95rem; }
.doc-card .btn {
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f39c12, #ff914d);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(243,156,18,0.25);
  transition: all 0.3s ease;
}
.doc-card .btn:hover {
  background: linear-gradient(135deg, #ff914d, #f39c12);
  box-shadow: 0 5px 12px rgba(243,156,18,0.35);
  transform: translateY(-2px);
}

/* =========================
   Projects
========================= */
.projects { padding: 2rem; }
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.project-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.project-card .btn {
  display: inline-block;
  margin-top: 10px;
}

/* =========================
   Contact
========================= */
.contact { padding: 2rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  background: #fffefe;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f39c12; 
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.4);
  transform: scale(1.02); 
  outline: none;
}
.contact-form button { align-self: flex-start; }

/* =========================
   Services Section
========================= */
.services {
  padding: 60px 20px;
  background: #fff;
}
.service-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  text-align: center;
}

/* =========================
   Clients Section
========================= */
.clients {
  padding: 60px 20px;
  background: #f0f9ff;
}
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.client-logos img {
  max-height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.client-logos img:hover { transform: scale(1.1); }

/* =========================
   CTA Section
========================= */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(to right, #00c6ff, #0072ff);
  color: white;
  text-align: center;
}
.cta-section .btn {
  background: white;
  color: #0072ff;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

/* =========================
   Footer
========================= */
footer {
  background: #2a2f48;
  color: white;
  text-align: center;
  padding: 1rem;
  width: 100%;
}


/* ========================
   Popup screen
======================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(2px);
}
.popup-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px 30px;
  width: min(400px, 90%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  animation: popupFade 0.3s ease;
}
.popup-box h2 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
  color: #222;
}
.popup-box p {
  font-style: italic;
  color: #333;
  margin-bottom: 18px;
}
.popup-box button {
  background: linear-gradient(135deg, #f39c12, #ff914d);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.popup-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #777;
}
@keyframes popupFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ====== General Layout ====== */
.doc_content {
  padding: 3rem 1rem;
  background: #f9fafb; /* light gray background */
  font-family: 'Aptos', 'Cambria',Arial, sans-serif;
  color: #333;
  align-items: flex-start;
  line-height: 1.6;
}

/* ====== Section Headings ====== */
.doc_content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #222;
}

/* ====== Article Boxes ====== */
.doccontentbox {
  background: white;
  padding: 1.8rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doccontentbox:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.doccontentbox h3 {
  font-size: 30px;
  margin-bottom: 1rem;
  color: #313d44; /* blue accent */
}

.doccontentbox h4 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
  color: #444;
}

/* ====== Paragraphs ====== */
.doccontentbox p {
  margin-bottom: 0.3rem;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}

.doccontentbox b {
  margin-bottom: 0.90rem;
  font-size: 17px;
}

.doccontentbox span{
    font-size: 16px;
}

.doccontentbox .run-guide{
    font-size: 15px;
}

/* ====== Code Blocks ====== */
.pre-wrapper {
  position: relative; /* for absolute positioning of button */
  margin-bottom: 1rem;
}

pre {
  background: #1e1e1e;
  color: #e5e5e5;
  padding: 10px 14px;
  border-radius: 8px;
  overflow-x: auto;      /* scrollable code */
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre;
  margin: 0;
}

pre code {
  font-family: "Fira Code", monospace;
  display: block;
}

.copy-btn {
  position: absolute;   /* now relative to wrapper, not pre */
  top: 8px;
  right: 8px;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: #bbb;
  font-size: 14px;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}

.copy-btn:hover {
  background: #444;
  color: white;
}

.copied-text {
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}



/* ===== Layout ===== */
.doc-layout {
  display: flex;
  gap: 2rem;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 220px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  height: fit-content;
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 80px;
  height: fit-content;
  align-self: flex-start;
}

.sidebar-wrapper{
  position: relative;
  width:220px;
  flex-shrink:0;
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #007acc;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.8rem;
}

.sidebar a {
  display: block;
  padding: 8px 12px;
  margin: 4px 0;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  background: #f1f5f9;
  color: #0077ff;
}

.sidebar a.active {
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
  transform: translateX(5px);
  transition: all 0.1s ease-in-out;
}

/* ===== Main Content Area ===== */
.content-area {
  flex: 1;
  position: sticky;
  left: 20%;
  max-width: 900px;
}

/* Reuse your earlier card styles */
.doccontentbox {
  background: #e6f1ea;
  padding: 1.8rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}


/* Active link highlight */
.sidebar a.active {
  font-weight: bold;
  color: #007acc;
  border-left: 3px solid #007acc;
  padding-left: 8px;
  background: rgba(0, 122, 204, 0.1);
  border-radius: 4px;
}


/* =========================
   Docs Layout Responsive
========================= */
@media (max-width: 768px) {
  .doc-layout {
    flex-direction: column;
  }

  /* Sidebar as fully floating text (no background) */
  .sidebar {
    position: fixed;
    top: 60px;
    left: -260px;
    width: auto; /* width based on content */
    height: auto;
    background: none; /* no background at all */
    box-shadow: none;
    border-radius: 0;
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: visible;
    padding: 0.5rem 1rem;
  }

  .sidebar.active {
    left: 20px; /* slide in from left */
  }

  /* Floating premium text inside sidebar */
  .sidebar p,
  .sidebar a,
  .sidebar li {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    text-shadow: 0 2px 12px rgba(243, 156, 18, 0.8), 
                 0 0 8px rgba(255, 145, 77, 0.6); /* glowing premium text */
    margin-bottom: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  .sidebar a:hover {
    text-shadow: 0 2px 18px rgba(255, 145, 77, 1);
    color: #ff914d;
  }

  /* Overlay behind sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
  }

  .sidebar-overlay.show {
    display: block;
  }

  /* Hamburger Button */
  .hamburger-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ffffffb3, #f0f0f0b3);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100;
    transition: background 0.4s ease, transform 0.3s ease;
    overflow: hidden;
  }

  .hamburger-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #f39c12, #ff914d);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
  }

  .hamburger-btn:hover::before {
    opacity: 0.6;
    animation: gradientShift 4s linear infinite;
  }

  .hamburger-btn:hover {
    transform: scale(1.1);
  }

  /* Hamburger lines */
  .hamburger-btn span {
    position: absolute;
    display: block;
    width: 28px;
    height: 3px;
    background: #222;
    border-radius: 2px;
    transition: all 0.4s ease;
  }

  .hamburger-btn span:nth-child(1) { top: 14px; }
  .hamburger-btn span:nth-child(2) { top: 24px; }
  .hamburger-btn span:nth-child(3) { top: 34px; }

  .hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 24px;
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 24px;
  }

  .hamburger-btn.active {
    background: linear-gradient(135deg, #f39c12, #ff914d);
  }

  .hamburger-btn.active span {
    background: #fff;
  }

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


.doccontentbox h3 {
  font-size: 25px;
  margin-bottom: 1rem;
  color: #313d44; /* blue accent */
}

.doccontentbox h4 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: #444;
}

/* ====== Paragraphs ====== */
.doccontentbox p {
  margin-bottom: 0.3rem;
  font-size: 13px;
  line-height: 1.4; 
}

.doccontentbox b {
  margin-bottom: 0.90rem;
  font-size: 15px;
}

.doccontentbox span{
    font-size: 12px;
}

.doccontentbox .run-guide{
    font-size: 12px;
}

/* ====== Code Blocks ====== */
.pre-wrapper {
  position: relative; /* for absolute positioning of button */
  margin-bottom: 1rem;
}

pre {
  background: #1e1e1e;
  color: #e5e5e5;
  padding: 10px 14px;
  border-radius: 8px;
  overflow-x: auto;      /* scrollable code */
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre;
  margin: 0;
}

pre code {
  font-family: "Fira Code", monospace;
  display: block;
}

.copy-btn {
  position: absolute;   /* now relative to wrapper, not pre */
  top: 8px;
  right: 8px;
  background: #2d2d2d;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: #bbb;
  font-size: 14px;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}

.copy-btn:hover {
  background: #444;
  color: white;
}

.copied-text {
  color: #fff;
  font-weight: bold;
  font-size: 12px;
}



/* =========================
   Media Queries
========================= */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero .cta { flex-direction: row; justify-content: center; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form { max-width: 600px; }
  .nav-links a { font-size: 1rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: 1.5rem; }
}


.toast {
  position: fixed;
  left: -350px;
  top: 15px;
  max-width: 85vw;      /* Prevents overflow on small screens */
  word-wrap: break-word; /* Wrap text instead of pushing width */
  background: #0A8A46;
  color: white;
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  transition: all 0.5s ease;
  z-index: 9999;
}

.toast.show {
  left: 20px;
}

/* ======================
   SALES DASHBOARD – BASE
====================== */

/* Hero + Page Wrapper */
.project-hero,
.dark-pro {
  padding: 12px 0;
  background: #f0f9ff;
  text-align: center;
}

body.dark-mode .project-hero h1,
body.dark-mode .project-hero p {
  color: #0b1220;
}


/* ======================
   DARK MODE BASE
====================== */
body.dark-mode {
  background: #0b1220;
  color: #e5e7eb;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #f8fafc;
}

/* ======================
   SALES SECTION CARD
====================== */
.sales-section {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  margin: 30px auto;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

body.dark-mode .sales-section {
  background: #0f172a;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ======================
   KPI GRID
====================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

body.dark-mode .kpi-card {
  background: linear-gradient(180deg, #111827, #0b1220);
  border: 1px solid #1f2937;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

body.dark-mode .kpi-card p {
  color: #38bdf8;
  font-weight: 600;
}

/* ======================
   DASHBOARD IMAGE
====================== */
.dashboard-image img {
  max-width: 100%;
  border-radius: 12px;
}

body.dark-mode .dashboard-frame,
body.dark-mode .dashboard-image {
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border: 1px solid #1f2937;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* ======================
   README BOX
====================== */
body.dark-mode .readme-box {
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border: 1px solid #1f2937;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* ======================
   TIMELINE (DARK ONLY)
====================== */
body.dark-mode .timeline-content {
  background: #1f2937;
  color: #e5e7eb;
}

/* ======================
   PROJECT FLOW (Auto width + Equal height)
====================== */

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 6px;
}

.section-subtitle,
.overview-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Grid auto-adjusts when steps are added/removed */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: stretch;   /* equal height */
}

/* Flow cards */
.flow-step {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.flow-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.flow-step h4 {
  margin: 6px 0 4px;
  font-size: 1.1rem;
}

.flow-step p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Arrow (optional if you still use it) */
.flow-arrow {
  display: none; /* grid replaces arrows visually */
}

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

body.dark-mode .flow-step {
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

body.dark-mode .flow-step p {
  color: #cbd5f5;
}


/* ======================
   TOOLS & INSIGHTS
====================== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.overview-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto; 
}

/* CENTER THE HEADERS */
.overview-card h3 {
  text-align: center;
  margin-bottom: 22px;
}

/* Dark mode card */
body.dark-mode .overview-card {
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* ======================
   Tools (logo style)
====================== */
.tools-logos {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* centers logos nicely */
  margin: 24px auto 32px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tool-item img {
  height: 48px;
  transition: transform 0.3s ease;
}

.tool-item img:hover {
  transform: scale(1.08);
}

.tool-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
}

body.dark-mode .tool-item span {
  color: #cbd5f5;
}

/* ======================
   Key Insights (no box)
====================== */
.key-insights {
  margin-top: 16px;
  padding-left: 22px;      /* proper bullet alignment */
  text-align: left;        /* THIS is the key */
  max-width: auto;        /* keeps it neat */
  margin-left: 10px;
  margin-right: auto;      /* centers the block, not the text */
}

.key-insights li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}


body.dark-mode .key-insights li {
  color: #e5e7eb;
}


/* ======================
   KPI Cards – Light Mode
====================== */
.kpi-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* KPI title */
.kpi-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #475569; /* same tone as flow-step text */
  margin-bottom: 8px;
}

/* KPI value */
.kpi-card p {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a; /* strong but not pure black */
  margin: 0;
}

body.dark-mode .kpi-card {
  background: linear-gradient(180deg, #111827, #0b1220);
  border: 1px solid #1f2937;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

body.dark-mode .kpi-card p {
  color: #38bdf8;
}



/* ======================
   Docs Content Boxes
====================== */
body.dark-mode .doccontentbox {
  background: #1f2937;
  color: #e5e7eb;
}

body.dark-mode .doccontentbox h3 {
  color: #38bdf8;
}

body.dark-mode .doccontentbox h4 {
  color: #e5e7eb;
}

/* ======================
   Navbar / Sidebar
====================== */
body.dark-mode .navbar,
body.dark-mode .sidebar {
  background: #313e59;
}

body.dark-mode .nav-links a,
body.dark-mode .sidebar a {
  color: #e5e7eb;
}

body.dark-mode .sidebar a.active {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
}


/* ======================
   Footer
====================== */
body.dark-mode footer {
  background: #111827;
  color: #e5e7eb;
}

/* ======================
   Theme Switch (Orange Gradient)
====================== */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switch {
  position: relative;
  width: 52px;
  height: 26px;
  display: flex;
  align-items: center;
}

.theme-switch input {
  opacity: 0;
}

.slider {
  position: relative;
  overflow: hidden;  
}

.sun-icon,
.moon-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  z-index: 1;
  pointer-events: none;
}


.sun-icon {
  left: 7px;
  color: #facc15;
}

.moon-icon {
  right: 8px;
  color: #1e293b; /* dark blue */
}


.slider {
  position: absolute;
  display: flex;
  align-items: center;
  inset: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
  border-radius: 34px;
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.theme-switch input:checked + .slider::before {
  transform: translateX(25px);
}