/**
 * Mobile Application Development Dedicated Stylesheet
 * @package IntechnoTheme
 */

:root {
  --mad-primary: #082d71;
  --mad-navy-dark: #041b44;
  --mad-cyan: #009fe3;
  --mad-cyan-light: #38bdf8;
  --mad-purple: #7928ca;
  --mad-green: #10b981;
  --mad-dark: #0f172a;
  --mad-border: rgba(8, 45, 113, 0.08);
  --mad-shadow: 0 10px 30px rgba(8, 45, 113, 0.06);
  --mad-shadow-hover: 0 18px 45px rgba(0, 159, 227, 0.16);
  --mad-radius: 20px;
}

.mad-page {
  background: #ffffff;
  color: #475569;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HERO SECTION & 3D SMARTPHONE MOCKUP
   ========================================================================== */
.mad-hero-section {
  position: relative;
  padding: 85px 0 95px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f4f8fc 100%);
}

.mad-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(8, 45, 113, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 45, 113, 0.03) 1px, transparent 1px);
  pointer-events: none;
}

.mad-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.mad-hero-orb--1 {
  width: 450px;
  height: 450px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 159, 227, 0.15) 0%, rgba(121, 40, 202, 0.08) 100%);
}

.mad-hero-orb--2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: 5%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

.mad-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(0, 159, 227, 0.08);
  border: 1px solid rgba(0, 159, 227, 0.2);
  color: var(--mad-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.mad-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mad-primary);
  margin-bottom: 22px;
}

.mad-hero-title span {
  background: linear-gradient(135deg, var(--mad-primary) 0%, var(--mad-cyan) 60%, #ff3366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mad-hero-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.itechno-btn-mobile {
  background: linear-gradient(135deg, #082d71 0%, #009fe3 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 159, 227, 0.3) !important;
  transition: all 0.35s ease !important;
}

.itechno-btn-mobile:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0, 159, 227, 0.45) !important;
  color: #fff !important;
}

.mad-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(8, 45, 113, 0.1);
}

.mad-metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--mad-primary);
  line-height: 1.1;
}

.mad-metric-lbl {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}

/* Smartphone Mockup */
.mad-phone-mockup-wrapper {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.mad-smartphone-frame {
  background: #0f172a;
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 25px 60px rgba(8, 45, 113, 0.25), 0 0 0 2px #334155;
  position: relative;
  transition: transform 0.4s ease;
}

.mad-smartphone-frame:hover {
  transform: translateY(-6px) rotateY(-2deg);
}

.mad-phone-notch {
  width: 140px;
  height: 22px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mad-phone-notch .speaker {
  width: 40px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
}

.mad-phone-notch .camera {
  width: 8px;
  height: 8px;
  background: #1e293b;
  border-radius: 50%;
  border: 1px solid #475569;
}

.mad-phone-screen {
  background: #f8fafc;
  border-radius: 28px;
  padding: 35px 18px 25px;
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

.mad-app-header {
  background: #ffffff;
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.mad-app-logo {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--mad-primary);
}

.mad-app-welcome {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.mad-widget-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(8, 45, 113, 0.05);
  border: 1px solid rgba(8, 45, 113, 0.05);
  transition: transform 0.2s ease;
}

.mad-widget-card:hover {
  transform: translateX(4px);
}

.mad-widget-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Floating Tech Badges */
.mad-tech-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(8, 45, 113, 0.12);
  box-shadow: 0 10px 24px rgba(8, 45, 113, 0.12);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--mad-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 20;
  animation: techBob 5s ease-in-out infinite;
}

.badge-flutter {
  top: 25px;
  left: -35px;
  color: #02569B;
  animation-delay: 0s;
}

.badge-react {
  top: 40px;
  right: -35px;
  color: #61DAFB;
  animation-delay: 1.5s;
}

.badge-ios {
  bottom: 80px;
  left: -30px;
  color: #000000;
  animation-delay: 2.5s;
}

.badge-android {
  bottom: 45px;
  right: -30px;
  color: #3DDC84;
  animation-delay: 3.5s;
}

@keyframes techBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   2. CORE FEATURES (6 PILLARS)
   ========================================================================== */
.mad-pillars-section {
  background: #ffffff;
}

.mad-feature-card {
  background: #ffffff;
  border-radius: var(--mad-radius);
  border: 1px solid var(--mad-border);
  padding: 34px 28px;
  box-shadow: var(--mad-shadow);
  height: 100%;
  transition: all 0.35s ease;
}

.mad-feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--mad-shadow-hover);
  border-color: rgba(0, 159, 227, 0.3);
}

.mad-feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.icon--security { background: linear-gradient(135deg, #082d71, #009fe3); }
.icon--simplicity { background: linear-gradient(135deg, #7928ca, #b83280); }
.icon--performance { background: linear-gradient(135deg, #ff3366, #ff758c); }
.icon--affordable { background: linear-gradient(135deg, #10b981, #059669); }
.icon--speed { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.icon--custom { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.mad-feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mad-primary);
  margin-bottom: 10px;
}

.mad-feature-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   3. 16 APP CATEGORIES
   ========================================================================== */
.mad-categories-section {
  background: #f8fafc;
}

.mad-app-cat-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--mad-border);
  padding: 24px 20px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(8, 45, 113, 0.04);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mad-app-cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 159, 227, 0.35);
  box-shadow: 0 14px 30px rgba(0, 159, 227, 0.12);
}

.mad-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f9ff;
  color: var(--mad-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.mad-app-cat-card:hover .mad-cat-icon {
  background: linear-gradient(135deg, var(--mad-primary), var(--mad-cyan));
  color: #ffffff;
}

.mad-cat-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mad-primary);
  margin-bottom: 6px;
}

.mad-cat-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   4. BENEFITS & MARKET STATS
   ========================================================================== */
.mad-benefits-section {
  background: #ffffff;
}

.mad-stats-box {
  background: linear-gradient(135deg, #082d71 0%, #041b44 100%);
  border-radius: 24px;
  padding: 30px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 45, 113, 0.2);
}

.mad-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}

.mad-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 20px;
  height: 100%;
  transition: all 0.3s ease;
}

.mad-benefit-item:hover {
  background: #ffffff;
  border-color: rgba(0, 159, 227, 0.35);
  box-shadow: 0 10px 25px rgba(8, 45, 113, 0.08);
  transform: translateY(-4px);
}

.mad-ben-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mad-primary), var(--mad-cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mad-benefit-item h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mad-primary);
  margin-bottom: 6px;
}

.mad-benefit-item p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   5. GUARANTEE & PRICING
   ========================================================================== */
.mad-guarantee-section {
  background: #f8fafc;
  border-top: 1px solid var(--mad-border);
  border-bottom: 1px solid var(--mad-border);
}

.mad-guarantee-card,
.mad-pricing-info-card {
  background: #ffffff;
  border-radius: var(--mad-radius);
  padding: 38px 32px;
  border: 1px solid var(--mad-border);
  box-shadow: var(--mad-shadow);
  height: 100%;
}

.mad-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 159, 227, 0.1);
  color: var(--mad-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mad-guarantee-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--mad-primary);
  line-height: 1.35;
  margin-bottom: 16px;
}

.mad-guarantee-title span {
  color: var(--mad-cyan);
}

.mad-guarantee-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.mad-device-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 18px;
  margin-top: 20px;
}

.mad-device-strip span {
  background: #f1f5f9;
  color: var(--mad-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.mad-pricing-info-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
  border-color: rgba(0, 159, 227, 0.2);
}

.mad-pricing-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--mad-primary), var(--mad-cyan));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.mad-pricing-info-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--mad-primary);
  margin-bottom: 14px;
}

.mad-pricing-info-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 20px;
}

.mad-price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed rgba(8, 45, 113, 0.15);
  padding-top: 16px;
}

.mad-price-list li {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mad-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mad-price-list li i {
  color: var(--mad-cyan);
}

/* ==========================================================================
   6. CTA & FORM
   ========================================================================== */
.mad-cta-section {
  background: #ffffff;
}

.mad-cta-box {
  background: linear-gradient(135deg, #082d71 0%, #041b44 100%);
  border-radius: 28px;
  padding: 55px 45px;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(8, 45, 113, 0.25);
  position: relative;
  overflow: hidden;
}

.mad-cta-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 159, 227, 0.2);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.mad-cta-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.mad-cta-title span {
  color: #38bdf8;
}

.mad-cta-desc {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 30px;
}

.mad-cta-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mad-cta-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mad-cta-item i {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.1rem;
}

.mad-cta-item small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
}

.mad-cta-item strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.mad-cta-form-wrapper {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

.mad-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mad-primary);
  margin-bottom: 6px;
  display: block;
}

.mad-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mad-pill-opt {
  cursor: pointer;
  margin: 0;
}

.mad-pill-opt input {
  display: none;
}

.mad-pill-opt span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.mad-pill-opt input:checked + span {
  background: var(--mad-primary);
  color: #ffffff;
  border-color: var(--mad-primary);
  box-shadow: 0 4px 12px rgba(8, 45, 113, 0.2);
}

.mad-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mad-input:focus {
  border-color: var(--mad-cyan);
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
}

.mad-textarea {
  resize: vertical;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991px) {
  .mad-hero-title {
    font-size: 2.2rem;
  }
  .mad-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .mad-phone-mockup-wrapper {
    margin-top: 40px;
  }
  .mad-cta-box {
    padding: 35px 24px;
  }
}

@media (max-width: 575px) {
  .mad-hero-title {
    font-size: 1.85rem;
  }
  .badge-flutter,
  .badge-react,
  .badge-ios,
  .badge-android {
    display: none;
  }
}
