/* --- Global Resets & Base Styles (Dark Theme) --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* Still a great choice for readability */
     background-color: #1a1a2e; /* Deep, muted dark blue/purple for background */
    color: #e0e0e0;  
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
     transition: background-color 0.5s ease; /* Smooth transition for theme change (if applicable) */
}
 
h1 {
  font-size: 2.8rem;
  min-height: 3.5rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
}
h4 {
    color:#45e9ce;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-left: 0;
}
/* Layout */
.page-layout {
  background:pink;
  color: white;
  display: flex;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  padding:0;
}
/* Main content */
.main-content {
  flex: 1;
  margin-left: 280px;
  margin-top:73px;
  transition: margin-left 0.3s ease;
}

.sidebar-hidden .main-content {
  margin-left: 30px; /* leave space for slim sidebar */
}
/* --- Page Content Container (Dark Theme) --- */
.page-content {
    width: 100%;
     background-color: #2a2a4a; /* Slightly lighter dark blue/purple for content block */
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Deeper shadow for dark mode */
    padding: 30px 40px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
 
/* --- Typography (Dark Theme) --- */
.page-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    color: #e0e0e0; /* White/light grey for main title */
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle text shadow for depth */
}

.page-content h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #e94560; /* Vibrant red/pink for main accent */
    border-radius: 0;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.6); /* Glow effect for the accent */
}

.page-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    color: #c0c0c0; /* Slightly darker light grey for section titles */
    margin-top: 50px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.page-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background-color: #8c73ff; /* A rich purple accent */
    border-radius: 0;
}

.page-content p {
    font-size: 1.05em;
    color:white;
    margin-bottom: 1.5em;
}

/* --- List Styles (UL - Dark Theme) --- */
.page-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2.5em;
}

.page-content ul li {
    position: relative;
    padding: 12px 0 12px 30px;
    margin-bottom: 10px;
    background-color: #3e3e60; /* Darker background for list items */
    border-radius: 0;
    border: 1px solid #4a4a70; /* Subtle darker border */
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.page-content ul li::before {
    content: '•';
    color: #e94560; /* Main accent color for bullets */
    font-size: 1.2em;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
 

.page-content ul li strong {
    color:#45e9ce; /* Brighter for emphasis */
    font-weight:600;
}

/* --- Link Styles (Dark Theme) --- */
.page-content a {
    color:#45e9ce; /* Purple accent for links */
    text-decoration: none;
    border-bottom: 1px solid rgba(140, 115, 255, 0.4);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-content a:hover {
    color: #a08aff; /* Lighter purple on hover */
    border-color: #a08aff;
    text-shadow: 0 0 5px rgba(140, 115, 255, 0.5); /* Subtle glow on hover */
}

/* --- Article Styles (for Real-World Stories - Dark Theme) --- */
.page-content article {
    background-color: #34345a; /* Slightly different dark shade for articles */
    border: 1px solid #44446a;
    border-radius: 0;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
 
.page-content article h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6em;
    color: #e94560; /* Main accent for article titles */
    margin-top: 0;
    margin-bottom: 15px;
    border-left: 4px solid #6c757d; /* A neutral grey accent */
    padding-left: 10px;
}

/* --- Specific Section Adjustments (Dark Theme) --- */
#further-reading ul li {
    background-color: #3e5a5a; /* A dark teal tint for this section */
    border-color: #4a6a6a;
}

#further-reading ul li::before {
    color: #00d2b3; /* Greenish-blue for further reading bullets */
}

#further-reading ul li:hover {
    background-color: #4a6a6a;
    border-color: #5a7a7a;
}

/* --- Responsive Design (Adjusted for Dark Theme) --- */
@media (max-width: 992px) {
    .page-content { padding: 10px 10px 10px 50px;
         max-width: 100%;
    }
    .page-content h1 {
        font-size: 2.5em;
    }
    .page-content h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .page-content { padding: 10px 10px 10px 50px;
         border-radius: 0;
    }
    .page-content h1 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    .page-content h2 {
        font-size: 1.6em;
        margin-top: 40px;
    }
    .page-content p {
        font-size: 1em;
    }
    .page-content ul li {
        padding: 10px 0 10px 25px;
        font-size: 0.95em;
    }
    .page-content article {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .page-content {
        padding: 10px 10px 10px 50px;
    }
    .page-content h1 {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    .page-content h1::after {
        width: 80px;
        height: 4px;
    }
    .page-content h2 {
        font-size: 1.4em;
        margin-top: 30px;
        padding-left: 10px;
    }
    .page-content h2::before {
        width: 4px;
    }
    .page-content ul li {
        margin-bottom: 8px;
    }
    .page-content article h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
}

main.container {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  color: #f4f4f4;
  font-size: 1rem;
  line-height: 1.7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Headings spacing */
main.container h2,
main.container h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color:#e94560;
  font-weight: 700;
  line-height: 1.2;
}

/* Paragraph spacing */
main.container p {
  margin-bottom: 1.25rem;
}

/* Unordered and ordered lists */
main.container ul,
main.container ol {
  margin: 1rem 0 1.5rem 2rem; /* left indent for list items */
  color: #ccc;
}

/* List items */
main.container ul li,
main.container ol li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-weight: 500;
}

/* Strong inside list for emphasis */
main.container ul li strong,
main.container ol li strong {
  color:#f5aeba;
}

/* Optional: style ordered list numbers */
main.container ol {
  list-style-type: decimal;
}

/* Optional: style unordered list bullets */
main.container ul {
  list-style-type: disc;
}
/* Optional: style unordered list bullets */
main.container a {
  color:#45e9ce;
}
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
/* Sidebar */
.roadmap-nav {
  position: fixed;
  top: 73px;
  bottom: 0;
  left: 0;
  width: 290px;
  background: #333;
  border-right: 12px solid #ddd;
  padding: 0.5rem 0.5rem;
  overflow-y: auto; /* allow vertical scroll */
  overflow-x: hidden;
  transition: width 0.3s ease;
  box-sizing: border-box;
  /* You can add transition for border or padding if you want */
}
.roadmap-nav::-webkit-scrollbar {
  width: 8px;
}
.roadmap-nav::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 0;
}

/* Sidebar collapsed state */
.sidebar-hidden .roadmap-nav {
  width: 30px;          /* small visible width */
  padding: 0.5rem 0;    /* reduce horizontal padding */
  border-right: 6px solid #ddd; /* thinner border */
  overflow: visible;    /* keep scrollbar hidden or visible as you prefer */
}

/* Hide the sidebar text but keep icons (if you want) */
.roadmap-nav ul > li > strong,
.roadmap-nav ul ul a {
   transition: opacity 0.3s ease;
}

.sidebar-hidden .roadmap-nav ul > li > strong,
.sidebar-hidden .roadmap-nav ul ul a {
  opacity: 0;           /* hide text */
  pointer-events: none; /* disable clicking on hidden text */
}

/* Section header and links reused from earlier response */
.roadmap-nav > ul > li > strong {
  display: block;
  margin: 1rem 0 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #222;
  border-left: 4px solid #f1899a;
  color: #e94560;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0;
}

.roadmap-nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.roadmap-nav ul ul {
  margin-left: 1rem;
  padding-left: 0.5rem;
  border-left: 2px solid #f1899a;
}
.sidebar-hidden .roadmap-nav ul ul {
display:none;
}
.roadmap-nav a {
  display: block;
  padding: 0.4rem 0.4rem;
  font-size: 0.95rem;
  color:white;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.roadmap-nav a:hover {
  background-color: #222;
  color: #fff;
}

/* Default blue book icon */
.roadmap-nav a::before {
  content: "📘";
  margin-right: 0.4rem;
}

/* Change to green book if visited */
.roadmap-nav a:visited::before {
  content: "📗"; /* Green book */
}

.roadmap-nav a.active {
  background-color: transparent;         /* No background color */
  color: #f1899a !important;             /* Your specified pink color */
  font-size: 1rem;                     /* Make the font slightly bigger */
  font-weight:800;                      /* Make it extra bold */
  text-decoration: underline;           /* Underline the active link */
  border-radius: 0;                      /* Optional: remove border-radius */
  padding: 0.3rem 0.2rem;
  display: inline-block;
  transition: color 0.3s ease, font-size 0.3s ease;
}


.roadmap-nav a.active:hover {
  color:#ca1835;
}

/* Toggle button */
.divider button {
  position: fixed;
  top: 100px;
  left: 262px;
  width: 45px;
  height: 45px;
  background-color: #e94560;
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.6); ;
  border: 5px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  user-select: none;
  z-index: 1000;
  box-sizing: border-box;
  color: white;
  transition: left 0.3s ease;
}

.sidebar-hidden .divider button {
  left: 5px;  /* move button near the slim sidebar */
  top: 100px;
}

.divider button span {
  font-size: 45px;
  width: 45px;
  height: 45px;
  line-height: 38px;
  display: block;
  text-align: center;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  color: white;
  box-sizing: border-box;
}

.divider button:hover {
  background: #ca1835;
}

/* Header base */
.header {
  background-color:#000; /* solid black background */
  padding: 0.5rem 0 0 0;
  border-bottom: 1px solid #222; /* subtle bottom border */
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  position: fixed;
  top: 0;
  width:100%;
  z-index: 1000;
}

.nav-container {
width: 95%; 
    margin: 0 auto;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex: 0 0 auto; 
 height:65px;
}
.logo img{
  padding:14px 0 0 0;
  width:180px;
}
/* --- Desktop default --- */
.nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
}
.close-nav {
    display: none;
}
 
.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 0;
  transition: all 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav a.active {
  color: #ffffff;
  background: linear-gradient(45deg, #ff005c, #e94560);
  box-shadow: 0 2px 4px rgba(58, 134, 255, 0.3);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #e94560;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 60%;
}

.nav a.active::after {
  display: none;
}
/* ▼ arrow rotation */
.dropdown-toggle .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Flip ▼ into ▲ */
.dropdown-toggle.open .arrow {
  transform: rotate(180deg);
}
.sub-modal {
  position: fixed;        /* fixed relative to viewport */
   left: 40%;              /* center horizontally */
  transform: translateX(-40%);
  min-width: 280px;
  max-width: 190vw;
  background: #fff0f3;
  border: 2px solid #f1899a;
  border-radius: 0;
  padding: 0.5rem;
  width:35vw;
  z-index: 999;
  display: none;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sub-modal-content {
  position: relative;
  overflow: hidden; 
 }
 
.sub-button {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #ffe0ec;
  border: 2px dashed #e94560;
  border-radius: 0;
  padding: 0.8rem;
  cursor: pointer;
  flex-direction: column;
  overflow: hidden;
  z-index: 0;
}

.sub-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(120deg, #e94560, #ff9aae, #e94560);
  z-index: -1;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.3s ease;
}

.sub-button:hover::before {
  opacity: 0.2;
  animation: shimmer 1.2s linear infinite;
}

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


.sub-button .sign {
  font-size: 1.5rem;
}

.sub-button .title {
  font-weight: bold;
  font-size: 1rem;
}

.sub-button .desc {
  display: block;
  font-size: 0.875rem;
  color: #444;
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;
}

/* Container holding all buttons */
.sub-button-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.sub-button .expand-toggle {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1rem;
  color: red;
}
.sub-button .expand-toggle:hover {
  color: tomato;
}
/* Detail panel styling */
.sub-detail-panel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  background: #fff0f3;
  color:black;
  border: 2px solid #f1899a;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  height: 100%;
  overflow-y: auto;
  z-index: 2;
}

.sub-detail-panel.active {
  left: 0;
}

.sub-button-list.hide {
  transform: translateX(-100%);
}

.back-button {
  background: none;
  border: none;
  font-size: 1.1rem;
  color:red;
  cursor: pointer;
  margin-bottom: 1rem;
}
.back-button:hover {
  color:tomato;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -200%; /* hidden off-screen */
    height: 100vh;
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem 1rem;
    transition: right 0.3s ease-in-out;
    z-index: 100;
     max-height: 100vh;        /* Adjust height for mobile */
    overflow-y: auto;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }

  .nav.open {
    right: 0; /* slide into view */
  }
  .close-nav {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 1rem;
  }
  .nav-container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-icons {
    display: none;
  }
 
}
@media (max-width: 768px) {
  .sub-modal {
    max-height: 60vh;        /* Adjust height for mobile */
    overflow-y: auto;
    width: 90vw;
    margin: 1rem auto 0;
    border-radius: 0;
  }

  .sub-modal::-webkit-scrollbar {
    width: 6px;
  }

  .sub-modal::-webkit-scrollbar-thumb {
    background-color: #f1899a;
    border-radius: 0;
  }
}
@media (max-width: 768px) {
  .roadmap-nav {
    position: fixed;
    left:28px;
    top: 73px;
    height:100%;
    z-index: 100 ;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  /* Adjust toggle button to stay in place */
  .divider button {
    left: 0;
    top: 100px;
    z-index: 100;
  }
  .sidebar-mobile-open .roadmap-nav {
    transform: translateX(-10%);
   }
  /* Adjust toggle button to stay in place */
  .sidebar-mobile-open  .divider button {
   left:260px;
  }
  .sidebar-mobile-open .main-content {
  position: relative;
  pointer-events: none; /* disable interactions behind the overlay */
}

.sidebar-mobile-open .main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.3); /* optional dark overlay */
  z-index: 10;
  pointer-events: none;
}

  /* Ensure main content is not affected */
  .main-content {
    margin-left: 0 !important;
  }
  .sidebar-hidden .divider button {
    left: 10px;
  }
}

.hero {
  position: relative;
  padding: 6rem 1rem 4rem 1rem;
  background: #0d0d0d;
  color: #f8f8f8;
  font-family: 'Fira Code', monospace;
  text-align: center;
  overflow: hidden;
}

.glitch-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    #0d0d0d 0px,
    #111 2px,
    #0d0d0d 4px
  );
  opacity: 0.1;
  animation: flicker 2s infinite;
  z-index: 0;
}

@keyframes flicker {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.2; }
}

.mascot-container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: auto;
}

.mascot {
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  height: auto;            /* set a fixed height for vertical centering */
}
.mascot img {
  width: 120px;
  animation: blink 5s infinite;
  transition: transform 0.3s ease;
}
#typewriter::after {
  content: '|';
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(0.1); }
  50% { transform: scaleY(1); }
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  text-decoration: none;
  padding: 1rem 1.8rem;
  border-radius: 0;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s;
}

.btn.primary {
  background: linear-gradient(45deg, #ff005c, #e94560);
  color: white;
}

.btn.outline {
  border: 2px solid #e94560;
  color: #e94560;
  background: transparent;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 0, 128, 0.6);
}


  /* Features */
  .features {
       background-color: #333;
    padding: 4rem 0;
  }
  .features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
    color: #e94560;
  }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  .card {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 0;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
  .card:hover,
  .card:focus-within {
    transform: translateY(-5px);
    border-color: #ca1835;
  }
  .card h3 {
    margin-bottom: 1rem;
    color: #e94560;
  }
  .card p {
    color: #fff;
    margin-bottom: 1.5rem;
  }
  .card-link {
    font-weight: 600;
    color: #f1899a;
    text-decoration: none;
    font-size: 1rem;
  }
  .card-link:hover,
  .card-link:focus {
    text-decoration: underline;
  }

  /* CTA */
  .cta {
    background-color: #101010;
    padding: 4rem 1rem;
    text-align: center;
  }
  .cta h2 {
    color:#f1899a;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .cta p {
    color:white;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .subscribe-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .subscribe-form input[type="email"] {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border: none;
    width: 280px;
    max-width: 100%;
    font-size: 1rem;
  }
  .subscribe-form button {
    padding: 0.75rem 2rem;
    border-radius: 0;
    border: none;
    background-color: #00ff95;
    color: #000;
    font-weight: 700;
    cursor: pointer;
     transition: transform 0.3s ease, box-shadow 0.3s;
  }

.subscribe-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.subscribe-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.8rem 1.2rem;
  border-radius: 0;
  font-weight: 500;
  color: #fff;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.subscribe-toast.success {
  background-color: #28a745;
}

.subscribe-toast.error {
  background-color: #dc3545;
}

.subscribe-toast.show {
  opacity: 1;
}

.subscribe-toast.hidden {
  display: none;
}
/* Dark Theme - Cards, Tables & Case Studies */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.sub-card {
    background: radial-gradient(circle at 75% 30%, rgba(0, 242, 254, 0.1) 0%, transparent 50%);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid #2a3a5a;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    color: white;
     backdrop-filter: blur(4px);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 89, 255, 0.2);
    border-color: #4facfe;
    z-index:1;
}
 

.sub-card h3 {
    color: #4facfe;
    position: relative;
    padding-left: 1rem;
}

.sub-card h3::before {
    content: '◈';
    position: absolute;
    left: -0.5rem;
    color: #00f2fe;
}

.sub-card p {
    color: #a8b2d1;
    line-height: 1.7;
}


.sub-card h4 {
    color:#45e9ce;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-left: 0;
}

.li-span-list {
  line-height: 1.6;
}
 
.li-span {
  color:white; /* Red for emphasis */
  font-size: 0.95em;
}
  .disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
  }
/* Container for horizontal scroll on small screens */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
   border-radius: 0;
   box-sizing: border-box;
   padding:0;
 }

/* Table full width with fixed layout for stable columns */
.table-container table {
    padding:10px;
  width: 100%;
   border-collapse: collapse;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.95rem;
  table-layout: fixed;
}

/* Table header styling */
.table-container thead th {
  background-color: #222f54;
  color:pink;
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 2px solid #4facfe;
  white-space: nowrap;
}

/* Table body cells */
.table-container tbody td {
   border-bottom: 1px solid #2a3a5a;
  vertical-align: top;
  word-wrap: break-word;
  white-space: normal;
}
 
 
.table-container {
  overflow-x: auto;
  width: 100%;
   box-sizing: border-box;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1a1a1a;
   border-radius: 0;
  overflow: hidden;
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

thead {
  background-color: #222;
  color: #0f0;
}

th {
  font-weight: bold;
  position: relative;
}
 
tbody tr:hover {
  background-color: #292929;
}  

 @media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
   }
 table {
       background-color:transparent;
  }
  thead {
    display: none;
  }

  tbody tr {
    background: #1f1f1f;
    margin: 1rem 0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  }

  tbody td {
    padding: 0.5rem 0;
    border: none;
    position: relative;
    padding-left: 50%;
  }

tbody td::before {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 40%;
  max-width: 40%;
  white-space: normal;
  word-wrap: break-word; /* legacy support */
  overflow-wrap: break-word; /* modern support */
  font-weight: bold;
  color: pink;
  content: attr(data-label);
}

}


/* Mobile optimization */
@media (max-width: 600px) {
   .card-container {
    grid-template-columns: 1fr; /* full width column */
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .sub-card {
    padding: 1rem;
  }
 
}
   .tooltip-term {
      display: inline-block;
      position: relative;
      font-weight: bold;
    }
.tooltip-btn {
  cursor: pointer;
  font-size: 0.8em;
  color: lightgreen;
  margin-left: 0;
  vertical-align: super;
  border: none;
  background: none;
  padding: 0;

  transition: transform 0.2s ease-in-out;
}

.tooltip-btn:hover {
  transform: scale(1.3);
}
.tooltip-box {
  z-index: 9999;
  background: #1e1e1e;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  width: max-content;
  max-width: 250px;
  font-size: 0.85em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  position: absolute;
  transition: opacity 0.2s ease;
}

.tooltip-box {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tooltip-box.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
/* Case Studies - Dark Theme */
.case-study {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border-left: 4px solid pink;
    transition: all 0.3s ease;
    color: #f5f5f5;
}


.case-study h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.case-study h3::before {
    content: '🛡️';
    margin-right: 0.75rem;
    font-size: 1.25rem;
    filter: brightness(0.8);
}

.case-study p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color:white;
}

.case-study p strong {
    color:#45e9ce;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
    }
 
    .case-study {
        padding: 1.5rem;
    }
}
  /* Footer */
  .footer {
    background-color: #121212;
    text-align: center;
    padding: 2rem 1rem;
    color: #777;
    font-size: 0.9rem;
  }
  .footer-links {
    margin-top: 1rem;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  .footer-links a {
    color:#f1899a;
    text-decoration: none;
  }
  .footer-links a:hover,
  .footer-links a:focus {
    text-decoration: underline;
  }

  /* Responsive Adjustments */
  @media (max-width: 600px) {
    .hero h1 {
      font-size: 2rem;
    }
    .features h2 {
      font-size: 1.75rem;
    }
    .cta h2 {
      font-size: 1.75rem;
    }
  }