/* =============================================================
   DigiMax — IVF & Fertility Clinic Marketing Landing Page
   Design tokens derived from brief:
   Primary #7CB7E8 | Secondary #A8D1F2 | Background #EEF7FF
   Accent Pink #F6C7D8 | Heading #1E293B | Paragraph #64748B
============================================================= */

:root {
  --primary: #7CB7E8;
  --primary-hover: #5BA8F0;
  --secondary: #A8D1F2;
  --bg: #EEF7FF;
  --white: #FFFFFF;
  --heading: #1E293B;
  --paragraph: #64748B;
  --accent-pink: #F6C7D8;

  --hero-gradient: linear-gradient(135deg, #7CB7E8 0%, #A8D1F2 45%, #F6C7D8 100%);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 20px 45px -20px rgba(124, 183, 232, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(30, 41, 59, 0.12);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--paragraph);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
}

.section-pad {
  padding: 96px 0;
}

@media (max-width: 767px) {
  .section-pad {
    padding: 64px 0;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--heading);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--primary-hover);
  outline-offset: 3px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 10px 0 14px;
  line-height: 1.2;
}

.section-heading {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  color: var(--paragraph);
  font-size: 1.05rem;
  padding: 20px 0;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-hover);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 6px 14px;
  background-color: #EEF7FF;
  /* border: 1px solid rgba(1, 2, 5, 0.35); */
}

.eyebrow.center {
  justify-content: center;
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary-grad {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-primary-grad:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 24px 45px -18px rgba(91, 168, 240, 0.55);
}

.btn-outline-soft {
  background: var(--white);
  color: var(--heading);
  border: 1px solid rgba(124, 183, 232, 0.35);
}

.btn-outline-soft:hover {
  background: var(--secondary);
  color: var(--heading);
  transform: translateY(-2px);
}

.btn-white-grad {
  background: var(--white);
  color: var(--primary-hover);
}

.btn-white-grad:hover {
  background: var(--heading);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  width: 10px;
  height: 10px;
  opacity: 0;
  transform: scale(1);
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  translate: -50% -50%;
  pointer-events: none;
}

.btn-ripple.rippling::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  from {
    opacity: 0.6;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(40);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(30, 41, 59, 0.25);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--heading);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: rgba(124, 183, 232, 0.15);
  color: var(--primary-hover);
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
  padding: 6px;
}

.toggler-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  border-radius: 2px;
}

/* Mobile dropdown menu needs its own solid backdrop — the header itself
   is transparent until scrolled, so without this the open menu blends
   into whatever section is behind it (e.g. the hero). */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 20px 40px -20px rgba(30, 41, 59, 0.25);
    padding: 8px 24px 20px;
    margin-top: 8px;
  }

  .navbar-collapse .nav-item {
    border-bottom: 1px solid rgba(124, 183, 232, 0.15);
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: 12px 10px;
    border-radius: 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}

.shape-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, var(--secondary), transparent 70%);
  top: -80px;
  right: 8%;
  animation: float-slow 9s ease-in-out infinite;
}

.shape-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 30% 30%, var(--accent-pink), transparent 70%);
  bottom: -60px;
  left: 4%;
  animation: float-slow 11s ease-in-out infinite reverse;
}

.shape-3 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 30% 30%, var(--primary), transparent 70%);
  top: 40%;
  right: 30%;
  animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-24px) translateX(10px);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.hero-trust-mini {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-trust-mini p {
  font-size: 0.9rem;
  color: var(--heading);
}

.avatars {
  display: flex;
}

.avatars span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
}

.avatars span:first-child {
  margin-left: 0;
}

@media (max-width:568px) {
  .hero-sub {
    font-size: 0.95rem;
  }
}

/* ---------- Dashboard signature element ---------- */
.dashboard-wrap {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 30px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.dashboard-panel {
  padding: 26px;
}

.dashboard-head {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.dot-live {
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(124, 183, 232, 0.5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(124, 183, 232, 0);
  }
}

.pulse-chart {
  width: 100%;
  height: 110px;
  display: block;
}

.pulse-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw-line 2.4s ease-out forwards 0.4s;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.dashboard-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 183, 232, 0.25);
}

.dashboard-stats .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--heading);
  display: block;
}

.dashboard-stats small {
  color: var(--paragraph);
  font-size: 0.8rem;
}

/* ---------- Trust section ---------- */
.trust-section {
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid rgba(124, 183, 232, 0.15);
  border-bottom: 1px solid rgba(124, 183, 232, 0.15);
}

.trust-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--paragraph);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.trust-item {
  color: var(--heading);
}

.trust-icon {
  font-size: 1.8rem;
  color: var(--primary-hover);
  margin-bottom: 10px;
  display: block;
}

.trust-counter, .trust-item .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--heading);
  display: block;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--paragraph);
}

/* ---------- Services ---------- */
.services-section {
  background: var(--bg);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -20px rgba(124, 183, 232, 0.4);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
}

/* ---------- Why DigiMax — timeline ---------- */
.why-section {
  background: var(--white);
}

.why-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-timeline li {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(124, 183, 232, 0.15);
}

.why-timeline li:last-child {
  border-bottom: none;
}

.why-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.why-timeline h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.why-timeline p {
  font-size: 0.92rem;
}

/* ---------- Process ---------- */
.process-section {
  background: var(--bg);
}

.process-track {
  position: relative;
}

.process-line {
  display: none;
}

@media (min-width: 992px) {
  .process-line {
    display: block;
    position: absolute;
    top: 125px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 16px);
    z-index: 0;
  }
}

.process-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  height: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-6px);
}

.step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .process-section {
    padding: 72px 0;
  }

  .process-line {
    display: none;
  }

  .process-track .row {
    row-gap: 24px;
    justify-content: center;
    /* centers each wrapped row, including the leftover step4+step5 row */
  }

  .process-step {
    padding: 24px 20px;
    text-align: left;
  }

  .step-num {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  .process-step h4 {
    font-size: 1rem;
  }

  .process-step p {
    font-size: 0.85rem;
  }
}

/* ---------- Results ---------- */
.results-section {
  position: relative;
  background-image: url('images/result-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* optional: subtle parallax feel — remove if you don't want it */
}

.results-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: 0.85;
  /* adjust 0–1: higher = more gradient, lower = more photo visible */
  z-index: 0;
}

.results-section .container {
  position: relative;
  z-index: 1;
}

.results-section h2, .results-section {
  color: #fff;
}

.result-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.result-card .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--primary-hover);
  display: block;
}

.result-card p {
  color: var(--heading);
  opacity: 0.85;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ---------- Tablet (≤991.98px) ---------- */
@media (max-width: 991.98px) {
  .results-section {
    padding: 72px 0;
    background-position: center 30%;
  }

  .result-card {
    padding: 26px 14px;
  }
}

/* ---------- Mobile (≤767.98px) ---------- */
@media (max-width: 767.98px) {
  .results-section {
    padding: 56px 0;
    background-attachment: scroll;
    /* avoid fixed-bg jank on mobile browsers */
  }

  .results-section .row.g-4 {
    row-gap: 16px !important;
  }

  .result-card {
    padding: 22px 12px;
    border-radius: var(--radius-md);
  }

  .result-card .num {
    font-size: 1.6rem;
  }

  .result-card p {
    font-size: 0.8rem;
  }
}

/* ---------- Small phones (≤575.98px) ---------- */
@media (max-width: 575.98px) {
  .results-section {
    padding: 48px 0;
    background-position: center top;
  }

  .result-card .num {
    font-size: 1.4rem;
  }
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  background: var(--bg);
}

.google-rating {
  margin-top: 12px;
  color: #F5A623;
  font-size: 1rem;
}

.google-rating span {
  color: var(--heading);
  font-size: 0.9rem;
  margin-left: 6px;
}

.testimonial-track-wrap {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.testimonial-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-testimonials 32s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-testimonials {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 340px;
  box-shadow: var(--shadow-card);
}

.testimonial-card p {
  font-size: 0.98rem;
  color: var(--heading);
  margin-bottom: 20px;
  min-height: 96px;
}

.testi-author strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--heading);
  font-size: 0.95rem;
}

.testi-author span {
  font-size: 0.82rem;
  color: var(--paragraph);
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--white);
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0;
}

.accordion-item {
  border: none;
  background: var(--bg);
  border-radius: var(--radius-md) !important;
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading);
  background: transparent;
  box-shadow: none !important;
  border-radius: var(--radius-md) !important;
}

.accordion-button:not(.collapsed) {
  background: var(--secondary);
  color: var(--heading);
}

.accordion-button::after {
  filter: invert(48%) sepia(56%) saturate(500%) hue-rotate(175deg);
}

.accordion-body {
  color: var(--paragraph);
  font-size: 0.95rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: 100px 0;
  min-height: 480px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-image: url('images/cta_bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  opacity: 0.82;
  z-index: 0;
}

.final-cta .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.final-cta-content {
  max-width: 520px;
  text-align: left;
}

.final-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--heading);
  margin-bottom: 14px;
}

.final-cta p {
  color: var(--heading);
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 34px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

/* ---------- Tablet (≤991.98px) ---------- */
@media (max-width: 991.98px) {
  .final-cta {
    padding: 80px 0;
    min-height: 420px;
    background-position: right center;
  }
}

/* ---------- 768px aur usse chhota — content LEFT hi rahega ---------- */
@media (max-width: 767.98px) {
  .final-cta {
    padding: 64px 0;
    min-height: 380px;
    background-position: 75% center;
  }

  .final-cta-content {
    max-width: 100%;
    text-align: left;
    /* center nahi — left hi rakha */
    margin: 0;
  }

  .final-cta-actions {
    justify-content: flex-start;
  }
}

/* ---------- Small phones (≤575.98px) ---------- */
@media (max-width: 575.98px) {
  .final-cta {
    padding: 48px 0;
    min-height: 340px;
    background-position: 85% center;
  }

  .final-cta h2 {
    font-size: 1.7rem;
  }

  .final-cta p {
    font-size: 0.95rem;
    margin-bottom: 26px;
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .final-cta-actions .btn {
    width: 80%;
    text-align: center;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--heading);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  max-width: 320px;
}

.site-footer h5 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 40px 0 20px;
}

.copyright {
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Scroll reveal (JS toggles .in-view) ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="up"] {
  transform: translateY(36px);
}

[data-reveal="left"] {
  transform: translateX(-36px);
}

[data-reveal="right"] {
  transform: translateX(36px);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.whatsapp {

  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  z-index: 999;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .3);
  animation: pulse 2s infinite;

}

#topBtn {

  position: fixed;
  bottom: 110px;
  right: 35px;
  width: 55px;
  height: 55px;
  background: #5BA8F0;
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  cursor: pointer;
  z-index: 999;

}

/* ---------- Lead Capture Modal ---------- */
.lead-modal-content {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 30px 70px -20px rgba(30, 41, 59, 0.35);
  overflow: hidden;
  position: relative;
}

.lead-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--hero-gradient);
}

.lead-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}

.modal-body {
  padding: 40px;
}

.modal-title-text {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-sub-text {
  font-size: 0.95rem;
  margin-bottom: 26px;
}

.optional-tag {
  color: var(--paragraph);
  font-weight: 400;
  font-size: 0.8rem;
}

#leadForm .form-label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--heading);
  margin-bottom: 6px;
}

#leadForm .form-control {
  border: 1px solid rgba(124, 183, 232, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  background: var(--bg);
}

#leadForm .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 183, 232, 0.25);
  background: var(--white);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary-hover);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  /* was hidden — chips need to poke outside the frame */
  box-shadow: var(--shadow-soft);
}

.hero-photo {
  width: 500px;
  max-width: 500px;
  height: 500px;
  /* aspect-ratio: 5 / 6; */
  object-fit: cover;
  object-position: center 30%;
  display: block;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  /* centers it if the column is wider than 500px */
}

.hero-photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.hero-photo-badge i {
  color: var(--primary-hover);
  font-size: 1.3rem;
}

.hero-photo-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--heading);
}

.hero-photo-badge span {
  font-size: 0.75rem;
  color: var(--paragraph);
}

/* Tablet */
@media (max-width: 991.98px) {
  .hero-photo-frame {
    max-width: 420px;
  }
}

@media (max-width: 1024px) {
  .hero-photo-frame {
    max-width: 420px;
  }

  .hero-photo {
    height: 400px;
    width: 100%;
  }
}

@media (max-width: 768.98px) {
  .hero-photo-frame {
    max-width: 100%;
    padding: 0 10px;

  }

  .hero-photo {
    height: 360px;
    width: 400px;
    /* taller crop keeps both people in frame */
    object-position: center top;
  }
}

@media (max-width: 425px) {
  .hero-photo-frame {
    max-width: 100%;
    padding: 0 8px;
  }

  .hero-photo {
    height: auto;
    /* width: 100%; */
    width: 300px;
    object-position: center top;
  }

  .hero-photo-badge {
    bottom: 10px;
    left: 10px;
    padding: 7px 10px;
  }

  .hero-photo-badge strong {
    font-size: 0.72rem;
  }

  .hero-photo-badge span {
    font-size: 0.62rem;
  }
}


/* ---------- Dashboard signature element ---------- */
.dashboard-wrap {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 30px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.dashboard-panel {
  padding: 26px;
}

.dashboard-head {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.dot-live {
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(124, 183, 232, 0.5);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(124, 183, 232, 0);
  }
}

.pulse-chart {
  width: 100%;
  height: 110px;
  display: block;
}

.pulse-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw-line 2.4s ease-out forwards 0.4s;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.dashboard-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 183, 232, 0.25);
}

.dashboard-stats .num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--heading);
  display: block;
}

.dashboard-stats small {
  color: var(--paragraph);
  font-size: 0.8rem;
}

.chip {
  position: absolute;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--heading);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip i {
  color: var(--primary-hover);
}

.chip-google {
  top: 150px;
  left: -80px;
}

.chip-meta {
  top: 20%;
  right: -30px;
}

.chip-seo {
  bottom: 14%;
  left: -34px;
}

.chip-roas {
  bottom: -14px;
  right: 8%;
}

.float-1 {
  animation: floaty 6s ease-in-out infinite;
}

.float-2 {
  animation: floaty 7s ease-in-out infinite 0.6s;
}

.float-3 {
  animation: floaty 6.5s ease-in-out infinite 1.1s;
}

.float-4 {
  animation: floaty 7.5s ease-in-out infinite 0.3s;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.why-dashboard {
  margin-top: 36px;
  padding: 30px 20px;
  max-width: 380px;
}

@media (max-width: 991.98px) {
  .why-dashboard {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {

  .why-dashboard,
  .dashboard-wrap {
    max-width: 100%;
    padding: 30px 4px;
    /* extra side padding gives chips room to sit inside */
  }

  .chip {
    font-size: 0.72rem;
    padding: 7px 12px;
    gap: 6px;
  }

  .chip-google {
    top: -8px;
    left: 4px;
  }

  .chip-meta {
    top: 18%;
    right: 4px;
  }

  .chip-seo {
    bottom: 16%;
    left: 4px;
  }

  .chip-roas {
    bottom: -8px;
    right: 8%;
  }
}

@media (max-width: 400px) {

  /* on very small phones, side chips (Meta/SEO) still crowd the panel —
     hide them and keep just top/bottom for a cleaner look */
  .chip-meta,
  .chip-seo {
    display: none;
  }
}

/* ---------- Why DigiMax graph card placement ---------- */
.why-graph-card {
  margin-top: 32px;
  max-width: 420px;
}

.stars {
  font-size: 20px;
  color: gold;
  /* display: inline-flex; */
  align-items: center;
  line-height: 1;
}

.half-star {
  position: relative;
  display: inline-block;
  width: 1em;
  /* lock to exactly one star's width */
  height: 1em;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

.half-star::before {
  content: "★";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  color: gold;
  line-height: 1;
}

.section-tag {
  display: inline-block;
  background: rgba(124, 183, 232, 0.15);
  /* soft tint of primary */
  color: var(--primary-hover);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-tag.center {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

/* Required star */
.required {
  color: #dc3545;
  font-weight: 700;
  margin-left: 2px;
}

/* Red border on invalid field */
.form-control.is-invalid {
  border: 2px solid #dc3545 !important;
  box-shadow: none !important;
}

/* Green border on valid field (optional) */
.form-control.is-valid {
  border: 2px solid #198754 !important;
  box-shadow: none !important;
}

/* Error message */
.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
}

.form-control.is-invalid+.invalid-feedback {
  display: block;
}

@media (max-width:576px) {
  .modal {
    padding: 20px;
  }
}

/* ---------- Case Studies Carousel ---------- */
.case-carousel-wrap {
  max-width: 900px;
  margin: 40px auto 0;
}

.case-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-content {
  padding: 34px;
}

.case-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-hover);
  background: rgba(124, 183, 232, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.case-content h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.case-compare {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
}

.case-compare div {
  display: flex;
  flex-direction: column;
}

.case-compare .label {
  font-size: 0.75rem;
  color: var(--paragraph);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-compare .value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading);
  font-size: 1.1rem;
}

.case-compare i {
  color: var(--primary-hover);
}

.case-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-metrics li {
  font-size: 0.9rem;
  color: var(--heading);
}

.case-metrics i {
  color: var(--primary-hover);
  margin-right: 8px;
}

/* Custom nav arrows — replace Bootstrap's default faint icons with branded circular buttons */
.case-carousel-wrap .carousel-control-prev,
.case-carousel-wrap .carousel-control-next {
  width: 48px;
  opacity: 1;
}

.case-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.case-carousel-wrap .carousel-control-prev:hover .case-nav-icon,
.case-carousel-wrap .carousel-control-next:hover .case-nav-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.case-carousel-wrap .carousel-control-prev {
  left: -20px;
}

.case-carousel-wrap .carousel-control-next {
  right: -20px;
}

/* Indicators (dots) */
.case-indicators {
  position: static;
  margin-top: 20px;
}

.case-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--secondary);
  opacity: 1;
  border: none;
  margin: 0 5px;
}

.case-indicators .active {
  background-color: var(--primary);
  width: 24px;
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 768.98px) {
  /* .case-img {
    height: 100%;
  } */

  .case-content {
    padding: 24px;
  }

  .case-carousel-wrap .carousel-control-prev,
  .case-carousel-wrap .carousel-control-next {
    display: none;
    /* rely on swipe gesture on touch devices */
  }
}

@media (max-width: 567.98px) {
  /* .case-img {
    height: 120px;
  } */

  .case-content {
    padding: 14px;
  }

  .case-carousel-wrap .carousel-control-prev,
  .case-carousel-wrap .carousel-control-next {
    display: none;
    /* rely on swipe gesture on touch devices */
  }
}

.case-img{
    width:100%;
    display:block;
    border:2px solid #D1D5DB;
    border-radius:16px;
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
    transition:all .3s ease;
}

.case-img:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,0.18);
    border-color:#7CB7E8;
}