p {
    font-size: 1.1rem; /* Slightly larger font size */
    line-height: 1.6; /* Increased line height */
    margin: 1em 0; /* Vertical spacing */
    padding: 0 15px; /* Horizontal padding */
    color: black; /* Darker text for better contrast */
}

a {
    color: #000000;
}
.hero-section {
  position: relative;
  min-height: 100vh;              /* Full viewport height */
  background-image: url("hero_image_main.jpg");
  background-attachment: fixed;   /* Parallax effect */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75); /* Dark overlay */
  z-index: 0;                     /* Behind the text */
}

.hero-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;                     /* Above the overlay */
  padding: 0 1rem;                /* Side gutter */
  max-width: 90vw;                /* So it never exceeds the viewport */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Big, punchy main title */
.hero-text .hero-title {
  margin: 0.2em 0;
  font-size: clamp(
    2.5rem,  /* min size on tiny phones */
    8vw,     /* fluid scaling in between */
    6rem     /* max size on desktop */
  );
  font-weight: 700;
  line-height: 1.1;
}

/* Smaller subtitle underneath */
.hero-text .hero-subtitle {
  margin: 0.5em 0 0;
  font-size: clamp(
    1rem,   /* min on phones */
    3vw,    /* fluid */
    2rem    /* max */
  );
  font-weight: 400;
  line-height: 1.3;
  max-width: 80vw; /* keeps lines from getting too long */
}


.title {
  /* If you still want an extra‑big “Cogniread” */
  font-size: clamp(
    2rem,  /* min */
    6vw,   /* fluid */
    4rem   /* max */
  ) !important;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px; /* Adjust as needed for spacing between sections */
    text-align: justify;
}

.text-content {
    flex: 1;
    padding: 20px;

}

.image {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* Adjust the radius value to round the edges more or less */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Box shadow properties */
}

.larger-nav {
    padding: 15px 5px; /* Larger padding */
    height: 80px; /* Larger height */
}

/* Smaller navbar size */
.smaller-nav {
    padding: 5px; /* Smaller padding */
    height: 70px; /* Smaller height */
}
.content {
    top: 50%;
}

.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* make sure this has the dot! */
.three-boxes {
  display: flex;
  justify-content: center;
 /* center rows on desktop too, if there’s extra space */
  flex-wrap: wrap;
  gap: 2rem;
  padding: 100px 0;
  align-items: stretch;
}

.three-boxes h1 {
  /* make the title take a whole “row” in the flex layout */
  flex-basis: 100%;
  /* center the text inside it */
  text-align: center;
  /* adjust spacing as you like */
  margin-bottom: 2rem;
}


/* individual cards */
.box {
  flex: 1 1 300px;        /* grow/shrink around a 300px base */
  max-width: 400px;
  padding: 20px;
  margin-bottom: 40px;
  /* remove margin-left/right here—we’ll handle centering in the media query */
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background: white;
  text-align: center;

}

/* MOBILE LAYOUT */
@media (max-width: 768px) {
  .three-boxes {
    flex-direction: column;
      align-items: center;
  /* <-- switch from stretch to center */
  }
  .box {
    width: 90%;             /* 90% of the container, centered by align-items */
    max-width: 400px;       /* don’t let them get too wide on phablets */
    margin: 0 0 2rem;       /* top:0, horizontal:auto via align-items, bottom:2rem */
  }
}


.box.visible {
    opacity: 1;
    transform: translateY(0);
}

.box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.box h3 {
    margin-top: 0;
}

.box p {
    margin-bottom: 0;
}


.footer-bar {
    background-color: #000;
    color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    position: flex;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-content a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 15;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
    max-height: calc(100% - 40px); /* Adjust to leave space around the modal */
}

/* Modal Content/Box */
.modal-content {
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    overflow-y: auto;
    background-color: white;
    border-radius: 5px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    float: right;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* ───────── WHY & HOW ───────── */
.why-how-section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* — Why grid — */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.why-card {
  background: #fff;
  border-radius: 0.5rem;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.why-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  filter: invert(40%) sepia(80%) saturate(300%) hue-rotate(140deg);
}

/* — How steps — */
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}
.step {
  position: relative;
  padding-top: 2rem;
}
.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #4A90E2;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}
.step h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.step p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* — Responsive tweaks — */
@media (max-width: 600px) {
  .why-how-section { padding: 2rem 0.5rem; }
  .why-card { padding: 1.5rem 0.75rem; }
  .step-number { width: 2rem; height: 2rem; font-size: 1rem; }
}

/* ───────── Scroll-progress timeline ───────── */
.scroll-progress {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 60%;
  background: #e0e0e0;
  z-index: 200;
}
.scroll-progress__line {
  width: 100%;
  height: 0%;
  background: #4A90E2;
  transition: height 0.1s ease-out;
}

/* markers */
.scroll-progress__marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border: 2px solid #4A90E2;
  background: #fff;
  border-radius: 50%;
}
/* top marker aligns with the Why grid start */
.scroll-progress__marker[data-target="why-grid"] {
  top: 0;
}
/* bottom marker aligns with the How steps end */
.scroll-progress__marker[data-target="how-steps"] {
  bottom: 0;
}

/* hide on mobile if you like */
@media (max-width: 768px) {
  .scroll-progress { display: none; }
}

/* ─── Continuous Testimonials Marquee ───────── */
.testimonials-marquee-section {
  padding: 4rem 1rem;
  overflow: hidden;
  width: 100%;
}
.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* wrapper hides overflow */
.marquee {
  overflow: hidden;
  position: relative;
}

.background{
    background: #fafafa;
}

/* each card */
.marquee__item {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 280px;
  margin-right: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.item-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #333;
}
.item-author {
  margin-top: auto;       /* pushes it to the bottom of the flex container */
  align-self: flex-end;   /* right-align within that bottom row */
  font-weight: bold;
  color: #555;
  font-size: 0.9rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  /* animate from 0 to –one-set-width */
  animation: marquee-scroll 80s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--marquee-distance))); }
}

/* Responsive: smaller cards */
@media (max-width: 600px) {
  .marquee__item {
    width: 240px;
    margin-right: 1rem;
    padding: 1rem;
  }
  .item-text { font-size: 0.9rem; }
  .item-author { font-size: 0.8rem; }
}

.logo img {
    padding-left: 5px;
}

.book-cloud {
  text-align: center;
  margin: 3rem 0;
  width: 100%;
}

.cloud-tag {
  padding: 0.6rem 1rem;
  background: #eef2f7;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cloud-tag:hover {
  background: #4A90E2;
  color: white;
}

.cloud-title {
  position: absolute;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #333;
  opacity: 0;
  pointer-events: none;
  animation: floatFade 5s ease-in-out forwards;
  max-width: 150px;             /* never wider than this */
  white-space: normal;          /* allow line‑breaks */
  word-break: break-word;       /* break long words if needed */
  overflow-wrap: break-word;    /* wrap at word boundaries */
  text-align: center;           /* center multi‑line text */
}


@keyframes floatFade {
  0%   { opacity: 0; transform: translateY(0) scale(0.8); }
  10%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px) scale(1.1); }
}

.book-cloud.featured {
  padding: 3rem 2rem;
  text-align: center;
}

.book-cloud.featured #cloud-window {
    position: relative;
      display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  height: 300px;
}

.book-cloud.featured .cloud-context {
  margin: 1rem auto 2rem;
  max-width: 600px;
  font-size: 1rem;
  color: #555;
}

.background > section:nth-of-type(odd) {
  background: #f9f9f9;
}
.background > section:nth-of-type(even) {
  background: #fff;
}

.content-section {
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}