/* ==========================================================================
   TECHNOWEZ — Mobile App Development Section Stylesheet
   File: mobile-app.css
   Matches brand identity: Poppins, #013faa, #01066a, #0155fc, #ff4d00
   ========================================================================== */

#mobile-apps {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 50%, #ffffff 100%);
  color: #1e293b;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Background ambient light blobs */
#mobile-apps .tw-app-bg-glow {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 63, 170, 0.08) 0%, rgba(1, 85, 252, 0.02) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

#mobile-apps .tw-app-bg-glow-2 {
  position: absolute;
  bottom: 15%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

#mobile-apps .container {
  position: relative;
  z-index: 1;
}

/* Eyebrow Badge */
.tw-app-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 63, 170, 0.08);
  color: #013faa;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(1, 63, 170, 0.15);
  margin-bottom: 1.25rem;
}

.tw-app-eyebrow i {
  color: #0155fc;
  font-size: 0.95rem;
}

/* Main Heading */
.tw-app-heading {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.tw-app-heading .tw-gradient-text {
  background: linear-gradient(135deg, #013faa 0%, #0155fc 50%, #00a2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subheading & Description */
.tw-app-subheading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 1rem;
}

.tw-app-desc {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Key Features Highlights Pills */
.tw-app-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.tw-app-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.tw-app-pill-item i {
  color: #0155fc;
  font-size: 0.95rem;
}

.tw-app-pill-item:hover {
  transform: translateY(-2px);
  border-color: #0155fc;
  box-shadow: 0 4px 12px rgba(1, 85, 252, 0.12);
}

/* CTAs and Reassurance Badge */
.tw-app-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
}

.tw-btn-app-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(155deg, #013faa, #01066a);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 13px 28px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(1, 63, 170, 0.3);
  cursor: pointer;
}

.tw-btn-app-primary:hover {
  background: linear-gradient(155deg, #0155fc, #097de3);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(1, 85, 252, 0.4);
  color: #ffffff !important;
}

.tw-btn-app-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #013faa !important;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid rgba(1, 63, 170, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tw-btn-app-secondary:hover {
  background: rgba(1, 63, 170, 0.05);
  border-color: #013faa;
  transform: translateY(-2px);
}

.tw-app-budget-reassurance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #475569;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 10px 16px;
  border-radius: 10px;
  max-width: fit-content;
}

.tw-app-budget-reassurance i {
  color: #10b981;
  font-size: 1.1rem;
}

/* ==========================================================================
   Interactive CSS Smartphone Mockup & Floating Glass Cards (Pixel-Perfect)
   ========================================================================== */
.tw-phone-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  width: 100%;
}

.tw-phone-frame {
  position: relative;
  width: 295px;
  max-width: 100%;
  height: 580px;
  background: #0f172a;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 
    0 0 0 2px #334155,
    0 25px 60px -15px rgba(3, 68, 188, 0.25),
    0 0 45px rgba(1, 85, 252, 0.12);
  transition: transform 0.4s ease;
  margin: 0 auto;
}

.tw-phone-frame:hover {
  transform: translateY(-6px);
}

.tw-phone-screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island / Notch */
.tw-phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 18px;
  background: #0f172a;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tw-notch-cam {
  width: 7px;
  height: 7px;
  background: #1e293b;
  border-radius: 50%;
  border: 1px solid #334155;
}

/* Status Bar */
.tw-screen-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  z-index: 5;
}

.tw-statusbar-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
}

.tw-screen-header {
  padding: 10px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.tw-screen-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tw-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-user-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #013faa, #0155fc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
}

.tw-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.tw-user-location {
  font-size: 0.7rem;
  color: #64748b;
}

/* Screen Search & Category Pills */
.tw-screen-search {
  margin: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.tw-screen-quick-cats {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
}

.tw-cat-chip {
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.tw-cat-chip.active {
  background: #013faa;
  color: #ffffff;
  border-color: #013faa;
}

/* Screen Active Order Visual Simulation */
.tw-screen-card-active {
  margin: 0 16px 12px;
  background: linear-gradient(135deg, #013faa, #01066a);
  border-radius: 16px;
  padding: 14px;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(1, 63, 170, 0.25);
}

.tw-card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tw-badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tw-pulse-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: twPulse 1.5s infinite;
}

@keyframes twPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.tw-order-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tw-order-eta {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.tw-progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.tw-progress-fill {
  width: 75%;
  height: 100%;
  background: #00f5d4;
  border-radius: 10px;
}

/* Screen Items List */
.tw-screen-item-card {
  margin: 0 16px 8px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tw-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-item-icon-box {
  width: 34px;
  height: 34px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0155fc;
  font-size: 0.85rem;
}

.tw-item-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.tw-item-info-sub {
  font-size: 0.68rem;
  color: #64748b;
}

/* Floating Interactive Glass Cards */
.tw-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: twFloat 4s ease-in-out infinite;
}

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

.tw-card-top-left {
  top: 75px;
  left: -28px;
  animation-delay: 0s;
  transform: scale(0.92);
}

.tw-card-bottom-right {
  bottom: 70px;
  right: -28px;
  animation-delay: 2s;
  transform: scale(0.92);
}

.tw-card-bottom-left {
  bottom: 30px;
  left: -35px;
  animation-delay: 1s;
}

.tw-floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tw-icon-success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.tw-icon-blue {
  background: rgba(1, 85, 252, 0.12);
  color: #0155fc;
}

.tw-icon-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.tw-floating-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.tw-floating-sub {
  font-size: 0.72rem;
  color: #64748b;
}

/* ==========================================================================
   App Categories Section & Modern 1-Row Display
   ========================================================================== */
.tw-app-categories-section {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.tw-section-header-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.tw-section-header-center h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #00163e;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.tw-section-header-center p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
}

/* Category Card: 2026 Premium Agency Glassmorphic Layout */
.tw-app-category-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(3, 68, 188, 0.12);
  border-radius: 20px;
  padding: 24px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 18px rgba(3, 68, 188, 0.04);
  overflow: hidden;
}

.tw-app-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0344bc, #026ced, #38b6ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tw-app-category-card:hover {
  transform: translateY(-8px);
  border-color: rgba(3, 68, 188, 0.35);
  box-shadow: 0 20px 40px rgba(3, 68, 188, 0.12);
}

.tw-app-category-card:hover::before {
  opacity: 1;
}

.tw-category-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.tw-category-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(3, 68, 188, 0.08) 0%, rgba(2, 108, 237, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #0344bc;
  transition: all 0.3s ease;
}

.tw-app-category-card:hover .tw-category-icon-wrap {
  background: linear-gradient(135deg, #0344bc, #026ced);
  color: #ffffff;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 20px rgba(3, 68, 188, 0.28);
}

.tw-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f0f5ff;
  color: #0344bc;
  border: 1px solid rgba(3, 68, 188, 0.14);
  letter-spacing: 0.3px;
}

.tw-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #00163e;
  margin-bottom: 0.6rem;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.tw-category-desc {
  font-size: 0.9rem;
  color: #556987;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tw-category-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #f8fbff;
  color: #0344bc;
  border: 1px solid rgba(3, 68, 188, 0.18);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  margin-top: auto;
}

.tw-category-cta-btn i {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.tw-category-cta-btn:hover {
  background: linear-gradient(135deg, #0344bc, #026ced);
  color: #ffffff !important;
  border-color: #0344bc;
  box-shadow: 0 6px 18px rgba(3, 68, 188, 0.25);
}

.tw-category-cta-btn:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Expand / Show More Button with Animated Chevron Down
   ========================================================================== */
.tw-expand-wrapper {
  margin: 2.5rem 0 1rem;
}

.tw-btn-expand-categories {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: #0344bc;
  border: 1.5px solid rgba(3, 68, 188, 0.25);
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(3, 68, 188, 0.08);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.tw-btn-expand-categories:hover {
  background: linear-gradient(135deg, #0344bc, #026ced);
  color: #ffffff;
  border-color: #0344bc;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(3, 68, 188, 0.22);
}

.tw-expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(3, 68, 188, 0.08);
  transition: transform 0.35s ease, background 0.3s ease;
}

.tw-btn-expand-categories:hover .tw-expand-icon {
  background: rgba(255, 255, 255, 0.25);
}

.tw-btn-expand-categories.is-expanded .tw-expand-icon i {
  transform: rotate(180deg);
}

.tw-expand-icon i {
  font-size: 0.85rem;
  animation: twBounceDown 1.8s infinite ease-in-out;
  transition: transform 0.3s ease;
}

.tw-btn-expand-categories.is-expanded .tw-expand-icon i {
  animation: none;
}

@keyframes twBounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Collapsible containers */
.tw-extra-categories-collapse,
.tw-extra-features-collapse {
  margin-top: 0.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tw-extra-categories-collapse.is-showing,
.tw-extra-features-collapse.is-showing {
  animation: twFadeSlideDown 0.45s ease-out forwards;
}

/* Feature 5 & 6 mobile responsiveness:
   Desktop (>= 992px) displays all 6 initial cards (2 rows x 3 columns).
   Mobile/Tablet (< 992px) displays only 4 initial cards.
   When expanded, Feature 5 & 6 and 7-12 are shown smoothly on mobile! */
@media (max-width: 991.98px) {
  .tw-feature-desktop-only {
    display: none;
  }
  .tw-features-is-expanded .tw-feature-desktop-only {
    display: block !important;
    animation: twFadeSlideDown 0.45s ease-out forwards;
  }
}

@keyframes twFadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Architecture Points: 2026 Tech-Grade Interactive Cards
   ========================================================================== */
.tw-app-features-section {
  margin-top: 4.5rem;
  padding: 3.25rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(3, 68, 188, 0.12);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(3, 68, 188, 0.04);
  position: relative;
  overflow: hidden;
}

.tw-app-features-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(2, 108, 237, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tw-feature-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 24px;
  height: 100%;
  position: relative;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.tw-feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(3, 68, 188, 0.4);
  box-shadow: 0 18px 36px rgba(3, 68, 188, 0.12);
}

.tw-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.tw-feature-icon-circle {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0344bc, #026ced);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(3, 68, 188, 0.25);
  transition: all 0.3s ease;
}

.tw-feature-item:hover .tw-feature-icon-circle {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 10px 24px rgba(3, 68, 188, 0.35);
}

.tw-feature-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f0f5ff;
  color: #0344bc;
  border: 1px solid rgba(3, 68, 188, 0.15);
  letter-spacing: 0.3px;
}

.tw-feature-info h5 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #00163e;
  margin-bottom: 6px;
  line-height: 1.35;
}

.tw-feature-info p {
  font-size: 0.9rem;
  color: #556987;
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   App Development Process Row
   ========================================================================== */
.tw-app-process-section {
  margin-top: 4rem;
}

.tw-process-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 24px 18px;
  height: 100%;
  transition: all 0.3s ease;
}

.tw-process-card:hover {
  transform: translateY(-4px);
  border-color: #0155fc;
  box-shadow: 0 12px 24px rgba(1, 85, 252, 0.08);
}

.tw-process-step-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #013faa;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.tw-process-card h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.tw-process-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
  .tw-app-heading {
    font-size: 2.2rem;
  }
  .tw-phone-mockup-wrapper {
    margin-top: 3rem;
  }
  .tw-floating-card {
    display: none; /* Hide floating cards on tablet/mobile to prevent overflow */
  }
}

@media (max-width: 768px) {
  #mobile-apps {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .tw-app-heading {
    font-size: 1.85rem;
  }
  .tw-app-subheading {
    font-size: 1.05rem;
  }
  .tw-phone-frame {
    width: 280px;
    height: 540px;
    border-radius: 36px;
  }
  .tw-app-features-section {
    padding: 2rem 1rem;
    border-radius: 20px;
  }
  .tw-section-header-center h3 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.45rem;
  }
  .tw-section-header-center p {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
  }
  .tw-app-category-card {
    padding: 14px 10px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(3, 68, 188, 0.05);
  }
  .tw-category-card-top {
    margin-bottom: 0.45rem;
    gap: 4px;
  }
  .tw-category-icon-wrap {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    font-size: 0.95rem;
  }
  .tw-category-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .tw-category-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 0.3rem;
    letter-spacing: -0.15px;
    color: #00163e;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
  .tw-category-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #556987;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tw-category-cta-btn {
    padding: 6px 8px;
    font-size: 0.74rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: auto;
  }
  .tw-category-cta-btn i {
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .tw-app-heading {
    font-size: 1.6rem;
  }
  .tw-app-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .tw-btn-app-primary,
  .tw-btn-app-secondary {
    justify-content: center;
    width: 100%;
  }
  .tw-phone-frame {
    width: 260px;
    height: 500px;
  }
  .tw-app-category-card {
    padding: 12px 8px 10px;
  }
  .tw-category-title {
    font-size: 0.84rem;
  }
  .tw-category-desc {
    font-size: 0.69rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }
  .tw-category-icon-wrap {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.88rem;
  }
  .tw-category-badge {
    font-size: 0.58rem;
    padding: 2px 5px;
  }
  .tw-category-cta-btn {
    padding: 5px 6px;
    font-size: 0.7rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .tw-floating-card,
  .tw-pulse-dot {
    animation: none !important;
  }
  .tw-app-category-card,
  .tw-phone-frame,
  .tw-btn-app-primary {
    transition: none !important;
  }
}

@media (max-width: 767.98px) {
  .tw-floating-card {
    display: none !important;
  }
}

/* ==========================================================================
   DYNAMIC HIGH-DEMAND APP SIMULATOR (FOOD & QUICK COMMERCE FLOW)
   ========================================================================== */

/* Main Dynamic App Container */
.tw-phone-app-container {
  display: flex;
  flex-direction: column;
  height: calc(100% - 28px);
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

/* Step Indicator Pills inside phone */
.tw-app-screen-tabs {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 6px;
  gap: 4px;
  z-index: 10;
}

.tw-screen-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  padding: 4px 2px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.tw-screen-tab-btn.active {
  color: #013faa;
  background: #edf4ff;
}

.tw-screen-tab-btn .tw-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #0155fc;
  transition: width 0.1s linear;
}

.tw-screen-tab-btn.active .tw-tab-progress {
  width: 100%;
  transition: width 4.5s linear;
}

/* Dynamic Viewport (Houses the 4 sliding screens) */
.tw-app-viewport {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.tw-sim-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}

.tw-sim-screen::-webkit-scrollbar {
  display: none;
}

.tw-sim-screen.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 5;
}

/* Common Screen Header */
.tw-sim-screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.tw-sim-loc {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tw-sim-loc i {
  color: #0155fc;
  font-size: 0.8rem;
}

/* Screen 1: Store & Catalog */
.tw-store-banner {
  margin: 8px 10px 6px;
  background: linear-gradient(135deg, #013faa 0%, #0155fc 60%, #00d2ff 100%);
  border-radius: 14px;
  padding: 10px 12px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(1, 63, 170, 0.2);
}

.tw-store-banner-tag {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}

.tw-store-banner-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.tw-store-banner-sub {
  font-size: 0.65rem;
  color: #e0f2fe;
}

.tw-store-cats {
  display: flex;
  gap: 6px;
  padding: 0 10px 6px;
  overflow-x: auto;
}

.tw-store-cat-chip {
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.tw-store-cat-chip.active {
  background: #013faa;
  color: #ffffff;
  border-color: #013faa;
}

/* Products List in Screen 1 */
.tw-store-product-item {
  margin: 0 10px 8px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tw-prod-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-prod-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.tw-prod-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 2px;
}

.tw-prod-rating {
  font-size: 0.65rem;
  color: #f59e0b;
  font-weight: 700;
}

.tw-prod-price {
  font-size: 0.74rem;
  font-weight: 800;
  color: #013faa;
}

.tw-btn-add-item {
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #013faa;
  background: #ffffff;
  color: #013faa;
  cursor: pointer;
}

.tw-btn-add-item.added {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Floating Cart Bar at bottom of Screen 1 */
.tw-store-cart-trigger {
  margin: auto 10px 8px;
  background: linear-gradient(135deg, #013faa, #01066a);
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(1, 63, 170, 0.3);
  animation: twCartPulse 2.5s infinite;
}

@keyframes twCartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.tw-cart-text {
  font-size: 0.74rem;
  font-weight: 700;
}

.tw-cart-btn {
  font-size: 0.7rem;
  font-weight: 700;
  color: #00f5d4;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Screen 2: Checkout & Instant UPI Payment */
.tw-screen-pay {
  padding: 10px;
}

.tw-pay-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
}

.tw-pay-header {
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tw-pay-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 4px;
}

.tw-pay-row.total {
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #013faa;
}

.tw-upi-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.tw-upi-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
}

.tw-upi-left i {
  color: #0155fc;
  font-size: 1rem;
}

/* Payment Success Box */
.tw-pay-success-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  animation: twSuccessFade 0.6s ease-out;
}

@keyframes twSuccessFade {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.tw-success-icon-wrap {
  width: 44px;
  height: 44px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 8px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.tw-success-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #065f46;
}

.tw-success-ref {
  font-size: 0.68rem;
  color: #047857;
  font-weight: 600;
}

/* Screen 3: Live GPS Map & Delivery Tracking */
.tw-screen-track {
  display: flex;
  flex-direction: column;
}

.tw-map-container {
  position: relative;
  width: 100%;
  height: 220px;
  background: #e2e8f0;
  overflow: hidden;
}

.tw-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Animated Road Path */
.tw-route-dash {
  stroke-dasharray: 6;
  animation: twDashFlow 1.5s linear infinite;
}

@keyframes twDashFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* Moving Scooter Pin on Map */
.tw-map-scooter-marker {
  position: absolute;
  top: 95px;
  left: 110px;
  width: 30px;
  height: 30px;
  background: #013faa;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(1, 63, 170, 0.4);
  animation: twScooterPulse 2s infinite ease-in-out;
  z-index: 10;
}

@keyframes twScooterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.tw-map-badge-eta {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.tw-pulse-green {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: twPulseGreen 1.5s infinite;
}

@keyframes twPulseGreen {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

/* Driver Card */
.tw-driver-hud-card {
  margin: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.tw-driver-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-driver-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #013faa;
}

.tw-driver-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f172a;
}

.tw-driver-vehicle {
  font-size: 0.66rem;
  color: #64748b;
}

.tw-driver-actions {
  display: flex;
  gap: 6px;
}

.tw-btn-driver-call {
  width: 32px;
  height: 32px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0155fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-decoration: none;
}

/* Screen 4: Order Delivered & 5-Star Rating */
.tw-screen-done {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tw-delivered-celebration-badge {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 12px auto 10px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  animation: twDeliveredBounce 2.5s infinite ease-in-out;
}

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

.tw-delivered-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2px;
}

.tw-delivered-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 12px;
}

.tw-rating-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  width: 100%;
  margin-bottom: 10px;
}

.tw-rating-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.tw-stars-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  color: #f59e0b;
  font-size: 1.15rem;
}

.tw-tip-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
  width: 100%;
}

.tw-tip-chip {
  flex: 1;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #013faa;
  cursor: pointer;
  text-align: center;
}

.tw-tip-chip.active {
  background: #013faa;
  color: #ffffff;
  border-color: #013faa;
}

.tw-btn-order-again {
  width: 100%;
  background: linear-gradient(135deg, #013faa, #0155fc);
  color: #ffffff;
  border: none;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(1, 63, 170, 0.25);
}

/* Persistent Bottom App Bar */
.tw-phone-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 6px 0;
  z-index: 10;
}

.tw-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 0.6rem;
  font-weight: 700;
  cursor: pointer;
}

.tw-bottom-nav-item i {
  font-size: 0.85rem;
}

.tw-bottom-nav-item.active {
  color: #013faa;
}
