/* =========================================================
   UI/UX DESIGN PAGE (only used by ui-ux-design.html)
   Layla's Bakery again: this time a customer orders a cake,
   first the hard way, then after a UX redesign.
   ========================================================= */

.section-sub {
  max-width: 640px;
  margin: -16px auto 36px;
  font-size: 17px;
}

/* ---------- 1. Hero layout: animation left, words right ---------- */

.ux-hero-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 40px 40px;
  text-align: left;
}

.ux-hero-text h1 {
  font-size: 46px;
  line-height: 1.15;
  margin: 12px 0 14px;
}

.ux-lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.ux-hero-buttons {
  justify-content: flex-start;
  margin: 0 0 14px;
}

.ux-hero-buttons .btn,
.ux-hero-buttons .btn-outline {
  margin: 0;
}

.ux-reassure {
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
}

/* ---------- The demo area ---------- */

.ux-demo {
  position: relative;
}

/* "Before UX" label and the click counter above the browser */
.ux-chips {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ux-label,
.ux-counter {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  transition: background 0.4s, color 0.4s;
}

.ux-label {
  background: rgba(255, 118, 117, 0.15);
  color: #ff7675;
}

.ux-counter {
  background: #1f1f2a;
  color: #e8e8f0;
}

.ux-counter.bump {
  animation: ux-bump 0.35s ease;
}

@keyframes ux-bump {
  50% { transform: scale(1.15); }
}

/* After the redesign, the chips turn green */
.is-after .ux-label,
.is-after .ux-counter {
  background: rgba(85, 239, 196, 0.15);
  color: #55efc4;
}

.is-redesign .ux-label {
  background: rgba(108, 92, 231, 0.2);
  color: #a29bfe;
}

/* The browser window */
.ux-browser {
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.ux-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #ececf1;
}

.ux-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c8c8d0;
}

.ux-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 12px;
  color: #777777;
}

/* Layla's website: same look as on the Web Design page */
.ux-page {
  position: relative;
  height: 360px;
  overflow: hidden;
  padding: 14px 18px;
  font-family: 'Poppins', sans-serif;
  color: #2d2d2d;
}

.ux-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ux-nav strong {
  font-weight: 800;
  color: #e84393;
}

.ux-links {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #555555;
}

.ux-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9a5c, #e84393);
  color: #ffffff;
  text-align: center;
}

.ux-h1 {
  font-size: 22px;
  font-weight: 800;
}

.ux-p {
  font-size: 13px;
  opacity: 0.9;
}

/* The "Order a cake" button only appears after the redesign */
.ux-order {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 20px;
  margin-top: 0;
  border-radius: 99px;
  background: #ffffff;
  color: #e84393;
  font-size: 14px;
  font-weight: 700;
  transform: scale(0.6);
  transition: max-height 0.5s, opacity 0.5s, padding 0.5s, margin 0.5s, transform 0.5s;
}

.is-after .ux-order {
  max-height: 44px;
  opacity: 1;
  padding: 9px 22px;
  margin-top: 12px;
  transform: scale(1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Menu cards */
.ux-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.ux-card {
  padding: 14px 6px;
  border-radius: 12px;
  background: #fff4ec;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: box-shadow 0.3s;
}

.show-menu .ux-card {
  box-shadow: 0 0 0 2px #ffd3b8;
}

.ux-note {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
  color: #d63031;
  opacity: 0;
  transition: opacity 0.4s;
}

.show-note .ux-note {
  opacity: 1;
}

/* The long contact form (before) */
.ux-form {
  display: none;
  gap: 8px;
  margin-top: 12px;
}

.show-form .ux-form {
  display: grid;
}

.show-form .ux-home {
  display: none;
}

.ux-field {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-size: 13px;
}

.ux-field em {
  width: 64px;
  flex-shrink: 0;
  font-style: normal;
  color: #999999;
}

.ux-field.active {
  border-color: #e84393;
}

.ux-send {
  justify-self: start;
  padding: 7px 16px;
  border-radius: 8px;
  background: #e0e0e0;
  font-size: 13px;
  font-weight: 600;
}

.ux-form-msg {
  margin: 0;
  font-size: 12px;
  color: #888888;
  opacity: 0;
  transition: opacity 0.4s;
}

.form-sent .ux-form-msg {
  opacity: 1;
}

/* The 3-step order sheet (after): slides up from the bottom */
.ux-flow {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 -10px 40px rgba(232, 67, 147, 0.25);
  transform: translateY(120%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.5s;
}

.show-flow .ux-flow {
  transform: translateY(0);
  visibility: visible;
}

.ux-step {
  display: none;
  font-size: 13px;
}

.flow-1 .ux-step1,
.flow-2 .ux-step2 {
  display: block;
}

.flow-3 .ux-step3 {
  display: flex;
}

.ux-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.ux-opts {
  display: flex;
  gap: 8px;
}

.ux-opt {
  flex: 1;
  padding: 10px 6px;
  border-radius: 10px;
  background: #fff4ec;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.ux-opt.picked {
  background: #e84393;
  color: #ffffff;
}

.ux-step3 {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ux-step3 strong {
  margin: 8px 0 2px;
  color: #00a86b;
}

.ux-done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #55efc4;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  animation: ux-pop 0.5s ease;
}

@keyframes ux-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ---------- The customer's cursor ---------- */

.ux-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ux-cursor svg {
  display: block;
  transition: transform 0.15s;
}

.ux-cursor.pressing svg {
  transform: scale(0.85);
}

/* A ring that spreads out on every click */
.ux-ripple {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid #e84393;
  pointer-events: none;
  animation: ux-ripple 0.6s ease-out forwards;
}

@keyframes ux-ripple {
  from { transform: scale(0.3); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}

/* Red "heatmap" dots where the customer hesitates */
.ux-dot {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 70, 0.55), rgba(255, 70, 70, 0));
  pointer-events: none;
  animation: ux-fade-in 0.4s ease;
}

@keyframes ux-fade-in {
  from { opacity: 0; transform: scale(0.4); }
}

/* ---------- 2. UI vs UX cards ---------- */

.uiux-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.uiux-card {
  background: #15151c;
  border: 1px solid #2a2a35;
  border-radius: 16px;
  padding: 30px 28px;
  text-align: left;
  transition: transform 0.3s, border-color 0.3s;
}



.uiux-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 154, 92, 0.25), rgba(232, 67, 147, 0.25));
  font-size: 22px;
}

.uiux-card h3 {
  font-size: 21px;
  margin: 16px 0 8px;
}

.uiux-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- 3. Four design steps ---------- */

.ux-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.ux-steps li {
  position: relative;
  background: #15151c;
  border: 1px solid #2a2a35;
  border-radius: 16px;
  padding: 26px 22px;
}

.ux-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #00d2ff);
  color: #ffffff;
  font-weight: 700;
}

.ux-steps h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.ux-steps p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Tablets and phones ---------- */

@media (max-width: 900px) {
  .ux-hero-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 18px;
    text-align: center;
  }

  .ux-hero-text h1 {
    font-size: 32px;
  }

  .ux-hero-buttons {
    justify-content: center;
  }

  .ux-demo {
    text-align: left;
  }

  .ux-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ux-page {
    height: 330px;
    padding: 12px;
  }

  .ux-links {
    gap: 10px;
    font-size: 12px;
  }

  .ux-h1 {
    font-size: 19px;
  }

  .ux-card,
  .ux-opt {
    font-size: 12px;
  }

  .uiux-grid,
  .ux-steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ux-order,
  .ux-flow,
  .ux-note,
  .uiux-card {
    transition: none;
  }

  .ux-done,
  .ux-counter.bump {
    animation: none;
  }

  .ux-cursor {
    display: none;
  }
}
