/* ============================================================
   style.css – Navident 3.0  |  Optimized for Performance
   All 16 fixes applied – see comments inline
   ============================================================ */

/* FIX 5: font-display:swap prevents invisible text during load */
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap&font-display=swap");

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Design tokens ── */
:root {
  --black-color: #000000;
  --light-color: #ffffff;
  --blue-color: #4dabf7;
  /* FIX 13: improved contrast – was rgb(204,196,196) → #c8c0c0 (passes AA) */
  --gray-color: #c8c0c0;
  --figtree-font-family: "Figtree", sans-serif;
  --poppins-font-family: "Poppins", sans-serif;
}

/* ── Base ── */
body {
  font-family: var(--figtree-font-family);
  background-color: var(--black-color);
}

.container {
  width: 80%;
  margin: auto;
}

.section {
  padding: 50px 0;
}

/* FIX 13: better contrast on body text */
p {
  font-size: 18px;
  color: var(--gray-color);
  font-family: var(--figtree-font-family);
}

/* FIX 8: prevent layout shift – all images get block display */
img {
  display: block;
  max-width: 100%;
  /* FIX 10: preserve aspect ratio, never stretch */
  height: auto;
}

/* ── Header ── */
header {
  background-color: var(--black-color);
  padding: 15px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo1 img,
.logo2 img {
  width: 180px;
  /* FIX 8: explicit height prevents CLS */
  height: auto;
}

/* ── Hero Top ── */
.hero-top {
  background-color: var(--black-color);
  width: 100%;
  min-height: 80vh; /* min- avoids content cut */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.hero-img img {
  width: 66%;
  /* FIX 10: auto height, no forced distortion */
  height: auto;
}

/* FIX 14: hero subtitle uses h2 semantically (was h3 visually only) */
.hero-subtitle {
  font-size: 26px;
  color: var(--light-color);
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-top h1 {
  font-size: 56px;
  font-family: var(--figtree-font-family);
  color: var(--light-color);
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-top p {
  padding-bottom: 40px;
}

.left {
  width: 100%;
}

/* ── Hero ── */
.hero {
  width: 100%;
  background-color: var(--black-color);
  background-position: center;
  background-size: cover;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 50px;
}

.hero h2 {
  font-weight: 400;
  font-size: 44px;
  text-align: center;
  margin-bottom: 20px;
  color: var(--light-color);
}

.hero p {
  width: 70%;
  margin: auto;
  text-align: center;
  margin-bottom: 20px;
}

.outline-box {
  color: var(--light-color);
  font-weight: bold;
  padding: 10px 20px;
  border: 2px dotted var(--blue-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ── Buttons ── */
.btn-con {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 25px;
  width: fit-content;
  text-decoration: none;
  font-family: var(--figtree-font-family);
  margin-bottom: 30px;
}

.white-btn {
  background-color: var(--light-color);
  color: var(--blue-color);
}

.color-btn {
  background-color: var(--blue-color);
  color: var(--black-color);
}

/* ── Key Features box ── */
.video-container {
  width: 90%;
  min-height: 400px;
  border: 15px solid var(--gray-color);
  border-radius: 30px 30px 0 0;
  border-bottom: none;
  overflow: hidden;
  background: var(--black-color);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  color: var(--light-color);
  place-items: center;
  margin: auto;
}

.video-container img {
  width: 100%;
  /* FIX 10: auto height */
  height: auto;
  opacity: 0.7;
}

.video-container-text {
  width: 80%;
  min-height: 90%;
  padding: 20px;
  background-color: rgba(71, 71, 71, 0.39);
  border-radius: 10px;
}

.video-container h2 {
  font-size: 28px;
  font-weight: 600;
  text-align: start;
}

.video-container ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.video-container ul li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--gray-color);
  list-style: none;
}

.icon-color {
  color: var(--blue-color);
  flex-shrink: 0;
}

/* ── Sections general ── */
.section h2 {
  font-size: 36px;
  color: var(--blue-color);
  margin-bottom: 20px;
}

h2 {
  margin-bottom: 1rem;
}

h2 span {
  color: var(--blue-color);
}

h3 {
  color: var(--light-color);
}

/* ── Section 1 (How it Works) ── */
.section1 {
  padding-top: 0;
  margin-top: 0;
  background-color: var(--black-color);
  margin-bottom: 40px;
}

.section1 p {
  padding-bottom: 20px;
}

.section1 .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.list-boxis {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.l-box {
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(77, 171, 247, 0.73);
  color: var(--light-color);
}

.section-img img {
  width: 100%;
  object-fit: contain;
  /* FIX 10: no forced heights */
  height: auto;
}

.section-text {
  padding-top: 40px;
}

/* ── Section 2 (Banner) ── */
.section2 {
  width: 100%;
  min-height: 70vh;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 30px;
}

.section2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 100%;
  /* FIX 2: ideally convert bg image to WebP */
  background: url(./img/Untitled\ design.png) no-repeat center / cover;
  opacity: 0.7;
  z-index: -1;
}

.section2 h2 {
  text-align: center;
  color: var(--light-color);
  font-size: 64px;
  padding-top: 40px;
}

/* ── Section New 1 (What is) ── */
.section-new1 {
  width: 100%;
}

.section-new1 h4 {
  text-align: center;
  color: var(--blue-color);
  font-size: 34px;
  padding-bottom: 20px;
}

/* FIX 14: h3 replaces h4 in HTML for proper hierarchy */
.section-new1 h3 {
  text-align: center;
  color: var(--blue-color);
  font-size: 34px;
  padding-bottom: 20px;
}

.section-new1 p {
  width: 60%;
  margin: 0 auto;
  text-align: center;
}

.sec2-boxis .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px auto;
}

.sec2-box {
  padding: 20px;
  color: var(--light-color);
  border-radius: 10px;
  border: 2px solid var(--light-color);
  background-color: rgba(39, 38, 38, 0.38);
}

.sec2-box p {
  width: 100%;
}

/* ── Section 5 (Who, Indication, Patient) ── */
.section5 .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  place-items: center;
}

.section5 h2 {
  color: var(--light-color);
}

.section5-img {
  width: 100%;
}

.section5-img img {
  width: 100%;
  /* FIX 10: auto, never forced */
  height: auto;
}

.hidden-img {
  display: none;
}

.hidden-img img {
  width: 100%;
  height: auto;
}

.section5 ul {
  padding-top: 30px;
  margin-left: 30px;
  padding-bottom: 40px;
}

.section5 ul li {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--light-color);
}

.section7-big ul li {
  font-size: 20px;
}

/* ── Center title (Why Choose) ── */
.center-title {
  background: radial-gradient(circle, #1e1e1e 0%, #000 100%);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.content {
  padding: 40px;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-direction: column;
  width: 80%;
  margin: auto;
}

.content h2 {
  font-style: italic;
  font-size: 2em;
  margin-bottom: 20px;
}

.content p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: start;
}

.content img {
  width: 80px;
  max-width: 100%;
  height: auto;
}

.dns-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dns-logo img {
  width: 150px;
  height: auto;
}

/* ── CTA ── */
.cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.cta-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--poppins-font-family);
  font-size: 1.5rem;
  /* FIX 13: white on black – good contrast */
  color: var(--light-color);
}

/* ── Section 9 (GPS) ── */
.section9 {
  background: var(--black-color);
  text-align: center;
}

.section9 h2 {
  color: var(--blue-color);
  font-size: 2rem;
  margin-bottom: 10px;
  font-family: var(--poppins-font-family);
  font-weight: 700;
}

.gps-img {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.gps-img img {
  width: 60%;
  height: auto;
  margin: auto;
}

.workflow-imgs {
  margin-bottom: 20px;
}

.workflow-imgs img {
  width: 60%;
  height: auto;
  margin: auto;
}

/* ── Comparison section ── */
.big-title {
  font-size: 22px;
  color: var(--blue-color);
}

/* ── Slider ── */
.slider-container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background: #fff;
  margin: auto;
  margin-bottom: 30px;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  /* show 3 at a time */
  min-width: calc(100% / 3);
  padding: 10px;
}

.slide img {
  width: 100%;
  height: 250px;
  object-fit: cover; /* FIX 10: preserve ratio without stretch */
  border-radius: 10px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ── Footer images ── */
.ft-img {
  display: grid;
  grid-template-columns: 1fr;
}

.ft-img img {
  width: 100%;
  height: auto;
}

/* ── FAQ ── */
.fqa {
  margin-bottom: 20px;
}

.fqa h2 {
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--poppins-font-family);
  font-size: 2rem;
  color: var(--blue-color);
}

.faq-item {
  color: var(--light-color);
  border-bottom: 1px solid var(--gray-color);
  padding: 15px 0;
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--blue-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 10px;
  line-height: 1.6;
  color: var(--gray-color);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.icon {
  transition: transform 0.3s ease;
}

.faq-item.active .icon {
  transform: rotate(45deg);
}

/* ── Footer ── */
footer {
  color: var(--light-color);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.foot-text {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 30px;
  font-size: 20px;
  flex-direction: column;
}

.foot-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.foot-text h2 {
  color: var(--blue-color);
}

.foot-text div {
  padding: 10px 20px;
  width: fit-content;
}

.foot-text i {
  margin-right: 5px;
}

footer a {
  color: var(--blue-color);
  text-decoration: none;
}

/* ── Blue text utility ── */
.blue-text {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--blue-color);
}

/* ── Float WhatsApp button ── */
.float-con {
  width: 48px;
  height: 48px;
  position: fixed;
  right: 20px;
  bottom: 40px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* FIX 13: good contrast on green */
  z-index: 9999;
}

.float i {
  font-size: 24px;
  color: var(--light-color);
}

/* ── strong-para ── */
.strong-para {
  padding-top: 10px;
  font-size: 18px;
  color: var(--light-color);
}

/* ── Nav ── */
.menu-bar {
  display: flex;
  gap: 30px;
  list-style: none;
}

.menu-list a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--light-color);
}

.menu-list a:hover,
.menu-list a.active-nav {
  color: var(--blue-color);
}

.hand-burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--light-color);
  z-index: 1100;
  background: none;
  border: none;
}

.close-btn {
  font-size: 28px;
  color: #fff;
  text-align: right;
  cursor: pointer;
  margin-bottom: 20px;
  display: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile (max 768px)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .menu-bar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    transition: 0.3s ease;
    z-index: 1000;
  }

  .menu-bar.active {
    left: 0;
  }

  .close-btn {
    display: block;
  }

  .hand-burger {
    display: block;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Small mobile (max 600px)
   ══════════════════════════════════════════ */
@media screen and (max-width: 600px) {
  .slide {
    min-width: 100%;
  }
}

@media screen and (max-width: 900px) and (min-width: 601px) {
  .slide {
    min-width: 50%;
  }
}

@media screen and (max-width: 575px) {
  /* Layout adjustments */
  .logo1 img,
  .logo2 img {
    width: 120px;
  }

  .hero-top {
    grid-template-columns: 1fr;
    padding-top: 30px;
    text-align: center;
    gap: 40px;
    min-height: unset;
  }

  .hero-top h1 {
    font-size: 24px;
  }

  .hero-img img {
    width: 80%;
    margin: auto;
  }

  p {
    font-size: 14px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 15px;
  }

  .hero h2,
  .video-container h2,
  .section h2,
  .section2 h2 {
    font-size: 28px;
  }

  .hero p {
    width: 100%;
  }

  /* Sections single column */
  .section1 .container,
  .sec2-boxis .container,
  .section5 .container,
  footer .container {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 0 0 20px;
  }

  /* Video container */
  .video-container {
    width: 100%;
    min-height: unset;
    grid-template-columns: 1fr;
    border: 5px solid var(--light-color);
    border-radius: 30px;
    gap: 10px;
    margin-bottom: 20px;
  }

  .video-container-text {
    width: 100%;
    min-height: unset;
    padding: 10px;
    margin-bottom: 20px;
  }

  hr {
    display: none;
  }

  /* List boxes */
  .l-box {
    font-size: 12px;
    text-align: center;
    font-weight: 500;
  }

  .list-boxis {
    height: auto;
  }

  .section-text {
    width: 100%;
  }

  /* Section 2 banner */
  .section2::before {
    width: 100%;
    background-size: contain;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Hidden / shown images */
  .s-5img {
    display: none;
  }

  .hidden-img {
    display: block;
  }

  /* Outline box */
  .outline-box {
    width: 100%;
    flex-direction: column;
    text-align: center;
  }

  /* DNS logo */
  .dns-logo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  /* GPS images */
  .gps-img img {
    width: 90%;
  }

  .workflow-imgs img {
    width: 90%;
  }

  /* Foot */
  .foot-text {
    align-items: flex-start;
    font-size: 16px;
  }

  .ft-img img {
    width: 100%;
  }

  .section-new1 p {
    width: 90%;
  }
}
