@import url("home-revamp.css");

/* Mobile App Development — service detail (Rajkar revamp theme) */

.ma-page {
  --ma-navy: #022d62;
  --ma-navy-mid: #0a4a8a;
  --ma-accent: #00c2a8;
  --ma-bg: #f8fafc;
  --ma-muted: #5a6578;
  --ma-border: #e8edf2;
}

/* Sections */
.ma-section {
  padding: 4.75rem 0;
}

.ma-section--light {
  background: #fff;
}

.ma-section--muted {
  background: var(--ma-bg);
}

.ma-section--dark {
  background: linear-gradient(160deg, #022d62 0%, #041a38 100%);
  color: #fff;
}

.ma-section-header {
  margin-bottom: 2.75rem;
}

.ma-section h2 {
  color: var(--ma-navy);
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ma-section--dark h2,
.ma-section--dark .ma-section__lead {
  color: #fff;
}

.ma-section--dark .ma-section__lead {
  color: rgba(255, 255, 255, 0.82);
}

.ma-section__lead {
  color: var(--ma-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}

/* Hero */
.ma-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #022d62 0%, #0a4a8a 45%, #022d62 100%) !important;
  overflow: hidden;
  padding: 0 !important;
  border-bottom: none;
}

.rg-hero.ma-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/mobile_development-1.jpg") center/cover no-repeat;
  opacity: 1;
  z-index: 0;
}

.rg-hero.ma-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 45, 98, 0.92) 0%,
    rgba(2, 45, 98, 0.82) 42%,
    rgba(2, 45, 98, 0.62) 100%
  );
  z-index: 1;
}

.ma-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 2.75rem;
  padding-bottom: 2rem;
}

@media (max-width: 991px) {
  .ma-hero .container {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .ma-hero .container {
    padding-top: 3.25rem;
    padding-bottom: 1.75rem;
  }
}

.ma-breadcrumb {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.ma-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.ma-breadcrumb a:hover {
  color: var(--ma-accent);
}

.ma-hero__content h1 {
  color: #fff;
  text-align: left;
  font-size: clamp(1.85rem, 4vw, 3rem);
  max-width: 920px;
  margin-bottom: 0.85rem;
}

.ma-hero__content h1 span {
  color: var(--ma-accent);
}

.ma-hero .rg-hero-lead {
  text-align: left;
  margin: 0 0 1.25rem;
  max-width: 820px;
}

.ma-hero .rg-hero-ctas {
  justify-content: flex-start;
  margin-bottom: 1.1rem;
}

.ma-hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 760px;
}

.ma-hero-trust span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.65rem, 1.1vw, 0.78rem);
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
  white-space: nowrap;
}

.ma-hero-trust i {
  color: var(--ma-accent);
  font-size: 0.75rem;
}

/* Hero phone visual */
.ma-hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ma-hero-phones {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.ma-hero-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--ma-border);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 12px 32px rgba(2, 45, 98, 0.15);
  min-width: 140px;
  z-index: 2;
}

.ma-hero-float small {
  display: block;
  color: var(--ma-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.ma-hero-float strong {
  display: block;
  color: var(--ma-navy);
  font-size: 1.1rem;
  line-height: 1.2;
}

.ma-hero-float span {
  display: block;
  color: var(--ma-accent);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.ma-hero-float--1 { top: 8%; left: 0; }
.ma-hero-float--2 { top: 38%; right: 0; }
.ma-hero-float--3 { bottom: 10%; left: 8%; }

/* Stats bar */
.ma-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.ma-stat-item {
  text-align: center;
  padding: 0.5rem;
}

.ma-stat-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 194, 168, 0.15);
  color: var(--ma-accent);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.ma-section--dark .ma-stat-item i {
  background: rgba(0, 194, 168, 0.2);
  color: #9ff7eb;
}

.ma-stat-item strong {
  display: block;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.ma-stat-item span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Service cards */
.ma-service-card {
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ma-section--muted .ma-service-card {
  background: #fff;
}

.ma-service-card:hover {
  border-color: rgba(0, 194, 168, 0.45);
  box-shadow: 0 20px 56px rgba(2, 45, 98, 0.1);
  transform: translateY(-4px);
}

.ma-service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ma-navy), var(--ma-navy-mid));
  color: var(--ma-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.15rem;
}

.ma-service-card h3 {
  font-size: 1.15rem;
  color: var(--ma-navy);
  margin-bottom: 0.65rem;
}

.ma-service-card p {
  color: var(--ma-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.ma-service-card__link {
  color: var(--ma-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.ma-service-card__link:hover {
  color: #008f7a;
}

/* Tech categories */
.ma-tech-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.ma-tech-cat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.ma-tech-cat h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.ma-tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.ma-tech-logos img {
  height: 32px;
  width: 48px;
  max-width: 56px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 0.35rem;
  opacity: 1;
}

.ma-tech-logos span {
  display: block;
  width: 100%;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

/* Portfolio carousel */
#ma-portfolio .container {
  overflow: hidden;
}

.ma-portfolio-wrap {
  position: relative;
  padding: 0 2.75rem;
  margin: 0 auto;
  max-width: 100%;
}

.ma-portfolio-carousel.owl-carousel {
  position: relative;
}

.ma-portfolio-carousel .owl-stage-outer {
  overflow: hidden;
  border-radius: 16px;
}

.ma-portfolio-carousel .owl-item {
  padding: 0.15rem 0;
}

.ma-portfolio-carousel .owl-item img {
  width: 100% !important;
  display: block !important;
  margin: 0;
}

.ma-portfolio-card {
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  height: 100%;
  margin: 0 auto;
  max-width: 100%;
}

.ma-portfolio-card__img {
  background: var(--ma-bg);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  line-height: 0;
}

.ma-portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.ma-portfolio-card__body {
  padding: 1rem 1.15rem 1.25rem;
}

.ma-portfolio-card h3 {
  color: var(--ma-navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.ma-portfolio-card p {
  color: var(--ma-muted);
  font-size: 0.82rem;
  margin: 0;
}

.ma-portfolio-carousel .owl-nav {
  position: static;
}

.ma-portfolio-carousel .owl-nav .owl-prev,
.ma-portfolio-carousel .owl-nav .owl-next {
  width: 40px;
  height: 40px;
  margin: 0 !important;
  top: 42%;
  transform: translateY(-50%);
  background: var(--ma-navy) !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.ma-portfolio-carousel .owl-nav .owl-prev {
  left: 0 !important;
}

.ma-portfolio-carousel .owl-nav .owl-next {
  right: 0 !important;
}

.ma-portfolio-carousel .owl-nav i {
  color: #fff !important;
  opacity: 1 !important;
  font-size: 1rem;
  line-height: 1;
}

.ma-portfolio-carousel .owl-dots {
  margin-top: 1.25rem;
  line-height: 1;
}

/* Process timeline */
.ma-process-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ma-process-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.65rem 1.35rem;
  text-align: center;
}

.ma-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ma-navy);
  border: 2px solid var(--ma-accent);
  color: var(--ma-accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.ma-process-step > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 194, 168, 0.2);
  color: #9ff7eb;
  border: 1px solid rgba(159, 247, 235, 0.28);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.ma-process-step h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.ma-process-step p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .ma-process-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 992px) {
  .ma-process-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem 1.25rem;
  }

  .ma-process-step {
    padding: 1.75rem 1.25rem;
  }
}

/* Why Rajkar — split layout */
.ma-why-intro {
  color: var(--ma-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  max-width: 420px;
}

#ma-why .ma-section__lead {
  margin-left: 0;
}

.ma-why-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ma-why-point:hover {
  border-color: rgba(0, 194, 168, 0.4);
  box-shadow: 0 14px 40px rgba(2, 45, 98, 0.08);
}

.ma-why-point__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ma-navy), var(--ma-navy-mid));
  color: var(--ma-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ma-why-point__body h3 {
  color: var(--ma-navy);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.ma-why-point__body p {
  color: var(--ma-muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.55;
}

/* Testimonials */
.ma-testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  height: 100%;
}

.ma-testimonial-card .ma-stars {
  color: #ffc107;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.ma-testimonial-card blockquote {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  border: none;
  padding: 0;
}

.ma-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ma-testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 194, 168, 0.4);
}

.ma-testimonial-author strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.ma-testimonial-author span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
}

/* Final CTA — shared with website development page */
.ma-page .wd-cta-premium {
  background: linear-gradient(135deg, #022d62 0%, #0a4a8a 55%, #041a38 100%);
  border-radius: 0;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.ma-page .wd-cta-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0, 194, 168, 0.2), transparent 45%);
}

.ma-page .wd-cta-premium .container {
  position: relative;
  z-index: 1;
}

.ma-page .wd-cta-premium__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.ma-page .wd-cta-premium h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.65rem;
  max-width: 640px;
}

.ma-page .wd-cta-premium p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 620px;
  line-height: 1.65;
}

.ma-page .wd-cta-premium .btn-primary-round {
  background: var(--ma-accent);
  border-color: var(--ma-accent);
  color: var(--ma-navy);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.8rem 1.6rem;
  white-space: nowrap;
}

.ma-page .wd-cta-premium .btn-primary-round:hover {
  background: #00e6c8;
  border-color: #00e6c8;
  color: var(--ma-navy);
}

/* Responsive */
@media (max-width: 1199px) {
  .ma-tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ma-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .ma-hero-visual {
    margin-top: 2rem;
    min-height: 280px;
  }

  .ma-hero-float--1 { left: 2%; }
  .ma-hero-float--3 { left: 2%; }

  .ma-tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .ma-section {
    padding: 3.5rem 0;
  }

  .ma-hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.5rem;
  }

  .ma-hero-trust span {
    white-space: normal;
    font-size: 0.72rem;
  }

  .ma-hero-float {
    display: none;
  }

  .ma-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-tech-grid {
    grid-template-columns: 1fr;
  }

  .ma-portfolio-wrap {
    padding: 0 0.15rem 0.5rem;
  }

  .ma-portfolio-carousel .owl-nav {
    display: none !important;
  }

  .ma-portfolio-carousel .owl-dots {
    display: block !important;
    margin-top: 1rem;
  }

  .ma-portfolio-card__img {
    aspect-ratio: 4 / 3;
  }

  .ma-page .wd-cta-premium__inner {
    text-align: center;
    justify-content: center;
  }

  .ma-page .wd-cta-premium h2,
  .ma-page .wd-cta-premium p {
    max-width: 100%;
  }

  .ma-why-intro {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ma-service-card:hover {
    transform: none;
  }
}
