/* ==========================================================================
   APPLICATION DEVELOPMENT PAGE STYLES - ITWAYS
   Matches exact reference design mockup
   ========================================================================== */

.appdev-page-wrapper {
  overflow-x: hidden;
  background-color: #ffffff;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Global Container */
.appdev-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Global Section Headers */
.appdev-section-subtitle {
  font-size: 0.76rem;
  font-weight: 800;
  color: #1d6bf3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.appdev-section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.appdev-dot {
  color: #1d6bf3;
}

/* ==============================================
   1. HERO SECTION (50/50 Split Background View)
============================================== */
.appdev-hero-section {
  position: relative;
  padding: 160px 24px 80px;
  background-color: #0b0f19;
  background-image: linear-gradient(to right, #0b0f19 45%, rgba(11, 15, 25, 0.85) 55%, rgba(11, 15, 25, 0.1) 80%), url('../img/app-hero-bg.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.appdev-hero-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.appdev-hero-content {
  text-align: left;
  max-width: 600px;
  z-index: 2;
}

.appdev-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.appdev-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.appdev-highlight {
  color: #38bdf8;
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.appdev-hero-desc {
  font-size: 1.08rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}

.appdev-hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.appdev-btn-blue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
  transition: all 0.3s ease;
}

.appdev-btn-blue:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.appdev-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.appdev-btn-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

/* ==============================================
   2. CUSTOM APPLICATION DEVELOPMENT SERVICES
============================================== */
.appdev-custom-section {
  padding: 90px 0;
  background: #ffffff;
}

.appdev-custom-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
}

.appdev-custom-content h2 {
  font-size: 2.35rem;
  font-weight: 900;
  color: #0b132a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.appdev-custom-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.appdev-custom-paragraphs p {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.appdev-custom-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.appdev-custom-media img {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.15);
  border: 1px solid #e2e8f0;
}

/* ==============================================
   3. BEHIND THE CODE (Dark Navy Bar with Flow)
============================================== */
.appdev-behind-code-section {
  padding: 80px 0;
  background: #020922;
  color: #ffffff;
}

.appdev-behind-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.appdev-behind-content h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.appdev-behind-content p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 16px;
}

.appdev-flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.appdev-flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.appdev-flow-box {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: rgba(29, 107, 243, 0.12);
  border: 1.5px solid rgba(29, 107, 243, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 0 18px rgba(29, 107, 243, 0.25);
  transition: all 0.3s ease;
}

.appdev-flow-item:hover .appdev-flow-box {
  border-color: #38bdf8;
  background: rgba(29, 107, 243, 0.25);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
}

.appdev-flow-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.appdev-flow-arrow {
  color: #1d6bf3;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -24px;
}

/* ==============================================
   4. SERVICES WE OFFER (5 Horizontal Cards)
============================================== */
.appdev-services-section {
  padding: 90px 0;
  background: #ffffff;
}

.appdev-services-header {
  margin-bottom: 40px;
}

.appdev-services-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.appdev-s-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

.appdev-s-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 16px 30px -8px rgba(29, 107, 243, 0.15);
}

.appdev-s-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.appdev-s-icon.blue { background: #e0edff; color: #1d6bf3; }
.appdev-s-icon.green { background: #dcfce7; color: #10b981; }
.appdev-s-icon.purple { background: #f3e8ff; color: #9333ea; }
.appdev-s-icon.orange { background: #ffedd5; color: #ea580c; }
.appdev-s-icon.teal { background: #ccfbf1; color: #0d9488; }

.appdev-s-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.appdev-s-card p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ==============================================
   5. OUR APPLICATION DEVELOPMENT PROCESS (7 Step Timeline)
============================================== */
.appdev-process-section {
  padding: 90px 0;
  background: #f8fbff;
}

.appdev-process-header {
  margin-bottom: 50px;
}

.appdev-timeline-wrap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

/* Connecting Line */
.appdev-timeline-wrap::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 5%;
  right: 5%;
  height: 1px;
  border-top: 1.5px dashed #cbd5e1;
  z-index: 1;
}

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

.appdev-p-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.appdev-p-badge.b-blue { background: #1d6bf3; color: #ffffff; }
.appdev-p-badge.b-teal { background: #06b6d4; color: #ffffff; }
.appdev-p-badge.b-purple { background: #9333ea; color: #ffffff; }
.appdev-p-badge.b-orange { background: #f97316; color: #ffffff; }
.appdev-p-badge.b-deepblue { background: #2563eb; color: #ffffff; }
.appdev-p-badge.b-green { background: #10b981; color: #ffffff; }
.appdev-p-badge.b-violet { background: #8b5cf6; color: #ffffff; }

.appdev-p-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.appdev-p-step:hover .appdev-p-icon-box {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 8px 18px rgba(29, 107, 243, 0.15);
}

.appdev-p-step h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 38px;
}

.appdev-p-step p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ==============================================
   6. WHY CHOOSE ITWAYS (5 Columns)
============================================== */
.appdev-why-section {
  padding: 90px 0;
  background: #ffffff;
}

.appdev-why-header {
  margin-bottom: 40px;
}

.appdev-why-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.appdev-w-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

.appdev-w-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 16px 30px -8px rgba(29, 107, 243, 0.15);
}

.appdev-w-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.appdev-w-icon.blue { background: #e0edff; color: #1d6bf3; }
.appdev-w-icon.green { background: #dcfce7; color: #10b981; }
.appdev-w-icon.orange { background: #ffedd5; color: #ea580c; }
.appdev-w-icon.purple { background: #f3e8ff; color: #9333ea; }
.appdev-w-icon.teal { background: #ccfbf1; color: #0d9488; }

.appdev-w-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.35;
  min-height: 42px;
}

.appdev-w-card p {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ==============================================
   7. FINAL CTA (Dark Royal Blue with Laptop on Right)
============================================== */
.appdev-final-cta-section {
  padding: 70px 0 90px;
  background: #ffffff;
}

.appdev-cta-banner {
  background: linear-gradient(135deg, #07194f 0%, #030d2d 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px -10px rgba(7, 25, 79, 0.4);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.appdev-cta-content {
  padding: 56px 48px;
  text-align: left;
}

.appdev-cta-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.appdev-cta-content h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.appdev-cta-content p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 480px;
}

.appdev-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1d6bf3;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.appdev-btn-cta:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #0d55ce;
}

.appdev-cta-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

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

/* ==============================================
   RESPONSIVE DESIGN
============================================== */
@media (max-width: 1100px) {
  .appdev-services-5col,
  .appdev-why-5col {
    grid-template-columns: repeat(3, 1fr);
  }
  .appdev-timeline-wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .appdev-timeline-wrap::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .appdev-hero-grid,
  .appdev-custom-grid,
  .appdev-behind-grid,
  .appdev-cta-banner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .appdev-cta-content {
    padding: 40px 28px 20px;
  }
  .appdev-flow-container {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .appdev-hero-title {
    font-size: 2.2rem;
  }
  .appdev-custom-content h2,
  .appdev-behind-content h2,
  .appdev-section-title,
  .appdev-cta-content h2 {
    font-size: 1.85rem;
  }
  .appdev-services-5col,
  .appdev-why-5col,
  .appdev-timeline-wrap {
    grid-template-columns: 1fr;
  }
  .appdev-flow-container {
    flex-direction: column;
    gap: 16px;
  }
  .appdev-flow-arrow {
    transform: rotate(90deg);
    margin: 0;
  }
}
