/* ==========================================================================
   Madhav Polymers  Applications Page Styling
   ========================================================================== */

:root {
  --app-side-pad: clamp(24px, 4.5vw, 48px);
  --deep-indigo: #0b051e;
  --indigo-card: rgba(19, 10, 48, 0.85);
  --card-border: #eef0f6;
  --text-muted: #5a5a6a;
}

.app-page-wrapper {
  width: 100%;
  max-width: 100%;
  padding-top: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--white);
}

.app-section-inner {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 80px var(--app-side-pad);
}

/* Helper styles */
.section-subtitle {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--purple);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title .purple-text {
  color: var(--purple-light);
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
  margin-bottom: 40px;
}

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

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   1. HERO SECTION
   ========================================== */
.app-hero {
  width: 100%;
  max-width: 100%;
  background: url('applcation banner section image.png') no-repeat center center / cover;
  color: var(--white);
  position: relative;
  overflow: visible;
  min-height: clamp(500px, 46.89vw, 660px);
  margin-top: var(--header-height);
  display: flex;
  align-items: stretch;
  padding: 0 var(--app-side-pad);
}

/* Left half content */
.app-hero-left {
  position: relative;
  z-index: 2;
  width: 48%;
  max-width: 680px;
  padding: clamp(32px, 4vw, 56px) 0 clamp(60px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* Breadcrumb */
.app-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}
.app-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}
.app-breadcrumb a:hover { color: var(--white); }
.app-breadcrumb-sep { color: rgba(255,255,255,0.25); }
.app-bc-active { color: var(--orange); font-weight: 600; }

/* Pill badge */
.pill-badge {
  display: inline-block;
  background: rgba(100, 65, 200, 0.25);
  border: 1px solid rgba(120, 80, 220, 0.45);
  color: #c4a8ff;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

/* Hero title */
.app-hero-title {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.hero-purple-line {
  color: #8b5cf6;
  display: block;
}

/* Hero description */
.app-hero-desc {
  font-size: clamp(13px, 1.3vw, 14.5px);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ---- Horizontal Feature Badges Row ---- */
.hero-feat-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: nowrap;
}

.hero-feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 64px;
}

.feat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(80, 45, 170, 0.35);
  border: 1px solid rgba(120, 80, 220, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  white-space: nowrap;
}

/* ---- Stats card  bottom-right of hero ---- */
.hero-stats-card {
  position: absolute;
  bottom: 28px;
  right: 0;
  width: clamp(300px, 44%, 540px);
  background: rgba(12, 6, 36, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.hero-stats-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  text-align: left;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat-item:last-child { border-right: none; }

.hero-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(80, 45, 160, 0.25);
  border: 1px solid rgba(100, 60, 200, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-lbl {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}
/* ==========================================
   2. DIFFERENCES (GRID OF 8 CARDS)
   ========================================== */
.app-differences {
  width: 100%;
  max-width: 100%;
  background-color: var(--bg-light);
}

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

.app-card {
  background: var(--white);
  border: 1px solid #eef0f6;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(61, 31, 140, 0.1);
  border-color: rgba(61, 31, 140, 0.12);
}

.app-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  position: relative;
}

.app-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: #ebe4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.app-card-icon img, .app-card-icon svg {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.app-card h3 {
  font-size: 16px;
  font-weight: 750;
  color: var(--purple);
  margin-bottom: 8px;
  line-height: 1.25;
}

.app-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 58%;
  padding-right: 4px;
}

.app-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: 18px;
  z-index: 2;
  position: relative;
}

.app-card-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #dcdce6;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.app-card:hover .app-card-arrow {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: translateX(3px);
}

.app-card-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-card-img-wrap {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 150px;
  height: 132px;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.app-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  mix-blend-mode: screen;
  transition: transform 0.4s ease;
}

.app-card-img--light {
  mix-blend-mode: normal;
}

.app-card:hover .app-card-img {
  transform: scale(1.06);
}

/* ==========================================
   3. PROCESS SECTION
   ========================================== */
.app-process {
  width: 100%;
  max-width: 100%;
  background-color: var(--white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 60px;
  width: 100%;
}

/* Connector line */
.process-timeline::before {
  content: "";
  position: absolute;
  top: 94px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #d3c7f3, #d3c7f3 6px, transparent 6px, transparent 12px);
  z-index: 1;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 4px 10px rgba(61, 31, 140, 0.25);
}

.process-icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid #eef0f6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
  position: relative;
}

.process-step:hover .process-icon-wrap {
  border-color: var(--purple-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(61, 31, 140, 0.12);
}

.process-icon-wrap img, .process-icon-wrap svg {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
}

.process-step h4 {
  font-size: 15px;
  font-weight: 750;
  color: var(--purple);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 170px;
}

/* Arrow indicator on the dotted connector */
.process-arrow {
  position: absolute;
  top: 85px;
  right: -10px;
  z-index: 3;
}

.process-step:last-child .process-arrow {
  display: none;
}

/* ==========================================
   4. ADVANTAGES SECTION
   ========================================== */
.app-advantages {
  width: 100%;
  max-width: 100%;
  background-color: var(--white);
}

.app-advantages .section-title {
  margin-bottom: 36px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

.adv-card {
  background: var(--white);
  border: 1px solid #ececf2;
  border-radius: 12px;
  padding: 28px 14px 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.adv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(61, 31, 140, 0.08);
  border-color: #d8d8e4;
}

.adv-icon-wrap {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.adv-icon-wrap svg, .adv-icon-wrap img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
}

.adv-card h3 {
  font-size: 14px;
  font-weight: 750;
  color: var(--purple);
  margin-bottom: 10px;
  line-height: 1.35;
}

.adv-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 100%;
}

/* ==========================================
   5. STATS BAR
   ========================================== */
.app-stats-bar {
  width: 100%;
  max-width: 100%;
  background: #32156f;
  color: var(--white);
  padding: 38px var(--app-side-pad);
}

.app-stats-bar-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: 0 auto;
}

.bar-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  justify-content: center;
  padding: 0 10px;
}

.bar-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.bar-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
}

.bar-stat-icon img,
.bar-stat-icon svg {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.bar-stat-icon-img--white {
  filter: brightness(0) invert(1);
}

.bar-stat-text h4 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 4px;
  color: #ffffff;
}

.bar-stat-text p {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
}

/* ==========================================
   6. NEED A CUSTOM SOLUTION CTA
   ========================================== */
.app-cta-section {
  width: 100%;
  max-width: 100%;
  background-color: var(--white);
}

.app-cta-section .app-section-inner {
  padding-top: 60px;
  padding-bottom: 80px;
}

.app-cta-card {
  background: url('CTA section.png') no-repeat center center / cover;
  border-radius: 20px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  position: relative;
}

.app-cta-content {
  padding: 56px clamp(28px, 5%, 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--white);
  width: min(100%, 52%);
  min-height: 300px;
}

.cta-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ff8b3d;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.app-cta-content h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.app-cta-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 460px;
}

.btn-orange-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
  transition: all 0.25s ease;
}

.btn-orange-cta:hover {
  background: #ff7c1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
}

.btn-orange-cta svg {
  transition: transform 0.25s ease;
}

.btn-orange-cta:hover svg {
  transform: translateX(4px);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1200px) {
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .adv-card {
    padding: 28px 18px 24px;
    min-height: 210px;
  }

  .adv-card h3 {
    font-size: 15px;
  }

  .adv-card p {
    font-size: 12.5px;
  }
}

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .process-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: center;
  }
  
  .process-num {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .process-icon-wrap {
    margin-bottom: 0;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
  }
  
  .process-icon-wrap img, .process-icon-wrap svg {
    width: 44px;
    height: 44px;
  }
  
  .process-step p {
    max-width: 100%;
  }
  
  .process-arrow {
    display: none;
  }
  
  .app-stats-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 0;
  }

  .bar-stat-divider {
    display: none;
  }

  .bar-stat-item {
    flex: 1 1 45%;
    justify-content: flex-start;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    padding-bottom: 120px; /* Leave space for stats card */
  }
  
  .app-hero-left {
    align-items: center;
  }
  
  .app-hero-badges {
    max-width: 100%;
  }
  
  .hero-img-wrap {
    border-radius: 20px;
  }
  
  .hero-img-wrap::before {
    background: radial-gradient(circle at 50% 50%, transparent 35%, var(--deep-indigo) 100%);
  }
  
  .hero-stats-card {
    left: 0;
    right: 0;
    width: auto;
    bottom: -60px;
  }
  
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .hero-stat-item {
    border-right: none;
  }
  
  .hero-stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .app-cta-card {
    background-position: 70% center;
    min-height: 340px;
  }

  .app-cta-content {
    width: 100%;
    min-height: auto;
    padding: 40px 24px;
    align-items: center;
    text-align: center;
  }

  .app-cta-content p {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stat-item:nth-child(odd) {
    border-right: none;
  }
  
  .hero-stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
  }
  
  .hero-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .app-hero-badges {
    grid-template-columns: 1fr;
  }
  
  .app-stats-bar {
    padding: 32px var(--app-side-pad);
  }

  .app-stats-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .bar-stat-item {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding: 0;
  }

  .bar-stat-text p {
    white-space: normal;
  }
}
