/* ==========================================================
   mobile-app-development.css
   Page-specific styles for Mobile App Development service page
   SMEdigital - smedigital.in
   ========================================================== */

/* ── Floating Mobile UI Decorations ── */
.mad-ui-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: mad-float 8s ease-in-out infinite;
}

.mad-ui-float--1 {
  top: 15%;
  left: 4%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.mad-ui-float--2 {
  top: 30%;
  right: 5%;
  font-size: 2.5rem;
  color: rgba(235, 96, 31, 0.2);
  animation-delay: 1.5s;
  animation-duration: 9s;
}

.mad-ui-float--3 {
  bottom: 28%;
  left: 7%;
  font-size: 2rem;
  color: rgba(235, 96, 31, 0.15);
  animation-delay: 3s;
  animation-duration: 8s;
}

.mad-ui-float--4 {
  bottom: 18%;
  right: 9%;
  animation-delay: 2s;
  animation-duration: 11s;
}

@keyframes mad-float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-20px) rotate(2deg); }
}

/* Phone mock decoration */
.mad-phone-mock {
  width: 52px;
  height: 90px;
  border: 2px solid rgba(235, 96, 31, 0.25);
  border-radius: 10px;
  padding: 8px 6px;
  position: relative;
}

.mad-phone-mock::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 3px;
  background: rgba(235, 96, 31, 0.3);
  border-radius: 2px;
}

.mad-phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding-top: 8px;
}

.mad-screen-line {
  height: 3px;
  background: rgba(235, 96, 31, 0.25);
  border-radius: 2px;
  width: 100%;
}

.mad-screen-line--short {
  width: 60%;
}

/* Code snippet decoration */
.mad-code-snippet {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: rgba(235, 96, 31, 0.2);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mad-ui-float { display: none; }
}

/* ── Stats Counter Section ── */
.mad-stats-section {
  border-radius: 2rem;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(235, 96, 31, 0.2);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.mad-stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #eb601f, transparent);
}

.mad-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .mad-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mad-stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mad-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(235, 96, 31, 0.15);
}

.mad-stat-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.mad-stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: #eb601f;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.mad-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .mad-stat-number { font-size: 2rem; }
}

/* ── Tech Stack Grid ── */
.mad-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .mad-tech-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .mad-tech-grid { grid-template-columns: repeat(6, 1fr); }
}

.mad-tech-card {
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.mad-tech-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--tech-color, #eb601f);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.mad-tech-card:hover {
  border-color: var(--tech-color, #eb601f);
  box-shadow: 0 6px 25px rgba(235, 96, 31, 0.15);
  transform: translateY(-4px);
}

.mad-tech-card:hover::before { transform: scaleX(1); }

.mad-tech-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.mad-tech-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

/* ── Industries Grid ── */
.mad-industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .mad-industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .mad-industry-grid { grid-template-columns: repeat(3, 1fr); }
}

.mad-industry-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mad-industry-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #eb601f;
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.mad-industry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(235, 96, 31, 0.3);
  box-shadow: 0 10px 35px rgba(235, 96, 31, 0.12);
}

.mad-industry-card:hover::after { transform: scaleY(1); }

.mad-industry-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.mad-industry-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.mad-industry-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── Why Choose Us Grid ── */
.mad-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .mad-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .mad-why-grid { grid-template-columns: repeat(3, 1fr); }
}

.mad-why-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mad-why-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(235, 96, 31, 0.4), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.mad-why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(235, 96, 31, 0.3);
  box-shadow: 0 12px 40px rgba(235, 96, 31, 0.12);
}

.mad-why-card:hover::after { transform: scaleX(1); }

.mad-why-card--highlight {
  border-color: rgba(235, 96, 31, 0.3);
  background: rgba(235, 96, 31, 0.06);
}

.mad-why-card--highlight::after {
  background: linear-gradient(to right, transparent, #eb601f, transparent);
  transform: scaleX(1);
}

.mad-why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.mad-why-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.mad-why-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ── Ensure cards visible as fallback ── */
.mad-tech-card,
.mad-industry-card,
.mad-why-card {
  opacity: 1;
}

/* ── Mobile overrides ── */
@media (max-width: 768px) {
  .mad-stats-section  { padding: 2rem 1rem; }
  .mad-stat-number    { font-size: 1.75rem; }
  .mad-industry-grid  { gap: 1rem; }
  .mad-why-grid       { gap: 1rem; }
  .mad-tech-grid      { gap: 0.75rem; }
}